2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 9.0devel.
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-2010, 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.0devel'
602 PACKAGE_STRING='PostgreSQL 9.0devel'
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
674 python_additional_libs
792 program_transform_name
804 enable_option_checking
809 enable_integer_datetimes
839 with_libedit_preferred
850 ac_precious_vars='build_alias
863 # Initialize some variables set by options.
865 ac_init_version=false
866 ac_unrecognized_opts=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
877 program_transform_name=s,x,x,
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902 infodir='${datarootdir}/info'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
915 # If the previous option needs an argument, assign it.
916 if test -n "$ac_prev"; then
917 eval $ac_prev=\$ac_option
923 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 # Accept the important Cygnus configure options, so we can diagnose typos.
929 case $ac_dashdash$ac_option in
933 -bindir | --bindir | --bindi | --bind | --bin | --bi)
935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 -build | --build | --buil | --bui | --bu)
939 ac_prev=build_alias ;;
940 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941 build_alias=$ac_optarg ;;
943 -cache-file | --cache-file | --cache-fil | --cache-fi \
944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945 ac_prev=cache_file ;;
946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948 cache_file=$ac_optarg ;;
951 cache_file=config.cache ;;
953 -datadir | --datadir | --datadi | --datad)
955 -datadir=* | --datadir=* | --datadi=* | --datad=*)
956 datadir=$ac_optarg ;;
958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959 | --dataroo | --dataro | --datar)
960 ac_prev=datarootdir ;;
961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963 datarootdir=$ac_optarg ;;
965 -disable-* | --disable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
970 { (exit 1); exit 1; }; }
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
980 eval enable_$ac_useropt=no ;;
982 -docdir | --docdir | --docdi | --doc | --do)
984 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
987 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
992 -enable-* | --enable-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
997 { (exit 1); exit 1; }; }
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1002 "enable_$ac_useropt"
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1007 eval enable_$ac_useropt=\$ac_optarg ;;
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1038 htmldir=$ac_optarg ;;
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1052 -libdir | --libdir | --libdi | --libd)
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1143 -psdir | --psdir | --psdi | --psd | --ps)
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156 sbindir=$ac_optarg ;;
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167 sharedstatedir=$ac_optarg ;;
1169 -site | --site | --sit)
1171 -site=* | --site=* | --sit=*)
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1202 { (exit 1); exit 1; }; }
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1212 eval with_$ac_useropt=\$ac_optarg ;;
1214 -without-* | --without-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1219 { (exit 1); exit 1; }; }
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1229 eval with_$ac_useropt=no ;;
1232 # Obsolete; use --with-x.
1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236 | --x-incl | --x-inc | --x-in | --x-i)
1237 ac_prev=x_includes ;;
1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240 x_includes=$ac_optarg ;;
1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244 ac_prev=x_libraries ;;
1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247 x_libraries=$ac_optarg ;;
1249 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1250 Try \`$0 --help' for more information." >&2
1251 { (exit 1); exit 1; }; }
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259 { (exit 1); exit 1; }; }
1260 eval $ac_envvar=\$ac_optarg
1261 export $ac_envvar ;;
1264 # FIXME: should be removed in autoconf 3.0.
1265 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274 if test -n "$ac_prev"; then
1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1277 { (exit 1); exit 1; }; }
1280 if test -n "$ac_unrecognized_opts"; then
1281 case $enable_option_checking in
1283 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1284 { (exit 1); exit 1; }; } ;;
1285 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1289 # Check all directory arguments for consistency.
1290 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291 datadir sysconfdir sharedstatedir localstatedir includedir \
1292 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293 libdir localedir mandir
1295 eval ac_val=\$$ac_var
1296 # Remove trailing slashes.
1299 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1300 eval $ac_var=\$ac_val;;
1302 # Be sure to have absolute directory names.
1304 [\\/$]* | ?:[\\/]* ) continue;;
1305 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1308 { (exit 1); exit 1; }; }
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1316 target=$target_alias
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x; then
1320 if test "x$build_alias" = x; then
1321 cross_compiling=maybe
1322 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1323 If a cross compiler is detected then cross compile mode will be used." >&2
1324 elif test "x$build_alias" != "x$host_alias"; then
1330 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332 test "$silent" = yes && exec 6>/dev/null
1335 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di=`ls -di .` &&
1337 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1339 { (exit 1); exit 1; }; }
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1342 { (exit 1); exit 1; }; }
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347 ac_srcdir_defaulted=yes
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir=`$as_dirname -- "$as_myself" ||
1350 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$as_myself" : 'X\(//\)[^/]' \| \
1352 X"$as_myself" : 'X\(//\)$' \| \
1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354 $as_echo X"$as_myself" |
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1377 ac_srcdir_defaulted=no
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1382 { (exit 1); exit 1; }; }
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1387 { (exit 1); exit 1; }; }
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 for ac_var in $ac_precious_vars; do
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_${ac_var}_value=\$${ac_var}
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 # Report the --help message.
1409 if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1413 \`configure' configures PostgreSQL 9.0devel to adapt to many kinds of systems.
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE. See below for descriptions of some of the useful variables.
1420 Defaults for the options are specified in brackets.
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
1427 -q, --quiet, --silent do not print \`checking...' messages
1428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1433 Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
1435 [$ac_default_prefix]
1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1444 For better control, use the options below.
1446 Fine tuning of the installation directories:
1447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --libdir=DIR object code libraries [EPREFIX/lib]
1454 --includedir=DIR C header files [PREFIX/include]
1455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458 --infodir=DIR info documentation [DATAROOTDIR/info]
1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460 --mandir=DIR man documentation [DATAROOTDIR/man]
1461 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
1471 --build=BUILD configure for building on BUILD [guessed]
1472 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1476 if test -n "$ac_init_help"; then
1477 case $ac_init_help in
1478 short | recursive ) echo "Configuration of PostgreSQL 9.0devel:";;
1483 --disable-option-checking ignore unrecognized --enable/--with options
1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1486 --disable-integer-datetimes
1487 disable 64-bit integer date/time support
1488 --enable-nls[=LANGUAGES]
1489 enable Native Language Support
1490 --disable-shared do not build shared libraries
1491 --disable-rpath do not embed shared library search path in
1493 --disable-spinlocks do not use spinlocks
1494 --enable-debug build with debugging symbols (-g)
1495 --enable-profiling build with profiling enabled
1496 --enable-coverage build with coverage testing instrumentation
1497 --enable-dtrace build with DTrace support
1498 --enable-depend turn on automatic dependency tracking
1499 --enable-cassert enable assertion checks (for debugging)
1500 --disable-thread-safety disable thread-safety in client libraries
1501 --disable-largefile omit support for large files
1502 --disable-float4-byval disable float4 passed by value
1503 --disable-float8-byval disable float8 passed by value
1506 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1507 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1508 --with-template=NAME override operating system template
1509 --with-includes=DIRS look for additional header files in DIRS
1510 --with-libraries=DIRS look for additional libraries in DIRS
1511 --with-libs=DIRS alternative spelling of --with-libraries
1512 --with-pgport=PORTNUM set default port number [5432]
1513 --with-blocksize=BLOCKSIZE
1514 set table block size in kB [8]
1515 --with-segsize=SEGSIZE set table segment size in GB [1]
1516 --with-wal-blocksize=BLOCKSIZE
1517 set WAL block size in kB [8]
1518 --with-wal-segsize=SEGSIZE
1519 set WAL segment size in MB [16]
1520 --with-CC=CMD set compiler (deprecated)
1521 --with-tcl build Tcl modules (PL/Tcl)
1522 --with-tclconfig=DIR tclConfig.sh is in DIR
1523 --with-perl build Perl modules (PL/Perl)
1524 --with-python build Python modules (PL/Python)
1525 --with-gssapi build with GSSAPI support
1526 --with-krb5 build with Kerberos 5 support
1527 --with-krb-srvnam=NAME default service principal name in Kerberos
1529 --with-pam build with PAM support
1530 --with-ldap build with LDAP support
1531 --with-bonjour build with Bonjour support
1532 --with-openssl build with OpenSSL support
1533 --without-readline do not use GNU Readline nor BSD Libedit for editing
1534 --with-libedit-preferred
1535 prefer BSD Libedit over GNU Readline
1536 --with-ossp-uuid use OSSP UUID library when building
1538 --with-libxml build with XML support
1539 --with-libxslt use XSLT support when building contrib/xml2
1540 --with-system-tzdata=DIR
1541 use system time zone data in DIR
1542 --without-zlib do not use Zlib
1543 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1545 Some influential environment variables:
1546 CC C compiler command
1547 CFLAGS C compiler flags
1548 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1549 nonstandard directory <lib dir>
1550 LIBS libraries to pass to the linker, e.g. -l<library>
1551 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1552 you have headers in a nonstandard directory <include dir>
1554 LDFLAGS_SL linker flags for shared library linking
1556 location of DocBook stylesheets
1558 Use these variables to override the choices made by `configure' or to help
1559 it to find libraries and programs with nonstandard names/locations.
1561 Report bugs to <pgsql-bugs@postgresql.org>.
1566 if test "$ac_init_help" = "recursive"; then
1567 # If there are subdirs, report their specific --help.
1568 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1569 test -d "$ac_dir" ||
1570 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1575 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1578 # A ".." for each directory in $ac_dir_suffix.
1579 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1580 case $ac_top_builddir_sub in
1581 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1585 ac_abs_top_builddir=$ac_pwd
1586 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1587 # for backward compatibility:
1588 ac_top_builddir=$ac_top_build_prefix
1591 .) # We are building in place.
1593 ac_top_srcdir=$ac_top_builddir_sub
1594 ac_abs_top_srcdir=$ac_pwd ;;
1595 [\\/]* | ?:[\\/]* ) # Absolute name.
1596 ac_srcdir=$srcdir$ac_dir_suffix;
1597 ac_top_srcdir=$srcdir
1598 ac_abs_top_srcdir=$srcdir ;;
1600 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1601 ac_top_srcdir=$ac_top_build_prefix$srcdir
1602 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1604 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1606 cd "$ac_dir" || { ac_status=$?; continue; }
1607 # Check for guested configure.
1608 if test -f "$ac_srcdir/configure.gnu"; then
1610 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1611 elif test -f "$ac_srcdir/configure"; then
1613 $SHELL "$ac_srcdir/configure" --help=recursive
1615 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1617 cd "$ac_pwd" || { ac_status=$?; break; }
1621 test -n "$ac_init_help" && exit $ac_status
1622 if $ac_init_version; then
1624 PostgreSQL configure 9.0devel
1625 generated by GNU Autoconf 2.63
1627 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1628 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1629 This configure script is free software; the Free Software Foundation
1630 gives unlimited permission to copy, distribute and modify it.
1632 Copyright (c) 1996-2010, PostgreSQL Global Development Group
1636 cat >config.log <<_ACEOF
1637 This file contains any messages produced by compilers while
1638 running configure, to aid debugging if configure makes a mistake.
1640 It was created by PostgreSQL $as_me 9.0devel, which was
1641 generated by GNU Autoconf 2.63. Invocation command line was
1653 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1654 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1655 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1656 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1657 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1659 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1660 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1662 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1663 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1664 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1665 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1666 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1667 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1668 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 test -z "$as_dir" && as_dir=.
1677 $as_echo "PATH: $as_dir"
1693 # Keep a trace of the command line.
1694 # Strip out --no-create and --no-recursion so they do not pile up.
1695 # Strip out --silent because we don't want to record it for future runs.
1696 # Also quote any args containing shell meta-characters.
1697 # Make two passes to allow for proper duplicate-argument suppression.
1701 ac_must_keep_next=false
1707 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1708 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1709 | -silent | --silent | --silen | --sile | --sil)
1712 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1715 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1717 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1718 if test $ac_must_keep_next = true; then
1719 ac_must_keep_next=false # Got value, back to normal.
1722 *=* | --config-cache | -C | -disable-* | --disable-* \
1723 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1724 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1725 | -with-* | --with-* | -without-* | --without-* | --x)
1726 case "$ac_configure_args0 " in
1727 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1730 -* ) ac_must_keep_next=true ;;
1733 ac_configure_args="$ac_configure_args '$ac_arg'"
1738 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1739 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1741 # When interrupted or exit'd, cleanup temporary files, and complete
1742 # config.log. We remove comments because anyway the quotes in there
1743 # would cause problems or look ugly.
1744 # WARNING: Use '\'' to represent an apostrophe within the trap.
1745 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1746 trap 'exit_status=$?
1747 # Save into config.log some information that might help in debugging.
1752 ## ---------------- ##
1753 ## Cache variables. ##
1754 ## ---------------- ##
1757 # The following way of writing the cache mishandles newlines in values,
1759 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1760 eval ac_val=\$$ac_var
1764 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1765 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1768 _ | IFS | as_nl) ;; #(
1769 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1770 *) $as_unset $ac_var ;;
1775 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1776 *${as_nl}ac_space=\ *)
1778 "s/'\''/'\''\\\\'\'''\''/g;
1779 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1782 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1790 ## ----------------- ##
1791 ## Output variables. ##
1792 ## ----------------- ##
1795 for ac_var in $ac_subst_vars
1797 eval ac_val=\$$ac_var
1799 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1801 $as_echo "$ac_var='\''$ac_val'\''"
1805 if test -n "$ac_subst_files"; then
1807 ## ------------------- ##
1808 ## File substitutions. ##
1809 ## ------------------- ##
1812 for ac_var in $ac_subst_files
1814 eval ac_val=\$$ac_var
1816 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1818 $as_echo "$ac_var='\''$ac_val'\''"
1823 if test -s confdefs.h; then
1833 test "$ac_signal" != 0 &&
1834 $as_echo "$as_me: caught signal $ac_signal"
1835 $as_echo "$as_me: exit $exit_status"
1837 rm -f core *.core core.conftest.* &&
1838 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1841 for ac_signal in 1 2 13 15; do
1842 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1846 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1847 rm -f -r conftest* confdefs.h
1849 # Predefined preprocessor variables.
1851 cat >>confdefs.h <<_ACEOF
1852 #define PACKAGE_NAME "$PACKAGE_NAME"
1856 cat >>confdefs.h <<_ACEOF
1857 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1866 cat >>confdefs.h <<_ACEOF
1867 #define PACKAGE_STRING "$PACKAGE_STRING"
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1876 # Let the site file select an alternate cache file if it wants to.
1877 # Prefer an explicitly selected file to automatically selected ones.
1880 if test -n "$CONFIG_SITE"; then
1881 ac_site_file1=$CONFIG_SITE
1882 elif test "x$prefix" != xNONE; then
1883 ac_site_file1=$prefix/share/config.site
1884 ac_site_file2=$prefix/etc/config.site
1886 ac_site_file1=$ac_default_prefix/share/config.site
1887 ac_site_file2=$ac_default_prefix/etc/config.site
1889 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1891 test "x$ac_site_file" = xNONE && continue
1892 if test -r "$ac_site_file"; then
1893 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1894 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1895 sed 's/^/| /' "$ac_site_file" >&5
1900 if test -r "$cache_file"; then
1901 # Some versions of bash will fail to source /dev/null (special
1902 # files actually), so we avoid doing that.
1903 if test -f "$cache_file"; then
1904 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1905 $as_echo "$as_me: loading cache $cache_file" >&6;}
1907 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1908 *) . "./$cache_file";;
1912 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1913 $as_echo "$as_me: creating cache $cache_file" >&6;}
1917 # Check that the precious variables saved in the cache have kept the same
1919 ac_cache_corrupted=false
1920 for ac_var in $ac_precious_vars; do
1921 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1922 eval ac_new_set=\$ac_env_${ac_var}_set
1923 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1924 eval ac_new_val=\$ac_env_${ac_var}_value
1925 case $ac_old_set,$ac_new_set in
1927 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1928 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1929 ac_cache_corrupted=: ;;
1931 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1932 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1933 ac_cache_corrupted=: ;;
1936 if test "x$ac_old_val" != "x$ac_new_val"; then
1937 # differences in whitespace do not lead to failure.
1938 ac_old_val_w=`echo x $ac_old_val`
1939 ac_new_val_w=`echo x $ac_new_val`
1940 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1941 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1942 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1943 ac_cache_corrupted=:
1945 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1946 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1947 eval $ac_var=\$ac_old_val
1949 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1950 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1951 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1952 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1955 # Pass precious variables to config.status.
1956 if test "$ac_new_set" = set; then
1958 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1959 *) ac_arg=$ac_var=$ac_new_val ;;
1961 case " $ac_configure_args " in
1962 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1963 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1967 if $ac_cache_corrupted; then
1968 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1970 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1971 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1972 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1973 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1974 { (exit 1); exit 1; }; }
2002 ac_cpp='$CPP $CPPFLAGS'
2003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2013 for ac_dir in config "$srcdir"/config; do
2014 if test -f "$ac_dir/install-sh"; then
2016 ac_install_sh="$ac_aux_dir/install-sh -c"
2018 elif test -f "$ac_dir/install.sh"; then
2020 ac_install_sh="$ac_aux_dir/install.sh -c"
2022 elif test -f "$ac_dir/shtool"; then
2024 ac_install_sh="$ac_aux_dir/shtool install -c"
2028 if test -z "$ac_aux_dir"; then
2029 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2030 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2031 { (exit 1); exit 1; }; }
2034 # These three variables are undocumented and unsupported,
2035 # and are intended to be withdrawn in a future Autoconf release.
2036 # They can cause serious problems if a builder's source tree is in a directory
2037 # whose full name contains unusual characters.
2038 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2039 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2040 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2044 configure_args=$ac_configure_args
2048 cat >>confdefs.h <<_ACEOF
2049 #define PG_VERSION "$PACKAGE_VERSION"
2052 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2055 cat >>confdefs.h <<_ACEOF
2056 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2060 # Make sure we can run config.sub.
2061 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2062 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2063 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2064 { (exit 1); exit 1; }; }
2066 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2067 $as_echo_n "checking build system type... " >&6; }
2068 if test "${ac_cv_build+set}" = set; then
2069 $as_echo_n "(cached) " >&6
2071 ac_build_alias=$build_alias
2072 test "x$ac_build_alias" = x &&
2073 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2074 test "x$ac_build_alias" = x &&
2075 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2076 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2077 { (exit 1); exit 1; }; }
2078 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2079 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2080 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2081 { (exit 1); exit 1; }; }
2084 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2085 $as_echo "$ac_cv_build" >&6; }
2086 case $ac_cv_build in
2088 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2089 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2090 { (exit 1); exit 1; }; };;
2093 ac_save_IFS=$IFS; IFS='-'
2099 # Remember, the first character of IFS is used to create $*,
2100 # except with old shells:
2103 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2106 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2107 $as_echo_n "checking host system type... " >&6; }
2108 if test "${ac_cv_host+set}" = set; then
2109 $as_echo_n "(cached) " >&6
2111 if test "x$host_alias" = x; then
2112 ac_cv_host=$ac_cv_build
2114 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2115 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2116 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2117 { (exit 1); exit 1; }; }
2121 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2122 $as_echo "$ac_cv_host" >&6; }
2125 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2126 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2127 { (exit 1); exit 1; }; };;
2130 ac_save_IFS=$IFS; IFS='-'
2136 # Remember, the first character of IFS is used to create $*,
2137 # except with old shells:
2140 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2145 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2146 $as_echo_n "checking which template to use... " >&6; }
2151 # Check whether --with-template was given.
2152 if test "${with_template+set}" = set; then
2153 withval=$with_template;
2156 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2157 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2158 { (exit 1); exit 1; }; }
2161 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2162 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2163 { (exit 1); exit 1; }; }
2168 list) echo; ls "$srcdir/src/template"; exit;;
2169 *) if test -f "$srcdir/src/template/$with_template" ; then
2172 { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2173 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2174 { (exit 1); exit 1; }; }
2183 # --with-template not given
2186 aix*) template=aix ;;
2187 bsdi*) template=bsdi ;;
2188 cygwin*) template=cygwin ;;
2189 darwin*) template=darwin ;;
2190 dgux*) template=dgux ;;
2191 freebsd*) template=freebsd ;;
2192 hpux*) template=hpux ;;
2193 irix*) template=irix ;;
2194 linux*|gnu*|k*bsd*-gnu)
2196 mingw*) template=win32 ;;
2197 netbsd*) template=netbsd ;;
2198 nextstep*) template=nextstep ;;
2199 openbsd*) template=openbsd ;;
2200 osf*) template=osf ;;
2201 sco*) template=sco ;;
2202 solaris*) template=solaris ;;
2203 sunos*) template=sunos4 ;;
2205 case $host_vendor in
2206 univel) template=univel ;;
2208 sysv4*) template=svr4 ;;
2209 sysv5*) template=unixware ;;
2210 ultrix*) template=ultrix4 ;;
2213 if test x"$template" = x"" ; then
2214 { { $as_echo "$as_me:$LINENO: error:
2215 *******************************************************************
2216 PostgreSQL has apparently not been ported to your platform yet.
2217 To try a manual configuration, look into the src/template directory
2218 for a similar platform and use the '--with-template=' option.
2220 Please also contact <pgsql-bugs@postgresql.org> to see about
2221 rectifying this. Include the above 'checking host system type...'
2223 *******************************************************************
2225 $as_echo "$as_me: error:
2226 *******************************************************************
2227 PostgreSQL has apparently not been ported to your platform yet.
2228 To try a manual configuration, look into the src/template directory
2229 for a similar platform and use the '--with-template=' option.
2231 Please also contact <pgsql-bugs@postgresql.org> to see about
2232 rectifying this. Include the above 'checking host system type...'
2234 *******************************************************************
2236 { (exit 1); exit 1; }; }
2244 { $as_echo "$as_me:$LINENO: result: $template" >&5
2245 $as_echo "$template" >&6; }
2250 # Initialize default assumption that we do not need separate assembly code
2251 # for TAS (test-and-set). This can be overridden by the template file
2252 # when it's executed.
2259 ## Command line options
2263 # Add non-standard directories to the include path
2268 # Check whether --with-includes was given.
2269 if test "${with_includes+set}" = set; then
2270 withval=$with_includes;
2273 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2274 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2275 { (exit 1); exit 1; }; }
2278 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2279 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2280 { (exit 1); exit 1; }; }
2293 # Add non-standard directories to the library search path
2298 # Check whether --with-libraries was given.
2299 if test "${with_libraries+set}" = set; then
2300 withval=$with_libraries;
2303 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2304 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2305 { (exit 1); exit 1; }; }
2308 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2309 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2310 { (exit 1); exit 1; }; }
2313 LIBRARY_DIRS=$withval
2324 # Check whether --with-libs was given.
2325 if test "${with_libs+set}" = set; then
2329 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2330 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2331 { (exit 1); exit 1; }; }
2334 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2335 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2336 { (exit 1); exit 1; }; }
2339 LIBRARY_DIRS=$withval
2349 # 64-bit integer date/time storage: enabled by default.
2351 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2352 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2355 # Check whether --enable-integer-datetimes was given.
2356 if test "${enable_integer_datetimes+set}" = set; then
2357 enableval=$enable_integer_datetimes;
2361 cat >>confdefs.h <<\_ACEOF
2362 #define USE_INTEGER_DATETIMES 1
2370 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2371 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2372 { (exit 1); exit 1; }; }
2377 enable_integer_datetimes=yes
2379 cat >>confdefs.h <<\_ACEOF
2380 #define USE_INTEGER_DATETIMES 1
2386 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2387 $as_echo "$enable_integer_datetimes" >&6; }
2393 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2394 $as_echo_n "checking whether NLS is wanted... " >&6; }
2397 # Check whether --enable-nls was given.
2398 if test "${enable_nls+set}" = set; then
2399 enableval=$enable_nls;
2409 WANTED_LANGUAGES=$enableval
2419 if test "$enable_nls" = yes; then
2421 cat >>confdefs.h <<\_ACEOF
2422 #define ENABLE_NLS 1
2427 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2428 $as_echo "$enable_nls" >&6; }
2433 # Default port number (--with-pgport), default 5432
2435 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2436 $as_echo_n "checking for default port number... " >&6; }
2440 # Check whether --with-pgport was given.
2441 if test "${with_pgport+set}" = set; then
2442 withval=$with_pgport;
2445 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2446 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2447 { (exit 1); exit 1; }; }
2450 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2451 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2452 { (exit 1); exit 1; }; }
2455 default_port=$withval
2464 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2465 $as_echo "$default_port" >&6; }
2466 # Need both of these because some places want an integer and some a string
2468 cat >>confdefs.h <<_ACEOF
2469 #define DEF_PGPORT ${default_port}
2473 cat >>confdefs.h <<_ACEOF
2474 #define DEF_PGPORT_STR "${default_port}"
2480 # Option to disable shared libraries
2484 # Check whether --enable-shared was given.
2485 if test "${enable_shared+set}" = set; then
2486 enableval=$enable_shared;
2495 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2496 $as_echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2497 { (exit 1); exit 1; }; }
2510 # '-rpath'-like feature can be disabled
2514 # Check whether --enable-rpath was given.
2515 if test "${enable_rpath+set}" = set; then
2516 enableval=$enable_rpath;
2525 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2526 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2527 { (exit 1); exit 1; }; }
2544 # Check whether --enable-spinlocks was given.
2545 if test "${enable_spinlocks+set}" = set; then
2546 enableval=$enable_spinlocks;
2555 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2556 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2557 { (exit 1); exit 1; }; }
2562 enable_spinlocks=yes
2569 # --enable-debug adds -g to compiler flags
2573 # Check whether --enable-debug was given.
2574 if test "${enable_debug+set}" = set; then
2575 enableval=$enable_debug;
2584 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2585 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2586 { (exit 1); exit 1; }; }
2599 # --enable-profiling enables gcc profiling
2603 # Check whether --enable-profiling was given.
2604 if test "${enable_profiling+set}" = set; then
2605 enableval=$enable_profiling;
2614 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2615 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2616 { (exit 1); exit 1; }; }
2629 # --enable-coverage enables generation of code coverage metrics with gcov
2633 # Check whether --enable-coverage was given.
2634 if test "${enable_coverage+set}" = set; then
2635 enableval=$enable_coverage;
2640 # Extract the first word of "$ac_prog", so it can be a program name with args.
2641 set dummy $ac_prog; ac_word=$2
2642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2643 $as_echo_n "checking for $ac_word... " >&6; }
2644 if test "${ac_cv_prog_GCOV+set}" = set; then
2645 $as_echo_n "(cached) " >&6
2647 if test -n "$GCOV"; then
2648 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657 ac_cv_prog_GCOV="$ac_prog"
2658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 GCOV=$ac_cv_prog_GCOV
2668 if test -n "$GCOV"; then
2669 { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2670 $as_echo "$GCOV" >&6; }
2672 { $as_echo "$as_me:$LINENO: result: no" >&5
2673 $as_echo "no" >&6; }
2677 test -n "$GCOV" && break
2680 if test -z "$GCOV"; then
2681 { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2682 $as_echo "$as_me: error: gcov not found" >&2;}
2683 { (exit 1); exit 1; }; }
2687 # Extract the first word of "$ac_prog", so it can be a program name with args.
2688 set dummy $ac_prog; ac_word=$2
2689 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2690 $as_echo_n "checking for $ac_word... " >&6; }
2691 if test "${ac_cv_prog_LCOV+set}" = set; then
2692 $as_echo_n "(cached) " >&6
2694 if test -n "$LCOV"; then
2695 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 test -z "$as_dir" && as_dir=.
2702 for ac_exec_ext in '' $ac_executable_extensions; do
2703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2704 ac_cv_prog_LCOV="$ac_prog"
2705 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714 LCOV=$ac_cv_prog_LCOV
2715 if test -n "$LCOV"; then
2716 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2717 $as_echo "$LCOV" >&6; }
2719 { $as_echo "$as_me:$LINENO: result: no" >&5
2720 $as_echo "no" >&6; }
2724 test -n "$LCOV" && break
2727 if test -z "$LCOV"; then
2728 { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2729 $as_echo "$as_me: error: lcov not found" >&2;}
2730 { (exit 1); exit 1; }; }
2732 for ac_prog in genhtml
2734 # Extract the first word of "$ac_prog", so it can be a program name with args.
2735 set dummy $ac_prog; ac_word=$2
2736 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2737 $as_echo_n "checking for $ac_word... " >&6; }
2738 if test "${ac_cv_prog_GENHTML+set}" = set; then
2739 $as_echo_n "(cached) " >&6
2741 if test -n "$GENHTML"; then
2742 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2751 ac_cv_prog_GENHTML="$ac_prog"
2752 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 GENHTML=$ac_cv_prog_GENHTML
2762 if test -n "$GENHTML"; then
2763 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2764 $as_echo "$GENHTML" >&6; }
2766 { $as_echo "$as_me:$LINENO: result: no" >&5
2767 $as_echo "no" >&6; }
2771 test -n "$GENHTML" && break
2774 if test -z "$GENHTML"; then
2775 { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2776 $as_echo "$as_me: error: genhtml not found" >&2;}
2777 { (exit 1); exit 1; }; }
2784 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2785 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2786 { (exit 1); exit 1; }; }
2803 # Check whether --enable-dtrace was given.
2804 if test "${enable_dtrace+set}" = set; then
2805 enableval=$enable_dtrace;
2809 cat >>confdefs.h <<\_ACEOF
2810 #define ENABLE_DTRACE 1
2813 for ac_prog in dtrace
2815 # Extract the first word of "$ac_prog", so it can be a program name with args.
2816 set dummy $ac_prog; ac_word=$2
2817 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if test "${ac_cv_prog_DTRACE+set}" = set; then
2820 $as_echo_n "(cached) " >&6
2822 if test -n "$DTRACE"; then
2823 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832 ac_cv_prog_DTRACE="$ac_prog"
2833 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 DTRACE=$ac_cv_prog_DTRACE
2843 if test -n "$DTRACE"; then
2844 { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2845 $as_echo "$DTRACE" >&6; }
2847 { $as_echo "$as_me:$LINENO: result: no" >&5
2848 $as_echo "no" >&6; }
2852 test -n "$DTRACE" && break
2855 if test -z "$DTRACE"; then
2856 { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2857 $as_echo "$as_me: error: dtrace not found" >&2;}
2858 { (exit 1); exit 1; }; }
2866 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2867 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2868 { (exit 1); exit 1; }; }
2883 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2884 $as_echo_n "checking for block size... " >&6; }
2888 # Check whether --with-blocksize was given.
2889 if test "${with_blocksize+set}" = set; then
2890 withval=$with_blocksize;
2893 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2894 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2895 { (exit 1); exit 1; }; }
2898 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2899 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2900 { (exit 1); exit 1; }; }
2912 case ${blocksize} in
2919 *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2920 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2921 { (exit 1); exit 1; }; }
2923 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2924 $as_echo "${blocksize}kB" >&6; }
2927 cat >>confdefs.h <<_ACEOF
2928 #define BLCKSZ ${BLCKSZ}
2933 # Relation segment size
2935 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2936 $as_echo_n "checking for segment size... " >&6; }
2940 # Check whether --with-segsize was given.
2941 if test "${with_segsize+set}" = set; then
2942 withval=$with_segsize;
2945 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2946 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2947 { (exit 1); exit 1; }; }
2950 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2951 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2952 { (exit 1); exit 1; }; }
2964 # this expression is set up to avoid unnecessary integer overflow
2965 # blocksize is already guaranteed to be a factor of 1024
2966 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2967 test $? -eq 0 || exit 1
2968 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2969 $as_echo "${segsize}GB" >&6; }
2972 cat >>confdefs.h <<_ACEOF
2973 #define RELSEG_SIZE ${RELSEG_SIZE}
2980 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2981 $as_echo_n "checking for WAL block size... " >&6; }
2985 # Check whether --with-wal-blocksize was given.
2986 if test "${with_wal_blocksize+set}" = set; then
2987 withval=$with_wal_blocksize;
2990 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2991 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2992 { (exit 1); exit 1; }; }
2995 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2996 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2997 { (exit 1); exit 1; }; }
3000 wal_blocksize=$withval
3009 case ${wal_blocksize} in
3010 1) XLOG_BLCKSZ=1024;;
3011 2) XLOG_BLCKSZ=2048;;
3012 4) XLOG_BLCKSZ=4096;;
3013 8) XLOG_BLCKSZ=8192;;
3014 16) XLOG_BLCKSZ=16384;;
3015 32) XLOG_BLCKSZ=32768;;
3016 64) XLOG_BLCKSZ=65536;;
3017 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
3018 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3019 { (exit 1); exit 1; }; }
3021 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
3022 $as_echo "${wal_blocksize}kB" >&6; }
3025 cat >>confdefs.h <<_ACEOF
3026 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3033 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
3034 $as_echo_n "checking for WAL segment size... " >&6; }
3038 # Check whether --with-wal-segsize was given.
3039 if test "${with_wal_segsize+set}" = set; then
3040 withval=$with_wal_segsize;
3043 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3044 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3045 { (exit 1); exit 1; }; }
3048 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3049 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3050 { (exit 1); exit 1; }; }
3053 wal_segsize=$withval
3062 case ${wal_segsize} in
3070 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3071 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3072 { (exit 1); exit 1; }; }
3074 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3075 $as_echo "${wal_segsize}MB" >&6; }
3078 cat >>confdefs.h <<_ACEOF
3079 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3087 # For historical reasons you can also use --with-CC to specify the C compiler
3088 # to use, although the standard way to do this is to set the CC environment
3093 # Check whether --with-CC was given.
3094 if test "${with_CC+set}" = set; then
3098 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3099 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3100 { (exit 1); exit 1; }; }
3103 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3104 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3105 { (exit 1); exit 1; }; }
3117 aix) pgac_cc_list="gcc xlc";;
3118 irix) pgac_cc_list="cc";; # no gcc
3119 *) pgac_cc_list="gcc cc";;
3123 ac_cpp='$CPP $CPPFLAGS'
3124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3127 if test -n "$ac_tool_prefix"; then
3128 for ac_prog in $pgac_cc_list
3130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if test "${ac_cv_prog_CC+set}" = set; then
3135 $as_echo_n "(cached) " >&6
3137 if test -n "$CC"; then
3138 ac_cv_prog_CC="$CC" # Let the user override the test.
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3148 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 if test -n "$CC"; then
3159 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3160 $as_echo "$CC" >&6; }
3162 { $as_echo "$as_me:$LINENO: result: no" >&5
3163 $as_echo "no" >&6; }
3167 test -n "$CC" && break
3170 if test -z "$CC"; then
3172 for ac_prog in $pgac_cc_list
3174 # Extract the first word of "$ac_prog", so it can be a program name with args.
3175 set dummy $ac_prog; ac_word=$2
3176 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3179 $as_echo_n "(cached) " >&6
3181 if test -n "$ac_ct_CC"; then
3182 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3191 ac_cv_prog_ac_ct_CC="$ac_prog"
3192 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3202 if test -n "$ac_ct_CC"; then
3203 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3204 $as_echo "$ac_ct_CC" >&6; }
3206 { $as_echo "$as_me:$LINENO: result: no" >&5
3207 $as_echo "no" >&6; }
3211 test -n "$ac_ct_CC" && break
3214 if test "x$ac_ct_CC" = x; then
3217 case $cross_compiling:$ac_tool_warned in
3219 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3221 ac_tool_warned=yes ;;
3228 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3230 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3231 See \`config.log' for more details." >&5
3232 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3233 See \`config.log' for more details." >&2;}
3234 { (exit 1); exit 1; }; }; }
3236 # Provide some information about the compiler.
3237 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3240 { (ac_try="$ac_compiler --version >&5"
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3246 $as_echo "$ac_try_echo") >&5
3247 (eval "$ac_compiler --version >&5") 2>&5
3249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }
3251 { (ac_try="$ac_compiler -v >&5"
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3257 $as_echo "$ac_try_echo") >&5
3258 (eval "$ac_compiler -v >&5") 2>&5
3260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }
3262 { (ac_try="$ac_compiler -V >&5"
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3268 $as_echo "$ac_try_echo") >&5
3269 (eval "$ac_compiler -V >&5") 2>&5
3271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }
3274 cat >conftest.$ac_ext <<_ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3289 ac_clean_files_save=$ac_clean_files
3290 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3291 # Try to create an executable without -o first, disregard a.out.
3292 # It will help us diagnose broken compilers, and finding out an intuition
3294 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3295 $as_echo_n "checking for C compiler default output file name... " >&6; }
3296 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3298 # The possible output files:
3299 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3302 for ac_file in $ac_files
3305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3306 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3311 if { (ac_try="$ac_link_default"
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3317 $as_echo "$ac_try_echo") >&5
3318 (eval "$ac_link_default") 2>&5
3320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; then
3322 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3323 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3324 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3325 # so that the user can short-circuit this test for compilers unknown to
3327 for ac_file in $ac_files ''
3329 test -f "$ac_file" || continue
3331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3334 # We found the default executable, but exeext='' is most
3338 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3340 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3342 # We set ac_cv_exeext here because the later test for it is not
3343 # safe: cross compilers may not add the suffix if given an `-o'
3344 # argument, so we may need to know it at that point already.
3345 # Even if this section looks crufty: it has the advantage of
3352 test "$ac_cv_exeext" = no && ac_cv_exeext=
3358 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3359 $as_echo "$ac_file" >&6; }
3360 if test -z "$ac_file"; then
3361 $as_echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3364 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3366 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3367 See \`config.log' for more details." >&5
3368 $as_echo "$as_me: error: C compiler cannot create executables
3369 See \`config.log' for more details." >&2;}
3370 { (exit 77); exit 77; }; }; }
3373 ac_exeext=$ac_cv_exeext
3375 # Check that the compiler produces executables we can run. If not, either
3376 # the compiler is broken, or we cross compile.
3377 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3378 $as_echo_n "checking whether the C compiler works... " >&6; }
3379 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3380 # If not cross compiling, check that we can run a simple program.
3381 if test "$cross_compiling" != yes; then
3382 if { ac_try='./$ac_file'
3383 { (case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3388 $as_echo "$ac_try_echo") >&5
3389 (eval "$ac_try") 2>&5
3391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); }; }; then
3395 if test "$cross_compiling" = maybe; then
3398 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3401 If you meant to cross compile, use \`--host'.
3402 See \`config.log' for more details." >&5
3403 $as_echo "$as_me: error: cannot run C compiled programs.
3404 If you meant to cross compile, use \`--host'.
3405 See \`config.log' for more details." >&2;}
3406 { (exit 1); exit 1; }; }; }
3410 { $as_echo "$as_me:$LINENO: result: yes" >&5
3411 $as_echo "yes" >&6; }
3413 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3414 ac_clean_files=$ac_clean_files_save
3415 # Check that the compiler produces executables we can run. If not, either
3416 # the compiler is broken, or we cross compile.
3417 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3418 $as_echo_n "checking whether we are cross compiling... " >&6; }
3419 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3420 $as_echo "$cross_compiling" >&6; }
3422 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3423 $as_echo_n "checking for suffix of executables... " >&6; }
3424 if { (ac_try="$ac_link"
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3430 $as_echo "$ac_try_echo") >&5
3431 (eval "$ac_link") 2>&5
3433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); }; then
3435 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3436 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3437 # work properly (i.e., refer to `conftest.exe'), while it won't with
3439 for ac_file in conftest.exe conftest conftest.*; do
3440 test -f "$ac_file" || continue
3442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3443 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3449 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3451 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3452 See \`config.log' for more details." >&5
3453 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3454 See \`config.log' for more details." >&2;}
3455 { (exit 1); exit 1; }; }; }
3458 rm -f conftest$ac_cv_exeext
3459 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3460 $as_echo "$ac_cv_exeext" >&6; }
3462 rm -f conftest.$ac_ext
3463 EXEEXT=$ac_cv_exeext
3465 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3466 $as_echo_n "checking for suffix of object files... " >&6; }
3467 if test "${ac_cv_objext+set}" = set; then
3468 $as_echo_n "(cached) " >&6
3470 cat >conftest.$ac_ext <<_ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h. */
3485 rm -f conftest.o conftest.obj
3486 if { (ac_try="$ac_compile"
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3492 $as_echo "$ac_try_echo") >&5
3493 (eval "$ac_compile") 2>&5
3495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }; then
3497 for ac_file in conftest.o conftest.obj conftest.*; do
3498 test -f "$ac_file" || continue;
3500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3501 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3506 $as_echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3509 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3511 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3512 See \`config.log' for more details." >&5
3513 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3514 See \`config.log' for more details." >&2;}
3515 { (exit 1); exit 1; }; }; }
3518 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3520 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3521 $as_echo "$ac_cv_objext" >&6; }
3522 OBJEXT=$ac_cv_objext
3524 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3525 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3526 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3527 $as_echo_n "(cached) " >&6
3529 cat >conftest.$ac_ext <<_ACEOF
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3547 rm -f conftest.$ac_objext
3548 if { (ac_try="$ac_compile"
3550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551 *) ac_try_echo=$ac_try;;
3553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3554 $as_echo "$ac_try_echo") >&5
3555 (eval "$ac_compile") 2>conftest.er1
3557 grep -v '^ *+' conftest.er1 >conftest.err
3559 cat conftest.err >&5
3560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } && {
3562 test -z "$ac_c_werror_flag" ||
3563 test ! -s conftest.err
3564 } && test -s conftest.$ac_objext; then
3567 $as_echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3577 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3578 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3579 if test $ac_compiler_gnu = yes; then
3584 ac_test_CFLAGS=${CFLAGS+set}
3585 ac_save_CFLAGS=$CFLAGS
3586 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3587 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3588 if test "${ac_cv_prog_cc_g+set}" = set; then
3589 $as_echo_n "(cached) " >&6
3591 ac_save_c_werror_flag=$ac_c_werror_flag
3592 ac_c_werror_flag=yes
3595 cat >conftest.$ac_ext <<_ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3610 rm -f conftest.$ac_objext
3611 if { (ac_try="$ac_compile"
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3617 $as_echo "$ac_try_echo") >&5
3618 (eval "$ac_compile") 2>conftest.er1
3620 grep -v '^ *+' conftest.er1 >conftest.err
3622 cat conftest.err >&5
3623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } && {
3625 test -z "$ac_c_werror_flag" ||
3626 test ! -s conftest.err
3627 } && test -s conftest.$ac_objext; then
3630 $as_echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3634 cat >conftest.$ac_ext <<_ACEOF
3637 cat confdefs.h >>conftest.$ac_ext
3638 cat >>conftest.$ac_ext <<_ACEOF
3639 /* end confdefs.h. */
3649 rm -f conftest.$ac_objext
3650 if { (ac_try="$ac_compile"
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3656 $as_echo "$ac_try_echo") >&5
3657 (eval "$ac_compile") 2>conftest.er1
3659 grep -v '^ *+' conftest.er1 >conftest.err
3661 cat conftest.err >&5
3662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } && {
3664 test -z "$ac_c_werror_flag" ||
3665 test ! -s conftest.err
3666 } && test -s conftest.$ac_objext; then
3669 $as_echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3672 ac_c_werror_flag=$ac_save_c_werror_flag
3674 cat >conftest.$ac_ext <<_ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3689 rm -f conftest.$ac_objext
3690 if { (ac_try="$ac_compile"
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3696 $as_echo "$ac_try_echo") >&5
3697 (eval "$ac_compile") 2>conftest.er1
3699 grep -v '^ *+' conftest.er1 >conftest.err
3701 cat conftest.err >&5
3702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } && {
3704 test -z "$ac_c_werror_flag" ||
3705 test ! -s conftest.err
3706 } && test -s conftest.$ac_objext; then
3709 $as_echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 ac_c_werror_flag=$ac_save_c_werror_flag
3724 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3725 $as_echo "$ac_cv_prog_cc_g" >&6; }
3726 if test "$ac_test_CFLAGS" = set; then
3727 CFLAGS=$ac_save_CFLAGS
3728 elif test $ac_cv_prog_cc_g = yes; then
3729 if test "$GCC" = yes; then
3735 if test "$GCC" = yes; then
3741 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3742 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3743 if test "${ac_cv_prog_cc_c89+set}" = set; then
3744 $as_echo_n "(cached) " >&6
3746 ac_cv_prog_cc_c89=no
3748 cat >conftest.$ac_ext <<_ACEOF
3751 cat confdefs.h >>conftest.$ac_ext
3752 cat >>conftest.$ac_ext <<_ACEOF
3753 /* end confdefs.h. */
3756 #include <sys/types.h>
3757 #include <sys/stat.h>
3758 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3759 struct buf { int x; };
3760 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3761 static char *e (p, i)
3767 static char *f (char * (*g) (char **, int), char **p, ...)
3772 s = g (p, va_arg (v,int));
3777 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3778 function prototypes and stuff, but not '\xHH' hex character constants.
3779 These don't provoke an error unfortunately, instead are silently treated
3780 as 'x'. The following induces an error, until -std is added to get
3781 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3782 array size at least. It's necessary to write '\x00'==0 to get something
3783 that's true only with -std. */
3784 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3786 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3787 inside strings and character constants. */
3789 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3791 int test (int i, double x);
3792 struct s1 {int (*f) (int a);};
3793 struct s2 {int (*f) (double a);};
3794 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3800 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3805 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3806 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3808 CC="$ac_save_CC $ac_arg"
3809 rm -f conftest.$ac_objext
3810 if { (ac_try="$ac_compile"
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3816 $as_echo "$ac_try_echo") >&5
3817 (eval "$ac_compile") 2>conftest.er1
3819 grep -v '^ *+' conftest.er1 >conftest.err
3821 cat conftest.err >&5
3822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); } && {
3824 test -z "$ac_c_werror_flag" ||
3825 test ! -s conftest.err
3826 } && test -s conftest.$ac_objext; then
3827 ac_cv_prog_cc_c89=$ac_arg
3829 $as_echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3835 rm -f core conftest.err conftest.$ac_objext
3836 test "x$ac_cv_prog_cc_c89" != "xno" && break
3838 rm -f conftest.$ac_ext
3843 case "x$ac_cv_prog_cc_c89" in
3845 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3846 $as_echo "none needed" >&6; } ;;
3848 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3849 $as_echo "unsupported" >&6; } ;;
3851 CC="$CC $ac_cv_prog_cc_c89"
3852 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3853 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3858 ac_cpp='$CPP $CPPFLAGS'
3859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3864 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3865 # but has idiosyncrasies of its own. We assume icc will define
3866 # __INTEL_COMPILER regardless of CFLAGS.
3868 cat >conftest.$ac_ext <<_ACEOF
3871 cat confdefs.h >>conftest.$ac_ext
3872 cat >>conftest.$ac_ext <<_ACEOF
3873 /* end confdefs.h. */
3878 #ifndef __INTEL_COMPILER
3885 rm -f conftest.$ac_objext
3886 if { (ac_try="$ac_compile"
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3892 $as_echo "$ac_try_echo") >&5
3893 (eval "$ac_compile") 2>conftest.er1
3895 grep -v '^ *+' conftest.er1 >conftest.err
3897 cat conftest.err >&5
3898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); } && {
3900 test -z "$ac_c_werror_flag" ||
3901 test ! -s conftest.err
3902 } && test -s conftest.$ac_objext; then
3905 $as_echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3913 # Check if it's Sun Studio compiler. We assume that
3914 # __SUNPRO_C will be defined for Sun Studio compilers
3915 cat >conftest.$ac_ext <<_ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3932 rm -f conftest.$ac_objext
3933 if { (ac_try="$ac_compile"
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3939 $as_echo "$ac_try_echo") >&5
3940 (eval "$ac_compile") 2>conftest.er1
3942 grep -v '^ *+' conftest.er1 >conftest.err
3944 cat conftest.err >&5
3945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); } && {
3947 test -z "$ac_c_werror_flag" ||
3948 test ! -s conftest.err
3949 } && test -s conftest.$ac_objext; then
3952 $as_echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 . "$srcdir/src/template/$template" || exit
3969 # CFLAGS are selected so:
3970 # If the user specifies something in the environment, that is used.
3971 # else: If the template file set something, that is used.
3972 # else: If coverage was enabled, don't set anything.
3973 # else: If the compiler is GCC, then we use -O2.
3974 # else: If the compiler is something else, then we use -O, unless debugging.
3976 if test "$ac_env_CFLAGS_set" = set; then
3977 CFLAGS=$ac_env_CFLAGS_value
3978 elif test "${CFLAGS+set}" = set; then
3979 : # (keep what template set)
3980 elif test "$enable_coverage" = yes; then
3981 : # no optimization by default
3982 elif test "$GCC" = yes; then
3985 # if the user selected debug mode, don't use -O
3986 if test "$enable_debug" != yes; then
3991 # Some versions of GCC support some additional useful warning flags.
3992 # Check whether they are supported, and add them to CFLAGS if so.
3993 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3994 # but has its own. Also check other compiler-specific flags here.
3996 if test "$GCC" = yes -a "$ICC" = no; then
3997 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3998 # These work in some but not all gcc versions
3999 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
4000 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
4001 pgac_save_CFLAGS=$CFLAGS
4002 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4003 cat >conftest.$ac_ext <<_ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4018 rm -f conftest.$ac_objext
4019 if { (ac_try="$ac_compile"
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4025 $as_echo "$ac_try_echo") >&5
4026 (eval "$ac_compile") 2>conftest.er1
4028 grep -v '^ *+' conftest.er1 >conftest.err
4030 cat conftest.err >&5
4031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); } && {
4033 test -z "$ac_c_werror_flag" ||
4034 test ! -s conftest.err
4035 } && test -s conftest.$ac_objext; then
4036 { $as_echo "$as_me:$LINENO: result: yes" >&5
4037 $as_echo "yes" >&6; }
4039 $as_echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4042 CFLAGS="$pgac_save_CFLAGS"
4043 { $as_echo "$as_me:$LINENO: result: no" >&5
4044 $as_echo "no" >&6; }
4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
4050 $as_echo_n "checking if $CC supports -Wendif-labels... " >&6; }
4051 pgac_save_CFLAGS=$CFLAGS
4052 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4053 cat >conftest.$ac_ext <<_ACEOF
4056 cat confdefs.h >>conftest.$ac_ext
4057 cat >>conftest.$ac_ext <<_ACEOF
4058 /* end confdefs.h. */
4068 rm -f conftest.$ac_objext
4069 if { (ac_try="$ac_compile"
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4075 $as_echo "$ac_try_echo") >&5
4076 (eval "$ac_compile") 2>conftest.er1
4078 grep -v '^ *+' conftest.er1 >conftest.err
4080 cat conftest.err >&5
4081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } && {
4083 test -z "$ac_c_werror_flag" ||
4084 test ! -s conftest.err
4085 } && test -s conftest.$ac_objext; then
4086 { $as_echo "$as_me:$LINENO: result: yes" >&5
4087 $as_echo "yes" >&6; }
4089 $as_echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4092 CFLAGS="$pgac_save_CFLAGS"
4093 { $as_echo "$as_me:$LINENO: result: no" >&5
4094 $as_echo "no" >&6; }
4097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 # Disable strict-aliasing rules; needed for gcc 3.3+
4100 { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4101 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4102 pgac_save_CFLAGS=$CFLAGS
4103 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4104 cat >conftest.$ac_ext <<_ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4119 rm -f conftest.$ac_objext
4120 if { (ac_try="$ac_compile"
4122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123 *) ac_try_echo=$ac_try;;
4125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4126 $as_echo "$ac_try_echo") >&5
4127 (eval "$ac_compile") 2>conftest.er1
4129 grep -v '^ *+' conftest.er1 >conftest.err
4131 cat conftest.err >&5
4132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); } && {
4134 test -z "$ac_c_werror_flag" ||
4135 test ! -s conftest.err
4136 } && test -s conftest.$ac_objext; then
4137 { $as_echo "$as_me:$LINENO: result: yes" >&5
4138 $as_echo "yes" >&6; }
4140 $as_echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4143 CFLAGS="$pgac_save_CFLAGS"
4144 { $as_echo "$as_me:$LINENO: result: no" >&5
4145 $as_echo "no" >&6; }
4148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4150 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4151 { $as_echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
4152 $as_echo_n "checking if $CC supports -fwrapv... " >&6; }
4153 pgac_save_CFLAGS=$CFLAGS
4154 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4155 cat >conftest.$ac_ext <<_ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4170 rm -f conftest.$ac_objext
4171 if { (ac_try="$ac_compile"
4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174 *) ac_try_echo=$ac_try;;
4176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4177 $as_echo "$ac_try_echo") >&5
4178 (eval "$ac_compile") 2>conftest.er1
4180 grep -v '^ *+' conftest.er1 >conftest.err
4182 cat conftest.err >&5
4183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } && {
4185 test -z "$ac_c_werror_flag" ||
4186 test ! -s conftest.err
4187 } && test -s conftest.$ac_objext; then
4188 { $as_echo "$as_me:$LINENO: result: yes" >&5
4189 $as_echo "yes" >&6; }
4191 $as_echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4194 CFLAGS="$pgac_save_CFLAGS"
4195 { $as_echo "$as_me:$LINENO: result: no" >&5
4196 $as_echo "no" >&6; }
4199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201 elif test "$ICC" = yes; then
4202 # Intel's compiler has a bug/misoptimization in checking for
4203 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4204 { $as_echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4205 $as_echo_n "checking if $CC supports -mp1... " >&6; }
4206 pgac_save_CFLAGS=$CFLAGS
4207 CFLAGS="$pgac_save_CFLAGS -mp1"
4208 cat >conftest.$ac_ext <<_ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h. */
4223 rm -f conftest.$ac_objext
4224 if { (ac_try="$ac_compile"
4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4230 $as_echo "$ac_try_echo") >&5
4231 (eval "$ac_compile") 2>conftest.er1
4233 grep -v '^ *+' conftest.er1 >conftest.err
4235 cat conftest.err >&5
4236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } && {
4238 test -z "$ac_c_werror_flag" ||
4239 test ! -s conftest.err
4240 } && test -s conftest.$ac_objext; then
4241 { $as_echo "$as_me:$LINENO: result: yes" >&5
4242 $as_echo "yes" >&6; }
4244 $as_echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4247 CFLAGS="$pgac_save_CFLAGS"
4248 { $as_echo "$as_me:$LINENO: result: no" >&5
4249 $as_echo "no" >&6; }
4252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4254 # Make sure strict aliasing is off (though this is said to be the default)
4255 { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4256 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4257 pgac_save_CFLAGS=$CFLAGS
4258 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4259 cat >conftest.$ac_ext <<_ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h. */
4274 rm -f conftest.$ac_objext
4275 if { (ac_try="$ac_compile"
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4281 $as_echo "$ac_try_echo") >&5
4282 (eval "$ac_compile") 2>conftest.er1
4284 grep -v '^ *+' conftest.er1 >conftest.err
4286 cat conftest.err >&5
4287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } && {
4289 test -z "$ac_c_werror_flag" ||
4290 test ! -s conftest.err
4291 } && test -s conftest.$ac_objext; then
4292 { $as_echo "$as_me:$LINENO: result: yes" >&5
4293 $as_echo "yes" >&6; }
4295 $as_echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4298 CFLAGS="$pgac_save_CFLAGS"
4299 { $as_echo "$as_me:$LINENO: result: no" >&5
4300 $as_echo "no" >&6; }
4303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 elif test "$PORTNAME" = "aix"; then
4306 # AIX's xlc has to have strict aliasing turned off too
4307 { $as_echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4308 $as_echo_n "checking if $CC supports -qnoansialias... " >&6; }
4309 pgac_save_CFLAGS=$CFLAGS
4310 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4311 cat >conftest.$ac_ext <<_ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4326 rm -f conftest.$ac_objext
4327 if { (ac_try="$ac_compile"
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4333 $as_echo "$ac_try_echo") >&5
4334 (eval "$ac_compile") 2>conftest.er1
4336 grep -v '^ *+' conftest.er1 >conftest.err
4338 cat conftest.err >&5
4339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); } && {
4341 test -z "$ac_c_werror_flag" ||
4342 test ! -s conftest.err
4343 } && test -s conftest.$ac_objext; then
4344 { $as_echo "$as_me:$LINENO: result: yes" >&5
4345 $as_echo "yes" >&6; }
4347 $as_echo "$as_me: failed program was:" >&5
4348 sed 's/^/| /' conftest.$ac_ext >&5
4350 CFLAGS="$pgac_save_CFLAGS"
4351 { $as_echo "$as_me:$LINENO: result: no" >&5
4352 $as_echo "no" >&6; }
4355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4359 # supply -g if --enable-debug
4360 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4364 # enable code coverage if --enable-coverage
4365 if test "$enable_coverage" = yes; then
4366 if test "$GCC" = yes; then
4367 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4369 { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4370 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4371 { (exit 1); exit 1; }; }
4375 # enable profiling if --enable-profiling
4376 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4377 if test "$GCC" = yes; then
4379 cat >>confdefs.h <<\_ACEOF
4380 #define PROFILE_PID_DIR 1
4383 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4385 { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4386 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4387 { (exit 1); exit 1; }; }
4391 # We already have this in Makefile.win32, but configure needs it too
4392 if test "$PORTNAME" = "win32"; then
4393 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4396 # Check if the compiler still works with the template settings
4397 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4398 $as_echo_n "checking whether the C compiler still works... " >&6; }
4399 cat >conftest.$ac_ext <<_ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4414 rm -f conftest.$ac_objext conftest$ac_exeext
4415 if { (ac_try="$ac_link"
4417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418 *) ac_try_echo=$ac_try;;
4420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4421 $as_echo "$ac_try_echo") >&5
4422 (eval "$ac_link") 2>conftest.er1
4424 grep -v '^ *+' conftest.er1 >conftest.err
4426 cat conftest.err >&5
4427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } && {
4429 test -z "$ac_c_werror_flag" ||
4430 test ! -s conftest.err
4431 } && test -s conftest$ac_exeext && {
4432 test "$cross_compiling" = yes ||
4433 $as_test_x conftest$ac_exeext
4435 { $as_echo "$as_me:$LINENO: result: yes" >&5
4436 $as_echo "yes" >&6; }
4438 $as_echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4441 { $as_echo "$as_me:$LINENO: result: no" >&5
4442 $as_echo "no" >&6; }
4443 { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4444 $as_echo "$as_me: error: cannot proceed" >&2;}
4445 { (exit 1); exit 1; }; }
4448 rm -rf conftest.dSYM
4449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4450 conftest$ac_exeext conftest.$ac_ext
4452 # Defend against gcc -ffast-math
4453 if test "$GCC" = yes; then
4454 cat >conftest.$ac_ext <<_ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4464 #ifdef __FAST_MATH__
4471 rm -f conftest.$ac_objext
4472 if { (ac_try="$ac_compile"
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4478 $as_echo "$ac_try_echo") >&5
4479 (eval "$ac_compile") 2>conftest.er1
4481 grep -v '^ *+' conftest.er1 >conftest.err
4483 cat conftest.err >&5
4484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } && {
4486 test -z "$ac_c_werror_flag" ||
4487 test ! -s conftest.err
4488 } && test -s conftest.$ac_objext; then
4491 $as_echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4494 { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4495 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4496 { (exit 1); exit 1; }; }
4499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503 ac_cpp='$CPP $CPPFLAGS'
4504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4507 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4508 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4509 # On Suns, sometimes $CPP names a directory.
4510 if test -n "$CPP" && test -d "$CPP"; then
4513 if test -z "$CPP"; then
4514 if test "${ac_cv_prog_CPP+set}" = set; then
4515 $as_echo_n "(cached) " >&6
4517 # Double quotes because CPP needs to be expanded
4518 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4521 for ac_c_preproc_warn_flag in '' yes
4523 # Use a header file that comes with gcc, so configuring glibc
4524 # with a fresh cross-compiler works.
4525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4526 # <limits.h> exists even on freestanding compilers.
4527 # On the NeXT, cc -E runs the code through the compiler's parser,
4528 # not just through cpp. "Syntax error" is here to catch this case.
4529 cat >conftest.$ac_ext <<_ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4536 # include <limits.h>
4538 # include <assert.h>
4542 if { (ac_try="$ac_cpp conftest.$ac_ext"
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4548 $as_echo "$ac_try_echo") >&5
4549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4551 grep -v '^ *+' conftest.er1 >conftest.err
4553 cat conftest.err >&5
4554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } >/dev/null && {
4556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4557 test ! -s conftest.err
4561 $as_echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4564 # Broken: fails on valid input.
4568 rm -f conftest.err conftest.$ac_ext
4570 # OK, works on sane cases. Now check whether nonexistent headers
4571 # can be detected and how.
4572 cat >conftest.$ac_ext <<_ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4578 #include <ac_nonexistent.h>
4580 if { (ac_try="$ac_cpp conftest.$ac_ext"
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4586 $as_echo "$ac_try_echo") >&5
4587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4589 grep -v '^ *+' conftest.er1 >conftest.err
4591 cat conftest.err >&5
4592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } >/dev/null && {
4594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4595 test ! -s conftest.err
4597 # Broken: success on invalid input.
4600 $as_echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4603 # Passes both tests.
4608 rm -f conftest.err conftest.$ac_ext
4611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4612 rm -f conftest.err conftest.$ac_ext
4613 if $ac_preproc_ok; then
4625 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4626 $as_echo "$CPP" >&6; }
4628 for ac_c_preproc_warn_flag in '' yes
4630 # Use a header file that comes with gcc, so configuring glibc
4631 # with a fresh cross-compiler works.
4632 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4633 # <limits.h> exists even on freestanding compilers.
4634 # On the NeXT, cc -E runs the code through the compiler's parser,
4635 # not just through cpp. "Syntax error" is here to catch this case.
4636 cat >conftest.$ac_ext <<_ACEOF
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h. */
4643 # include <limits.h>
4645 # include <assert.h>
4649 if { (ac_try="$ac_cpp conftest.$ac_ext"
4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652 *) ac_try_echo=$ac_try;;
4654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4655 $as_echo "$ac_try_echo") >&5
4656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4658 grep -v '^ *+' conftest.er1 >conftest.err
4660 cat conftest.err >&5
4661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } >/dev/null && {
4663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4664 test ! -s conftest.err
4668 $as_echo "$as_me: failed program was:" >&5
4669 sed 's/^/| /' conftest.$ac_ext >&5
4671 # Broken: fails on valid input.
4675 rm -f conftest.err conftest.$ac_ext
4677 # OK, works on sane cases. Now check whether nonexistent headers
4678 # can be detected and how.
4679 cat >conftest.$ac_ext <<_ACEOF
4682 cat confdefs.h >>conftest.$ac_ext
4683 cat >>conftest.$ac_ext <<_ACEOF
4684 /* end confdefs.h. */
4685 #include <ac_nonexistent.h>
4687 if { (ac_try="$ac_cpp conftest.$ac_ext"
4689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690 *) ac_try_echo=$ac_try;;
4692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4693 $as_echo "$ac_try_echo") >&5
4694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4696 grep -v '^ *+' conftest.er1 >conftest.err
4698 cat conftest.err >&5
4699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); } >/dev/null && {
4701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4702 test ! -s conftest.err
4704 # Broken: success on invalid input.
4707 $as_echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4710 # Passes both tests.
4715 rm -f conftest.err conftest.$ac_ext
4718 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4719 rm -f conftest.err conftest.$ac_ext
4720 if $ac_preproc_ok; then
4723 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4725 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4726 See \`config.log' for more details." >&5
4727 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4728 See \`config.log' for more details." >&2;}
4729 { (exit 1); exit 1; }; }; }
4733 ac_cpp='$CPP $CPPFLAGS'
4734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4742 # Set up TAS assembly code if needed; the template file has now had its
4743 # chance to request this.
4745 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4748 if test "$need_tas" = yes ; then
4757 # Automatic dependency tracking
4761 # Check whether --enable-depend was given.
4762 if test "${enable_depend+set}" = set; then
4763 enableval=$enable_depend;
4772 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4773 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4774 { (exit 1); exit 1; }; }
4788 # Enable assert checks
4792 # Check whether --enable-cassert was given.
4793 if test "${enable_cassert+set}" = set; then
4794 enableval=$enable_cassert;
4798 cat >>confdefs.h <<\_ACEOF
4799 #define USE_ASSERT_CHECKING 1
4807 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4808 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4809 { (exit 1); exit 1; }; }
4822 # Include directories
4825 IFS="${IFS}${PATH_SEPARATOR}"
4826 # SRCH_INC comes from the template file
4827 for dir in $with_includes $SRCH_INC; do
4828 if test -d "$dir"; then
4829 INCLUDES="$INCLUDES -I$dir"
4831 { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4832 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4840 # Library directories
4843 IFS="${IFS}${PATH_SEPARATOR}"
4844 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4845 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4846 if test -d "$dir"; then
4847 LIBDIRS="$LIBDIRS -L$dir"
4849 { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4850 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4856 # Enable thread-safe client libraries
4858 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4859 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
4862 # Check whether --enable-thread-safety was given.
4863 if test "${enable_thread_safety+set}" = set; then
4864 enableval=$enable_thread_safety;
4873 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4874 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4875 { (exit 1); exit 1; }; }
4880 enable_thread_safety=yes
4885 if test "$enable_thread_safety" = yes; then
4887 cat >>confdefs.h <<\_ACEOF
4888 #define ENABLE_THREAD_SAFETY 1
4892 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4893 $as_echo "$enable_thread_safety" >&6; }
4897 # Optionally build Tcl modules (PL/Tcl)
4899 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4900 $as_echo_n "checking whether to build with Tcl... " >&6; }
4904 # Check whether --with-tcl was given.
4905 if test "${with_tcl+set}" = set; then
4915 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4916 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4917 { (exit 1); exit 1; }; }
4927 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
4928 $as_echo "$with_tcl" >&6; }
4931 # We see if the path to the Tcl/Tk configuration scripts is specified.
4932 # This will override the use of tclsh to find the paths to search.
4937 # Check whether --with-tclconfig was given.
4938 if test "${with_tclconfig+set}" = set; then
4939 withval=$with_tclconfig;
4942 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4943 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4944 { (exit 1); exit 1; }; }
4947 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4948 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4949 { (exit 1); exit 1; }; }
4961 # Optionally build Perl modules (PL/Perl)
4963 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4964 $as_echo_n "checking whether to build Perl modules... " >&6; }
4968 # Check whether --with-perl was given.
4969 if test "${with_perl+set}" = set; then
4979 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4980 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4981 { (exit 1); exit 1; }; }
4991 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
4992 $as_echo "$with_perl" >&6; }
4996 # Optionally build Python modules (PL/Python)
4998 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4999 $as_echo_n "checking whether to build Python modules... " >&6; }
5003 # Check whether --with-python was given.
5004 if test "${with_python+set}" = set; then
5005 withval=$with_python;
5014 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5015 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5016 { (exit 1); exit 1; }; }
5026 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5027 $as_echo "$with_python" >&6; }
5033 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5034 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5038 # Check whether --with-gssapi was given.
5039 if test "${with_gssapi+set}" = set; then
5040 withval=$with_gssapi;
5045 cat >>confdefs.h <<\_ACEOF
5046 #define ENABLE_GSS 1
5049 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5056 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5057 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5058 { (exit 1); exit 1; }; }
5068 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5069 $as_echo "$with_gssapi" >&6; }
5075 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5076 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5080 # Check whether --with-krb5 was given.
5081 if test "${with_krb5+set}" = set; then
5087 cat >>confdefs.h <<\_ACEOF
5091 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5098 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5099 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5100 { (exit 1); exit 1; }; }
5110 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5111 $as_echo "$with_krb5" >&6; }
5119 # Kerberos configuration parameters
5124 # Check whether --with-krb-srvnam was given.
5125 if test "${with_krb_srvnam+set}" = set; then
5126 withval=$with_krb_srvnam;
5129 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5130 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5131 { (exit 1); exit 1; }; }
5134 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5135 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5136 { (exit 1); exit 1; }; }
5144 with_krb_srvnam="postgres"
5149 cat >>confdefs.h <<_ACEOF
5150 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5158 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5159 $as_echo_n "checking whether to build with PAM support... " >&6; }
5163 # Check whether --with-pam was given.
5164 if test "${with_pam+set}" = set; then
5169 cat >>confdefs.h <<\_ACEOF
5178 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5179 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5180 { (exit 1); exit 1; }; }
5190 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5191 $as_echo "$with_pam" >&6; }
5198 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5199 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5203 # Check whether --with-ldap was given.
5204 if test "${with_ldap+set}" = set; then
5209 cat >>confdefs.h <<\_ACEOF
5218 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5219 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5220 { (exit 1); exit 1; }; }
5230 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5231 $as_echo "$with_ldap" >&6; }
5238 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5239 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5243 # Check whether --with-bonjour was given.
5244 if test "${with_bonjour+set}" = set; then
5245 withval=$with_bonjour;
5249 cat >>confdefs.h <<\_ACEOF
5250 #define USE_BONJOUR 1
5258 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5259 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5260 { (exit 1); exit 1; }; }
5270 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5271 $as_echo "$with_bonjour" >&6; }
5278 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5279 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5283 # Check whether --with-openssl was given.
5284 if test "${with_openssl+set}" = set; then
5285 withval=$with_openssl;
5289 cat >>confdefs.h <<\_ACEOF
5298 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5299 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5300 { (exit 1); exit 1; }; }
5310 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5311 $as_echo "$with_openssl" >&6; }
5321 # Check whether --with-readline was given.
5322 if test "${with_readline+set}" = set; then
5323 withval=$with_readline;
5332 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5333 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5334 { (exit 1); exit 1; }; }
5344 # readline on MinGW has problems with backslashes in psql and other bugs.
5345 # This is particularly a problem with non-US code pages.
5346 # Therefore disable its use until we understand the cause. 2004-07-20
5347 if test "$PORTNAME" = "win32"; then
5348 if test "$with_readline" = yes; then
5349 { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5350 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5362 # Check whether --with-libedit-preferred was given.
5363 if test "${with_libedit_preferred+set}" = set; then
5364 withval=$with_libedit_preferred;
5373 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5374 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5375 { (exit 1); exit 1; }; }
5380 with_libedit_preferred=no
5393 # Check whether --with-ossp-uuid was given.
5394 if test "${with_ossp_uuid+set}" = set; then
5395 withval=$with_ossp_uuid;
5404 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5405 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5406 { (exit 1); exit 1; }; }
5425 # Check whether --with-libxml was given.
5426 if test "${with_libxml+set}" = set; then
5427 withval=$with_libxml;
5431 cat >>confdefs.h <<\_ACEOF
5432 #define USE_LIBXML 1
5440 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5441 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5442 { (exit 1); exit 1; }; }
5453 if test "$with_libxml" = yes ; then
5454 for ac_prog in xml2-config
5456 # Extract the first word of "$ac_prog", so it can be a program name with args.
5457 set dummy $ac_prog; ac_word=$2
5458 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5459 $as_echo_n "checking for $ac_word... " >&6; }
5460 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5461 $as_echo_n "(cached) " >&6
5463 if test -n "$XML2_CONFIG"; then
5464 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5473 ac_cv_prog_XML2_CONFIG="$ac_prog"
5474 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5483 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5484 if test -n "$XML2_CONFIG"; then
5485 { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5486 $as_echo "$XML2_CONFIG" >&6; }
5488 { $as_echo "$as_me:$LINENO: result: no" >&5
5489 $as_echo "no" >&6; }
5493 test -n "$XML2_CONFIG" && break
5496 if test -n "$XML2_CONFIG"; then
5497 for pgac_option in `$XML2_CONFIG --cflags`; do
5498 case $pgac_option in
5499 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5502 for pgac_option in `$XML2_CONFIG --libs`; do
5503 case $pgac_option in
5504 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5518 # Check whether --with-libxslt was given.
5519 if test "${with_libxslt+set}" = set; then
5520 withval=$with_libxslt;
5524 cat >>confdefs.h <<\_ACEOF
5525 #define USE_LIBXSLT 1
5533 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5534 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5535 { (exit 1); exit 1; }; }
5555 # Check whether --with-system-tzdata was given.
5556 if test "${with_system_tzdata+set}" = set; then
5557 withval=$with_system_tzdata;
5560 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5561 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5562 { (exit 1); exit 1; }; }
5565 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5566 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5567 { (exit 1); exit 1; }; }
5585 # Check whether --with-zlib was given.
5586 if test "${with_zlib+set}" = set; then
5596 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5597 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5598 { (exit 1); exit 1; }; }
5614 # Assume system is ELF if it predefines __ELF__ as 1,
5615 # otherwise believe host_os based default.
5617 freebsd1*|freebsd2*) elf=no;;
5618 freebsd3*|freebsd4*) elf=yes;;
5622 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5623 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5624 if test "${ac_cv_path_GREP+set}" = set; then
5625 $as_echo_n "(cached) " >&6
5627 if test -z "$GREP"; then
5628 ac_path_GREP_found=false
5629 # Loop through the user's path and test for each of PROGNAME-LIST
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5634 test -z "$as_dir" && as_dir=.
5635 for ac_prog in grep ggrep; do
5636 for ac_exec_ext in '' $ac_executable_extensions; do
5637 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5638 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5639 # Check for GNU ac_path_GREP and select it if it is found.
5640 # Check for GNU $ac_path_GREP
5641 case `"$ac_path_GREP" --version 2>&1` in
5643 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5646 $as_echo_n 0123456789 >"conftest.in"
5649 cat "conftest.in" "conftest.in" >"conftest.tmp"
5650 mv "conftest.tmp" "conftest.in"
5651 cp "conftest.in" "conftest.nl"
5652 $as_echo 'GREP' >> "conftest.nl"
5653 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5654 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5655 ac_count=`expr $ac_count + 1`
5656 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5657 # Best one so far, save it but keep looking for a better one
5658 ac_cv_path_GREP="$ac_path_GREP"
5659 ac_path_GREP_max=$ac_count
5661 # 10*(2^10) chars as input seems more than enough
5662 test $ac_count -gt 10 && break
5664 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5667 $ac_path_GREP_found && break 3
5672 if test -z "$ac_cv_path_GREP"; then
5673 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5674 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5675 { (exit 1); exit 1; }; }
5678 ac_cv_path_GREP=$GREP
5682 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5683 $as_echo "$ac_cv_path_GREP" >&6; }
5684 GREP="$ac_cv_path_GREP"
5687 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5688 $as_echo_n "checking for egrep... " >&6; }
5689 if test "${ac_cv_path_EGREP+set}" = set; then
5690 $as_echo_n "(cached) " >&6
5692 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5693 then ac_cv_path_EGREP="$GREP -E"
5695 if test -z "$EGREP"; then
5696 ac_path_EGREP_found=false
5697 # Loop through the user's path and test for each of PROGNAME-LIST
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5702 test -z "$as_dir" && as_dir=.
5703 for ac_prog in egrep; do
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5706 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5707 # Check for GNU ac_path_EGREP and select it if it is found.
5708 # Check for GNU $ac_path_EGREP
5709 case `"$ac_path_EGREP" --version 2>&1` in
5711 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5714 $as_echo_n 0123456789 >"conftest.in"
5717 cat "conftest.in" "conftest.in" >"conftest.tmp"
5718 mv "conftest.tmp" "conftest.in"
5719 cp "conftest.in" "conftest.nl"
5720 $as_echo 'EGREP' >> "conftest.nl"
5721 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5722 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5723 ac_count=`expr $ac_count + 1`
5724 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5725 # Best one so far, save it but keep looking for a better one
5726 ac_cv_path_EGREP="$ac_path_EGREP"
5727 ac_path_EGREP_max=$ac_count
5729 # 10*(2^10) chars as input seems more than enough
5730 test $ac_count -gt 10 && break
5732 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5735 $ac_path_EGREP_found && break 3
5740 if test -z "$ac_cv_path_EGREP"; then
5741 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5742 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5743 { (exit 1); exit 1; }; }
5746 ac_cv_path_EGREP=$EGREP
5751 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5752 $as_echo "$ac_cv_path_EGREP" >&6; }
5753 EGREP="$ac_cv_path_EGREP"
5756 cat >conftest.$ac_ext <<_ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5768 $EGREP "yes" >/dev/null 2>&1; then
5771 if test "X$elf" = "Xyes" ; then
5785 CPPFLAGS="$CPPFLAGS $INCLUDES"
5786 LDFLAGS="$LDFLAGS $LIBDIRS"
5791 # Check whether --with-gnu-ld was given.
5792 if test "${with_gnu_ld+set}" = set; then
5793 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5799 if test "$GCC" = yes; then
5800 # Check if gcc -print-prog-name=ld gives a path.
5801 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5802 $as_echo_n "checking for ld used by GCC... " >&6; }
5805 # gcc leaves a trailing carriage return which upsets mingw
5806 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5808 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5811 # Accept absolute paths.
5812 [\\/]* | [A-Za-z]:[\\/]*)
5813 re_direlt='/[^/][^/]*/\.\./'
5814 # Canonicalize the path of ld
5815 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5816 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5817 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5819 test -z "$LD" && LD="$ac_prog"
5822 # If it fails, then pretend we aren't using GCC.
5826 # If it is relative, then search for the first ld in PATH.
5830 elif test "$with_gnu_ld" = yes; then
5831 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5832 $as_echo_n "checking for GNU ld... " >&6; }
5834 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5835 $as_echo_n "checking for non-GNU ld... " >&6; }
5837 if test "${ac_cv_path_LD+set}" = set; then
5838 $as_echo_n "(cached) " >&6
5840 if test -z "$LD"; then
5841 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5842 for ac_dir in $PATH; do
5843 test -z "$ac_dir" && ac_dir=.
5844 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5845 ac_cv_path_LD="$ac_dir/$ac_prog"
5846 # Check to see if the program is GNU ld. I'd rather use --version,
5847 # but apparently some GNU ld's only accept -v.
5848 # Break only if it was the GNU/non-GNU ld that we prefer.
5849 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5850 test "$with_gnu_ld" != no && break
5852 test "$with_gnu_ld" != yes && break
5858 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5863 if test -n "$LD"; then
5864 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5865 $as_echo "$LD" >&6; }
5867 { $as_echo "$as_me:$LINENO: result: no" >&5
5868 $as_echo "no" >&6; }
5870 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5871 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5872 { (exit 1); exit 1; }; }
5873 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5874 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5875 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5876 $as_echo_n "(cached) " >&6
5878 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5879 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5880 ac_cv_prog_gnu_ld=yes
5882 ac_cv_prog_gnu_ld=no
5885 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5886 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
5887 with_gnu_ld=$ac_cv_prog_gnu_ld
5892 case $host_os in sysv5*)
5893 { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
5894 $as_echo_n "checking whether ld -R works... " >&6; }
5895 if test "${pgac_cv_prog_ld_R+set}" = set; then
5896 $as_echo_n "(cached) " >&6
5899 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5900 cat >conftest.$ac_ext <<_ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5915 rm -f conftest.$ac_objext conftest$ac_exeext
5916 if { (ac_try="$ac_link"
5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5922 $as_echo "$ac_try_echo") >&5
5923 (eval "$ac_link") 2>conftest.er1
5925 grep -v '^ *+' conftest.er1 >conftest.err
5927 cat conftest.err >&5
5928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } && {
5930 test -z "$ac_c_werror_flag" ||
5931 test ! -s conftest.err
5932 } && test -s conftest$ac_exeext && {
5933 test "$cross_compiling" = yes ||
5934 $as_test_x conftest$ac_exeext
5936 pgac_cv_prog_ld_R=yes
5938 $as_echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5941 pgac_cv_prog_ld_R=no
5944 rm -rf conftest.dSYM
5945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5946 conftest$ac_exeext conftest.$ac_ext
5947 LDFLAGS=$pgac_save_LDFLAGS
5950 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5951 $as_echo "$pgac_cv_prog_ld_R" >&6; }
5952 ld_R_works=$pgac_cv_prog_ld_R
5955 if test -n "$ac_tool_prefix"; then
5956 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5957 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5958 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5959 $as_echo_n "checking for $ac_word... " >&6; }
5960 if test "${ac_cv_prog_RANLIB+set}" = set; then
5961 $as_echo_n "(cached) " >&6
5963 if test -n "$RANLIB"; then
5964 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 test -z "$as_dir" && as_dir=.
5971 for ac_exec_ext in '' $ac_executable_extensions; do
5972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5973 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5974 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5983 RANLIB=$ac_cv_prog_RANLIB
5984 if test -n "$RANLIB"; then
5985 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5986 $as_echo "$RANLIB" >&6; }
5988 { $as_echo "$as_me:$LINENO: result: no" >&5
5989 $as_echo "no" >&6; }
5994 if test -z "$ac_cv_prog_RANLIB"; then
5995 ac_ct_RANLIB=$RANLIB
5996 # Extract the first word of "ranlib", so it can be a program name with args.
5997 set dummy ranlib; ac_word=$2
5998 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5999 $as_echo_n "checking for $ac_word... " >&6; }
6000 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6001 $as_echo_n "(cached) " >&6
6003 if test -n "$ac_ct_RANLIB"; then
6004 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 test -z "$as_dir" && as_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6013 ac_cv_prog_ac_ct_RANLIB="ranlib"
6014 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6023 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6024 if test -n "$ac_ct_RANLIB"; then
6025 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6026 $as_echo "$ac_ct_RANLIB" >&6; }
6028 { $as_echo "$as_me:$LINENO: result: no" >&5
6029 $as_echo "no" >&6; }
6032 if test "x$ac_ct_RANLIB" = x; then
6035 case $cross_compiling:$ac_tool_warned in
6037 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6039 ac_tool_warned=yes ;;
6041 RANLIB=$ac_ct_RANLIB
6044 RANLIB="$ac_cv_prog_RANLIB"
6048 if test -n "$ac_tool_prefix"; then
6049 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6050 set dummy ${ac_tool_prefix}strip; ac_word=$2
6051 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if test "${ac_cv_prog_STRIP+set}" = set; then
6054 $as_echo_n "(cached) " >&6
6056 if test -n "$STRIP"; then
6057 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6066 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6067 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6076 STRIP=$ac_cv_prog_STRIP
6077 if test -n "$STRIP"; then
6078 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6079 $as_echo "$STRIP" >&6; }
6081 { $as_echo "$as_me:$LINENO: result: no" >&5
6082 $as_echo "no" >&6; }
6087 if test -z "$ac_cv_prog_STRIP"; then
6089 # Extract the first word of "strip", so it can be a program name with args.
6090 set dummy strip; ac_word=$2
6091 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6092 $as_echo_n "checking for $ac_word... " >&6; }
6093 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6094 $as_echo_n "(cached) " >&6
6096 if test -n "$ac_ct_STRIP"; then
6097 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6106 ac_cv_prog_ac_ct_STRIP="strip"
6107 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6117 if test -n "$ac_ct_STRIP"; then
6118 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6119 $as_echo "$ac_ct_STRIP" >&6; }
6121 { $as_echo "$as_me:$LINENO: result: no" >&5
6122 $as_echo "no" >&6; }
6125 if test "x$ac_ct_STRIP" = x; then
6128 case $cross_compiling:$ac_tool_warned in
6130 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6132 ac_tool_warned=yes ;;
6137 STRIP="$ac_cv_prog_STRIP"
6141 { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6142 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6143 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6144 STRIP_STATIC_LIB="$STRIP -x"
6145 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6146 { $as_echo "$as_me:$LINENO: result: yes" >&5
6147 $as_echo "yes" >&6; }
6151 { $as_echo "$as_me:$LINENO: result: no" >&5
6152 $as_echo "no" >&6; }
6157 if test -n "$ac_tool_prefix"; then
6158 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6159 set dummy ${ac_tool_prefix}ar; ac_word=$2
6160 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if test "${ac_cv_prog_AR+set}" = set; then
6163 $as_echo_n "(cached) " >&6
6165 if test -n "$AR"; then
6166 ac_cv_prog_AR="$AR" # Let the user override the test.
6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172 test -z "$as_dir" && as_dir=.
6173 for ac_exec_ext in '' $ac_executable_extensions; do
6174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6175 ac_cv_prog_AR="${ac_tool_prefix}ar"
6176 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6186 if test -n "$AR"; then
6187 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6188 $as_echo "$AR" >&6; }
6190 { $as_echo "$as_me:$LINENO: result: no" >&5
6191 $as_echo "no" >&6; }
6196 if test -z "$ac_cv_prog_AR"; then
6198 # Extract the first word of "ar", so it can be a program name with args.
6199 set dummy ar; 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_ac_ct_AR+set}" = set; then
6203 $as_echo_n "(cached) " >&6
6205 if test -n "$ac_ct_AR"; then
6206 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_ac_ct_AR="ar"
6216 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6226 if test -n "$ac_ct_AR"; then
6227 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6228 $as_echo "$ac_ct_AR" >&6; }
6230 { $as_echo "$as_me:$LINENO: result: no" >&5
6231 $as_echo "no" >&6; }
6234 if test "x$ac_ct_AR" = x; then
6237 case $cross_compiling:$ac_tool_warned in
6239 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6241 ac_tool_warned=yes ;;
6249 if test "$PORTNAME" = "win32"; then
6250 if test -n "$ac_tool_prefix"; then
6251 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6252 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6253 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6254 $as_echo_n "checking for $ac_word... " >&6; }
6255 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6256 $as_echo_n "(cached) " >&6
6258 if test -n "$DLLTOOL"; then
6259 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 test -z "$as_dir" && as_dir=.
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6268 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6269 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 DLLTOOL=$ac_cv_prog_DLLTOOL
6279 if test -n "$DLLTOOL"; then
6280 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6281 $as_echo "$DLLTOOL" >&6; }
6283 { $as_echo "$as_me:$LINENO: result: no" >&5
6284 $as_echo "no" >&6; }
6289 if test -z "$ac_cv_prog_DLLTOOL"; then
6290 ac_ct_DLLTOOL=$DLLTOOL
6291 # Extract the first word of "dlltool", so it can be a program name with args.
6292 set dummy dlltool; ac_word=$2
6293 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6296 $as_echo_n "(cached) " >&6
6298 if test -n "$ac_ct_DLLTOOL"; then
6299 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6308 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6309 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6319 if test -n "$ac_ct_DLLTOOL"; then
6320 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6321 $as_echo "$ac_ct_DLLTOOL" >&6; }
6323 { $as_echo "$as_me:$LINENO: result: no" >&5
6324 $as_echo "no" >&6; }
6327 if test "x$ac_ct_DLLTOOL" = x; then
6330 case $cross_compiling:$ac_tool_warned in
6332 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6334 ac_tool_warned=yes ;;
6336 DLLTOOL=$ac_ct_DLLTOOL
6339 DLLTOOL="$ac_cv_prog_DLLTOOL"
6342 if test -n "$ac_tool_prefix"; then
6343 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6344 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6346 $as_echo_n "checking for $ac_word... " >&6; }
6347 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6348 $as_echo_n "(cached) " >&6
6350 if test -n "$DLLWRAP"; then
6351 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 test -z "$as_dir" && as_dir=.
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6360 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 DLLWRAP=$ac_cv_prog_DLLWRAP
6371 if test -n "$DLLWRAP"; then
6372 { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6373 $as_echo "$DLLWRAP" >&6; }
6375 { $as_echo "$as_me:$LINENO: result: no" >&5
6376 $as_echo "no" >&6; }
6381 if test -z "$ac_cv_prog_DLLWRAP"; then
6382 ac_ct_DLLWRAP=$DLLWRAP
6383 # Extract the first word of "dllwrap", so it can be a program name with args.
6384 set dummy dllwrap; ac_word=$2
6385 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6386 $as_echo_n "checking for $ac_word... " >&6; }
6387 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6388 $as_echo_n "(cached) " >&6
6390 if test -n "$ac_ct_DLLWRAP"; then
6391 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 test -z "$as_dir" && as_dir=.
6398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6400 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6411 if test -n "$ac_ct_DLLWRAP"; then
6412 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6413 $as_echo "$ac_ct_DLLWRAP" >&6; }
6415 { $as_echo "$as_me:$LINENO: result: no" >&5
6416 $as_echo "no" >&6; }
6419 if test "x$ac_ct_DLLWRAP" = x; then
6422 case $cross_compiling:$ac_tool_warned in
6424 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6426 ac_tool_warned=yes ;;
6428 DLLWRAP=$ac_ct_DLLWRAP
6431 DLLWRAP="$ac_cv_prog_DLLWRAP"
6434 if test -n "$ac_tool_prefix"; then
6435 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6436 set dummy ${ac_tool_prefix}windres; ac_word=$2
6437 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6438 $as_echo_n "checking for $ac_word... " >&6; }
6439 if test "${ac_cv_prog_WINDRES+set}" = set; then
6440 $as_echo_n "(cached) " >&6
6442 if test -n "$WINDRES"; then
6443 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 test -z "$as_dir" && as_dir=.
6450 for ac_exec_ext in '' $ac_executable_extensions; do
6451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6452 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6453 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 WINDRES=$ac_cv_prog_WINDRES
6463 if test -n "$WINDRES"; then
6464 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6465 $as_echo "$WINDRES" >&6; }
6467 { $as_echo "$as_me:$LINENO: result: no" >&5
6468 $as_echo "no" >&6; }
6473 if test -z "$ac_cv_prog_WINDRES"; then
6474 ac_ct_WINDRES=$WINDRES
6475 # Extract the first word of "windres", so it can be a program name with args.
6476 set dummy windres; ac_word=$2
6477 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6478 $as_echo_n "checking for $ac_word... " >&6; }
6479 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6480 $as_echo_n "(cached) " >&6
6482 if test -n "$ac_ct_WINDRES"; then
6483 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6492 ac_cv_prog_ac_ct_WINDRES="windres"
6493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6503 if test -n "$ac_ct_WINDRES"; then
6504 { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6505 $as_echo "$ac_ct_WINDRES" >&6; }
6507 { $as_echo "$as_me:$LINENO: result: no" >&5
6508 $as_echo "no" >&6; }
6511 if test "x$ac_ct_WINDRES" = x; then
6514 case $cross_compiling:$ac_tool_warned in
6516 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6518 ac_tool_warned=yes ;;
6520 WINDRES=$ac_ct_WINDRES
6523 WINDRES="$ac_cv_prog_WINDRES"
6528 # Extract the first word of "tar", so it can be a program name with args.
6529 set dummy tar; ac_word=$2
6530 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6531 $as_echo_n "checking for $ac_word... " >&6; }
6532 if test "${ac_cv_path_TAR+set}" = set; then
6533 $as_echo_n "(cached) " >&6
6537 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 test -z "$as_dir" && as_dir=.
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 if test -n "$TAR"; then
6560 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6561 $as_echo "$TAR" >&6; }
6563 { $as_echo "$as_me:$LINENO: result: no" >&5
6564 $as_echo "no" >&6; }
6568 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6569 $as_echo_n "checking whether ln -s works... " >&6; }
6571 if test "$LN_S" = "ln -s"; then
6572 { $as_echo "$as_me:$LINENO: result: yes" >&5
6573 $as_echo "yes" >&6; }
6575 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6576 $as_echo "no, using $LN_S" >&6; }
6579 for ac_prog in gawk mawk nawk awk
6581 # Extract the first word of "$ac_prog", so it can be a program name with args.
6582 set dummy $ac_prog; ac_word=$2
6583 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6584 $as_echo_n "checking for $ac_word... " >&6; }
6585 if test "${ac_cv_prog_AWK+set}" = set; then
6586 $as_echo_n "(cached) " >&6
6588 if test -n "$AWK"; then
6589 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6598 ac_cv_prog_AWK="$ac_prog"
6599 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 if test -n "$AWK"; then
6610 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6611 $as_echo "$AWK" >&6; }
6613 { $as_echo "$as_me:$LINENO: result: no" >&5
6614 $as_echo "no" >&6; }
6618 test -n "$AWK" && break
6621 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6622 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6623 if test -z "$MKDIR_P"; then
6624 if test "${ac_cv_path_mkdir+set}" = set; then
6625 $as_echo_n "(cached) " >&6
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6631 test -z "$as_dir" && as_dir=.
6632 for ac_prog in mkdir gmkdir; do
6633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6635 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6636 'mkdir (GNU coreutils) '* | \
6637 'mkdir (coreutils) '* | \
6638 'mkdir (fileutils) '4.1*)
6639 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6649 if test "${ac_cv_path_mkdir+set}" = set; then
6650 MKDIR_P="$ac_cv_path_mkdir -p"
6652 # As a last resort, use the slow shell script. Don't cache a
6653 # value for MKDIR_P within a source directory, because that will
6654 # break other packages using the cache if that directory is
6655 # removed, or if the value is a relative name.
6656 test -d ./--version && rmdir ./--version
6657 MKDIR_P="$ac_install_sh -d"
6660 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
6661 $as_echo "$MKDIR_P" >&6; }
6663 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
6664 # a relative path to it in each makefile where it subsitutes it. This clashes
6665 # with our Makefile.global concept. This workaround helps.
6667 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
6670 # Let the user override the search
6671 if test -z "$BISON"; then
6672 for ac_prog in bison
6674 # Extract the first word of "$ac_prog", so it can be a program name with args.
6675 set dummy $ac_prog; ac_word=$2
6676 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6677 $as_echo_n "checking for $ac_word... " >&6; }
6678 if test "${ac_cv_path_BISON+set}" = set; then
6679 $as_echo_n "(cached) " >&6
6683 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6693 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6694 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 BISON=$ac_cv_path_BISON
6705 if test -n "$BISON"; then
6706 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6707 $as_echo "$BISON" >&6; }
6709 { $as_echo "$as_me:$LINENO: result: no" >&5
6710 $as_echo "no" >&6; }
6714 test -n "$BISON" && break
6719 if test "$BISON"; then
6720 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6721 { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6722 $as_echo "$as_me: using $pgac_bison_version" >&6;}
6723 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6725 { $as_echo "$as_me:$LINENO: WARNING:
6726 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6727 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
6728 $as_echo "$as_me: WARNING:
6729 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6730 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
6735 if test -z "$BISON"; then
6736 { $as_echo "$as_me:$LINENO: WARNING:
6737 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6738 *** change any of the parser definition files. You can obtain Bison from
6739 *** a GNU mirror site. (If you are using the official distribution of
6740 *** PostgreSQL then you do not need to worry about this, because the Bison
6741 *** output is pre-generated.)" >&5
6742 $as_echo "$as_me: WARNING:
6743 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6744 *** change any of the parser definition files. You can obtain Bison from
6745 *** a GNU mirror site. (If you are using the official distribution of
6746 *** PostgreSQL then you do not need to worry about this, because the Bison
6747 *** output is pre-generated.)" >&2;}
6749 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6752 { $as_echo "$as_me:$LINENO: checking for flex" >&5
6753 $as_echo_n "checking for flex... " >&6; }
6754 if test "${pgac_cv_path_flex+set}" = set; then
6755 $as_echo_n "(cached) " >&6
6757 # Let the user override the test
6758 if test -n "$FLEX"; then
6759 pgac_cv_path_flex=$FLEX
6763 for pgac_dir in $PATH; do
6765 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6768 for pgac_prog in flex lex; do
6769 pgac_candidate="$pgac_dir/$pgac_prog"
6770 if test -f "$pgac_candidate" \
6771 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6773 echo '%%' > conftest.l
6774 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6775 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
6776 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
6778 pgac_cv_path_flex=$pgac_candidate
6781 { $as_echo "$as_me:$LINENO: WARNING:
6782 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6783 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
6784 $as_echo "$as_me: WARNING:
6785 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6786 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
6792 rm -f conftest.l lex.yy.c
6793 : ${pgac_cv_path_flex=no}
6797 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6798 $as_echo "$pgac_cv_path_flex" >&6; }
6799 if test x"$pgac_cv_path_flex" = x"no"; then
6800 { $as_echo "$as_me:$LINENO: WARNING:
6801 *** Without Flex you will not be able to build PostgreSQL from CVS nor
6802 *** change any of the scanner definition files. You can obtain Flex from
6803 *** a GNU mirror site. (If you are using the official distribution of
6804 *** PostgreSQL then you do not need to worry about this because the Flex
6805 *** output is pre-generated.)" >&5
6806 $as_echo "$as_me: WARNING:
6807 *** Without Flex you will not be able to build PostgreSQL from CVS nor
6808 *** change any of the scanner definition files. You can obtain Flex from
6809 *** a GNU mirror site. (If you are using the official distribution of
6810 *** PostgreSQL then you do not need to worry about this because the Flex
6811 *** output is pre-generated.)" >&2;}
6815 FLEX=$pgac_cv_path_flex
6816 pgac_flex_version=`$FLEX --version 2>/dev/null`
6817 { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6818 $as_echo "$as_me: using $pgac_flex_version" >&6;}
6825 # Let the user override the search
6826 if test -z "$PERL"; then
6827 # Extract the first word of "perl", so it can be a program name with args.
6828 set dummy perl; ac_word=$2
6829 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6830 $as_echo_n "checking for $ac_word... " >&6; }
6831 if test "${ac_cv_path_PERL+set}" = set; then
6832 $as_echo_n "(cached) " >&6
6836 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 test -z "$as_dir" && as_dir=.
6844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6846 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6847 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6857 PERL=$ac_cv_path_PERL
6858 if test -n "$PERL"; then
6859 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
6860 $as_echo "$PERL" >&6; }
6862 { $as_echo "$as_me:$LINENO: result: no" >&5
6863 $as_echo "no" >&6; }
6869 if test "$PERL"; then
6870 pgac_perl_version=`$PERL -v 2>/dev/null | sed -n 's/This is perl, v[a-z ]*//p' | sed 's/ .*//'`
6871 { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
6872 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
6873 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
6874 $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
6876 { $as_echo "$as_me:$LINENO: WARNING:
6877 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
6878 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
6879 $as_echo "$as_me: WARNING:
6880 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
6881 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
6886 if test -z "$PERL"; then
6887 { $as_echo "$as_me:$LINENO: WARNING:
6888 *** Without Perl you will not be able to build PostgreSQL from CVS.
6889 *** You can obtain Perl from any CPAN mirror site.
6890 *** (If you are using the official distribution of PostgreSQL then you do not
6891 *** need to worry about this, because the Perl output is pre-generated.)" >&5
6892 $as_echo "$as_me: WARNING:
6893 *** Without Perl you will not be able to build PostgreSQL from CVS.
6894 *** You can obtain Perl from any CPAN mirror site.
6895 *** (If you are using the official distribution of PostgreSQL then you do not
6896 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
6899 if test "$with_perl" = yes; then
6900 if test -z "$PERL"; then
6901 { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
6902 $as_echo "$as_me: error: Perl not found" >&2;}
6903 { (exit 1); exit 1; }; }
6906 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6907 $as_echo_n "checking for Perl archlibexp... " >&6; }
6908 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6909 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6910 $as_echo "$perl_archlibexp" >&6; }
6911 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6912 $as_echo_n "checking for Perl privlibexp... " >&6; }
6913 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6914 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6915 $as_echo "$perl_privlibexp" >&6; }
6916 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6917 $as_echo_n "checking for Perl useshrplib... " >&6; }
6918 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6919 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6920 $as_echo "$perl_useshrplib" >&6; }
6922 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6923 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
6924 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6925 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6926 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
6927 if test -z "$perl_embed_ldflags" ; then
6928 { $as_echo "$as_me:$LINENO: result: no" >&5
6929 $as_echo "no" >&6; }
6930 { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6931 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6933 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
6934 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6936 { (exit 1); exit 1; }; }
6938 { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6939 $as_echo "$perl_embed_ldflags" >&6; }
6944 if test "$with_python" = yes; then
6945 # Extract the first word of "python", so it can be a program name with args.
6946 set dummy python; ac_word=$2
6947 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6948 $as_echo_n "checking for $ac_word... " >&6; }
6949 if test "${ac_cv_path_PYTHON+set}" = set; then
6950 $as_echo_n "(cached) " >&6
6954 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6964 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6965 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 PYTHON=$ac_cv_path_PYTHON
6976 if test -n "$PYTHON"; then
6977 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
6978 $as_echo "$PYTHON" >&6; }
6980 { $as_echo "$as_me:$LINENO: result: no" >&5
6981 $as_echo "no" >&6; }
6985 if test x"$PYTHON" = x""; then
6986 { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
6987 $as_echo "$as_me: error: Python not found" >&2;}
6988 { (exit 1); exit 1; }; }
6992 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
6993 $as_echo_n "checking for Python distutils module... " >&6; }
6994 if "${PYTHON}" -c 'import distutils' 2>&5
6996 { $as_echo "$as_me:$LINENO: result: yes" >&5
6997 $as_echo "yes" >&6; }
6999 { $as_echo "$as_me:$LINENO: result: no" >&5
7000 $as_echo "no" >&6; }
7001 { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7002 $as_echo "$as_me: error: distutils module not found" >&2;}
7003 { (exit 1); exit 1; }; }
7005 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7006 $as_echo_n "checking Python configuration directory... " >&6; }
7007 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7008 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7009 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'))"`
7010 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7012 # This should be enough of a message.
7013 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7014 $as_echo "$python_configdir" >&6; }
7017 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7018 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7020 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7021 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7022 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7023 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7025 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7027 # New way: use the official shared library
7028 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7029 python_libspec="-L${python_libdir} -l${ldlibrary}"
7031 # Old way: use libpython from python_configdir
7032 python_libdir="${python_configdir}"
7033 python_libspec="-L${python_libdir} -lpython${python_version}"
7036 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS'))))"`
7038 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7039 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7042 # threaded python is not supported on bsd's
7043 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7044 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7045 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7046 if test "$pythreads" = "1"; then
7047 { $as_echo "$as_me:$LINENO: result: yes" >&5
7048 $as_echo "yes" >&6; }
7051 { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7052 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7053 { (exit 1); exit 1; }; }
7057 { $as_echo "$as_me:$LINENO: result: no" >&5
7058 $as_echo "no" >&6; }
7064 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7065 # Extract the first word of "zic", so it can be a program name with args.
7066 set dummy zic; ac_word=$2
7067 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7068 $as_echo_n "checking for $ac_word... " >&6; }
7069 if test "${ac_cv_path_ZIC+set}" = set; then
7070 $as_echo_n "(cached) " >&6
7074 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7084 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7085 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 if test -n "$ZIC"; then
7097 { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7098 $as_echo "$ZIC" >&6; }
7100 { $as_echo "$as_me:$LINENO: result: no" >&5
7101 $as_echo "no" >&6; }
7105 if test -z "$ZIC"; then
7106 { { $as_echo "$as_me:$LINENO: error:
7107 When cross-compiling, either use the option --with-system-tzdata to use
7108 existing time-zone data, or set the environment variable ZIC to a zic
7109 program to use during the build." >&5
7110 $as_echo "$as_me: error:
7111 When cross-compiling, either use the option --with-system-tzdata to use
7112 existing time-zone data, or set the environment variable ZIC to a zic
7113 program to use during the build." >&2;}
7114 { (exit 1); exit 1; }; }
7122 ## Most libraries are included only if they demonstrably provide a function
7123 ## we need, but libm is an exception: always include it, because there are
7124 ## too many compilers that play cute optimization games that will break
7125 ## probes for standard functions such as pow().
7129 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7130 $as_echo_n "checking for main in -lm... " >&6; }
7131 if test "${ac_cv_lib_m_main+set}" = set; then
7132 $as_echo_n "(cached) " >&6
7134 ac_check_lib_save_LIBS=$LIBS
7136 cat >conftest.$ac_ext <<_ACEOF
7139 cat confdefs.h >>conftest.$ac_ext
7140 cat >>conftest.$ac_ext <<_ACEOF
7141 /* end confdefs.h. */
7152 rm -f conftest.$ac_objext conftest$ac_exeext
7153 if { (ac_try="$ac_link"
7155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7156 *) ac_try_echo=$ac_try;;
7158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7159 $as_echo "$ac_try_echo") >&5
7160 (eval "$ac_link") 2>conftest.er1
7162 grep -v '^ *+' conftest.er1 >conftest.err
7164 cat conftest.err >&5
7165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } && {
7167 test -z "$ac_c_werror_flag" ||
7168 test ! -s conftest.err
7169 } && test -s conftest$ac_exeext && {
7170 test "$cross_compiling" = yes ||
7171 $as_test_x conftest$ac_exeext
7173 ac_cv_lib_m_main=yes
7175 $as_echo "$as_me: failed program was:" >&5
7176 sed 's/^/| /' conftest.$ac_ext >&5
7181 rm -rf conftest.dSYM
7182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7183 conftest$ac_exeext conftest.$ac_ext
7184 LIBS=$ac_check_lib_save_LIBS
7186 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7187 $as_echo "$ac_cv_lib_m_main" >&6; }
7188 if test "x$ac_cv_lib_m_main" = x""yes; then
7189 cat >>confdefs.h <<_ACEOF
7197 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7198 $as_echo_n "checking for library containing setproctitle... " >&6; }
7199 if test "${ac_cv_search_setproctitle+set}" = set; then
7200 $as_echo_n "(cached) " >&6
7202 ac_func_search_save_LIBS=$LIBS
7203 cat >conftest.$ac_ext <<_ACEOF
7206 cat confdefs.h >>conftest.$ac_ext
7207 cat >>conftest.$ac_ext <<_ACEOF
7208 /* end confdefs.h. */
7210 /* Override any GCC internal prototype to avoid an error.
7211 Use char because int might match the return type of a GCC
7212 builtin and then its argument prototype would still apply. */
7216 char setproctitle ();
7220 return setproctitle ();
7225 for ac_lib in '' util; do
7226 if test -z "$ac_lib"; then
7227 ac_res="none required"
7230 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7232 rm -f conftest.$ac_objext conftest$ac_exeext
7233 if { (ac_try="$ac_link"
7235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7236 *) ac_try_echo=$ac_try;;
7238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7239 $as_echo "$ac_try_echo") >&5
7240 (eval "$ac_link") 2>conftest.er1
7242 grep -v '^ *+' conftest.er1 >conftest.err
7244 cat conftest.err >&5
7245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); } && {
7247 test -z "$ac_c_werror_flag" ||
7248 test ! -s conftest.err
7249 } && test -s conftest$ac_exeext && {
7250 test "$cross_compiling" = yes ||
7251 $as_test_x conftest$ac_exeext
7253 ac_cv_search_setproctitle=$ac_res
7255 $as_echo "$as_me: failed program was:" >&5
7256 sed 's/^/| /' conftest.$ac_ext >&5
7261 rm -rf conftest.dSYM
7262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7264 if test "${ac_cv_search_setproctitle+set}" = set; then
7268 if test "${ac_cv_search_setproctitle+set}" = set; then
7271 ac_cv_search_setproctitle=no
7274 LIBS=$ac_func_search_save_LIBS
7276 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7277 $as_echo "$ac_cv_search_setproctitle" >&6; }
7278 ac_res=$ac_cv_search_setproctitle
7279 if test "$ac_res" != no; then
7280 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7284 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7285 $as_echo_n "checking for library containing dlopen... " >&6; }
7286 if test "${ac_cv_search_dlopen+set}" = set; then
7287 $as_echo_n "(cached) " >&6
7289 ac_func_search_save_LIBS=$LIBS
7290 cat >conftest.$ac_ext <<_ACEOF
7293 cat confdefs.h >>conftest.$ac_ext
7294 cat >>conftest.$ac_ext <<_ACEOF
7295 /* end confdefs.h. */
7297 /* Override any GCC internal prototype to avoid an error.
7298 Use char because int might match the return type of a GCC
7299 builtin and then its argument prototype would still apply. */
7312 for ac_lib in '' dl; do
7313 if test -z "$ac_lib"; then
7314 ac_res="none required"
7317 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7319 rm -f conftest.$ac_objext conftest$ac_exeext
7320 if { (ac_try="$ac_link"
7322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7323 *) ac_try_echo=$ac_try;;
7325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7326 $as_echo "$ac_try_echo") >&5
7327 (eval "$ac_link") 2>conftest.er1
7329 grep -v '^ *+' conftest.er1 >conftest.err
7331 cat conftest.err >&5
7332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); } && {
7334 test -z "$ac_c_werror_flag" ||
7335 test ! -s conftest.err
7336 } && test -s conftest$ac_exeext && {
7337 test "$cross_compiling" = yes ||
7338 $as_test_x conftest$ac_exeext
7340 ac_cv_search_dlopen=$ac_res
7342 $as_echo "$as_me: failed program was:" >&5
7343 sed 's/^/| /' conftest.$ac_ext >&5
7348 rm -rf conftest.dSYM
7349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7351 if test "${ac_cv_search_dlopen+set}" = set; then
7355 if test "${ac_cv_search_dlopen+set}" = set; then
7358 ac_cv_search_dlopen=no
7361 LIBS=$ac_func_search_save_LIBS
7363 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7364 $as_echo "$ac_cv_search_dlopen" >&6; }
7365 ac_res=$ac_cv_search_dlopen
7366 if test "$ac_res" != no; then
7367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7371 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7372 $as_echo_n "checking for library containing socket... " >&6; }
7373 if test "${ac_cv_search_socket+set}" = set; then
7374 $as_echo_n "(cached) " >&6
7376 ac_func_search_save_LIBS=$LIBS
7377 cat >conftest.$ac_ext <<_ACEOF
7380 cat confdefs.h >>conftest.$ac_ext
7381 cat >>conftest.$ac_ext <<_ACEOF
7382 /* end confdefs.h. */
7384 /* Override any GCC internal prototype to avoid an error.
7385 Use char because int might match the return type of a GCC
7386 builtin and then its argument prototype would still apply. */
7399 for ac_lib in '' socket wsock32; do
7400 if test -z "$ac_lib"; then
7401 ac_res="none required"
7404 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7406 rm -f conftest.$ac_objext conftest$ac_exeext
7407 if { (ac_try="$ac_link"
7409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7410 *) ac_try_echo=$ac_try;;
7412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7413 $as_echo "$ac_try_echo") >&5
7414 (eval "$ac_link") 2>conftest.er1
7416 grep -v '^ *+' conftest.er1 >conftest.err
7418 cat conftest.err >&5
7419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); } && {
7421 test -z "$ac_c_werror_flag" ||
7422 test ! -s conftest.err
7423 } && test -s conftest$ac_exeext && {
7424 test "$cross_compiling" = yes ||
7425 $as_test_x conftest$ac_exeext
7427 ac_cv_search_socket=$ac_res
7429 $as_echo "$as_me: failed program was:" >&5
7430 sed 's/^/| /' conftest.$ac_ext >&5
7435 rm -rf conftest.dSYM
7436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7438 if test "${ac_cv_search_socket+set}" = set; then
7442 if test "${ac_cv_search_socket+set}" = set; then
7445 ac_cv_search_socket=no
7448 LIBS=$ac_func_search_save_LIBS
7450 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7451 $as_echo "$ac_cv_search_socket" >&6; }
7452 ac_res=$ac_cv_search_socket
7453 if test "$ac_res" != no; then
7454 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7458 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7459 $as_echo_n "checking for library containing shl_load... " >&6; }
7460 if test "${ac_cv_search_shl_load+set}" = set; then
7461 $as_echo_n "(cached) " >&6
7463 ac_func_search_save_LIBS=$LIBS
7464 cat >conftest.$ac_ext <<_ACEOF
7467 cat confdefs.h >>conftest.$ac_ext
7468 cat >>conftest.$ac_ext <<_ACEOF
7469 /* end confdefs.h. */
7471 /* Override any GCC internal prototype to avoid an error.
7472 Use char because int might match the return type of a GCC
7473 builtin and then its argument prototype would still apply. */
7486 for ac_lib in '' dld; do
7487 if test -z "$ac_lib"; then
7488 ac_res="none required"
7491 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7493 rm -f conftest.$ac_objext conftest$ac_exeext
7494 if { (ac_try="$ac_link"
7496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7497 *) ac_try_echo=$ac_try;;
7499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7500 $as_echo "$ac_try_echo") >&5
7501 (eval "$ac_link") 2>conftest.er1
7503 grep -v '^ *+' conftest.er1 >conftest.err
7505 cat conftest.err >&5
7506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } && {
7508 test -z "$ac_c_werror_flag" ||
7509 test ! -s conftest.err
7510 } && test -s conftest$ac_exeext && {
7511 test "$cross_compiling" = yes ||
7512 $as_test_x conftest$ac_exeext
7514 ac_cv_search_shl_load=$ac_res
7516 $as_echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.$ac_ext >&5
7522 rm -rf conftest.dSYM
7523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7525 if test "${ac_cv_search_shl_load+set}" = set; then
7529 if test "${ac_cv_search_shl_load+set}" = set; then
7532 ac_cv_search_shl_load=no
7535 LIBS=$ac_func_search_save_LIBS
7537 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7538 $as_echo "$ac_cv_search_shl_load" >&6; }
7539 ac_res=$ac_cv_search_shl_load
7540 if test "$ac_res" != no; then
7541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7545 # We only use libld in port/dynloader/aix.c
7548 { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7549 $as_echo_n "checking for library containing ldopen... " >&6; }
7550 if test "${ac_cv_search_ldopen+set}" = set; then
7551 $as_echo_n "(cached) " >&6
7553 ac_func_search_save_LIBS=$LIBS
7554 cat >conftest.$ac_ext <<_ACEOF
7557 cat confdefs.h >>conftest.$ac_ext
7558 cat >>conftest.$ac_ext <<_ACEOF
7559 /* end confdefs.h. */
7561 /* Override any GCC internal prototype to avoid an error.
7562 Use char because int might match the return type of a GCC
7563 builtin and then its argument prototype would still apply. */
7576 for ac_lib in '' ld; do
7577 if test -z "$ac_lib"; then
7578 ac_res="none required"
7581 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7583 rm -f conftest.$ac_objext conftest$ac_exeext
7584 if { (ac_try="$ac_link"
7586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7587 *) ac_try_echo=$ac_try;;
7589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7590 $as_echo "$ac_try_echo") >&5
7591 (eval "$ac_link") 2>conftest.er1
7593 grep -v '^ *+' conftest.er1 >conftest.err
7595 cat conftest.err >&5
7596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } && {
7598 test -z "$ac_c_werror_flag" ||
7599 test ! -s conftest.err
7600 } && test -s conftest$ac_exeext && {
7601 test "$cross_compiling" = yes ||
7602 $as_test_x conftest$ac_exeext
7604 ac_cv_search_ldopen=$ac_res
7606 $as_echo "$as_me: failed program was:" >&5
7607 sed 's/^/| /' conftest.$ac_ext >&5
7612 rm -rf conftest.dSYM
7613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7615 if test "${ac_cv_search_ldopen+set}" = set; then
7619 if test "${ac_cv_search_ldopen+set}" = set; then
7622 ac_cv_search_ldopen=no
7625 LIBS=$ac_func_search_save_LIBS
7627 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7628 $as_echo "$ac_cv_search_ldopen" >&6; }
7629 ac_res=$ac_cv_search_ldopen
7630 if test "$ac_res" != no; then
7631 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7637 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7638 $as_echo_n "checking for library containing getopt_long... " >&6; }
7639 if test "${ac_cv_search_getopt_long+set}" = set; then
7640 $as_echo_n "(cached) " >&6
7642 ac_func_search_save_LIBS=$LIBS
7643 cat >conftest.$ac_ext <<_ACEOF
7646 cat confdefs.h >>conftest.$ac_ext
7647 cat >>conftest.$ac_ext <<_ACEOF
7648 /* end confdefs.h. */
7650 /* Override any GCC internal prototype to avoid an error.
7651 Use char because int might match the return type of a GCC
7652 builtin and then its argument prototype would still apply. */
7656 char getopt_long ();
7660 return getopt_long ();
7665 for ac_lib in '' getopt gnugetopt; do
7666 if test -z "$ac_lib"; then
7667 ac_res="none required"
7670 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7672 rm -f conftest.$ac_objext conftest$ac_exeext
7673 if { (ac_try="$ac_link"
7675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7676 *) ac_try_echo=$ac_try;;
7678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7679 $as_echo "$ac_try_echo") >&5
7680 (eval "$ac_link") 2>conftest.er1
7682 grep -v '^ *+' conftest.er1 >conftest.err
7684 cat conftest.err >&5
7685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } && {
7687 test -z "$ac_c_werror_flag" ||
7688 test ! -s conftest.err
7689 } && test -s conftest$ac_exeext && {
7690 test "$cross_compiling" = yes ||
7691 $as_test_x conftest$ac_exeext
7693 ac_cv_search_getopt_long=$ac_res
7695 $as_echo "$as_me: failed program was:" >&5
7696 sed 's/^/| /' conftest.$ac_ext >&5
7701 rm -rf conftest.dSYM
7702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7704 if test "${ac_cv_search_getopt_long+set}" = set; then
7708 if test "${ac_cv_search_getopt_long+set}" = set; then
7711 ac_cv_search_getopt_long=no
7714 LIBS=$ac_func_search_save_LIBS
7716 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7717 $as_echo "$ac_cv_search_getopt_long" >&6; }
7718 ac_res=$ac_cv_search_getopt_long
7719 if test "$ac_res" != no; then
7720 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7724 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
7725 $as_echo_n "checking for library containing crypt... " >&6; }
7726 if test "${ac_cv_search_crypt+set}" = set; then
7727 $as_echo_n "(cached) " >&6
7729 ac_func_search_save_LIBS=$LIBS
7730 cat >conftest.$ac_ext <<_ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7737 /* Override any GCC internal prototype to avoid an error.
7738 Use char because int might match the return type of a GCC
7739 builtin and then its argument prototype would still apply. */
7752 for ac_lib in '' crypt; do
7753 if test -z "$ac_lib"; then
7754 ac_res="none required"
7757 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7759 rm -f conftest.$ac_objext conftest$ac_exeext
7760 if { (ac_try="$ac_link"
7762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7763 *) ac_try_echo=$ac_try;;
7765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7766 $as_echo "$ac_try_echo") >&5
7767 (eval "$ac_link") 2>conftest.er1
7769 grep -v '^ *+' conftest.er1 >conftest.err
7771 cat conftest.err >&5
7772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); } && {
7774 test -z "$ac_c_werror_flag" ||
7775 test ! -s conftest.err
7776 } && test -s conftest$ac_exeext && {
7777 test "$cross_compiling" = yes ||
7778 $as_test_x conftest$ac_exeext
7780 ac_cv_search_crypt=$ac_res
7782 $as_echo "$as_me: failed program was:" >&5
7783 sed 's/^/| /' conftest.$ac_ext >&5
7788 rm -rf conftest.dSYM
7789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7791 if test "${ac_cv_search_crypt+set}" = set; then
7795 if test "${ac_cv_search_crypt+set}" = set; then
7798 ac_cv_search_crypt=no
7801 LIBS=$ac_func_search_save_LIBS
7803 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7804 $as_echo "$ac_cv_search_crypt" >&6; }
7805 ac_res=$ac_cv_search_crypt
7806 if test "$ac_res" != no; then
7807 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7812 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7813 $as_echo_n "checking for library containing fdatasync... " >&6; }
7814 if test "${ac_cv_search_fdatasync+set}" = set; then
7815 $as_echo_n "(cached) " >&6
7817 ac_func_search_save_LIBS=$LIBS
7818 cat >conftest.$ac_ext <<_ACEOF
7821 cat confdefs.h >>conftest.$ac_ext
7822 cat >>conftest.$ac_ext <<_ACEOF
7823 /* end confdefs.h. */
7825 /* Override any GCC internal prototype to avoid an error.
7826 Use char because int might match the return type of a GCC
7827 builtin and then its argument prototype would still apply. */
7835 return fdatasync ();
7840 for ac_lib in '' rt posix4; do
7841 if test -z "$ac_lib"; then
7842 ac_res="none required"
7845 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7847 rm -f conftest.$ac_objext conftest$ac_exeext
7848 if { (ac_try="$ac_link"
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7854 $as_echo "$ac_try_echo") >&5
7855 (eval "$ac_link") 2>conftest.er1
7857 grep -v '^ *+' conftest.er1 >conftest.err
7859 cat conftest.err >&5
7860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } && {
7862 test -z "$ac_c_werror_flag" ||
7863 test ! -s conftest.err
7864 } && test -s conftest$ac_exeext && {
7865 test "$cross_compiling" = yes ||
7866 $as_test_x conftest$ac_exeext
7868 ac_cv_search_fdatasync=$ac_res
7870 $as_echo "$as_me: failed program was:" >&5
7871 sed 's/^/| /' conftest.$ac_ext >&5
7876 rm -rf conftest.dSYM
7877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7879 if test "${ac_cv_search_fdatasync+set}" = set; then
7883 if test "${ac_cv_search_fdatasync+set}" = set; then
7886 ac_cv_search_fdatasync=no
7889 LIBS=$ac_func_search_save_LIBS
7891 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7892 $as_echo "$ac_cv_search_fdatasync" >&6; }
7893 ac_res=$ac_cv_search_fdatasync
7894 if test "$ac_res" != no; then
7895 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7899 # Required for thread_test.c on Solaris 2.5:
7900 # Other ports use it too (HP-UX) so test unconditionally
7901 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
7902 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
7903 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7904 $as_echo_n "(cached) " >&6
7906 ac_func_search_save_LIBS=$LIBS
7907 cat >conftest.$ac_ext <<_ACEOF
7910 cat confdefs.h >>conftest.$ac_ext
7911 cat >>conftest.$ac_ext <<_ACEOF
7912 /* end confdefs.h. */
7914 /* Override any GCC internal prototype to avoid an error.
7915 Use char because int might match the return type of a GCC
7916 builtin and then its argument prototype would still apply. */
7920 char gethostbyname_r ();
7924 return gethostbyname_r ();
7929 for ac_lib in '' nsl; do
7930 if test -z "$ac_lib"; then
7931 ac_res="none required"
7934 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7936 rm -f conftest.$ac_objext conftest$ac_exeext
7937 if { (ac_try="$ac_link"
7939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940 *) ac_try_echo=$ac_try;;
7942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7943 $as_echo "$ac_try_echo") >&5
7944 (eval "$ac_link") 2>conftest.er1
7946 grep -v '^ *+' conftest.er1 >conftest.err
7948 cat conftest.err >&5
7949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); } && {
7951 test -z "$ac_c_werror_flag" ||
7952 test ! -s conftest.err
7953 } && test -s conftest$ac_exeext && {
7954 test "$cross_compiling" = yes ||
7955 $as_test_x conftest$ac_exeext
7957 ac_cv_search_gethostbyname_r=$ac_res
7959 $as_echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7965 rm -rf conftest.dSYM
7966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7968 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7972 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7975 ac_cv_search_gethostbyname_r=no
7978 LIBS=$ac_func_search_save_LIBS
7980 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
7981 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
7982 ac_res=$ac_cv_search_gethostbyname_r
7983 if test "$ac_res" != no; then
7984 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7989 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
7990 $as_echo_n "checking for library containing shmget... " >&6; }
7991 if test "${ac_cv_search_shmget+set}" = set; then
7992 $as_echo_n "(cached) " >&6
7994 ac_func_search_save_LIBS=$LIBS
7995 cat >conftest.$ac_ext <<_ACEOF
7998 cat confdefs.h >>conftest.$ac_ext
7999 cat >>conftest.$ac_ext <<_ACEOF
8000 /* end confdefs.h. */
8002 /* Override any GCC internal prototype to avoid an error.
8003 Use char because int might match the return type of a GCC
8004 builtin and then its argument prototype would still apply. */
8017 for ac_lib in '' cygipc; do
8018 if test -z "$ac_lib"; then
8019 ac_res="none required"
8022 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8024 rm -f conftest.$ac_objext conftest$ac_exeext
8025 if { (ac_try="$ac_link"
8027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028 *) ac_try_echo=$ac_try;;
8030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8031 $as_echo "$ac_try_echo") >&5
8032 (eval "$ac_link") 2>conftest.er1
8034 grep -v '^ *+' conftest.er1 >conftest.err
8036 cat conftest.err >&5
8037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); } && {
8039 test -z "$ac_c_werror_flag" ||
8040 test ! -s conftest.err
8041 } && test -s conftest$ac_exeext && {
8042 test "$cross_compiling" = yes ||
8043 $as_test_x conftest$ac_exeext
8045 ac_cv_search_shmget=$ac_res
8047 $as_echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8053 rm -rf conftest.dSYM
8054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8056 if test "${ac_cv_search_shmget+set}" = set; then
8060 if test "${ac_cv_search_shmget+set}" = set; then
8063 ac_cv_search_shmget=no
8066 LIBS=$ac_func_search_save_LIBS
8068 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8069 $as_echo "$ac_cv_search_shmget" >&6; }
8070 ac_res=$ac_cv_search_shmget
8071 if test "$ac_res" != no; then
8072 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8077 if test "$with_readline" = yes; then
8080 if test "${pgac_cv_check_readline+set}" = set; then
8081 $as_echo_n "(cached) " >&6
8083 pgac_cv_check_readline=no
8084 pgac_save_LIBS=$LIBS
8085 if test x"$with_libedit_preferred" != x"yes"
8086 then READLINE_ORDER="-lreadline -ledit"
8087 else READLINE_ORDER="-ledit -lreadline"
8089 for pgac_rllib in $READLINE_ORDER ; do
8090 { $as_echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
8091 $as_echo_n "checking for ${pgac_rllib}... " >&6; }
8092 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8093 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8094 cat >conftest.$ac_ext <<_ACEOF
8097 cat confdefs.h >>conftest.$ac_ext
8098 cat >>conftest.$ac_ext <<_ACEOF
8099 /* end confdefs.h. */
8101 /* Override any GCC internal prototype to avoid an error.
8102 Use char because int might match the return type of a GCC
8103 builtin and then its argument prototype would still apply. */
8116 rm -f conftest.$ac_objext conftest$ac_exeext
8117 if { (ac_try="$ac_link"
8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120 *) ac_try_echo=$ac_try;;
8122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8123 $as_echo "$ac_try_echo") >&5
8124 (eval "$ac_link") 2>conftest.er1
8126 grep -v '^ *+' conftest.er1 >conftest.err
8128 cat conftest.err >&5
8129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } && {
8131 test -z "$ac_c_werror_flag" ||
8132 test ! -s conftest.err
8133 } && test -s conftest$ac_exeext && {
8134 test "$cross_compiling" = yes ||
8135 $as_test_x conftest$ac_exeext
8138 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8139 # recognize dependent libraries; assume curses is needed if we didn't
8140 # find any dependency.
8142 netbsd* | openbsd* | irix*)
8143 if test x"$pgac_lib" = x"" ; then
8144 pgac_lib=" -lcurses"
8148 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8152 $as_echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8158 rm -rf conftest.dSYM
8159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8160 conftest$ac_exeext conftest.$ac_ext
8162 if test "$pgac_cv_check_readline" != no ; then
8163 { $as_echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
8164 $as_echo "yes ($pgac_cv_check_readline)" >&6; }
8167 { $as_echo "$as_me:$LINENO: result: no" >&5
8168 $as_echo "no" >&6; }
8171 LIBS=$pgac_save_LIBS
8175 if test "$pgac_cv_check_readline" != no ; then
8176 LIBS="$pgac_cv_check_readline $LIBS"
8178 cat >>confdefs.h <<\_ACEOF
8179 #define HAVE_LIBREADLINE 1
8185 if test x"$pgac_cv_check_readline" = x"no"; then
8186 { { $as_echo "$as_me:$LINENO: error: readline library not found
8187 If you have readline already installed, see config.log for details on the
8188 failure. It is possible the compiler isn't looking in the proper directory.
8189 Use --without-readline to disable readline support." >&5
8190 $as_echo "$as_me: error: readline library not found
8191 If you have readline already installed, see config.log for details on the
8192 failure. It is possible the compiler isn't looking in the proper directory.
8193 Use --without-readline to disable readline support." >&2;}
8194 { (exit 1); exit 1; }; }
8198 if test "$with_zlib" = yes; then
8200 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8201 $as_echo_n "checking for inflate in -lz... " >&6; }
8202 if test "${ac_cv_lib_z_inflate+set}" = set; then
8203 $as_echo_n "(cached) " >&6
8205 ac_check_lib_save_LIBS=$LIBS
8207 cat >conftest.$ac_ext <<_ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h. */
8214 /* Override any GCC internal prototype to avoid an error.
8215 Use char because int might match the return type of a GCC
8216 builtin and then its argument prototype would still apply. */
8229 rm -f conftest.$ac_objext conftest$ac_exeext
8230 if { (ac_try="$ac_link"
8232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8233 *) ac_try_echo=$ac_try;;
8235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8236 $as_echo "$ac_try_echo") >&5
8237 (eval "$ac_link") 2>conftest.er1
8239 grep -v '^ *+' conftest.er1 >conftest.err
8241 cat conftest.err >&5
8242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } && {
8244 test -z "$ac_c_werror_flag" ||
8245 test ! -s conftest.err
8246 } && test -s conftest$ac_exeext && {
8247 test "$cross_compiling" = yes ||
8248 $as_test_x conftest$ac_exeext
8250 ac_cv_lib_z_inflate=yes
8252 $as_echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.$ac_ext >&5
8255 ac_cv_lib_z_inflate=no
8258 rm -rf conftest.dSYM
8259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8260 conftest$ac_exeext conftest.$ac_ext
8261 LIBS=$ac_check_lib_save_LIBS
8263 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8264 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8265 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8266 cat >>confdefs.h <<_ACEOF
8273 { { $as_echo "$as_me:$LINENO: error: zlib library not found
8274 If you have zlib already installed, see config.log for details on the
8275 failure. It is possible the compiler isn't looking in the proper directory.
8276 Use --without-zlib to disable zlib support." >&5
8277 $as_echo "$as_me: error: zlib library not found
8278 If you have zlib already installed, see config.log for details on the
8279 failure. It is possible the compiler isn't looking in the proper directory.
8280 Use --without-zlib to disable zlib support." >&2;}
8281 { (exit 1); exit 1; }; }
8286 if test "$enable_spinlocks" = yes; then
8288 cat >>confdefs.h <<\_ACEOF
8289 #define HAVE_SPINLOCKS 1
8293 { $as_echo "$as_me:$LINENO: WARNING:
8294 *** Not using spinlocks will cause poor performance." >&5
8295 $as_echo "$as_me: WARNING:
8296 *** Not using spinlocks will cause poor performance." >&2;}
8299 if test "$with_gssapi" = yes ; then
8300 if test "$PORTNAME" != "win32"; then
8301 { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8302 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8303 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8304 $as_echo_n "(cached) " >&6
8306 ac_func_search_save_LIBS=$LIBS
8307 cat >conftest.$ac_ext <<_ACEOF
8310 cat confdefs.h >>conftest.$ac_ext
8311 cat >>conftest.$ac_ext <<_ACEOF
8312 /* end confdefs.h. */
8314 /* Override any GCC internal prototype to avoid an error.
8315 Use char because int might match the return type of a GCC
8316 builtin and then its argument prototype would still apply. */
8320 char gss_init_sec_context ();
8324 return gss_init_sec_context ();
8329 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8330 if test -z "$ac_lib"; then
8331 ac_res="none required"
8334 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8336 rm -f conftest.$ac_objext conftest$ac_exeext
8337 if { (ac_try="$ac_link"
8339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340 *) ac_try_echo=$ac_try;;
8342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8343 $as_echo "$ac_try_echo") >&5
8344 (eval "$ac_link") 2>conftest.er1
8346 grep -v '^ *+' conftest.er1 >conftest.err
8348 cat conftest.err >&5
8349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } && {
8351 test -z "$ac_c_werror_flag" ||
8352 test ! -s conftest.err
8353 } && test -s conftest$ac_exeext && {
8354 test "$cross_compiling" = yes ||
8355 $as_test_x conftest$ac_exeext
8357 ac_cv_search_gss_init_sec_context=$ac_res
8359 $as_echo "$as_me: failed program was:" >&5
8360 sed 's/^/| /' conftest.$ac_ext >&5
8365 rm -rf conftest.dSYM
8366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8368 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8372 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8375 ac_cv_search_gss_init_sec_context=no
8378 LIBS=$ac_func_search_save_LIBS
8380 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8381 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8382 ac_res=$ac_cv_search_gss_init_sec_context
8383 if test "$ac_res" != no; then
8384 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8387 { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8388 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8389 { (exit 1); exit 1; }; }
8393 LIBS="$LIBS -lgssapi32"
8397 if test "$with_krb5" = yes ; then
8398 if test "$PORTNAME" != "win32"; then
8399 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8400 $as_echo_n "checking for library containing com_err... " >&6; }
8401 if test "${ac_cv_search_com_err+set}" = set; then
8402 $as_echo_n "(cached) " >&6
8404 ac_func_search_save_LIBS=$LIBS
8405 cat >conftest.$ac_ext <<_ACEOF
8408 cat confdefs.h >>conftest.$ac_ext
8409 cat >>conftest.$ac_ext <<_ACEOF
8410 /* end confdefs.h. */
8412 /* Override any GCC internal prototype to avoid an error.
8413 Use char because int might match the return type of a GCC
8414 builtin and then its argument prototype would still apply. */
8427 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8428 if test -z "$ac_lib"; then
8429 ac_res="none required"
8432 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8434 rm -f conftest.$ac_objext conftest$ac_exeext
8435 if { (ac_try="$ac_link"
8437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8438 *) ac_try_echo=$ac_try;;
8440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8441 $as_echo "$ac_try_echo") >&5
8442 (eval "$ac_link") 2>conftest.er1
8444 grep -v '^ *+' conftest.er1 >conftest.err
8446 cat conftest.err >&5
8447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } && {
8449 test -z "$ac_c_werror_flag" ||
8450 test ! -s conftest.err
8451 } && test -s conftest$ac_exeext && {
8452 test "$cross_compiling" = yes ||
8453 $as_test_x conftest$ac_exeext
8455 ac_cv_search_com_err=$ac_res
8457 $as_echo "$as_me: failed program was:" >&5
8458 sed 's/^/| /' conftest.$ac_ext >&5
8463 rm -rf conftest.dSYM
8464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8466 if test "${ac_cv_search_com_err+set}" = set; then
8470 if test "${ac_cv_search_com_err+set}" = set; then
8473 ac_cv_search_com_err=no
8476 LIBS=$ac_func_search_save_LIBS
8478 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8479 $as_echo "$ac_cv_search_com_err" >&6; }
8480 ac_res=$ac_cv_search_com_err
8481 if test "$ac_res" != no; then
8482 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8485 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8486 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8487 { (exit 1); exit 1; }; }
8490 { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8491 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8492 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8493 $as_echo_n "(cached) " >&6
8495 ac_func_search_save_LIBS=$LIBS
8496 cat >conftest.$ac_ext <<_ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8503 /* Override any GCC internal prototype to avoid an error.
8504 Use char because int might match the return type of a GCC
8505 builtin and then its argument prototype would still apply. */
8509 char krb5_sendauth ();
8513 return krb5_sendauth ();
8518 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8519 if test -z "$ac_lib"; then
8520 ac_res="none required"
8523 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8525 rm -f conftest.$ac_objext conftest$ac_exeext
8526 if { (ac_try="$ac_link"
8528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8529 *) ac_try_echo=$ac_try;;
8531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8532 $as_echo "$ac_try_echo") >&5
8533 (eval "$ac_link") 2>conftest.er1
8535 grep -v '^ *+' conftest.er1 >conftest.err
8537 cat conftest.err >&5
8538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } && {
8540 test -z "$ac_c_werror_flag" ||
8541 test ! -s conftest.err
8542 } && test -s conftest$ac_exeext && {
8543 test "$cross_compiling" = yes ||
8544 $as_test_x conftest$ac_exeext
8546 ac_cv_search_krb5_sendauth=$ac_res
8548 $as_echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8554 rm -rf conftest.dSYM
8555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8557 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8561 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8564 ac_cv_search_krb5_sendauth=no
8567 LIBS=$ac_func_search_save_LIBS
8569 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8570 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8571 ac_res=$ac_cv_search_krb5_sendauth
8572 if test "$ac_res" != no; then
8573 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8576 { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8577 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8578 { (exit 1); exit 1; }; }
8582 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8583 $as_echo_n "checking for library containing com_err... " >&6; }
8584 if test "${ac_cv_search_com_err+set}" = set; then
8585 $as_echo_n "(cached) " >&6
8587 ac_func_search_save_LIBS=$LIBS
8588 cat >conftest.$ac_ext <<_ACEOF
8591 cat confdefs.h >>conftest.$ac_ext
8592 cat >>conftest.$ac_ext <<_ACEOF
8593 /* end confdefs.h. */
8595 /* Override any GCC internal prototype to avoid an error.
8596 Use char because int might match the return type of a GCC
8597 builtin and then its argument prototype would still apply. */
8610 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8611 if test -z "$ac_lib"; then
8612 ac_res="none required"
8615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8617 rm -f conftest.$ac_objext conftest$ac_exeext
8618 if { (ac_try="$ac_link"
8620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8621 *) ac_try_echo=$ac_try;;
8623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8624 $as_echo "$ac_try_echo") >&5
8625 (eval "$ac_link") 2>conftest.er1
8627 grep -v '^ *+' conftest.er1 >conftest.err
8629 cat conftest.err >&5
8630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); } && {
8632 test -z "$ac_c_werror_flag" ||
8633 test ! -s conftest.err
8634 } && test -s conftest$ac_exeext && {
8635 test "$cross_compiling" = yes ||
8636 $as_test_x conftest$ac_exeext
8638 ac_cv_search_com_err=$ac_res
8640 $as_echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8646 rm -rf conftest.dSYM
8647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8649 if test "${ac_cv_search_com_err+set}" = set; then
8653 if test "${ac_cv_search_com_err+set}" = set; then
8656 ac_cv_search_com_err=no
8659 LIBS=$ac_func_search_save_LIBS
8661 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8662 $as_echo "$ac_cv_search_com_err" >&6; }
8663 ac_res=$ac_cv_search_com_err
8664 if test "$ac_res" != no; then
8665 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8668 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8669 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8670 { (exit 1); exit 1; }; }
8676 if test "$with_openssl" = yes ; then
8677 if test "$PORTNAME" != "win32"; then
8679 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8680 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8681 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8682 $as_echo_n "(cached) " >&6
8684 ac_check_lib_save_LIBS=$LIBS
8685 LIBS="-lcrypto $LIBS"
8686 cat >conftest.$ac_ext <<_ACEOF
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h. */
8693 /* Override any GCC internal prototype to avoid an error.
8694 Use char because int might match the return type of a GCC
8695 builtin and then its argument prototype would still apply. */
8699 char CRYPTO_new_ex_data ();
8703 return CRYPTO_new_ex_data ();
8708 rm -f conftest.$ac_objext conftest$ac_exeext
8709 if { (ac_try="$ac_link"
8711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8712 *) ac_try_echo=$ac_try;;
8714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8715 $as_echo "$ac_try_echo") >&5
8716 (eval "$ac_link") 2>conftest.er1
8718 grep -v '^ *+' conftest.er1 >conftest.err
8720 cat conftest.err >&5
8721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); } && {
8723 test -z "$ac_c_werror_flag" ||
8724 test ! -s conftest.err
8725 } && test -s conftest$ac_exeext && {
8726 test "$cross_compiling" = yes ||
8727 $as_test_x conftest$ac_exeext
8729 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8731 $as_echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.$ac_ext >&5
8734 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8737 rm -rf conftest.dSYM
8738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8739 conftest$ac_exeext conftest.$ac_ext
8740 LIBS=$ac_check_lib_save_LIBS
8742 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8743 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8744 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
8745 cat >>confdefs.h <<_ACEOF
8746 #define HAVE_LIBCRYPTO 1
8749 LIBS="-lcrypto $LIBS"
8752 { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8753 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8754 { (exit 1); exit 1; }; }
8758 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8759 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8760 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8761 $as_echo_n "(cached) " >&6
8763 ac_check_lib_save_LIBS=$LIBS
8765 cat >conftest.$ac_ext <<_ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h. */
8772 /* Override any GCC internal prototype to avoid an error.
8773 Use char because int might match the return type of a GCC
8774 builtin and then its argument prototype would still apply. */
8778 char SSL_library_init ();
8782 return SSL_library_init ();
8787 rm -f conftest.$ac_objext conftest$ac_exeext
8788 if { (ac_try="$ac_link"
8790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8791 *) ac_try_echo=$ac_try;;
8793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8794 $as_echo "$ac_try_echo") >&5
8795 (eval "$ac_link") 2>conftest.er1
8797 grep -v '^ *+' conftest.er1 >conftest.err
8799 cat conftest.err >&5
8800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } && {
8802 test -z "$ac_c_werror_flag" ||
8803 test ! -s conftest.err
8804 } && test -s conftest$ac_exeext && {
8805 test "$cross_compiling" = yes ||
8806 $as_test_x conftest$ac_exeext
8808 ac_cv_lib_ssl_SSL_library_init=yes
8810 $as_echo "$as_me: failed program was:" >&5
8811 sed 's/^/| /' conftest.$ac_ext >&5
8813 ac_cv_lib_ssl_SSL_library_init=no
8816 rm -rf conftest.dSYM
8817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8818 conftest$ac_exeext conftest.$ac_ext
8819 LIBS=$ac_check_lib_save_LIBS
8821 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8822 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
8823 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
8824 cat >>confdefs.h <<_ACEOF
8825 #define HAVE_LIBSSL 1
8831 { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8832 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8833 { (exit 1); exit 1; }; }
8838 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8839 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
8840 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8841 $as_echo_n "(cached) " >&6
8843 ac_check_lib_save_LIBS=$LIBS
8844 LIBS="-leay32 $LIBS"
8845 cat >conftest.$ac_ext <<_ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8852 /* Override any GCC internal prototype to avoid an error.
8853 Use char because int might match the return type of a GCC
8854 builtin and then its argument prototype would still apply. */
8858 char CRYPTO_new_ex_data ();
8862 return CRYPTO_new_ex_data ();
8867 rm -f conftest.$ac_objext conftest$ac_exeext
8868 if { (ac_try="$ac_link"
8870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8871 *) ac_try_echo=$ac_try;;
8873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8874 $as_echo "$ac_try_echo") >&5
8875 (eval "$ac_link") 2>conftest.er1
8877 grep -v '^ *+' conftest.er1 >conftest.err
8879 cat conftest.err >&5
8880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); } && {
8882 test -z "$ac_c_werror_flag" ||
8883 test ! -s conftest.err
8884 } && test -s conftest$ac_exeext && {
8885 test "$cross_compiling" = yes ||
8886 $as_test_x conftest$ac_exeext
8888 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8890 $as_echo "$as_me: failed program was:" >&5
8891 sed 's/^/| /' conftest.$ac_ext >&5
8893 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8896 rm -rf conftest.dSYM
8897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8898 conftest$ac_exeext conftest.$ac_ext
8899 LIBS=$ac_check_lib_save_LIBS
8901 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8902 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8903 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
8904 cat >>confdefs.h <<_ACEOF
8905 #define HAVE_LIBEAY32 1
8908 LIBS="-leay32 $LIBS"
8911 { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8912 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8913 { (exit 1); exit 1; }; }
8917 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8918 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
8919 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8920 $as_echo_n "(cached) " >&6
8922 ac_check_lib_save_LIBS=$LIBS
8923 LIBS="-lssleay32 $LIBS"
8924 cat >conftest.$ac_ext <<_ACEOF
8927 cat confdefs.h >>conftest.$ac_ext
8928 cat >>conftest.$ac_ext <<_ACEOF
8929 /* end confdefs.h. */
8931 /* Override any GCC internal prototype to avoid an error.
8932 Use char because int might match the return type of a GCC
8933 builtin and then its argument prototype would still apply. */
8937 char SSL_library_init ();
8941 return SSL_library_init ();
8946 rm -f conftest.$ac_objext conftest$ac_exeext
8947 if { (ac_try="$ac_link"
8949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8950 *) ac_try_echo=$ac_try;;
8952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8953 $as_echo "$ac_try_echo") >&5
8954 (eval "$ac_link") 2>conftest.er1
8956 grep -v '^ *+' conftest.er1 >conftest.err
8958 cat conftest.err >&5
8959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); } && {
8961 test -z "$ac_c_werror_flag" ||
8962 test ! -s conftest.err
8963 } && test -s conftest$ac_exeext && {
8964 test "$cross_compiling" = yes ||
8965 $as_test_x conftest$ac_exeext
8967 ac_cv_lib_ssleay32_SSL_library_init=yes
8969 $as_echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8972 ac_cv_lib_ssleay32_SSL_library_init=no
8975 rm -rf conftest.dSYM
8976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8977 conftest$ac_exeext conftest.$ac_ext
8978 LIBS=$ac_check_lib_save_LIBS
8980 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8981 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8982 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
8983 cat >>confdefs.h <<_ACEOF
8984 #define HAVE_LIBSSLEAY32 1
8987 LIBS="-lssleay32 $LIBS"
8990 { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8991 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8992 { (exit 1); exit 1; }; }
8998 if test "$with_pam" = yes ; then
9000 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9001 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9002 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9003 $as_echo_n "(cached) " >&6
9005 ac_check_lib_save_LIBS=$LIBS
9007 cat >conftest.$ac_ext <<_ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h. */
9014 /* Override any GCC internal prototype to avoid an error.
9015 Use char because int might match the return type of a GCC
9016 builtin and then its argument prototype would still apply. */
9024 return pam_start ();
9029 rm -f conftest.$ac_objext conftest$ac_exeext
9030 if { (ac_try="$ac_link"
9032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033 *) ac_try_echo=$ac_try;;
9035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9036 $as_echo "$ac_try_echo") >&5
9037 (eval "$ac_link") 2>conftest.er1
9039 grep -v '^ *+' conftest.er1 >conftest.err
9041 cat conftest.err >&5
9042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); } && {
9044 test -z "$ac_c_werror_flag" ||
9045 test ! -s conftest.err
9046 } && test -s conftest$ac_exeext && {
9047 test "$cross_compiling" = yes ||
9048 $as_test_x conftest$ac_exeext
9050 ac_cv_lib_pam_pam_start=yes
9052 $as_echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.$ac_ext >&5
9055 ac_cv_lib_pam_pam_start=no
9058 rm -rf conftest.dSYM
9059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9060 conftest$ac_exeext conftest.$ac_ext
9061 LIBS=$ac_check_lib_save_LIBS
9063 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9064 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9065 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9066 cat >>confdefs.h <<_ACEOF
9067 #define HAVE_LIBPAM 1
9073 { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9074 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9075 { (exit 1); exit 1; }; }
9080 if test "$with_libxml" = yes ; then
9082 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9083 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9084 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9085 $as_echo_n "(cached) " >&6
9087 ac_check_lib_save_LIBS=$LIBS
9089 cat >conftest.$ac_ext <<_ACEOF
9092 cat confdefs.h >>conftest.$ac_ext
9093 cat >>conftest.$ac_ext <<_ACEOF
9094 /* end confdefs.h. */
9096 /* Override any GCC internal prototype to avoid an error.
9097 Use char because int might match the return type of a GCC
9098 builtin and then its argument prototype would still apply. */
9102 char xmlSaveToBuffer ();
9106 return xmlSaveToBuffer ();
9111 rm -f conftest.$ac_objext conftest$ac_exeext
9112 if { (ac_try="$ac_link"
9114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9115 *) ac_try_echo=$ac_try;;
9117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9118 $as_echo "$ac_try_echo") >&5
9119 (eval "$ac_link") 2>conftest.er1
9121 grep -v '^ *+' conftest.er1 >conftest.err
9123 cat conftest.err >&5
9124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); } && {
9126 test -z "$ac_c_werror_flag" ||
9127 test ! -s conftest.err
9128 } && test -s conftest$ac_exeext && {
9129 test "$cross_compiling" = yes ||
9130 $as_test_x conftest$ac_exeext
9132 ac_cv_lib_xml2_xmlSaveToBuffer=yes
9134 $as_echo "$as_me: failed program was:" >&5
9135 sed 's/^/| /' conftest.$ac_ext >&5
9137 ac_cv_lib_xml2_xmlSaveToBuffer=no
9140 rm -rf conftest.dSYM
9141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9142 conftest$ac_exeext conftest.$ac_ext
9143 LIBS=$ac_check_lib_save_LIBS
9145 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9146 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9147 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9148 cat >>confdefs.h <<_ACEOF
9149 #define HAVE_LIBXML2 1
9155 { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9156 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9157 { (exit 1); exit 1; }; }
9162 if test "$with_libxslt" = yes ; then
9164 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9165 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9166 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9167 $as_echo_n "(cached) " >&6
9169 ac_check_lib_save_LIBS=$LIBS
9171 cat >conftest.$ac_ext <<_ACEOF
9174 cat confdefs.h >>conftest.$ac_ext
9175 cat >>conftest.$ac_ext <<_ACEOF
9176 /* end confdefs.h. */
9178 /* Override any GCC internal prototype to avoid an error.
9179 Use char because int might match the return type of a GCC
9180 builtin and then its argument prototype would still apply. */
9184 char xsltCleanupGlobals ();
9188 return xsltCleanupGlobals ();
9193 rm -f conftest.$ac_objext conftest$ac_exeext
9194 if { (ac_try="$ac_link"
9196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197 *) ac_try_echo=$ac_try;;
9199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9200 $as_echo "$ac_try_echo") >&5
9201 (eval "$ac_link") 2>conftest.er1
9203 grep -v '^ *+' conftest.er1 >conftest.err
9205 cat conftest.err >&5
9206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } && {
9208 test -z "$ac_c_werror_flag" ||
9209 test ! -s conftest.err
9210 } && test -s conftest$ac_exeext && {
9211 test "$cross_compiling" = yes ||
9212 $as_test_x conftest$ac_exeext
9214 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9216 $as_echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9219 ac_cv_lib_xslt_xsltCleanupGlobals=no
9222 rm -rf conftest.dSYM
9223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9224 conftest$ac_exeext conftest.$ac_ext
9225 LIBS=$ac_check_lib_save_LIBS
9227 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9228 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9229 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9230 cat >>confdefs.h <<_ACEOF
9231 #define HAVE_LIBXSLT 1
9237 { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9238 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9239 { (exit 1); exit 1; }; }
9244 # for contrib/uuid-ossp
9245 if test "$with_ossp_uuid" = yes ; then
9246 { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9247 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9248 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9249 $as_echo_n "(cached) " >&6
9251 ac_check_lib_save_LIBS=$LIBS
9252 LIBS="-lossp-uuid $LIBS"
9253 cat >conftest.$ac_ext <<_ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h. */
9260 /* Override any GCC internal prototype to avoid an error.
9261 Use char because int might match the return type of a GCC
9262 builtin and then its argument prototype would still apply. */
9266 char uuid_export ();
9270 return uuid_export ();
9275 rm -f conftest.$ac_objext conftest$ac_exeext
9276 if { (ac_try="$ac_link"
9278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9279 *) ac_try_echo=$ac_try;;
9281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9282 $as_echo "$ac_try_echo") >&5
9283 (eval "$ac_link") 2>conftest.er1
9285 grep -v '^ *+' conftest.er1 >conftest.err
9287 cat conftest.err >&5
9288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); } && {
9290 test -z "$ac_c_werror_flag" ||
9291 test ! -s conftest.err
9292 } && test -s conftest$ac_exeext && {
9293 test "$cross_compiling" = yes ||
9294 $as_test_x conftest$ac_exeext
9296 ac_cv_lib_ossp_uuid_uuid_export=yes
9298 $as_echo "$as_me: failed program was:" >&5
9299 sed 's/^/| /' conftest.$ac_ext >&5
9301 ac_cv_lib_ossp_uuid_uuid_export=no
9304 rm -rf conftest.dSYM
9305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9306 conftest$ac_exeext conftest.$ac_ext
9307 LIBS=$ac_check_lib_save_LIBS
9309 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9310 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9311 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9312 OSSP_UUID_LIBS="-lossp-uuid"
9314 { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9315 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9316 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9317 $as_echo_n "(cached) " >&6
9319 ac_check_lib_save_LIBS=$LIBS
9321 cat >conftest.$ac_ext <<_ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h. */
9328 /* Override any GCC internal prototype to avoid an error.
9329 Use char because int might match the return type of a GCC
9330 builtin and then its argument prototype would still apply. */
9334 char uuid_export ();
9338 return uuid_export ();
9343 rm -f conftest.$ac_objext conftest$ac_exeext
9344 if { (ac_try="$ac_link"
9346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9347 *) ac_try_echo=$ac_try;;
9349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9350 $as_echo "$ac_try_echo") >&5
9351 (eval "$ac_link") 2>conftest.er1
9353 grep -v '^ *+' conftest.er1 >conftest.err
9355 cat conftest.err >&5
9356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } && {
9358 test -z "$ac_c_werror_flag" ||
9359 test ! -s conftest.err
9360 } && test -s conftest$ac_exeext && {
9361 test "$cross_compiling" = yes ||
9362 $as_test_x conftest$ac_exeext
9364 ac_cv_lib_uuid_uuid_export=yes
9366 $as_echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.$ac_ext >&5
9369 ac_cv_lib_uuid_uuid_export=no
9372 rm -rf conftest.dSYM
9373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9374 conftest$ac_exeext conftest.$ac_ext
9375 LIBS=$ac_check_lib_save_LIBS
9377 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9378 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9379 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9380 OSSP_UUID_LIBS="-luuid"
9382 { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9383 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9384 { (exit 1); exit 1; }; }
9397 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9398 $as_echo_n "checking for ANSI C header files... " >&6; }
9399 if test "${ac_cv_header_stdc+set}" = set; then
9400 $as_echo_n "(cached) " >&6
9402 cat >conftest.$ac_ext <<_ACEOF
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9421 rm -f conftest.$ac_objext
9422 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
9439 ac_cv_header_stdc=yes
9441 $as_echo "$as_me: failed program was:" >&5
9442 sed 's/^/| /' conftest.$ac_ext >&5
9444 ac_cv_header_stdc=no
9447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9449 if test $ac_cv_header_stdc = yes; then
9450 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9451 cat >conftest.$ac_ext <<_ACEOF
9454 cat confdefs.h >>conftest.$ac_ext
9455 cat >>conftest.$ac_ext <<_ACEOF
9456 /* end confdefs.h. */
9460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9461 $EGREP "memchr" >/dev/null 2>&1; then
9464 ac_cv_header_stdc=no
9470 if test $ac_cv_header_stdc = yes; then
9471 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9472 cat >conftest.$ac_ext <<_ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h. */
9481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9482 $EGREP "free" >/dev/null 2>&1; then
9485 ac_cv_header_stdc=no
9491 if test $ac_cv_header_stdc = yes; then
9492 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9493 if test "$cross_compiling" = yes; then
9496 cat >conftest.$ac_ext <<_ACEOF
9499 cat confdefs.h >>conftest.$ac_ext
9500 cat >>conftest.$ac_ext <<_ACEOF
9501 /* end confdefs.h. */
9504 #if ((' ' & 0x0FF) == 0x020)
9505 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9506 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9508 # define ISLOWER(c) \
9509 (('a' <= (c) && (c) <= 'i') \
9510 || ('j' <= (c) && (c) <= 'r') \
9511 || ('s' <= (c) && (c) <= 'z'))
9512 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9515 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9520 for (i = 0; i < 256; i++)
9521 if (XOR (islower (i), ISLOWER (i))
9522 || toupper (i) != TOUPPER (i))
9527 rm -f conftest$ac_exeext
9528 if { (ac_try="$ac_link"
9530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531 *) ac_try_echo=$ac_try;;
9533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9534 $as_echo "$ac_try_echo") >&5
9535 (eval "$ac_link") 2>&5
9537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9539 { (case "(($ac_try" in
9540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9541 *) ac_try_echo=$ac_try;;
9543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9544 $as_echo "$ac_try_echo") >&5
9545 (eval "$ac_try") 2>&5
9547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; }; then
9551 $as_echo "$as_me: program exited with status $ac_status" >&5
9552 $as_echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.$ac_ext >&5
9556 ac_cv_header_stdc=no
9558 rm -rf conftest.dSYM
9559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9565 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9566 $as_echo "$ac_cv_header_stdc" >&6; }
9567 if test $ac_cv_header_stdc = yes; then
9569 cat >>confdefs.h <<\_ACEOF
9570 #define STDC_HEADERS 1
9575 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9585 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9586 inttypes.h stdint.h unistd.h
9588 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9589 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9590 $as_echo_n "checking for $ac_header... " >&6; }
9591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9592 $as_echo_n "(cached) " >&6
9594 cat >conftest.$ac_ext <<_ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9600 $ac_includes_default
9602 #include <$ac_header>
9604 rm -f conftest.$ac_objext
9605 if { (ac_try="$ac_compile"
9607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9608 *) ac_try_echo=$ac_try;;
9610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9611 $as_echo "$ac_try_echo") >&5
9612 (eval "$ac_compile") 2>conftest.er1
9614 grep -v '^ *+' conftest.er1 >conftest.err
9616 cat conftest.err >&5
9617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); } && {
9619 test -z "$ac_c_werror_flag" ||
9620 test ! -s conftest.err
9621 } && test -s conftest.$ac_objext; then
9622 eval "$as_ac_Header=yes"
9624 $as_echo "$as_me: failed program was:" >&5
9625 sed 's/^/| /' conftest.$ac_ext >&5
9627 eval "$as_ac_Header=no"
9630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9632 ac_res=`eval 'as_val=${'$as_ac_Header'}
9633 $as_echo "$as_val"'`
9634 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9635 $as_echo "$ac_res" >&6; }
9636 as_val=`eval 'as_val=${'$as_ac_Header'}
9637 $as_echo "$as_val"'`
9638 if test "x$as_val" = x""yes; then
9639 cat >>confdefs.h <<_ACEOF
9640 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9678 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
9680 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9682 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9683 $as_echo_n "checking for $ac_header... " >&6; }
9684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9685 $as_echo_n "(cached) " >&6
9687 ac_res=`eval 'as_val=${'$as_ac_Header'}
9688 $as_echo "$as_val"'`
9689 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9690 $as_echo "$ac_res" >&6; }
9692 # Is the header compilable?
9693 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9694 $as_echo_n "checking $ac_header usability... " >&6; }
9695 cat >conftest.$ac_ext <<_ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9701 $ac_includes_default
9702 #include <$ac_header>
9704 rm -f conftest.$ac_objext
9705 if { (ac_try="$ac_compile"
9707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9708 *) ac_try_echo=$ac_try;;
9710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9711 $as_echo "$ac_try_echo") >&5
9712 (eval "$ac_compile") 2>conftest.er1
9714 grep -v '^ *+' conftest.er1 >conftest.err
9716 cat conftest.err >&5
9717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } && {
9719 test -z "$ac_c_werror_flag" ||
9720 test ! -s conftest.err
9721 } && test -s conftest.$ac_objext; then
9722 ac_header_compiler=yes
9724 $as_echo "$as_me: failed program was:" >&5
9725 sed 's/^/| /' conftest.$ac_ext >&5
9727 ac_header_compiler=no
9730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9731 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9732 $as_echo "$ac_header_compiler" >&6; }
9734 # Is the header present?
9735 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9736 $as_echo_n "checking $ac_header presence... " >&6; }
9737 cat >conftest.$ac_ext <<_ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9743 #include <$ac_header>
9745 if { (ac_try="$ac_cpp conftest.$ac_ext"
9747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9748 *) ac_try_echo=$ac_try;;
9750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9751 $as_echo "$ac_try_echo") >&5
9752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9754 grep -v '^ *+' conftest.er1 >conftest.err
9756 cat conftest.err >&5
9757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } >/dev/null && {
9759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9760 test ! -s conftest.err
9762 ac_header_preproc=yes
9764 $as_echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9767 ac_header_preproc=no
9770 rm -f conftest.err conftest.$ac_ext
9771 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9772 $as_echo "$ac_header_preproc" >&6; }
9774 # So? What about this header?
9775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9778 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9780 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9781 ac_header_preproc=yes
9784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9785 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9787 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9789 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9791 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9793 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9795 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9797 ## ---------------------------------------- ##
9798 ## Report this to pgsql-bugs@postgresql.org ##
9799 ## ---------------------------------------- ##
9801 ) | sed "s/^/$as_me: WARNING: /" >&2
9804 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9805 $as_echo_n "checking for $ac_header... " >&6; }
9806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9807 $as_echo_n "(cached) " >&6
9809 eval "$as_ac_Header=\$ac_header_preproc"
9811 ac_res=`eval 'as_val=${'$as_ac_Header'}
9812 $as_echo "$as_val"'`
9813 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9814 $as_echo "$ac_res" >&6; }
9817 as_val=`eval 'as_val=${'$as_ac_Header'}
9818 $as_echo "$as_val"'`
9819 if test "x$as_val" = x""yes; then
9820 cat >>confdefs.h <<_ACEOF
9821 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9829 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
9830 # is included first.
9832 for ac_header in net/if.h
9834 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9835 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9836 $as_echo_n "checking for $ac_header... " >&6; }
9837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9838 $as_echo_n "(cached) " >&6
9840 cat >conftest.$ac_ext <<_ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h. */
9846 $ac_includes_default
9847 #ifdef HAVE_SYS_SOCKET_H
9848 #include <sys/socket.h>
9852 #include <$ac_header>
9854 rm -f conftest.$ac_objext
9855 if { (ac_try="$ac_compile"
9857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858 *) ac_try_echo=$ac_try;;
9860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9861 $as_echo "$ac_try_echo") >&5
9862 (eval "$ac_compile") 2>conftest.er1
9864 grep -v '^ *+' conftest.er1 >conftest.err
9866 cat conftest.err >&5
9867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } && {
9869 test -z "$ac_c_werror_flag" ||
9870 test ! -s conftest.err
9871 } && test -s conftest.$ac_objext; then
9872 eval "$as_ac_Header=yes"
9874 $as_echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9877 eval "$as_ac_Header=no"
9880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9882 ac_res=`eval 'as_val=${'$as_ac_Header'}
9883 $as_echo "$as_val"'`
9884 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9885 $as_echo "$ac_res" >&6; }
9886 as_val=`eval 'as_val=${'$as_ac_Header'}
9887 $as_echo "$as_val"'`
9888 if test "x$as_val" = x""yes; then
9889 cat >>confdefs.h <<_ACEOF
9890 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9898 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9899 # netinet/in.h is included first.
9901 for ac_header in netinet/in.h
9903 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9905 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9906 $as_echo_n "checking for $ac_header... " >&6; }
9907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9908 $as_echo_n "(cached) " >&6
9910 ac_res=`eval 'as_val=${'$as_ac_Header'}
9911 $as_echo "$as_val"'`
9912 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9913 $as_echo "$ac_res" >&6; }
9915 # Is the header compilable?
9916 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9917 $as_echo_n "checking $ac_header usability... " >&6; }
9918 cat >conftest.$ac_ext <<_ACEOF
9921 cat confdefs.h >>conftest.$ac_ext
9922 cat >>conftest.$ac_ext <<_ACEOF
9923 /* end confdefs.h. */
9924 $ac_includes_default
9925 #include <$ac_header>
9927 rm -f conftest.$ac_objext
9928 if { (ac_try="$ac_compile"
9930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931 *) ac_try_echo=$ac_try;;
9933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9934 $as_echo "$ac_try_echo") >&5
9935 (eval "$ac_compile") 2>conftest.er1
9937 grep -v '^ *+' conftest.er1 >conftest.err
9939 cat conftest.err >&5
9940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } && {
9942 test -z "$ac_c_werror_flag" ||
9943 test ! -s conftest.err
9944 } && test -s conftest.$ac_objext; then
9945 ac_header_compiler=yes
9947 $as_echo "$as_me: failed program was:" >&5
9948 sed 's/^/| /' conftest.$ac_ext >&5
9950 ac_header_compiler=no
9953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9954 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9955 $as_echo "$ac_header_compiler" >&6; }
9957 # Is the header present?
9958 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9959 $as_echo_n "checking $ac_header presence... " >&6; }
9960 cat >conftest.$ac_ext <<_ACEOF
9963 cat confdefs.h >>conftest.$ac_ext
9964 cat >>conftest.$ac_ext <<_ACEOF
9965 /* end confdefs.h. */
9966 #include <$ac_header>
9968 if { (ac_try="$ac_cpp conftest.$ac_ext"
9970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971 *) ac_try_echo=$ac_try;;
9973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9974 $as_echo "$ac_try_echo") >&5
9975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9977 grep -v '^ *+' conftest.er1 >conftest.err
9979 cat conftest.err >&5
9980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); } >/dev/null && {
9982 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9983 test ! -s conftest.err
9985 ac_header_preproc=yes
9987 $as_echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9990 ac_header_preproc=no
9993 rm -f conftest.err conftest.$ac_ext
9994 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9995 $as_echo "$ac_header_preproc" >&6; }
9997 # So? What about this header?
9998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10001 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10003 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10004 ac_header_preproc=yes
10007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10008 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10010 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10012 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10014 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10016 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10018 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10020 ## ---------------------------------------- ##
10021 ## Report this to pgsql-bugs@postgresql.org ##
10022 ## ---------------------------------------- ##
10024 ) | sed "s/^/$as_me: WARNING: /" >&2
10027 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10028 $as_echo_n "checking for $ac_header... " >&6; }
10029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10030 $as_echo_n "(cached) " >&6
10032 eval "$as_ac_Header=\$ac_header_preproc"
10034 ac_res=`eval 'as_val=${'$as_ac_Header'}
10035 $as_echo "$as_val"'`
10036 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10037 $as_echo "$ac_res" >&6; }
10040 as_val=`eval 'as_val=${'$as_ac_Header'}
10041 $as_echo "$as_val"'`
10042 if test "x$as_val" = x""yes; then
10043 cat >>confdefs.h <<_ACEOF
10044 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10052 for ac_header in netinet/tcp.h
10054 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10055 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10056 $as_echo_n "checking for $ac_header... " >&6; }
10057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10058 $as_echo_n "(cached) " >&6
10060 cat >conftest.$ac_ext <<_ACEOF
10063 cat confdefs.h >>conftest.$ac_ext
10064 cat >>conftest.$ac_ext <<_ACEOF
10065 /* end confdefs.h. */
10066 $ac_includes_default
10067 #ifdef HAVE_NETINET_IN_H
10068 #include <netinet/in.h>
10072 #include <$ac_header>
10074 rm -f conftest.$ac_objext
10075 if { (ac_try="$ac_compile"
10076 case "(($ac_try" in
10077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078 *) ac_try_echo=$ac_try;;
10080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10081 $as_echo "$ac_try_echo") >&5
10082 (eval "$ac_compile") 2>conftest.er1
10084 grep -v '^ *+' conftest.er1 >conftest.err
10086 cat conftest.err >&5
10087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } && {
10089 test -z "$ac_c_werror_flag" ||
10090 test ! -s conftest.err
10091 } && test -s conftest.$ac_objext; then
10092 eval "$as_ac_Header=yes"
10094 $as_echo "$as_me: failed program was:" >&5
10095 sed 's/^/| /' conftest.$ac_ext >&5
10097 eval "$as_ac_Header=no"
10100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10102 ac_res=`eval 'as_val=${'$as_ac_Header'}
10103 $as_echo "$as_val"'`
10104 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10105 $as_echo "$ac_res" >&6; }
10106 as_val=`eval 'as_val=${'$as_ac_Header'}
10107 $as_echo "$as_val"'`
10108 if test "x$as_val" = x""yes; then
10109 cat >>confdefs.h <<_ACEOF
10110 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10118 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10120 for ac_header in readline/readline.h
10122 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10124 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10125 $as_echo_n "checking for $ac_header... " >&6; }
10126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10127 $as_echo_n "(cached) " >&6
10129 ac_res=`eval 'as_val=${'$as_ac_Header'}
10130 $as_echo "$as_val"'`
10131 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10132 $as_echo "$ac_res" >&6; }
10134 # Is the header compilable?
10135 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10136 $as_echo_n "checking $ac_header usability... " >&6; }
10137 cat >conftest.$ac_ext <<_ACEOF
10140 cat confdefs.h >>conftest.$ac_ext
10141 cat >>conftest.$ac_ext <<_ACEOF
10142 /* end confdefs.h. */
10143 $ac_includes_default
10144 #include <$ac_header>
10146 rm -f conftest.$ac_objext
10147 if { (ac_try="$ac_compile"
10148 case "(($ac_try" in
10149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150 *) ac_try_echo=$ac_try;;
10152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10153 $as_echo "$ac_try_echo") >&5
10154 (eval "$ac_compile") 2>conftest.er1
10156 grep -v '^ *+' conftest.er1 >conftest.err
10158 cat conftest.err >&5
10159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); } && {
10161 test -z "$ac_c_werror_flag" ||
10162 test ! -s conftest.err
10163 } && test -s conftest.$ac_objext; then
10164 ac_header_compiler=yes
10166 $as_echo "$as_me: failed program was:" >&5
10167 sed 's/^/| /' conftest.$ac_ext >&5
10169 ac_header_compiler=no
10172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10173 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10174 $as_echo "$ac_header_compiler" >&6; }
10176 # Is the header present?
10177 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10178 $as_echo_n "checking $ac_header presence... " >&6; }
10179 cat >conftest.$ac_ext <<_ACEOF
10182 cat confdefs.h >>conftest.$ac_ext
10183 cat >>conftest.$ac_ext <<_ACEOF
10184 /* end confdefs.h. */
10185 #include <$ac_header>
10187 if { (ac_try="$ac_cpp conftest.$ac_ext"
10188 case "(($ac_try" in
10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10193 $as_echo "$ac_try_echo") >&5
10194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10196 grep -v '^ *+' conftest.er1 >conftest.err
10198 cat conftest.err >&5
10199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } >/dev/null && {
10201 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10202 test ! -s conftest.err
10204 ac_header_preproc=yes
10206 $as_echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10209 ac_header_preproc=no
10212 rm -f conftest.err conftest.$ac_ext
10213 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10214 $as_echo "$ac_header_preproc" >&6; }
10216 # So? What about this header?
10217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10219 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10220 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10222 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10223 ac_header_preproc=yes
10226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10227 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10229 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10231 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10233 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10235 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10237 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10239 ## ---------------------------------------- ##
10240 ## Report this to pgsql-bugs@postgresql.org ##
10241 ## ---------------------------------------- ##
10243 ) | sed "s/^/$as_me: WARNING: /" >&2
10246 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10247 $as_echo_n "checking for $ac_header... " >&6; }
10248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10249 $as_echo_n "(cached) " >&6
10251 eval "$as_ac_Header=\$ac_header_preproc"
10253 ac_res=`eval 'as_val=${'$as_ac_Header'}
10254 $as_echo "$as_val"'`
10255 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10256 $as_echo "$ac_res" >&6; }
10259 as_val=`eval 'as_val=${'$as_ac_Header'}
10260 $as_echo "$as_val"'`
10261 if test "x$as_val" = x""yes; then
10262 cat >>confdefs.h <<_ACEOF
10263 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10268 for ac_header in readline.h
10270 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10272 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10273 $as_echo_n "checking for $ac_header... " >&6; }
10274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10275 $as_echo_n "(cached) " >&6
10277 ac_res=`eval 'as_val=${'$as_ac_Header'}
10278 $as_echo "$as_val"'`
10279 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10280 $as_echo "$ac_res" >&6; }
10282 # Is the header compilable?
10283 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10284 $as_echo_n "checking $ac_header usability... " >&6; }
10285 cat >conftest.$ac_ext <<_ACEOF
10288 cat confdefs.h >>conftest.$ac_ext
10289 cat >>conftest.$ac_ext <<_ACEOF
10290 /* end confdefs.h. */
10291 $ac_includes_default
10292 #include <$ac_header>
10294 rm -f conftest.$ac_objext
10295 if { (ac_try="$ac_compile"
10296 case "(($ac_try" in
10297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298 *) ac_try_echo=$ac_try;;
10300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10301 $as_echo "$ac_try_echo") >&5
10302 (eval "$ac_compile") 2>conftest.er1
10304 grep -v '^ *+' conftest.er1 >conftest.err
10306 cat conftest.err >&5
10307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } && {
10309 test -z "$ac_c_werror_flag" ||
10310 test ! -s conftest.err
10311 } && test -s conftest.$ac_objext; then
10312 ac_header_compiler=yes
10314 $as_echo "$as_me: failed program was:" >&5
10315 sed 's/^/| /' conftest.$ac_ext >&5
10317 ac_header_compiler=no
10320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10321 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10322 $as_echo "$ac_header_compiler" >&6; }
10324 # Is the header present?
10325 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10326 $as_echo_n "checking $ac_header presence... " >&6; }
10327 cat >conftest.$ac_ext <<_ACEOF
10330 cat confdefs.h >>conftest.$ac_ext
10331 cat >>conftest.$ac_ext <<_ACEOF
10332 /* end confdefs.h. */
10333 #include <$ac_header>
10335 if { (ac_try="$ac_cpp conftest.$ac_ext"
10336 case "(($ac_try" in
10337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10338 *) ac_try_echo=$ac_try;;
10340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10341 $as_echo "$ac_try_echo") >&5
10342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10344 grep -v '^ *+' conftest.er1 >conftest.err
10346 cat conftest.err >&5
10347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); } >/dev/null && {
10349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10350 test ! -s conftest.err
10352 ac_header_preproc=yes
10354 $as_echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.$ac_ext >&5
10357 ac_header_preproc=no
10360 rm -f conftest.err conftest.$ac_ext
10361 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10362 $as_echo "$ac_header_preproc" >&6; }
10364 # So? What about this header?
10365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10368 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10370 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10371 ac_header_preproc=yes
10374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10375 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10377 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10379 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10381 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10383 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10385 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10387 ## ---------------------------------------- ##
10388 ## Report this to pgsql-bugs@postgresql.org ##
10389 ## ---------------------------------------- ##
10391 ) | sed "s/^/$as_me: WARNING: /" >&2
10394 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10395 $as_echo_n "checking for $ac_header... " >&6; }
10396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10397 $as_echo_n "(cached) " >&6
10399 eval "$as_ac_Header=\$ac_header_preproc"
10401 ac_res=`eval 'as_val=${'$as_ac_Header'}
10402 $as_echo "$as_val"'`
10403 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10404 $as_echo "$ac_res" >&6; }
10407 as_val=`eval 'as_val=${'$as_ac_Header'}
10408 $as_echo "$as_val"'`
10409 if test "x$as_val" = x""yes; then
10410 cat >>confdefs.h <<_ACEOF
10411 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10415 { { $as_echo "$as_me:$LINENO: error: readline header not found
10416 If you have readline already installed, see config.log for details on the
10417 failure. It is possible the compiler isn't looking in the proper directory.
10418 Use --without-readline to disable readline support." >&5
10419 $as_echo "$as_me: error: readline header not found
10420 If you have readline already installed, see config.log for details on the
10421 failure. It is possible the compiler isn't looking in the proper directory.
10422 Use --without-readline to disable readline support." >&2;}
10423 { (exit 1); exit 1; }; }
10433 for ac_header in readline/history.h
10435 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10437 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10438 $as_echo_n "checking for $ac_header... " >&6; }
10439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10440 $as_echo_n "(cached) " >&6
10442 ac_res=`eval 'as_val=${'$as_ac_Header'}
10443 $as_echo "$as_val"'`
10444 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10445 $as_echo "$ac_res" >&6; }
10447 # Is the header compilable?
10448 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10449 $as_echo_n "checking $ac_header usability... " >&6; }
10450 cat >conftest.$ac_ext <<_ACEOF
10453 cat confdefs.h >>conftest.$ac_ext
10454 cat >>conftest.$ac_ext <<_ACEOF
10455 /* end confdefs.h. */
10456 $ac_includes_default
10457 #include <$ac_header>
10459 rm -f conftest.$ac_objext
10460 if { (ac_try="$ac_compile"
10461 case "(($ac_try" in
10462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10463 *) ac_try_echo=$ac_try;;
10465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10466 $as_echo "$ac_try_echo") >&5
10467 (eval "$ac_compile") 2>conftest.er1
10469 grep -v '^ *+' conftest.er1 >conftest.err
10471 cat conftest.err >&5
10472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } && {
10474 test -z "$ac_c_werror_flag" ||
10475 test ! -s conftest.err
10476 } && test -s conftest.$ac_objext; then
10477 ac_header_compiler=yes
10479 $as_echo "$as_me: failed program was:" >&5
10480 sed 's/^/| /' conftest.$ac_ext >&5
10482 ac_header_compiler=no
10485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10486 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10487 $as_echo "$ac_header_compiler" >&6; }
10489 # Is the header present?
10490 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10491 $as_echo_n "checking $ac_header presence... " >&6; }
10492 cat >conftest.$ac_ext <<_ACEOF
10495 cat confdefs.h >>conftest.$ac_ext
10496 cat >>conftest.$ac_ext <<_ACEOF
10497 /* end confdefs.h. */
10498 #include <$ac_header>
10500 if { (ac_try="$ac_cpp conftest.$ac_ext"
10501 case "(($ac_try" in
10502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10503 *) ac_try_echo=$ac_try;;
10505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10506 $as_echo "$ac_try_echo") >&5
10507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10509 grep -v '^ *+' conftest.er1 >conftest.err
10511 cat conftest.err >&5
10512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } >/dev/null && {
10514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10515 test ! -s conftest.err
10517 ac_header_preproc=yes
10519 $as_echo "$as_me: failed program was:" >&5
10520 sed 's/^/| /' conftest.$ac_ext >&5
10522 ac_header_preproc=no
10525 rm -f conftest.err conftest.$ac_ext
10526 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10527 $as_echo "$ac_header_preproc" >&6; }
10529 # So? What about this header?
10530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10533 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10535 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10536 ac_header_preproc=yes
10539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10540 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10542 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10544 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10545 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10546 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10548 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10550 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10552 ## ---------------------------------------- ##
10553 ## Report this to pgsql-bugs@postgresql.org ##
10554 ## ---------------------------------------- ##
10556 ) | sed "s/^/$as_me: WARNING: /" >&2
10559 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10560 $as_echo_n "checking for $ac_header... " >&6; }
10561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10562 $as_echo_n "(cached) " >&6
10564 eval "$as_ac_Header=\$ac_header_preproc"
10566 ac_res=`eval 'as_val=${'$as_ac_Header'}
10567 $as_echo "$as_val"'`
10568 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10569 $as_echo "$ac_res" >&6; }
10572 as_val=`eval 'as_val=${'$as_ac_Header'}
10573 $as_echo "$as_val"'`
10574 if test "x$as_val" = x""yes; then
10575 cat >>confdefs.h <<_ACEOF
10576 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10581 for ac_header in history.h
10583 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10585 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10586 $as_echo_n "checking for $ac_header... " >&6; }
10587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10588 $as_echo_n "(cached) " >&6
10590 ac_res=`eval 'as_val=${'$as_ac_Header'}
10591 $as_echo "$as_val"'`
10592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10593 $as_echo "$ac_res" >&6; }
10595 # Is the header compilable?
10596 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10597 $as_echo_n "checking $ac_header usability... " >&6; }
10598 cat >conftest.$ac_ext <<_ACEOF
10601 cat confdefs.h >>conftest.$ac_ext
10602 cat >>conftest.$ac_ext <<_ACEOF
10603 /* end confdefs.h. */
10604 $ac_includes_default
10605 #include <$ac_header>
10607 rm -f conftest.$ac_objext
10608 if { (ac_try="$ac_compile"
10609 case "(($ac_try" in
10610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611 *) ac_try_echo=$ac_try;;
10613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10614 $as_echo "$ac_try_echo") >&5
10615 (eval "$ac_compile") 2>conftest.er1
10617 grep -v '^ *+' conftest.er1 >conftest.err
10619 cat conftest.err >&5
10620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); } && {
10622 test -z "$ac_c_werror_flag" ||
10623 test ! -s conftest.err
10624 } && test -s conftest.$ac_objext; then
10625 ac_header_compiler=yes
10627 $as_echo "$as_me: failed program was:" >&5
10628 sed 's/^/| /' conftest.$ac_ext >&5
10630 ac_header_compiler=no
10633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10634 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10635 $as_echo "$ac_header_compiler" >&6; }
10637 # Is the header present?
10638 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10639 $as_echo_n "checking $ac_header presence... " >&6; }
10640 cat >conftest.$ac_ext <<_ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h. */
10646 #include <$ac_header>
10648 if { (ac_try="$ac_cpp conftest.$ac_ext"
10649 case "(($ac_try" in
10650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10654 $as_echo "$ac_try_echo") >&5
10655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10657 grep -v '^ *+' conftest.er1 >conftest.err
10659 cat conftest.err >&5
10660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); } >/dev/null && {
10662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10663 test ! -s conftest.err
10665 ac_header_preproc=yes
10667 $as_echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.$ac_ext >&5
10670 ac_header_preproc=no
10673 rm -f conftest.err conftest.$ac_ext
10674 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10675 $as_echo "$ac_header_preproc" >&6; }
10677 # So? What about this header?
10678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10681 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10683 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10684 ac_header_preproc=yes
10687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10688 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10690 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10692 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10694 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10696 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10698 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10700 ## ---------------------------------------- ##
10701 ## Report this to pgsql-bugs@postgresql.org ##
10702 ## ---------------------------------------- ##
10704 ) | sed "s/^/$as_me: WARNING: /" >&2
10707 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10708 $as_echo_n "checking for $ac_header... " >&6; }
10709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10710 $as_echo_n "(cached) " >&6
10712 eval "$as_ac_Header=\$ac_header_preproc"
10714 ac_res=`eval 'as_val=${'$as_ac_Header'}
10715 $as_echo "$as_val"'`
10716 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10717 $as_echo "$ac_res" >&6; }
10720 as_val=`eval 'as_val=${'$as_ac_Header'}
10721 $as_echo "$as_val"'`
10722 if test "x$as_val" = x""yes; then
10723 cat >>confdefs.h <<_ACEOF
10724 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10728 { { $as_echo "$as_me:$LINENO: error: history header not found
10729 If you have readline already installed, see config.log for details on the
10730 failure. It is possible the compiler isn't looking in the proper directory.
10731 Use --without-readline to disable readline support." >&5
10732 $as_echo "$as_me: error: history header not found
10733 If you have readline already installed, see config.log for details on the
10734 failure. It is possible the compiler isn't looking in the proper directory.
10735 Use --without-readline to disable readline support." >&2;}
10736 { (exit 1); exit 1; }; }
10747 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10748 # Some installations of libedit usurp /usr/include/readline/, which seems
10749 # bad practice, since in combined installations readline will have its headers
10750 # there. We might have to resort to AC_EGREP checks to make sure we found
10751 # the proper header...
10753 for ac_header in editline/readline.h
10755 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10757 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10758 $as_echo_n "checking for $ac_header... " >&6; }
10759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10760 $as_echo_n "(cached) " >&6
10762 ac_res=`eval 'as_val=${'$as_ac_Header'}
10763 $as_echo "$as_val"'`
10764 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10765 $as_echo "$ac_res" >&6; }
10767 # Is the header compilable?
10768 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10769 $as_echo_n "checking $ac_header usability... " >&6; }
10770 cat >conftest.$ac_ext <<_ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h. */
10776 $ac_includes_default
10777 #include <$ac_header>
10779 rm -f conftest.$ac_objext
10780 if { (ac_try="$ac_compile"
10781 case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10786 $as_echo "$ac_try_echo") >&5
10787 (eval "$ac_compile") 2>conftest.er1
10789 grep -v '^ *+' conftest.er1 >conftest.err
10791 cat conftest.err >&5
10792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); } && {
10794 test -z "$ac_c_werror_flag" ||
10795 test ! -s conftest.err
10796 } && test -s conftest.$ac_objext; then
10797 ac_header_compiler=yes
10799 $as_echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10802 ac_header_compiler=no
10805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10806 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10807 $as_echo "$ac_header_compiler" >&6; }
10809 # Is the header present?
10810 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10811 $as_echo_n "checking $ac_header presence... " >&6; }
10812 cat >conftest.$ac_ext <<_ACEOF
10815 cat confdefs.h >>conftest.$ac_ext
10816 cat >>conftest.$ac_ext <<_ACEOF
10817 /* end confdefs.h. */
10818 #include <$ac_header>
10820 if { (ac_try="$ac_cpp conftest.$ac_ext"
10821 case "(($ac_try" in
10822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10823 *) ac_try_echo=$ac_try;;
10825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10826 $as_echo "$ac_try_echo") >&5
10827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10829 grep -v '^ *+' conftest.er1 >conftest.err
10831 cat conftest.err >&5
10832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); } >/dev/null && {
10834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10835 test ! -s conftest.err
10837 ac_header_preproc=yes
10839 $as_echo "$as_me: failed program was:" >&5
10840 sed 's/^/| /' conftest.$ac_ext >&5
10842 ac_header_preproc=no
10845 rm -f conftest.err conftest.$ac_ext
10846 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10847 $as_echo "$ac_header_preproc" >&6; }
10849 # So? What about this header?
10850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10853 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10855 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10856 ac_header_preproc=yes
10859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10860 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10862 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10864 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10866 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10868 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10870 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10872 ## ---------------------------------------- ##
10873 ## Report this to pgsql-bugs@postgresql.org ##
10874 ## ---------------------------------------- ##
10876 ) | sed "s/^/$as_me: WARNING: /" >&2
10879 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10880 $as_echo_n "checking for $ac_header... " >&6; }
10881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10882 $as_echo_n "(cached) " >&6
10884 eval "$as_ac_Header=\$ac_header_preproc"
10886 ac_res=`eval 'as_val=${'$as_ac_Header'}
10887 $as_echo "$as_val"'`
10888 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10889 $as_echo "$ac_res" >&6; }
10892 as_val=`eval 'as_val=${'$as_ac_Header'}
10893 $as_echo "$as_val"'`
10894 if test "x$as_val" = x""yes; then
10895 cat >>confdefs.h <<_ACEOF
10896 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10901 for ac_header in readline.h
10903 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10905 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10906 $as_echo_n "checking for $ac_header... " >&6; }
10907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10908 $as_echo_n "(cached) " >&6
10910 ac_res=`eval 'as_val=${'$as_ac_Header'}
10911 $as_echo "$as_val"'`
10912 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10913 $as_echo "$ac_res" >&6; }
10915 # Is the header compilable?
10916 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10917 $as_echo_n "checking $ac_header usability... " >&6; }
10918 cat >conftest.$ac_ext <<_ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924 $ac_includes_default
10925 #include <$ac_header>
10927 rm -f conftest.$ac_objext
10928 if { (ac_try="$ac_compile"
10929 case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10934 $as_echo "$ac_try_echo") >&5
10935 (eval "$ac_compile") 2>conftest.er1
10937 grep -v '^ *+' conftest.er1 >conftest.err
10939 cat conftest.err >&5
10940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } && {
10942 test -z "$ac_c_werror_flag" ||
10943 test ! -s conftest.err
10944 } && test -s conftest.$ac_objext; then
10945 ac_header_compiler=yes
10947 $as_echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10950 ac_header_compiler=no
10953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10954 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10955 $as_echo "$ac_header_compiler" >&6; }
10957 # Is the header present?
10958 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10959 $as_echo_n "checking $ac_header presence... " >&6; }
10960 cat >conftest.$ac_ext <<_ACEOF
10963 cat confdefs.h >>conftest.$ac_ext
10964 cat >>conftest.$ac_ext <<_ACEOF
10965 /* end confdefs.h. */
10966 #include <$ac_header>
10968 if { (ac_try="$ac_cpp conftest.$ac_ext"
10969 case "(($ac_try" in
10970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10971 *) ac_try_echo=$ac_try;;
10973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10974 $as_echo "$ac_try_echo") >&5
10975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10977 grep -v '^ *+' conftest.er1 >conftest.err
10979 cat conftest.err >&5
10980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); } >/dev/null && {
10982 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10983 test ! -s conftest.err
10985 ac_header_preproc=yes
10987 $as_echo "$as_me: failed program was:" >&5
10988 sed 's/^/| /' conftest.$ac_ext >&5
10990 ac_header_preproc=no
10993 rm -f conftest.err conftest.$ac_ext
10994 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10995 $as_echo "$ac_header_preproc" >&6; }
10997 # So? What about this header?
10998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11001 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11003 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11004 ac_header_preproc=yes
11007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11008 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11010 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11012 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11014 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11016 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11018 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11020 ## ---------------------------------------- ##
11021 ## Report this to pgsql-bugs@postgresql.org ##
11022 ## ---------------------------------------- ##
11024 ) | sed "s/^/$as_me: WARNING: /" >&2
11027 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11028 $as_echo_n "checking for $ac_header... " >&6; }
11029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11030 $as_echo_n "(cached) " >&6
11032 eval "$as_ac_Header=\$ac_header_preproc"
11034 ac_res=`eval 'as_val=${'$as_ac_Header'}
11035 $as_echo "$as_val"'`
11036 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11037 $as_echo "$ac_res" >&6; }
11040 as_val=`eval 'as_val=${'$as_ac_Header'}
11041 $as_echo "$as_val"'`
11042 if test "x$as_val" = x""yes; then
11043 cat >>confdefs.h <<_ACEOF
11044 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11049 for ac_header in readline/readline.h
11051 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11053 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11054 $as_echo_n "checking for $ac_header... " >&6; }
11055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11056 $as_echo_n "(cached) " >&6
11058 ac_res=`eval 'as_val=${'$as_ac_Header'}
11059 $as_echo "$as_val"'`
11060 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11061 $as_echo "$ac_res" >&6; }
11063 # Is the header compilable?
11064 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11065 $as_echo_n "checking $ac_header usability... " >&6; }
11066 cat >conftest.$ac_ext <<_ACEOF
11069 cat confdefs.h >>conftest.$ac_ext
11070 cat >>conftest.$ac_ext <<_ACEOF
11071 /* end confdefs.h. */
11072 $ac_includes_default
11073 #include <$ac_header>
11075 rm -f conftest.$ac_objext
11076 if { (ac_try="$ac_compile"
11077 case "(($ac_try" in
11078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11079 *) ac_try_echo=$ac_try;;
11081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11082 $as_echo "$ac_try_echo") >&5
11083 (eval "$ac_compile") 2>conftest.er1
11085 grep -v '^ *+' conftest.er1 >conftest.err
11087 cat conftest.err >&5
11088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); } && {
11090 test -z "$ac_c_werror_flag" ||
11091 test ! -s conftest.err
11092 } && test -s conftest.$ac_objext; then
11093 ac_header_compiler=yes
11095 $as_echo "$as_me: failed program was:" >&5
11096 sed 's/^/| /' conftest.$ac_ext >&5
11098 ac_header_compiler=no
11101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11102 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11103 $as_echo "$ac_header_compiler" >&6; }
11105 # Is the header present?
11106 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11107 $as_echo_n "checking $ac_header presence... " >&6; }
11108 cat >conftest.$ac_ext <<_ACEOF
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h. */
11114 #include <$ac_header>
11116 if { (ac_try="$ac_cpp conftest.$ac_ext"
11117 case "(($ac_try" in
11118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11119 *) ac_try_echo=$ac_try;;
11121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11122 $as_echo "$ac_try_echo") >&5
11123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11125 grep -v '^ *+' conftest.er1 >conftest.err
11127 cat conftest.err >&5
11128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } >/dev/null && {
11130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11131 test ! -s conftest.err
11133 ac_header_preproc=yes
11135 $as_echo "$as_me: failed program was:" >&5
11136 sed 's/^/| /' conftest.$ac_ext >&5
11138 ac_header_preproc=no
11141 rm -f conftest.err conftest.$ac_ext
11142 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11143 $as_echo "$ac_header_preproc" >&6; }
11145 # So? What about this header?
11146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11149 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11151 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11152 ac_header_preproc=yes
11155 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11156 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11158 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11160 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11162 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11164 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11166 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11168 ## ---------------------------------------- ##
11169 ## Report this to pgsql-bugs@postgresql.org ##
11170 ## ---------------------------------------- ##
11172 ) | sed "s/^/$as_me: WARNING: /" >&2
11175 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11176 $as_echo_n "checking for $ac_header... " >&6; }
11177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11178 $as_echo_n "(cached) " >&6
11180 eval "$as_ac_Header=\$ac_header_preproc"
11182 ac_res=`eval 'as_val=${'$as_ac_Header'}
11183 $as_echo "$as_val"'`
11184 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11185 $as_echo "$ac_res" >&6; }
11188 as_val=`eval 'as_val=${'$as_ac_Header'}
11189 $as_echo "$as_val"'`
11190 if test "x$as_val" = x""yes; then
11191 cat >>confdefs.h <<_ACEOF
11192 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11196 { { $as_echo "$as_me:$LINENO: error: readline header not found
11197 If you have libedit already installed, see config.log for details on the
11198 failure. It is possible the compiler isn't looking in the proper directory.
11199 Use --without-readline to disable libedit support." >&5
11200 $as_echo "$as_me: error: readline header not found
11201 If you have libedit already installed, see config.log for details on the
11202 failure. It is possible the compiler isn't looking in the proper directory.
11203 Use --without-readline to disable libedit support." >&2;}
11204 { (exit 1); exit 1; }; }
11217 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11218 # not be there at all. Hence, don't complain if not found. We must check
11219 # though, since in yet other versions it is an independent header.
11221 for ac_header in editline/history.h
11223 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11225 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11226 $as_echo_n "checking for $ac_header... " >&6; }
11227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11228 $as_echo_n "(cached) " >&6
11230 ac_res=`eval 'as_val=${'$as_ac_Header'}
11231 $as_echo "$as_val"'`
11232 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11233 $as_echo "$ac_res" >&6; }
11235 # Is the header compilable?
11236 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11237 $as_echo_n "checking $ac_header usability... " >&6; }
11238 cat >conftest.$ac_ext <<_ACEOF
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h. */
11244 $ac_includes_default
11245 #include <$ac_header>
11247 rm -f conftest.$ac_objext
11248 if { (ac_try="$ac_compile"
11249 case "(($ac_try" in
11250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11251 *) ac_try_echo=$ac_try;;
11253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11254 $as_echo "$ac_try_echo") >&5
11255 (eval "$ac_compile") 2>conftest.er1
11257 grep -v '^ *+' conftest.er1 >conftest.err
11259 cat conftest.err >&5
11260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); } && {
11262 test -z "$ac_c_werror_flag" ||
11263 test ! -s conftest.err
11264 } && test -s conftest.$ac_objext; then
11265 ac_header_compiler=yes
11267 $as_echo "$as_me: failed program was:" >&5
11268 sed 's/^/| /' conftest.$ac_ext >&5
11270 ac_header_compiler=no
11273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11274 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11275 $as_echo "$ac_header_compiler" >&6; }
11277 # Is the header present?
11278 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11279 $as_echo_n "checking $ac_header presence... " >&6; }
11280 cat >conftest.$ac_ext <<_ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h. */
11286 #include <$ac_header>
11288 if { (ac_try="$ac_cpp conftest.$ac_ext"
11289 case "(($ac_try" in
11290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11291 *) ac_try_echo=$ac_try;;
11293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11294 $as_echo "$ac_try_echo") >&5
11295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11297 grep -v '^ *+' conftest.er1 >conftest.err
11299 cat conftest.err >&5
11300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); } >/dev/null && {
11302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11303 test ! -s conftest.err
11305 ac_header_preproc=yes
11307 $as_echo "$as_me: failed program was:" >&5
11308 sed 's/^/| /' conftest.$ac_ext >&5
11310 ac_header_preproc=no
11313 rm -f conftest.err conftest.$ac_ext
11314 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11315 $as_echo "$ac_header_preproc" >&6; }
11317 # So? What about this header?
11318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11321 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11323 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11324 ac_header_preproc=yes
11327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11328 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11330 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11332 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11334 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11336 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11338 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11340 ## ---------------------------------------- ##
11341 ## Report this to pgsql-bugs@postgresql.org ##
11342 ## ---------------------------------------- ##
11344 ) | sed "s/^/$as_me: WARNING: /" >&2
11347 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11348 $as_echo_n "checking for $ac_header... " >&6; }
11349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11350 $as_echo_n "(cached) " >&6
11352 eval "$as_ac_Header=\$ac_header_preproc"
11354 ac_res=`eval 'as_val=${'$as_ac_Header'}
11355 $as_echo "$as_val"'`
11356 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11357 $as_echo "$ac_res" >&6; }
11360 as_val=`eval 'as_val=${'$as_ac_Header'}
11361 $as_echo "$as_val"'`
11362 if test "x$as_val" = x""yes; then
11363 cat >>confdefs.h <<_ACEOF
11364 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11369 for ac_header in history.h
11371 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11373 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11374 $as_echo_n "checking for $ac_header... " >&6; }
11375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11376 $as_echo_n "(cached) " >&6
11378 ac_res=`eval 'as_val=${'$as_ac_Header'}
11379 $as_echo "$as_val"'`
11380 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11381 $as_echo "$ac_res" >&6; }
11383 # Is the header compilable?
11384 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11385 $as_echo_n "checking $ac_header usability... " >&6; }
11386 cat >conftest.$ac_ext <<_ACEOF
11389 cat confdefs.h >>conftest.$ac_ext
11390 cat >>conftest.$ac_ext <<_ACEOF
11391 /* end confdefs.h. */
11392 $ac_includes_default
11393 #include <$ac_header>
11395 rm -f conftest.$ac_objext
11396 if { (ac_try="$ac_compile"
11397 case "(($ac_try" in
11398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11399 *) ac_try_echo=$ac_try;;
11401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11402 $as_echo "$ac_try_echo") >&5
11403 (eval "$ac_compile") 2>conftest.er1
11405 grep -v '^ *+' conftest.er1 >conftest.err
11407 cat conftest.err >&5
11408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } && {
11410 test -z "$ac_c_werror_flag" ||
11411 test ! -s conftest.err
11412 } && test -s conftest.$ac_objext; then
11413 ac_header_compiler=yes
11415 $as_echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.$ac_ext >&5
11418 ac_header_compiler=no
11421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11422 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11423 $as_echo "$ac_header_compiler" >&6; }
11425 # Is the header present?
11426 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11427 $as_echo_n "checking $ac_header presence... " >&6; }
11428 cat >conftest.$ac_ext <<_ACEOF
11431 cat confdefs.h >>conftest.$ac_ext
11432 cat >>conftest.$ac_ext <<_ACEOF
11433 /* end confdefs.h. */
11434 #include <$ac_header>
11436 if { (ac_try="$ac_cpp conftest.$ac_ext"
11437 case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11442 $as_echo "$ac_try_echo") >&5
11443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11445 grep -v '^ *+' conftest.er1 >conftest.err
11447 cat conftest.err >&5
11448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); } >/dev/null && {
11450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11451 test ! -s conftest.err
11453 ac_header_preproc=yes
11455 $as_echo "$as_me: failed program was:" >&5
11456 sed 's/^/| /' conftest.$ac_ext >&5
11458 ac_header_preproc=no
11461 rm -f conftest.err conftest.$ac_ext
11462 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11463 $as_echo "$ac_header_preproc" >&6; }
11465 # So? What about this header?
11466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11469 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11471 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11472 ac_header_preproc=yes
11475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11476 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11477 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11478 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11480 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11482 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11484 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11486 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11488 ## ---------------------------------------- ##
11489 ## Report this to pgsql-bugs@postgresql.org ##
11490 ## ---------------------------------------- ##
11492 ) | sed "s/^/$as_me: WARNING: /" >&2
11495 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11496 $as_echo_n "checking for $ac_header... " >&6; }
11497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11498 $as_echo_n "(cached) " >&6
11500 eval "$as_ac_Header=\$ac_header_preproc"
11502 ac_res=`eval 'as_val=${'$as_ac_Header'}
11503 $as_echo "$as_val"'`
11504 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11505 $as_echo "$ac_res" >&6; }
11508 as_val=`eval 'as_val=${'$as_ac_Header'}
11509 $as_echo "$as_val"'`
11510 if test "x$as_val" = x""yes; then
11511 cat >>confdefs.h <<_ACEOF
11512 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11517 for ac_header in readline/history.h
11519 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11521 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11522 $as_echo_n "checking for $ac_header... " >&6; }
11523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11524 $as_echo_n "(cached) " >&6
11526 ac_res=`eval 'as_val=${'$as_ac_Header'}
11527 $as_echo "$as_val"'`
11528 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11529 $as_echo "$ac_res" >&6; }
11531 # Is the header compilable?
11532 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11533 $as_echo_n "checking $ac_header usability... " >&6; }
11534 cat >conftest.$ac_ext <<_ACEOF
11537 cat confdefs.h >>conftest.$ac_ext
11538 cat >>conftest.$ac_ext <<_ACEOF
11539 /* end confdefs.h. */
11540 $ac_includes_default
11541 #include <$ac_header>
11543 rm -f conftest.$ac_objext
11544 if { (ac_try="$ac_compile"
11545 case "(($ac_try" in
11546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547 *) ac_try_echo=$ac_try;;
11549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11550 $as_echo "$ac_try_echo") >&5
11551 (eval "$ac_compile") 2>conftest.er1
11553 grep -v '^ *+' conftest.er1 >conftest.err
11555 cat conftest.err >&5
11556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } && {
11558 test -z "$ac_c_werror_flag" ||
11559 test ! -s conftest.err
11560 } && test -s conftest.$ac_objext; then
11561 ac_header_compiler=yes
11563 $as_echo "$as_me: failed program was:" >&5
11564 sed 's/^/| /' conftest.$ac_ext >&5
11566 ac_header_compiler=no
11569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11570 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11571 $as_echo "$ac_header_compiler" >&6; }
11573 # Is the header present?
11574 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11575 $as_echo_n "checking $ac_header presence... " >&6; }
11576 cat >conftest.$ac_ext <<_ACEOF
11579 cat confdefs.h >>conftest.$ac_ext
11580 cat >>conftest.$ac_ext <<_ACEOF
11581 /* end confdefs.h. */
11582 #include <$ac_header>
11584 if { (ac_try="$ac_cpp conftest.$ac_ext"
11585 case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11590 $as_echo "$ac_try_echo") >&5
11591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11593 grep -v '^ *+' conftest.er1 >conftest.err
11595 cat conftest.err >&5
11596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } >/dev/null && {
11598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11599 test ! -s conftest.err
11601 ac_header_preproc=yes
11603 $as_echo "$as_me: failed program was:" >&5
11604 sed 's/^/| /' conftest.$ac_ext >&5
11606 ac_header_preproc=no
11609 rm -f conftest.err conftest.$ac_ext
11610 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11611 $as_echo "$ac_header_preproc" >&6; }
11613 # So? What about this header?
11614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11617 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11619 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11620 ac_header_preproc=yes
11623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11624 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11626 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11628 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11630 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11632 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11634 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11636 ## ---------------------------------------- ##
11637 ## Report this to pgsql-bugs@postgresql.org ##
11638 ## ---------------------------------------- ##
11640 ) | sed "s/^/$as_me: WARNING: /" >&2
11643 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11644 $as_echo_n "checking for $ac_header... " >&6; }
11645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11646 $as_echo_n "(cached) " >&6
11648 eval "$as_ac_Header=\$ac_header_preproc"
11650 ac_res=`eval 'as_val=${'$as_ac_Header'}
11651 $as_echo "$as_val"'`
11652 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11653 $as_echo "$ac_res" >&6; }
11656 as_val=`eval 'as_val=${'$as_ac_Header'}
11657 $as_echo "$as_val"'`
11658 if test "x$as_val" = x""yes; then
11659 cat >>confdefs.h <<_ACEOF
11660 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11677 if test "$with_zlib" = yes; then
11678 if test "${ac_cv_header_zlib_h+set}" = set; then
11679 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11680 $as_echo_n "checking for zlib.h... " >&6; }
11681 if test "${ac_cv_header_zlib_h+set}" = set; then
11682 $as_echo_n "(cached) " >&6
11684 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11685 $as_echo "$ac_cv_header_zlib_h" >&6; }
11687 # Is the header compilable?
11688 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
11689 $as_echo_n "checking zlib.h usability... " >&6; }
11690 cat >conftest.$ac_ext <<_ACEOF
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h. */
11696 $ac_includes_default
11699 rm -f conftest.$ac_objext
11700 if { (ac_try="$ac_compile"
11701 case "(($ac_try" in
11702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703 *) ac_try_echo=$ac_try;;
11705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11706 $as_echo "$ac_try_echo") >&5
11707 (eval "$ac_compile") 2>conftest.er1
11709 grep -v '^ *+' conftest.er1 >conftest.err
11711 cat conftest.err >&5
11712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); } && {
11714 test -z "$ac_c_werror_flag" ||
11715 test ! -s conftest.err
11716 } && test -s conftest.$ac_objext; then
11717 ac_header_compiler=yes
11719 $as_echo "$as_me: failed program was:" >&5
11720 sed 's/^/| /' conftest.$ac_ext >&5
11722 ac_header_compiler=no
11725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11726 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11727 $as_echo "$ac_header_compiler" >&6; }
11729 # Is the header present?
11730 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
11731 $as_echo_n "checking zlib.h presence... " >&6; }
11732 cat >conftest.$ac_ext <<_ACEOF
11735 cat confdefs.h >>conftest.$ac_ext
11736 cat >>conftest.$ac_ext <<_ACEOF
11737 /* end confdefs.h. */
11740 if { (ac_try="$ac_cpp conftest.$ac_ext"
11741 case "(($ac_try" in
11742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11743 *) ac_try_echo=$ac_try;;
11745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11746 $as_echo "$ac_try_echo") >&5
11747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11749 grep -v '^ *+' conftest.er1 >conftest.err
11751 cat conftest.err >&5
11752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); } >/dev/null && {
11754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11755 test ! -s conftest.err
11757 ac_header_preproc=yes
11759 $as_echo "$as_me: failed program was:" >&5
11760 sed 's/^/| /' conftest.$ac_ext >&5
11762 ac_header_preproc=no
11765 rm -f conftest.err conftest.$ac_ext
11766 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11767 $as_echo "$ac_header_preproc" >&6; }
11769 # So? What about this header?
11770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11772 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11773 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11774 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11775 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11776 ac_header_preproc=yes
11779 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11780 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11781 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11782 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11783 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11784 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11785 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
11786 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11787 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11788 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11789 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11790 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11792 ## ---------------------------------------- ##
11793 ## Report this to pgsql-bugs@postgresql.org ##
11794 ## ---------------------------------------- ##
11796 ) | sed "s/^/$as_me: WARNING: /" >&2
11799 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11800 $as_echo_n "checking for zlib.h... " >&6; }
11801 if test "${ac_cv_header_zlib_h+set}" = set; then
11802 $as_echo_n "(cached) " >&6
11804 ac_cv_header_zlib_h=$ac_header_preproc
11806 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11807 $as_echo "$ac_cv_header_zlib_h" >&6; }
11810 if test "x$ac_cv_header_zlib_h" = x""yes; then
11813 { { $as_echo "$as_me:$LINENO: error: zlib header not found
11814 If you have zlib already installed, see config.log for details on the
11815 failure. It is possible the compiler isn't looking in the proper directory.
11816 Use --without-zlib to disable zlib support." >&5
11817 $as_echo "$as_me: error: zlib header not found
11818 If you have zlib already installed, see config.log for details on the
11819 failure. It is possible the compiler isn't looking in the proper directory.
11820 Use --without-zlib to disable zlib support." >&2;}
11821 { (exit 1); exit 1; }; }
11827 if test "$with_gssapi" = yes ; then
11829 for ac_header in gssapi/gssapi.h
11831 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11833 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11834 $as_echo_n "checking for $ac_header... " >&6; }
11835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11836 $as_echo_n "(cached) " >&6
11838 ac_res=`eval 'as_val=${'$as_ac_Header'}
11839 $as_echo "$as_val"'`
11840 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11841 $as_echo "$ac_res" >&6; }
11843 # Is the header compilable?
11844 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11845 $as_echo_n "checking $ac_header usability... " >&6; }
11846 cat >conftest.$ac_ext <<_ACEOF
11849 cat confdefs.h >>conftest.$ac_ext
11850 cat >>conftest.$ac_ext <<_ACEOF
11851 /* end confdefs.h. */
11852 $ac_includes_default
11853 #include <$ac_header>
11855 rm -f conftest.$ac_objext
11856 if { (ac_try="$ac_compile"
11857 case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11862 $as_echo "$ac_try_echo") >&5
11863 (eval "$ac_compile") 2>conftest.er1
11865 grep -v '^ *+' conftest.er1 >conftest.err
11867 cat conftest.err >&5
11868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } && {
11870 test -z "$ac_c_werror_flag" ||
11871 test ! -s conftest.err
11872 } && test -s conftest.$ac_objext; then
11873 ac_header_compiler=yes
11875 $as_echo "$as_me: failed program was:" >&5
11876 sed 's/^/| /' conftest.$ac_ext >&5
11878 ac_header_compiler=no
11881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11882 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11883 $as_echo "$ac_header_compiler" >&6; }
11885 # Is the header present?
11886 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11887 $as_echo_n "checking $ac_header presence... " >&6; }
11888 cat >conftest.$ac_ext <<_ACEOF
11891 cat confdefs.h >>conftest.$ac_ext
11892 cat >>conftest.$ac_ext <<_ACEOF
11893 /* end confdefs.h. */
11894 #include <$ac_header>
11896 if { (ac_try="$ac_cpp conftest.$ac_ext"
11897 case "(($ac_try" in
11898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11899 *) ac_try_echo=$ac_try;;
11901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11902 $as_echo "$ac_try_echo") >&5
11903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11905 grep -v '^ *+' conftest.er1 >conftest.err
11907 cat conftest.err >&5
11908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } >/dev/null && {
11910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11911 test ! -s conftest.err
11913 ac_header_preproc=yes
11915 $as_echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.$ac_ext >&5
11918 ac_header_preproc=no
11921 rm -f conftest.err conftest.$ac_ext
11922 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11923 $as_echo "$ac_header_preproc" >&6; }
11925 # So? What about this header?
11926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11929 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11931 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11932 ac_header_preproc=yes
11935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11936 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11938 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11940 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11942 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11944 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11946 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11948 ## ---------------------------------------- ##
11949 ## Report this to pgsql-bugs@postgresql.org ##
11950 ## ---------------------------------------- ##
11952 ) | sed "s/^/$as_me: WARNING: /" >&2
11955 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11956 $as_echo_n "checking for $ac_header... " >&6; }
11957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11958 $as_echo_n "(cached) " >&6
11960 eval "$as_ac_Header=\$ac_header_preproc"
11962 ac_res=`eval 'as_val=${'$as_ac_Header'}
11963 $as_echo "$as_val"'`
11964 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11965 $as_echo "$ac_res" >&6; }
11968 as_val=`eval 'as_val=${'$as_ac_Header'}
11969 $as_echo "$as_val"'`
11970 if test "x$as_val" = x""yes; then
11971 cat >>confdefs.h <<_ACEOF
11972 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11977 for ac_header in gssapi.h
11979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11981 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11982 $as_echo_n "checking for $ac_header... " >&6; }
11983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11984 $as_echo_n "(cached) " >&6
11986 ac_res=`eval 'as_val=${'$as_ac_Header'}
11987 $as_echo "$as_val"'`
11988 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11989 $as_echo "$ac_res" >&6; }
11991 # Is the header compilable?
11992 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11993 $as_echo_n "checking $ac_header usability... " >&6; }
11994 cat >conftest.$ac_ext <<_ACEOF
11997 cat confdefs.h >>conftest.$ac_ext
11998 cat >>conftest.$ac_ext <<_ACEOF
11999 /* end confdefs.h. */
12000 $ac_includes_default
12001 #include <$ac_header>
12003 rm -f conftest.$ac_objext
12004 if { (ac_try="$ac_compile"
12005 case "(($ac_try" in
12006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12007 *) ac_try_echo=$ac_try;;
12009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12010 $as_echo "$ac_try_echo") >&5
12011 (eval "$ac_compile") 2>conftest.er1
12013 grep -v '^ *+' conftest.er1 >conftest.err
12015 cat conftest.err >&5
12016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); } && {
12018 test -z "$ac_c_werror_flag" ||
12019 test ! -s conftest.err
12020 } && test -s conftest.$ac_objext; then
12021 ac_header_compiler=yes
12023 $as_echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12026 ac_header_compiler=no
12029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12030 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12031 $as_echo "$ac_header_compiler" >&6; }
12033 # Is the header present?
12034 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12035 $as_echo_n "checking $ac_header presence... " >&6; }
12036 cat >conftest.$ac_ext <<_ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h. */
12042 #include <$ac_header>
12044 if { (ac_try="$ac_cpp conftest.$ac_ext"
12045 case "(($ac_try" in
12046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047 *) ac_try_echo=$ac_try;;
12049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12050 $as_echo "$ac_try_echo") >&5
12051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12053 grep -v '^ *+' conftest.er1 >conftest.err
12055 cat conftest.err >&5
12056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); } >/dev/null && {
12058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12059 test ! -s conftest.err
12061 ac_header_preproc=yes
12063 $as_echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.$ac_ext >&5
12066 ac_header_preproc=no
12069 rm -f conftest.err conftest.$ac_ext
12070 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12071 $as_echo "$ac_header_preproc" >&6; }
12073 # So? What about this header?
12074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12077 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12079 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12080 ac_header_preproc=yes
12083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12084 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12086 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12088 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12090 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12092 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12094 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12096 ## ---------------------------------------- ##
12097 ## Report this to pgsql-bugs@postgresql.org ##
12098 ## ---------------------------------------- ##
12100 ) | sed "s/^/$as_me: WARNING: /" >&2
12103 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12104 $as_echo_n "checking for $ac_header... " >&6; }
12105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12106 $as_echo_n "(cached) " >&6
12108 eval "$as_ac_Header=\$ac_header_preproc"
12110 ac_res=`eval 'as_val=${'$as_ac_Header'}
12111 $as_echo "$as_val"'`
12112 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12113 $as_echo "$ac_res" >&6; }
12116 as_val=`eval 'as_val=${'$as_ac_Header'}
12117 $as_echo "$as_val"'`
12118 if test "x$as_val" = x""yes; then
12119 cat >>confdefs.h <<_ACEOF
12120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12124 { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12125 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12126 { (exit 1); exit 1; }; }
12137 if test "$with_krb5" = yes ; then
12138 if test "${ac_cv_header_krb5_h+set}" = set; then
12139 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12140 $as_echo_n "checking for krb5.h... " >&6; }
12141 if test "${ac_cv_header_krb5_h+set}" = set; then
12142 $as_echo_n "(cached) " >&6
12144 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12145 $as_echo "$ac_cv_header_krb5_h" >&6; }
12147 # Is the header compilable?
12148 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12149 $as_echo_n "checking krb5.h usability... " >&6; }
12150 cat >conftest.$ac_ext <<_ACEOF
12153 cat confdefs.h >>conftest.$ac_ext
12154 cat >>conftest.$ac_ext <<_ACEOF
12155 /* end confdefs.h. */
12156 $ac_includes_default
12159 rm -f conftest.$ac_objext
12160 if { (ac_try="$ac_compile"
12161 case "(($ac_try" in
12162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163 *) ac_try_echo=$ac_try;;
12165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12166 $as_echo "$ac_try_echo") >&5
12167 (eval "$ac_compile") 2>conftest.er1
12169 grep -v '^ *+' conftest.er1 >conftest.err
12171 cat conftest.err >&5
12172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); } && {
12174 test -z "$ac_c_werror_flag" ||
12175 test ! -s conftest.err
12176 } && test -s conftest.$ac_objext; then
12177 ac_header_compiler=yes
12179 $as_echo "$as_me: failed program was:" >&5
12180 sed 's/^/| /' conftest.$ac_ext >&5
12182 ac_header_compiler=no
12185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12186 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12187 $as_echo "$ac_header_compiler" >&6; }
12189 # Is the header present?
12190 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12191 $as_echo_n "checking krb5.h presence... " >&6; }
12192 cat >conftest.$ac_ext <<_ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h. */
12200 if { (ac_try="$ac_cpp conftest.$ac_ext"
12201 case "(($ac_try" in
12202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203 *) ac_try_echo=$ac_try;;
12205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12206 $as_echo "$ac_try_echo") >&5
12207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12209 grep -v '^ *+' conftest.er1 >conftest.err
12211 cat conftest.err >&5
12212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } >/dev/null && {
12214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12215 test ! -s conftest.err
12217 ac_header_preproc=yes
12219 $as_echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12222 ac_header_preproc=no
12225 rm -f conftest.err conftest.$ac_ext
12226 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12227 $as_echo "$ac_header_preproc" >&6; }
12229 # So? What about this header?
12230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12232 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12233 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12234 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12235 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12236 ac_header_preproc=yes
12239 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12240 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12241 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
12242 $as_echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
12243 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12244 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12245 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
12246 $as_echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
12247 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12248 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12249 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12250 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12252 ## ---------------------------------------- ##
12253 ## Report this to pgsql-bugs@postgresql.org ##
12254 ## ---------------------------------------- ##
12256 ) | sed "s/^/$as_me: WARNING: /" >&2
12259 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12260 $as_echo_n "checking for krb5.h... " >&6; }
12261 if test "${ac_cv_header_krb5_h+set}" = set; then
12262 $as_echo_n "(cached) " >&6
12264 ac_cv_header_krb5_h=$ac_header_preproc
12266 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12267 $as_echo "$ac_cv_header_krb5_h" >&6; }
12270 if test "x$ac_cv_header_krb5_h" = x""yes; then
12273 { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12274 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12275 { (exit 1); exit 1; }; }
12281 if test "$with_openssl" = yes ; then
12282 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12283 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12284 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12285 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12286 $as_echo_n "(cached) " >&6
12288 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12289 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12291 # Is the header compilable?
12292 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12293 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12294 cat >conftest.$ac_ext <<_ACEOF
12297 cat confdefs.h >>conftest.$ac_ext
12298 cat >>conftest.$ac_ext <<_ACEOF
12299 /* end confdefs.h. */
12300 $ac_includes_default
12301 #include <openssl/ssl.h>
12303 rm -f conftest.$ac_objext
12304 if { (ac_try="$ac_compile"
12305 case "(($ac_try" in
12306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12307 *) ac_try_echo=$ac_try;;
12309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12310 $as_echo "$ac_try_echo") >&5
12311 (eval "$ac_compile") 2>conftest.er1
12313 grep -v '^ *+' conftest.er1 >conftest.err
12315 cat conftest.err >&5
12316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); } && {
12318 test -z "$ac_c_werror_flag" ||
12319 test ! -s conftest.err
12320 } && test -s conftest.$ac_objext; then
12321 ac_header_compiler=yes
12323 $as_echo "$as_me: failed program was:" >&5
12324 sed 's/^/| /' conftest.$ac_ext >&5
12326 ac_header_compiler=no
12329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12330 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12331 $as_echo "$ac_header_compiler" >&6; }
12333 # Is the header present?
12334 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12335 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12336 cat >conftest.$ac_ext <<_ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h. */
12342 #include <openssl/ssl.h>
12344 if { (ac_try="$ac_cpp conftest.$ac_ext"
12345 case "(($ac_try" in
12346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347 *) ac_try_echo=$ac_try;;
12349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12350 $as_echo "$ac_try_echo") >&5
12351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12353 grep -v '^ *+' conftest.er1 >conftest.err
12355 cat conftest.err >&5
12356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } >/dev/null && {
12358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12359 test ! -s conftest.err
12361 ac_header_preproc=yes
12363 $as_echo "$as_me: failed program was:" >&5
12364 sed 's/^/| /' conftest.$ac_ext >&5
12366 ac_header_preproc=no
12369 rm -f conftest.err conftest.$ac_ext
12370 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12371 $as_echo "$ac_header_preproc" >&6; }
12373 # So? What about this header?
12374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12376 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12377 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12378 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12379 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12380 ac_header_preproc=yes
12383 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12384 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12385 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12386 $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12387 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12388 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12389 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12390 $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12391 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12392 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12393 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12394 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12396 ## ---------------------------------------- ##
12397 ## Report this to pgsql-bugs@postgresql.org ##
12398 ## ---------------------------------------- ##
12400 ) | sed "s/^/$as_me: WARNING: /" >&2
12403 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12404 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12405 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12406 $as_echo_n "(cached) " >&6
12408 ac_cv_header_openssl_ssl_h=$ac_header_preproc
12410 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12411 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12414 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12417 { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12418 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12419 { (exit 1); exit 1; }; }
12423 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12424 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12425 $as_echo_n "checking for openssl/err.h... " >&6; }
12426 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12427 $as_echo_n "(cached) " >&6
12429 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12430 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12432 # Is the header compilable?
12433 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12434 $as_echo_n "checking openssl/err.h usability... " >&6; }
12435 cat >conftest.$ac_ext <<_ACEOF
12438 cat confdefs.h >>conftest.$ac_ext
12439 cat >>conftest.$ac_ext <<_ACEOF
12440 /* end confdefs.h. */
12441 $ac_includes_default
12442 #include <openssl/err.h>
12444 rm -f conftest.$ac_objext
12445 if { (ac_try="$ac_compile"
12446 case "(($ac_try" in
12447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12448 *) ac_try_echo=$ac_try;;
12450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12451 $as_echo "$ac_try_echo") >&5
12452 (eval "$ac_compile") 2>conftest.er1
12454 grep -v '^ *+' conftest.er1 >conftest.err
12456 cat conftest.err >&5
12457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); } && {
12459 test -z "$ac_c_werror_flag" ||
12460 test ! -s conftest.err
12461 } && test -s conftest.$ac_objext; then
12462 ac_header_compiler=yes
12464 $as_echo "$as_me: failed program was:" >&5
12465 sed 's/^/| /' conftest.$ac_ext >&5
12467 ac_header_compiler=no
12470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12471 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12472 $as_echo "$ac_header_compiler" >&6; }
12474 # Is the header present?
12475 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12476 $as_echo_n "checking openssl/err.h presence... " >&6; }
12477 cat >conftest.$ac_ext <<_ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h. */
12483 #include <openssl/err.h>
12485 if { (ac_try="$ac_cpp conftest.$ac_ext"
12486 case "(($ac_try" in
12487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488 *) ac_try_echo=$ac_try;;
12490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12491 $as_echo "$ac_try_echo") >&5
12492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12494 grep -v '^ *+' conftest.er1 >conftest.err
12496 cat conftest.err >&5
12497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); } >/dev/null && {
12499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12500 test ! -s conftest.err
12502 ac_header_preproc=yes
12504 $as_echo "$as_me: failed program was:" >&5
12505 sed 's/^/| /' conftest.$ac_ext >&5
12507 ac_header_preproc=no
12510 rm -f conftest.err conftest.$ac_ext
12511 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12512 $as_echo "$ac_header_preproc" >&6; }
12514 # So? What about this header?
12515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12517 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12518 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12519 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12520 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12521 ac_header_preproc=yes
12524 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12525 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12526 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12527 $as_echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12528 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12529 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12530 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12531 $as_echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12532 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12533 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12534 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12535 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12537 ## ---------------------------------------- ##
12538 ## Report this to pgsql-bugs@postgresql.org ##
12539 ## ---------------------------------------- ##
12541 ) | sed "s/^/$as_me: WARNING: /" >&2
12544 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12545 $as_echo_n "checking for openssl/err.h... " >&6; }
12546 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12547 $as_echo_n "(cached) " >&6
12549 ac_cv_header_openssl_err_h=$ac_header_preproc
12551 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12552 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12555 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12558 { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12559 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12560 { (exit 1); exit 1; }; }
12565 for ac_func in ERR_set_mark
12567 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12568 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12569 $as_echo_n "checking for $ac_func... " >&6; }
12570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12571 $as_echo_n "(cached) " >&6
12573 cat >conftest.$ac_ext <<_ACEOF
12576 cat confdefs.h >>conftest.$ac_ext
12577 cat >>conftest.$ac_ext <<_ACEOF
12578 /* end confdefs.h. */
12579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12581 #define $ac_func innocuous_$ac_func
12583 /* System header to define __stub macros and hopefully few prototypes,
12584 which can conflict with char $ac_func (); below.
12585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12586 <limits.h> exists even on freestanding compilers. */
12589 # include <limits.h>
12591 # include <assert.h>
12596 /* Override any GCC internal prototype to avoid an error.
12597 Use char because int might match the return type of a GCC
12598 builtin and then its argument prototype would still apply. */
12603 /* The GNU C library defines this for functions which it implements
12604 to always fail with ENOSYS. Some functions are actually named
12605 something starting with __ and the normal name is an alias. */
12606 #if defined __stub_$ac_func || defined __stub___$ac_func
12613 return $ac_func ();
12618 rm -f conftest.$ac_objext conftest$ac_exeext
12619 if { (ac_try="$ac_link"
12620 case "(($ac_try" in
12621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12622 *) ac_try_echo=$ac_try;;
12624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12625 $as_echo "$ac_try_echo") >&5
12626 (eval "$ac_link") 2>conftest.er1
12628 grep -v '^ *+' conftest.er1 >conftest.err
12630 cat conftest.err >&5
12631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); } && {
12633 test -z "$ac_c_werror_flag" ||
12634 test ! -s conftest.err
12635 } && test -s conftest$ac_exeext && {
12636 test "$cross_compiling" = yes ||
12637 $as_test_x conftest$ac_exeext
12639 eval "$as_ac_var=yes"
12641 $as_echo "$as_me: failed program was:" >&5
12642 sed 's/^/| /' conftest.$ac_ext >&5
12644 eval "$as_ac_var=no"
12647 rm -rf conftest.dSYM
12648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12649 conftest$ac_exeext conftest.$ac_ext
12651 ac_res=`eval 'as_val=${'$as_ac_var'}
12652 $as_echo "$as_val"'`
12653 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12654 $as_echo "$ac_res" >&6; }
12655 as_val=`eval 'as_val=${'$as_ac_var'}
12656 $as_echo "$as_val"'`
12657 if test "x$as_val" = x""yes; then
12658 cat >>confdefs.h <<_ACEOF
12659 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12667 if test "$with_pam" = yes ; then
12669 for ac_header in security/pam_appl.h
12671 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12673 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12674 $as_echo_n "checking for $ac_header... " >&6; }
12675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12676 $as_echo_n "(cached) " >&6
12678 ac_res=`eval 'as_val=${'$as_ac_Header'}
12679 $as_echo "$as_val"'`
12680 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12681 $as_echo "$ac_res" >&6; }
12683 # Is the header compilable?
12684 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12685 $as_echo_n "checking $ac_header usability... " >&6; }
12686 cat >conftest.$ac_ext <<_ACEOF
12689 cat confdefs.h >>conftest.$ac_ext
12690 cat >>conftest.$ac_ext <<_ACEOF
12691 /* end confdefs.h. */
12692 $ac_includes_default
12693 #include <$ac_header>
12695 rm -f conftest.$ac_objext
12696 if { (ac_try="$ac_compile"
12697 case "(($ac_try" in
12698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12699 *) ac_try_echo=$ac_try;;
12701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12702 $as_echo "$ac_try_echo") >&5
12703 (eval "$ac_compile") 2>conftest.er1
12705 grep -v '^ *+' conftest.er1 >conftest.err
12707 cat conftest.err >&5
12708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } && {
12710 test -z "$ac_c_werror_flag" ||
12711 test ! -s conftest.err
12712 } && test -s conftest.$ac_objext; then
12713 ac_header_compiler=yes
12715 $as_echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12718 ac_header_compiler=no
12721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12722 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12723 $as_echo "$ac_header_compiler" >&6; }
12725 # Is the header present?
12726 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12727 $as_echo_n "checking $ac_header presence... " >&6; }
12728 cat >conftest.$ac_ext <<_ACEOF
12731 cat confdefs.h >>conftest.$ac_ext
12732 cat >>conftest.$ac_ext <<_ACEOF
12733 /* end confdefs.h. */
12734 #include <$ac_header>
12736 if { (ac_try="$ac_cpp conftest.$ac_ext"
12737 case "(($ac_try" in
12738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739 *) ac_try_echo=$ac_try;;
12741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12742 $as_echo "$ac_try_echo") >&5
12743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12745 grep -v '^ *+' conftest.er1 >conftest.err
12747 cat conftest.err >&5
12748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); } >/dev/null && {
12750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12751 test ! -s conftest.err
12753 ac_header_preproc=yes
12755 $as_echo "$as_me: failed program was:" >&5
12756 sed 's/^/| /' conftest.$ac_ext >&5
12758 ac_header_preproc=no
12761 rm -f conftest.err conftest.$ac_ext
12762 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12763 $as_echo "$ac_header_preproc" >&6; }
12765 # So? What about this header?
12766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12769 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12771 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12772 ac_header_preproc=yes
12775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12776 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12778 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12780 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12782 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12784 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12786 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12788 ## ---------------------------------------- ##
12789 ## Report this to pgsql-bugs@postgresql.org ##
12790 ## ---------------------------------------- ##
12792 ) | sed "s/^/$as_me: WARNING: /" >&2
12795 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12796 $as_echo_n "checking for $ac_header... " >&6; }
12797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12798 $as_echo_n "(cached) " >&6
12800 eval "$as_ac_Header=\$ac_header_preproc"
12802 ac_res=`eval 'as_val=${'$as_ac_Header'}
12803 $as_echo "$as_val"'`
12804 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12805 $as_echo "$ac_res" >&6; }
12808 as_val=`eval 'as_val=${'$as_ac_Header'}
12809 $as_echo "$as_val"'`
12810 if test "x$as_val" = x""yes; then
12811 cat >>confdefs.h <<_ACEOF
12812 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12817 for ac_header in pam/pam_appl.h
12819 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12821 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12822 $as_echo_n "checking for $ac_header... " >&6; }
12823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12824 $as_echo_n "(cached) " >&6
12826 ac_res=`eval 'as_val=${'$as_ac_Header'}
12827 $as_echo "$as_val"'`
12828 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12829 $as_echo "$ac_res" >&6; }
12831 # Is the header compilable?
12832 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12833 $as_echo_n "checking $ac_header usability... " >&6; }
12834 cat >conftest.$ac_ext <<_ACEOF
12837 cat confdefs.h >>conftest.$ac_ext
12838 cat >>conftest.$ac_ext <<_ACEOF
12839 /* end confdefs.h. */
12840 $ac_includes_default
12841 #include <$ac_header>
12843 rm -f conftest.$ac_objext
12844 if { (ac_try="$ac_compile"
12845 case "(($ac_try" in
12846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847 *) ac_try_echo=$ac_try;;
12849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12850 $as_echo "$ac_try_echo") >&5
12851 (eval "$ac_compile") 2>conftest.er1
12853 grep -v '^ *+' conftest.er1 >conftest.err
12855 cat conftest.err >&5
12856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } && {
12858 test -z "$ac_c_werror_flag" ||
12859 test ! -s conftest.err
12860 } && test -s conftest.$ac_objext; then
12861 ac_header_compiler=yes
12863 $as_echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12866 ac_header_compiler=no
12869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12870 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12871 $as_echo "$ac_header_compiler" >&6; }
12873 # Is the header present?
12874 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12875 $as_echo_n "checking $ac_header presence... " >&6; }
12876 cat >conftest.$ac_ext <<_ACEOF
12879 cat confdefs.h >>conftest.$ac_ext
12880 cat >>conftest.$ac_ext <<_ACEOF
12881 /* end confdefs.h. */
12882 #include <$ac_header>
12884 if { (ac_try="$ac_cpp conftest.$ac_ext"
12885 case "(($ac_try" in
12886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12887 *) ac_try_echo=$ac_try;;
12889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12890 $as_echo "$ac_try_echo") >&5
12891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12893 grep -v '^ *+' conftest.er1 >conftest.err
12895 cat conftest.err >&5
12896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } >/dev/null && {
12898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12899 test ! -s conftest.err
12901 ac_header_preproc=yes
12903 $as_echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12906 ac_header_preproc=no
12909 rm -f conftest.err conftest.$ac_ext
12910 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12911 $as_echo "$ac_header_preproc" >&6; }
12913 # So? What about this header?
12914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12917 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12919 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12920 ac_header_preproc=yes
12923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12924 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12926 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12928 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12930 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12932 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12934 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12936 ## ---------------------------------------- ##
12937 ## Report this to pgsql-bugs@postgresql.org ##
12938 ## ---------------------------------------- ##
12940 ) | sed "s/^/$as_me: WARNING: /" >&2
12943 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12944 $as_echo_n "checking for $ac_header... " >&6; }
12945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12946 $as_echo_n "(cached) " >&6
12948 eval "$as_ac_Header=\$ac_header_preproc"
12950 ac_res=`eval 'as_val=${'$as_ac_Header'}
12951 $as_echo "$as_val"'`
12952 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12953 $as_echo "$ac_res" >&6; }
12956 as_val=`eval 'as_val=${'$as_ac_Header'}
12957 $as_echo "$as_val"'`
12958 if test "x$as_val" = x""yes; then
12959 cat >>confdefs.h <<_ACEOF
12960 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12964 { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12965 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12966 { (exit 1); exit 1; }; }
12977 if test "$with_libxml" = yes ; then
12978 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12979 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12980 $as_echo_n "checking for libxml/parser.h... " >&6; }
12981 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12982 $as_echo_n "(cached) " >&6
12984 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12985 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
12987 # Is the header compilable?
12988 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12989 $as_echo_n "checking libxml/parser.h usability... " >&6; }
12990 cat >conftest.$ac_ext <<_ACEOF
12993 cat confdefs.h >>conftest.$ac_ext
12994 cat >>conftest.$ac_ext <<_ACEOF
12995 /* end confdefs.h. */
12996 $ac_includes_default
12997 #include <libxml/parser.h>
12999 rm -f conftest.$ac_objext
13000 if { (ac_try="$ac_compile"
13001 case "(($ac_try" in
13002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13003 *) ac_try_echo=$ac_try;;
13005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13006 $as_echo "$ac_try_echo") >&5
13007 (eval "$ac_compile") 2>conftest.er1
13009 grep -v '^ *+' conftest.er1 >conftest.err
13011 cat conftest.err >&5
13012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } && {
13014 test -z "$ac_c_werror_flag" ||
13015 test ! -s conftest.err
13016 } && test -s conftest.$ac_objext; then
13017 ac_header_compiler=yes
13019 $as_echo "$as_me: failed program was:" >&5
13020 sed 's/^/| /' conftest.$ac_ext >&5
13022 ac_header_compiler=no
13025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13026 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13027 $as_echo "$ac_header_compiler" >&6; }
13029 # Is the header present?
13030 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13031 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13032 cat >conftest.$ac_ext <<_ACEOF
13035 cat confdefs.h >>conftest.$ac_ext
13036 cat >>conftest.$ac_ext <<_ACEOF
13037 /* end confdefs.h. */
13038 #include <libxml/parser.h>
13040 if { (ac_try="$ac_cpp conftest.$ac_ext"
13041 case "(($ac_try" in
13042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13043 *) ac_try_echo=$ac_try;;
13045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13046 $as_echo "$ac_try_echo") >&5
13047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13049 grep -v '^ *+' conftest.er1 >conftest.err
13051 cat conftest.err >&5
13052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); } >/dev/null && {
13054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13055 test ! -s conftest.err
13057 ac_header_preproc=yes
13059 $as_echo "$as_me: failed program was:" >&5
13060 sed 's/^/| /' conftest.$ac_ext >&5
13062 ac_header_preproc=no
13065 rm -f conftest.err conftest.$ac_ext
13066 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13067 $as_echo "$ac_header_preproc" >&6; }
13069 # So? What about this header?
13070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13072 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13073 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13074 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13075 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13076 ac_header_preproc=yes
13079 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13080 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13081 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
13082 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
13083 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13084 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13085 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
13086 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
13087 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13088 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13089 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13090 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13092 ## ---------------------------------------- ##
13093 ## Report this to pgsql-bugs@postgresql.org ##
13094 ## ---------------------------------------- ##
13096 ) | sed "s/^/$as_me: WARNING: /" >&2
13099 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13100 $as_echo_n "checking for libxml/parser.h... " >&6; }
13101 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13102 $as_echo_n "(cached) " >&6
13104 ac_cv_header_libxml_parser_h=$ac_header_preproc
13106 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13107 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13110 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13113 { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13114 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13115 { (exit 1); exit 1; }; }
13121 if test "$with_libxslt" = yes ; then
13122 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13123 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13124 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13125 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13126 $as_echo_n "(cached) " >&6
13128 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13129 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13131 # Is the header compilable?
13132 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13133 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13134 cat >conftest.$ac_ext <<_ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h. */
13140 $ac_includes_default
13141 #include <libxslt/xslt.h>
13143 rm -f conftest.$ac_objext
13144 if { (ac_try="$ac_compile"
13145 case "(($ac_try" in
13146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147 *) ac_try_echo=$ac_try;;
13149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13150 $as_echo "$ac_try_echo") >&5
13151 (eval "$ac_compile") 2>conftest.er1
13153 grep -v '^ *+' conftest.er1 >conftest.err
13155 cat conftest.err >&5
13156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } && {
13158 test -z "$ac_c_werror_flag" ||
13159 test ! -s conftest.err
13160 } && test -s conftest.$ac_objext; then
13161 ac_header_compiler=yes
13163 $as_echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13166 ac_header_compiler=no
13169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13170 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13171 $as_echo "$ac_header_compiler" >&6; }
13173 # Is the header present?
13174 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13175 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13176 cat >conftest.$ac_ext <<_ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h. */
13182 #include <libxslt/xslt.h>
13184 if { (ac_try="$ac_cpp conftest.$ac_ext"
13185 case "(($ac_try" in
13186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187 *) ac_try_echo=$ac_try;;
13189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13190 $as_echo "$ac_try_echo") >&5
13191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13193 grep -v '^ *+' conftest.er1 >conftest.err
13195 cat conftest.err >&5
13196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); } >/dev/null && {
13198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13199 test ! -s conftest.err
13201 ac_header_preproc=yes
13203 $as_echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13206 ac_header_preproc=no
13209 rm -f conftest.err conftest.$ac_ext
13210 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13211 $as_echo "$ac_header_preproc" >&6; }
13213 # So? What about this header?
13214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13216 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13217 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13218 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13219 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13220 ac_header_preproc=yes
13223 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13224 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13225 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
13226 $as_echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
13227 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13228 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13229 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
13230 $as_echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
13231 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13232 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13233 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13234 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13236 ## ---------------------------------------- ##
13237 ## Report this to pgsql-bugs@postgresql.org ##
13238 ## ---------------------------------------- ##
13240 ) | sed "s/^/$as_me: WARNING: /" >&2
13243 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13244 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13245 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13246 $as_echo_n "(cached) " >&6
13248 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13250 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13251 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13254 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13257 { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13258 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13259 { (exit 1); exit 1; }; }
13265 if test "$with_ldap" = yes ; then
13266 if test "$PORTNAME" != "win32"; then
13268 for ac_header in ldap.h
13270 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13272 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13273 $as_echo_n "checking for $ac_header... " >&6; }
13274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13275 $as_echo_n "(cached) " >&6
13277 ac_res=`eval 'as_val=${'$as_ac_Header'}
13278 $as_echo "$as_val"'`
13279 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13280 $as_echo "$ac_res" >&6; }
13282 # Is the header compilable?
13283 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13284 $as_echo_n "checking $ac_header usability... " >&6; }
13285 cat >conftest.$ac_ext <<_ACEOF
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h. */
13291 $ac_includes_default
13292 #include <$ac_header>
13294 rm -f conftest.$ac_objext
13295 if { (ac_try="$ac_compile"
13296 case "(($ac_try" in
13297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13298 *) ac_try_echo=$ac_try;;
13300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13301 $as_echo "$ac_try_echo") >&5
13302 (eval "$ac_compile") 2>conftest.er1
13304 grep -v '^ *+' conftest.er1 >conftest.err
13306 cat conftest.err >&5
13307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } && {
13309 test -z "$ac_c_werror_flag" ||
13310 test ! -s conftest.err
13311 } && test -s conftest.$ac_objext; then
13312 ac_header_compiler=yes
13314 $as_echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13317 ac_header_compiler=no
13320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13321 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13322 $as_echo "$ac_header_compiler" >&6; }
13324 # Is the header present?
13325 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13326 $as_echo_n "checking $ac_header presence... " >&6; }
13327 cat >conftest.$ac_ext <<_ACEOF
13330 cat confdefs.h >>conftest.$ac_ext
13331 cat >>conftest.$ac_ext <<_ACEOF
13332 /* end confdefs.h. */
13333 #include <$ac_header>
13335 if { (ac_try="$ac_cpp conftest.$ac_ext"
13336 case "(($ac_try" in
13337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338 *) ac_try_echo=$ac_try;;
13340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13341 $as_echo "$ac_try_echo") >&5
13342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13344 grep -v '^ *+' conftest.er1 >conftest.err
13346 cat conftest.err >&5
13347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); } >/dev/null && {
13349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13350 test ! -s conftest.err
13352 ac_header_preproc=yes
13354 $as_echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13357 ac_header_preproc=no
13360 rm -f conftest.err conftest.$ac_ext
13361 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13362 $as_echo "$ac_header_preproc" >&6; }
13364 # So? What about this header?
13365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13368 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13370 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13371 ac_header_preproc=yes
13374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13375 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13377 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13379 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13381 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13383 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13385 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13387 ## ---------------------------------------- ##
13388 ## Report this to pgsql-bugs@postgresql.org ##
13389 ## ---------------------------------------- ##
13391 ) | sed "s/^/$as_me: WARNING: /" >&2
13394 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13395 $as_echo_n "checking for $ac_header... " >&6; }
13396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13397 $as_echo_n "(cached) " >&6
13399 eval "$as_ac_Header=\$ac_header_preproc"
13401 ac_res=`eval 'as_val=${'$as_ac_Header'}
13402 $as_echo "$as_val"'`
13403 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13404 $as_echo "$ac_res" >&6; }
13407 as_val=`eval 'as_val=${'$as_ac_Header'}
13408 $as_echo "$as_val"'`
13409 if test "x$as_val" = x""yes; then
13410 cat >>confdefs.h <<_ACEOF
13411 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13415 { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13416 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13417 { (exit 1); exit 1; }; }
13424 for ac_header in winldap.h
13426 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13427 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13428 $as_echo_n "checking for $ac_header... " >&6; }
13429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13430 $as_echo_n "(cached) " >&6
13432 cat >conftest.$ac_ext <<_ACEOF
13435 cat confdefs.h >>conftest.$ac_ext
13436 cat >>conftest.$ac_ext <<_ACEOF
13437 /* end confdefs.h. */
13438 $ac_includes_default
13439 #include <windows.h>
13442 #include <$ac_header>
13444 rm -f conftest.$ac_objext
13445 if { (ac_try="$ac_compile"
13446 case "(($ac_try" in
13447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13448 *) ac_try_echo=$ac_try;;
13450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13451 $as_echo "$ac_try_echo") >&5
13452 (eval "$ac_compile") 2>conftest.er1
13454 grep -v '^ *+' conftest.er1 >conftest.err
13456 cat conftest.err >&5
13457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); } && {
13459 test -z "$ac_c_werror_flag" ||
13460 test ! -s conftest.err
13461 } && test -s conftest.$ac_objext; then
13462 eval "$as_ac_Header=yes"
13464 $as_echo "$as_me: failed program was:" >&5
13465 sed 's/^/| /' conftest.$ac_ext >&5
13467 eval "$as_ac_Header=no"
13470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13472 ac_res=`eval 'as_val=${'$as_ac_Header'}
13473 $as_echo "$as_val"'`
13474 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13475 $as_echo "$ac_res" >&6; }
13476 as_val=`eval 'as_val=${'$as_ac_Header'}
13477 $as_echo "$as_val"'`
13478 if test "x$as_val" = x""yes; then
13479 cat >>confdefs.h <<_ACEOF
13480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13484 { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13485 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13486 { (exit 1); exit 1; }; }
13494 if test "$with_bonjour" = yes ; then
13495 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13496 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13497 $as_echo_n "checking for dns_sd.h... " >&6; }
13498 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13499 $as_echo_n "(cached) " >&6
13501 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13502 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13504 # Is the header compilable?
13505 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13506 $as_echo_n "checking dns_sd.h usability... " >&6; }
13507 cat >conftest.$ac_ext <<_ACEOF
13510 cat confdefs.h >>conftest.$ac_ext
13511 cat >>conftest.$ac_ext <<_ACEOF
13512 /* end confdefs.h. */
13513 $ac_includes_default
13514 #include <dns_sd.h>
13516 rm -f conftest.$ac_objext
13517 if { (ac_try="$ac_compile"
13518 case "(($ac_try" in
13519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520 *) ac_try_echo=$ac_try;;
13522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13523 $as_echo "$ac_try_echo") >&5
13524 (eval "$ac_compile") 2>conftest.er1
13526 grep -v '^ *+' conftest.er1 >conftest.err
13528 cat conftest.err >&5
13529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } && {
13531 test -z "$ac_c_werror_flag" ||
13532 test ! -s conftest.err
13533 } && test -s conftest.$ac_objext; then
13534 ac_header_compiler=yes
13536 $as_echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13539 ac_header_compiler=no
13542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13543 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13544 $as_echo "$ac_header_compiler" >&6; }
13546 # Is the header present?
13547 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13548 $as_echo_n "checking dns_sd.h presence... " >&6; }
13549 cat >conftest.$ac_ext <<_ACEOF
13552 cat confdefs.h >>conftest.$ac_ext
13553 cat >>conftest.$ac_ext <<_ACEOF
13554 /* end confdefs.h. */
13555 #include <dns_sd.h>
13557 if { (ac_try="$ac_cpp conftest.$ac_ext"
13558 case "(($ac_try" in
13559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560 *) ac_try_echo=$ac_try;;
13562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13563 $as_echo "$ac_try_echo") >&5
13564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13566 grep -v '^ *+' conftest.er1 >conftest.err
13568 cat conftest.err >&5
13569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); } >/dev/null && {
13571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13572 test ! -s conftest.err
13574 ac_header_preproc=yes
13576 $as_echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.$ac_ext >&5
13579 ac_header_preproc=no
13582 rm -f conftest.err conftest.$ac_ext
13583 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13584 $as_echo "$ac_header_preproc" >&6; }
13586 # So? What about this header?
13587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13589 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
13590 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13591 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
13592 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
13593 ac_header_preproc=yes
13596 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
13597 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
13598 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: check for missing prerequisite headers?" >&5
13599 $as_echo "$as_me: WARNING: dns_sd.h: check for missing prerequisite headers?" >&2;}
13600 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
13601 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
13602 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&5
13603 $as_echo "$as_me: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&2;}
13604 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
13605 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
13606 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
13607 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
13609 ## ---------------------------------------- ##
13610 ## Report this to pgsql-bugs@postgresql.org ##
13611 ## ---------------------------------------- ##
13613 ) | sed "s/^/$as_me: WARNING: /" >&2
13616 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13617 $as_echo_n "checking for dns_sd.h... " >&6; }
13618 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13619 $as_echo_n "(cached) " >&6
13621 ac_cv_header_dns_sd_h=$ac_header_preproc
13623 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13624 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13627 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
13630 { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
13631 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
13632 { (exit 1); exit 1; }; }
13638 # for contrib/uuid-ossp
13639 if test "$with_ossp_uuid" = yes ; then
13641 for ac_header in ossp/uuid.h
13643 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13645 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13646 $as_echo_n "checking for $ac_header... " >&6; }
13647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13648 $as_echo_n "(cached) " >&6
13650 ac_res=`eval 'as_val=${'$as_ac_Header'}
13651 $as_echo "$as_val"'`
13652 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13653 $as_echo "$ac_res" >&6; }
13655 # Is the header compilable?
13656 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13657 $as_echo_n "checking $ac_header usability... " >&6; }
13658 cat >conftest.$ac_ext <<_ACEOF
13661 cat confdefs.h >>conftest.$ac_ext
13662 cat >>conftest.$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13664 $ac_includes_default
13665 #include <$ac_header>
13667 rm -f conftest.$ac_objext
13668 if { (ac_try="$ac_compile"
13669 case "(($ac_try" in
13670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671 *) ac_try_echo=$ac_try;;
13673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13674 $as_echo "$ac_try_echo") >&5
13675 (eval "$ac_compile") 2>conftest.er1
13677 grep -v '^ *+' conftest.er1 >conftest.err
13679 cat conftest.err >&5
13680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); } && {
13682 test -z "$ac_c_werror_flag" ||
13683 test ! -s conftest.err
13684 } && test -s conftest.$ac_objext; then
13685 ac_header_compiler=yes
13687 $as_echo "$as_me: failed program was:" >&5
13688 sed 's/^/| /' conftest.$ac_ext >&5
13690 ac_header_compiler=no
13693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13694 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13695 $as_echo "$ac_header_compiler" >&6; }
13697 # Is the header present?
13698 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13699 $as_echo_n "checking $ac_header presence... " >&6; }
13700 cat >conftest.$ac_ext <<_ACEOF
13703 cat confdefs.h >>conftest.$ac_ext
13704 cat >>conftest.$ac_ext <<_ACEOF
13705 /* end confdefs.h. */
13706 #include <$ac_header>
13708 if { (ac_try="$ac_cpp conftest.$ac_ext"
13709 case "(($ac_try" in
13710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711 *) ac_try_echo=$ac_try;;
13713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13714 $as_echo "$ac_try_echo") >&5
13715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13717 grep -v '^ *+' conftest.er1 >conftest.err
13719 cat conftest.err >&5
13720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); } >/dev/null && {
13722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13723 test ! -s conftest.err
13725 ac_header_preproc=yes
13727 $as_echo "$as_me: failed program was:" >&5
13728 sed 's/^/| /' conftest.$ac_ext >&5
13730 ac_header_preproc=no
13733 rm -f conftest.err conftest.$ac_ext
13734 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13735 $as_echo "$ac_header_preproc" >&6; }
13737 # So? What about this header?
13738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13741 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13743 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13744 ac_header_preproc=yes
13747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13748 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13750 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13752 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13754 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13756 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13758 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13760 ## ---------------------------------------- ##
13761 ## Report this to pgsql-bugs@postgresql.org ##
13762 ## ---------------------------------------- ##
13764 ) | sed "s/^/$as_me: WARNING: /" >&2
13767 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13768 $as_echo_n "checking for $ac_header... " >&6; }
13769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13770 $as_echo_n "(cached) " >&6
13772 eval "$as_ac_Header=\$ac_header_preproc"
13774 ac_res=`eval 'as_val=${'$as_ac_Header'}
13775 $as_echo "$as_val"'`
13776 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13777 $as_echo "$ac_res" >&6; }
13780 as_val=`eval 'as_val=${'$as_ac_Header'}
13781 $as_echo "$as_val"'`
13782 if test "x$as_val" = x""yes; then
13783 cat >>confdefs.h <<_ACEOF
13784 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13790 for ac_header in uuid.h
13792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13794 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13795 $as_echo_n "checking for $ac_header... " >&6; }
13796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13797 $as_echo_n "(cached) " >&6
13799 ac_res=`eval 'as_val=${'$as_ac_Header'}
13800 $as_echo "$as_val"'`
13801 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13802 $as_echo "$ac_res" >&6; }
13804 # Is the header compilable?
13805 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13806 $as_echo_n "checking $ac_header usability... " >&6; }
13807 cat >conftest.$ac_ext <<_ACEOF
13810 cat confdefs.h >>conftest.$ac_ext
13811 cat >>conftest.$ac_ext <<_ACEOF
13812 /* end confdefs.h. */
13813 $ac_includes_default
13814 #include <$ac_header>
13816 rm -f conftest.$ac_objext
13817 if { (ac_try="$ac_compile"
13818 case "(($ac_try" in
13819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13820 *) ac_try_echo=$ac_try;;
13822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13823 $as_echo "$ac_try_echo") >&5
13824 (eval "$ac_compile") 2>conftest.er1
13826 grep -v '^ *+' conftest.er1 >conftest.err
13828 cat conftest.err >&5
13829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); } && {
13831 test -z "$ac_c_werror_flag" ||
13832 test ! -s conftest.err
13833 } && test -s conftest.$ac_objext; then
13834 ac_header_compiler=yes
13836 $as_echo "$as_me: failed program was:" >&5
13837 sed 's/^/| /' conftest.$ac_ext >&5
13839 ac_header_compiler=no
13842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13843 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13844 $as_echo "$ac_header_compiler" >&6; }
13846 # Is the header present?
13847 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13848 $as_echo_n "checking $ac_header presence... " >&6; }
13849 cat >conftest.$ac_ext <<_ACEOF
13852 cat confdefs.h >>conftest.$ac_ext
13853 cat >>conftest.$ac_ext <<_ACEOF
13854 /* end confdefs.h. */
13855 #include <$ac_header>
13857 if { (ac_try="$ac_cpp conftest.$ac_ext"
13858 case "(($ac_try" in
13859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13860 *) ac_try_echo=$ac_try;;
13862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13863 $as_echo "$ac_try_echo") >&5
13864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13866 grep -v '^ *+' conftest.er1 >conftest.err
13868 cat conftest.err >&5
13869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); } >/dev/null && {
13871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13872 test ! -s conftest.err
13874 ac_header_preproc=yes
13876 $as_echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13879 ac_header_preproc=no
13882 rm -f conftest.err conftest.$ac_ext
13883 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13884 $as_echo "$ac_header_preproc" >&6; }
13886 # So? What about this header?
13887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13890 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13892 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13893 ac_header_preproc=yes
13896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13897 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13899 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13901 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13903 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13905 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13907 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13909 ## ---------------------------------------- ##
13910 ## Report this to pgsql-bugs@postgresql.org ##
13911 ## ---------------------------------------- ##
13913 ) | sed "s/^/$as_me: WARNING: /" >&2
13916 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13917 $as_echo_n "checking for $ac_header... " >&6; }
13918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13919 $as_echo_n "(cached) " >&6
13921 eval "$as_ac_Header=\$ac_header_preproc"
13923 ac_res=`eval 'as_val=${'$as_ac_Header'}
13924 $as_echo "$as_val"'`
13925 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13926 $as_echo "$ac_res" >&6; }
13929 as_val=`eval 'as_val=${'$as_ac_Header'}
13930 $as_echo "$as_val"'`
13931 if test "x$as_val" = x""yes; then
13932 cat >>confdefs.h <<_ACEOF
13933 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13937 { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13938 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13939 { (exit 1); exit 1; }; }
13952 ## Types, structures, compiler characteristics
13956 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13957 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13958 if test "${ac_cv_c_bigendian+set}" = set; then
13959 $as_echo_n "(cached) " >&6
13961 ac_cv_c_bigendian=unknown
13962 # See if we're dealing with a universal compiler.
13963 cat >conftest.$ac_ext <<_ACEOF
13966 cat confdefs.h >>conftest.$ac_ext
13967 cat >>conftest.$ac_ext <<_ACEOF
13968 /* end confdefs.h. */
13969 #ifndef __APPLE_CC__
13970 not a universal capable compiler
13975 rm -f conftest.$ac_objext
13976 if { (ac_try="$ac_compile"
13977 case "(($ac_try" in
13978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13979 *) ac_try_echo=$ac_try;;
13981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13982 $as_echo "$ac_try_echo") >&5
13983 (eval "$ac_compile") 2>conftest.er1
13985 grep -v '^ *+' conftest.er1 >conftest.err
13987 cat conftest.err >&5
13988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } && {
13990 test -z "$ac_c_werror_flag" ||
13991 test ! -s conftest.err
13992 } && test -s conftest.$ac_objext; then
13994 # Check for potential -arch flags. It is not universal unless
13995 # there are some -arch flags. Note that *ppc* also matches
13996 # ppc64. This check is also rather less than ideal.
13997 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
13998 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14001 $as_echo "$as_me: failed program was:" >&5
14002 sed 's/^/| /' conftest.$ac_ext >&5
14007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14008 if test $ac_cv_c_bigendian = unknown; then
14009 # See if sys/param.h defines the BYTE_ORDER macro.
14010 cat >conftest.$ac_ext <<_ACEOF
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h. */
14016 #include <sys/types.h>
14017 #include <sys/param.h>
14022 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14023 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14025 bogus endian macros
14032 rm -f conftest.$ac_objext
14033 if { (ac_try="$ac_compile"
14034 case "(($ac_try" in
14035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14036 *) ac_try_echo=$ac_try;;
14038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14039 $as_echo "$ac_try_echo") >&5
14040 (eval "$ac_compile") 2>conftest.er1
14042 grep -v '^ *+' conftest.er1 >conftest.err
14044 cat conftest.err >&5
14045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } && {
14047 test -z "$ac_c_werror_flag" ||
14048 test ! -s conftest.err
14049 } && test -s conftest.$ac_objext; then
14050 # It does; now see whether it defined to BIG_ENDIAN or not.
14051 cat >conftest.$ac_ext <<_ACEOF
14054 cat confdefs.h >>conftest.$ac_ext
14055 cat >>conftest.$ac_ext <<_ACEOF
14056 /* end confdefs.h. */
14057 #include <sys/types.h>
14058 #include <sys/param.h>
14063 #if BYTE_ORDER != BIG_ENDIAN
14071 rm -f conftest.$ac_objext
14072 if { (ac_try="$ac_compile"
14073 case "(($ac_try" in
14074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075 *) ac_try_echo=$ac_try;;
14077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14078 $as_echo "$ac_try_echo") >&5
14079 (eval "$ac_compile") 2>conftest.er1
14081 grep -v '^ *+' conftest.er1 >conftest.err
14083 cat conftest.err >&5
14084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); } && {
14086 test -z "$ac_c_werror_flag" ||
14087 test ! -s conftest.err
14088 } && test -s conftest.$ac_objext; then
14089 ac_cv_c_bigendian=yes
14091 $as_echo "$as_me: failed program was:" >&5
14092 sed 's/^/| /' conftest.$ac_ext >&5
14094 ac_cv_c_bigendian=no
14097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14099 $as_echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14107 if test $ac_cv_c_bigendian = unknown; then
14108 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14109 cat >conftest.$ac_ext <<_ACEOF
14112 cat confdefs.h >>conftest.$ac_ext
14113 cat >>conftest.$ac_ext <<_ACEOF
14114 /* end confdefs.h. */
14115 #include <limits.h>
14120 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14121 bogus endian macros
14128 rm -f conftest.$ac_objext
14129 if { (ac_try="$ac_compile"
14130 case "(($ac_try" in
14131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14132 *) ac_try_echo=$ac_try;;
14134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14135 $as_echo "$ac_try_echo") >&5
14136 (eval "$ac_compile") 2>conftest.er1
14138 grep -v '^ *+' conftest.er1 >conftest.err
14140 cat conftest.err >&5
14141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); } && {
14143 test -z "$ac_c_werror_flag" ||
14144 test ! -s conftest.err
14145 } && test -s conftest.$ac_objext; then
14146 # It does; now see whether it defined to _BIG_ENDIAN or not.
14147 cat >conftest.$ac_ext <<_ACEOF
14150 cat confdefs.h >>conftest.$ac_ext
14151 cat >>conftest.$ac_ext <<_ACEOF
14152 /* end confdefs.h. */
14153 #include <limits.h>
14158 #ifndef _BIG_ENDIAN
14166 rm -f conftest.$ac_objext
14167 if { (ac_try="$ac_compile"
14168 case "(($ac_try" in
14169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14170 *) ac_try_echo=$ac_try;;
14172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14173 $as_echo "$ac_try_echo") >&5
14174 (eval "$ac_compile") 2>conftest.er1
14176 grep -v '^ *+' conftest.er1 >conftest.err
14178 cat conftest.err >&5
14179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); } && {
14181 test -z "$ac_c_werror_flag" ||
14182 test ! -s conftest.err
14183 } && test -s conftest.$ac_objext; then
14184 ac_cv_c_bigendian=yes
14186 $as_echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14189 ac_cv_c_bigendian=no
14192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14194 $as_echo "$as_me: failed program was:" >&5
14195 sed 's/^/| /' conftest.$ac_ext >&5
14200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14202 if test $ac_cv_c_bigendian = unknown; then
14203 # Compile a test program.
14204 if test "$cross_compiling" = yes; then
14205 # Try to guess by grepping values from an object file.
14206 cat >conftest.$ac_ext <<_ACEOF
14209 cat confdefs.h >>conftest.$ac_ext
14210 cat >>conftest.$ac_ext <<_ACEOF
14211 /* end confdefs.h. */
14212 short int ascii_mm[] =
14213 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14214 short int ascii_ii[] =
14215 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14216 int use_ascii (int i) {
14217 return ascii_mm[i] + ascii_ii[i];
14219 short int ebcdic_ii[] =
14220 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14221 short int ebcdic_mm[] =
14222 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14223 int use_ebcdic (int i) {
14224 return ebcdic_mm[i] + ebcdic_ii[i];
14231 return use_ascii (foo) == use_ebcdic (foo);
14236 rm -f conftest.$ac_objext
14237 if { (ac_try="$ac_compile"
14238 case "(($ac_try" in
14239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14240 *) ac_try_echo=$ac_try;;
14242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14243 $as_echo "$ac_try_echo") >&5
14244 (eval "$ac_compile") 2>conftest.er1
14246 grep -v '^ *+' conftest.er1 >conftest.err
14248 cat conftest.err >&5
14249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); } && {
14251 test -z "$ac_c_werror_flag" ||
14252 test ! -s conftest.err
14253 } && test -s conftest.$ac_objext; then
14254 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14255 ac_cv_c_bigendian=yes
14257 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14258 if test "$ac_cv_c_bigendian" = unknown; then
14259 ac_cv_c_bigendian=no
14261 # finding both strings is unlikely to happen, but who knows?
14262 ac_cv_c_bigendian=unknown
14266 $as_echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14274 cat >conftest.$ac_ext <<_ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h. */
14280 $ac_includes_default
14285 /* Are we little or big endian? From Harbison&Steele. */
14289 char c[sizeof (long int)];
14292 return u.c[sizeof (long int) - 1] == 1;
14298 rm -f conftest$ac_exeext
14299 if { (ac_try="$ac_link"
14300 case "(($ac_try" in
14301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302 *) ac_try_echo=$ac_try;;
14304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14305 $as_echo "$ac_try_echo") >&5
14306 (eval "$ac_link") 2>&5
14308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14310 { (case "(($ac_try" in
14311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14312 *) ac_try_echo=$ac_try;;
14314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14315 $as_echo "$ac_try_echo") >&5
14316 (eval "$ac_try") 2>&5
14318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; }; then
14320 ac_cv_c_bigendian=no
14322 $as_echo "$as_me: program exited with status $ac_status" >&5
14323 $as_echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.$ac_ext >&5
14326 ( exit $ac_status )
14327 ac_cv_c_bigendian=yes
14329 rm -rf conftest.dSYM
14330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14336 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14337 $as_echo "$ac_cv_c_bigendian" >&6; }
14338 case $ac_cv_c_bigendian in #(
14340 cat >>confdefs.h <<\_ACEOF
14341 #define WORDS_BIGENDIAN 1
14348 cat >>confdefs.h <<\_ACEOF
14349 #define AC_APPLE_UNIVERSAL_BUILD 1
14354 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14355 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14356 $as_echo "$as_me: error: unknown endianness
14357 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14358 { (exit 1); exit 1; }; } ;;
14361 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14362 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14363 if test "${ac_cv_c_const+set}" = set; then
14364 $as_echo_n "(cached) " >&6
14366 cat >conftest.$ac_ext <<_ACEOF
14369 cat confdefs.h >>conftest.$ac_ext
14370 cat >>conftest.$ac_ext <<_ACEOF
14371 /* end confdefs.h. */
14376 /* FIXME: Include the comments suggested by Paul. */
14377 #ifndef __cplusplus
14378 /* Ultrix mips cc rejects this. */
14379 typedef int charset[2];
14381 /* SunOS 4.1.1 cc rejects this. */
14382 char const *const *pcpcc;
14384 /* NEC SVR4.0.2 mips cc rejects this. */
14385 struct point {int x, y;};
14386 static struct point const zero = {0,0};
14387 /* AIX XL C 1.02.0.0 rejects this.
14388 It does not let you subtract one const X* pointer from another in
14389 an arm of an if-expression whose if-part is not a constant
14391 const char *g = "string";
14392 pcpcc = &g + (g ? g-g : 0);
14393 /* HPUX 7.0 cc rejects these. */
14395 ppc = (char**) pcpcc;
14396 pcpcc = (char const *const *) ppc;
14397 { /* SCO 3.2v4 cc rejects this. */
14399 char const *s = 0 ? (char *) 0 : (char const *) 0;
14404 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14405 int x[] = {25, 17};
14406 const int *foo = &x[0];
14409 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14410 typedef const int *iptr;
14414 { /* AIX XL C 1.02.0.0 rejects this saying
14415 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14416 struct s { int j; const int *ap[3]; };
14417 struct s *b; b->j = 5;
14419 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14420 const int foo = 10;
14421 if (!foo) return 0;
14423 return !cs[0] && !zero.x;
14430 rm -f conftest.$ac_objext
14431 if { (ac_try="$ac_compile"
14432 case "(($ac_try" in
14433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14434 *) ac_try_echo=$ac_try;;
14436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14437 $as_echo "$ac_try_echo") >&5
14438 (eval "$ac_compile") 2>conftest.er1
14440 grep -v '^ *+' conftest.er1 >conftest.err
14442 cat conftest.err >&5
14443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); } && {
14445 test -z "$ac_c_werror_flag" ||
14446 test ! -s conftest.err
14447 } && test -s conftest.$ac_objext; then
14450 $as_echo "$as_me: failed program was:" >&5
14451 sed 's/^/| /' conftest.$ac_ext >&5
14456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14458 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14459 $as_echo "$ac_cv_c_const" >&6; }
14460 if test $ac_cv_c_const = no; then
14462 cat >>confdefs.h <<\_ACEOF
14468 { $as_echo "$as_me:$LINENO: checking for inline" >&5
14469 $as_echo_n "checking for inline... " >&6; }
14470 if test "${ac_cv_c_inline+set}" = set; then
14471 $as_echo_n "(cached) " >&6
14474 for ac_kw in inline __inline__ __inline; do
14475 cat >conftest.$ac_ext <<_ACEOF
14478 cat confdefs.h >>conftest.$ac_ext
14479 cat >>conftest.$ac_ext <<_ACEOF
14480 /* end confdefs.h. */
14481 #ifndef __cplusplus
14483 static $ac_kw foo_t static_foo () {return 0; }
14484 $ac_kw foo_t foo () {return 0; }
14488 rm -f conftest.$ac_objext
14489 if { (ac_try="$ac_compile"
14490 case "(($ac_try" in
14491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14492 *) ac_try_echo=$ac_try;;
14494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14495 $as_echo "$ac_try_echo") >&5
14496 (eval "$ac_compile") 2>conftest.er1
14498 grep -v '^ *+' conftest.er1 >conftest.err
14500 cat conftest.err >&5
14501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); } && {
14503 test -z "$ac_c_werror_flag" ||
14504 test ! -s conftest.err
14505 } && test -s conftest.$ac_objext; then
14506 ac_cv_c_inline=$ac_kw
14508 $as_echo "$as_me: failed program was:" >&5
14509 sed 's/^/| /' conftest.$ac_ext >&5
14514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14515 test "$ac_cv_c_inline" != no && break
14519 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14520 $as_echo "$ac_cv_c_inline" >&6; }
14523 case $ac_cv_c_inline in
14526 case $ac_cv_c_inline in
14528 *) ac_val=$ac_cv_c_inline;;
14530 cat >>confdefs.h <<_ACEOF
14531 #ifndef __cplusplus
14532 #define inline $ac_val
14538 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
14539 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
14540 if test "${pgac_cv_c_inline_quietly+set}" = set; then
14541 $as_echo_n "(cached) " >&6
14543 pgac_cv_c_inline_quietly=no
14544 if test "$ac_cv_c_inline" != no; then
14545 pgac_c_inline_save_werror=$ac_c_werror_flag
14546 ac_c_werror_flag=yes
14547 cat >conftest.$ac_ext <<_ACEOF
14550 cat confdefs.h >>conftest.$ac_ext
14551 cat >>conftest.$ac_ext <<_ACEOF
14552 /* end confdefs.h. */
14553 static inline int fun () {return 0;}
14562 rm -f conftest.$ac_objext conftest$ac_exeext
14563 if { (ac_try="$ac_link"
14564 case "(($ac_try" in
14565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14569 $as_echo "$ac_try_echo") >&5
14570 (eval "$ac_link") 2>conftest.er1
14572 grep -v '^ *+' conftest.er1 >conftest.err
14574 cat conftest.err >&5
14575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } && {
14577 test -z "$ac_c_werror_flag" ||
14578 test ! -s conftest.err
14579 } && test -s conftest$ac_exeext && {
14580 test "$cross_compiling" = yes ||
14581 $as_test_x conftest$ac_exeext
14583 pgac_cv_c_inline_quietly=yes
14585 $as_echo "$as_me: failed program was:" >&5
14586 sed 's/^/| /' conftest.$ac_ext >&5
14591 rm -rf conftest.dSYM
14592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14593 conftest$ac_exeext conftest.$ac_ext
14594 ac_c_werror_flag=$pgac_c_inline_save_werror
14597 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
14598 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
14599 if test "$pgac_cv_c_inline_quietly" != no; then
14601 cat >>confdefs.h <<_ACEOF
14602 #define USE_INLINE 1
14607 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14608 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
14609 if test "${ac_cv_c_stringize+set}" = set; then
14610 $as_echo_n "(cached) " >&6
14612 cat >conftest.$ac_ext <<_ACEOF
14615 cat confdefs.h >>conftest.$ac_ext
14616 cat >>conftest.$ac_ext <<_ACEOF
14617 /* end confdefs.h. */
14620 char *s = x(teststring);
14622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14623 $EGREP "#teststring" >/dev/null 2>&1; then
14624 ac_cv_c_stringize=no
14626 ac_cv_c_stringize=yes
14631 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
14632 $as_echo "$ac_cv_c_stringize" >&6; }
14633 if test $ac_cv_c_stringize = yes; then
14635 cat >>confdefs.h <<\_ACEOF
14636 #define HAVE_STRINGIZE 1
14641 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
14642 $as_echo_n "checking for signed types... " >&6; }
14643 if test "${pgac_cv_c_signed+set}" = set; then
14644 $as_echo_n "(cached) " >&6
14646 cat >conftest.$ac_ext <<_ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h. */
14656 signed char c; signed short s; signed int i;
14661 rm -f conftest.$ac_objext
14662 if { (ac_try="$ac_compile"
14663 case "(($ac_try" in
14664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14665 *) ac_try_echo=$ac_try;;
14667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14668 $as_echo "$ac_try_echo") >&5
14669 (eval "$ac_compile") 2>conftest.er1
14671 grep -v '^ *+' conftest.er1 >conftest.err
14673 cat conftest.err >&5
14674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); } && {
14676 test -z "$ac_c_werror_flag" ||
14677 test ! -s conftest.err
14678 } && test -s conftest.$ac_objext; then
14679 pgac_cv_c_signed=yes
14681 $as_echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.$ac_ext >&5
14684 pgac_cv_c_signed=no
14687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14689 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14690 $as_echo "$pgac_cv_c_signed" >&6; }
14691 if test x"$pgac_cv_c_signed" = xno ; then
14693 cat >>confdefs.h <<\_ACEOF
14694 #define signed /**/
14698 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
14699 $as_echo_n "checking for working volatile... " >&6; }
14700 if test "${ac_cv_c_volatile+set}" = set; then
14701 $as_echo_n "(cached) " >&6
14703 cat >conftest.$ac_ext <<_ACEOF
14706 cat confdefs.h >>conftest.$ac_ext
14707 cat >>conftest.$ac_ext <<_ACEOF
14708 /* end confdefs.h. */
14715 int * volatile y = (int *) 0;
14721 rm -f conftest.$ac_objext
14722 if { (ac_try="$ac_compile"
14723 case "(($ac_try" in
14724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14725 *) ac_try_echo=$ac_try;;
14727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14728 $as_echo "$ac_try_echo") >&5
14729 (eval "$ac_compile") 2>conftest.er1
14731 grep -v '^ *+' conftest.er1 >conftest.err
14733 cat conftest.err >&5
14734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } && {
14736 test -z "$ac_c_werror_flag" ||
14737 test ! -s conftest.err
14738 } && test -s conftest.$ac_objext; then
14739 ac_cv_c_volatile=yes
14741 $as_echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14744 ac_cv_c_volatile=no
14747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14749 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14750 $as_echo "$ac_cv_c_volatile" >&6; }
14751 if test $ac_cv_c_volatile = no; then
14753 cat >>confdefs.h <<\_ACEOF
14754 #define volatile /**/
14759 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
14760 $as_echo_n "checking for __func__... " >&6; }
14761 if test "${pgac_cv_funcname_func_support+set}" = set; then
14762 $as_echo_n "(cached) " >&6
14764 cat >conftest.$ac_ext <<_ACEOF
14767 cat confdefs.h >>conftest.$ac_ext
14768 cat >>conftest.$ac_ext <<_ACEOF
14769 /* end confdefs.h. */
14774 printf("%s\n", __func__);
14779 rm -f conftest.$ac_objext
14780 if { (ac_try="$ac_compile"
14781 case "(($ac_try" in
14782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14783 *) ac_try_echo=$ac_try;;
14785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14786 $as_echo "$ac_try_echo") >&5
14787 (eval "$ac_compile") 2>conftest.er1
14789 grep -v '^ *+' conftest.er1 >conftest.err
14791 cat conftest.err >&5
14792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); } && {
14794 test -z "$ac_c_werror_flag" ||
14795 test ! -s conftest.err
14796 } && test -s conftest.$ac_objext; then
14797 pgac_cv_funcname_func_support=yes
14799 $as_echo "$as_me: failed program was:" >&5
14800 sed 's/^/| /' conftest.$ac_ext >&5
14802 pgac_cv_funcname_func_support=no
14805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14807 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14808 $as_echo "$pgac_cv_funcname_func_support" >&6; }
14809 if test x"$pgac_cv_funcname_func_support" = xyes ; then
14811 cat >>confdefs.h <<\_ACEOF
14812 #define HAVE_FUNCNAME__FUNC 1
14816 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14817 $as_echo_n "checking for __FUNCTION__... " >&6; }
14818 if test "${pgac_cv_funcname_function_support+set}" = set; then
14819 $as_echo_n "(cached) " >&6
14821 cat >conftest.$ac_ext <<_ACEOF
14824 cat confdefs.h >>conftest.$ac_ext
14825 cat >>conftest.$ac_ext <<_ACEOF
14826 /* end confdefs.h. */
14831 printf("%s\n", __FUNCTION__);
14836 rm -f conftest.$ac_objext
14837 if { (ac_try="$ac_compile"
14838 case "(($ac_try" in
14839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14840 *) ac_try_echo=$ac_try;;
14842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14843 $as_echo "$ac_try_echo") >&5
14844 (eval "$ac_compile") 2>conftest.er1
14846 grep -v '^ *+' conftest.er1 >conftest.err
14848 cat conftest.err >&5
14849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); } && {
14851 test -z "$ac_c_werror_flag" ||
14852 test ! -s conftest.err
14853 } && test -s conftest.$ac_objext; then
14854 pgac_cv_funcname_function_support=yes
14856 $as_echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14859 pgac_cv_funcname_function_support=no
14862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14864 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14865 $as_echo "$pgac_cv_funcname_function_support" >&6; }
14866 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14868 cat >>confdefs.h <<\_ACEOF
14869 #define HAVE_FUNCNAME__FUNCTION 1
14874 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14875 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14876 if test "${ac_cv_struct_tm+set}" = set; then
14877 $as_echo_n "(cached) " >&6
14879 cat >conftest.$ac_ext <<_ACEOF
14882 cat confdefs.h >>conftest.$ac_ext
14883 cat >>conftest.$ac_ext <<_ACEOF
14884 /* end confdefs.h. */
14885 #include <sys/types.h>
14892 int *p = &tm.tm_sec;
14898 rm -f conftest.$ac_objext
14899 if { (ac_try="$ac_compile"
14900 case "(($ac_try" in
14901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14902 *) ac_try_echo=$ac_try;;
14904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14905 $as_echo "$ac_try_echo") >&5
14906 (eval "$ac_compile") 2>conftest.er1
14908 grep -v '^ *+' conftest.er1 >conftest.err
14910 cat conftest.err >&5
14911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); } && {
14913 test -z "$ac_c_werror_flag" ||
14914 test ! -s conftest.err
14915 } && test -s conftest.$ac_objext; then
14916 ac_cv_struct_tm=time.h
14918 $as_echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14921 ac_cv_struct_tm=sys/time.h
14924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14926 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14927 $as_echo "$ac_cv_struct_tm" >&6; }
14928 if test $ac_cv_struct_tm = sys/time.h; then
14930 cat >>confdefs.h <<\_ACEOF
14931 #define TM_IN_SYS_TIME 1
14936 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14937 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
14938 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14939 $as_echo_n "(cached) " >&6
14941 cat >conftest.$ac_ext <<_ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h. */
14947 #include <sys/types.h>
14948 #include <$ac_cv_struct_tm>
14954 static struct tm ac_aggr;
14955 if (ac_aggr.tm_zone)
14961 rm -f conftest.$ac_objext
14962 if { (ac_try="$ac_compile"
14963 case "(($ac_try" in
14964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965 *) ac_try_echo=$ac_try;;
14967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14968 $as_echo "$ac_try_echo") >&5
14969 (eval "$ac_compile") 2>conftest.er1
14971 grep -v '^ *+' conftest.er1 >conftest.err
14973 cat conftest.err >&5
14974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } && {
14976 test -z "$ac_c_werror_flag" ||
14977 test ! -s conftest.err
14978 } && test -s conftest.$ac_objext; then
14979 ac_cv_member_struct_tm_tm_zone=yes
14981 $as_echo "$as_me: failed program was:" >&5
14982 sed 's/^/| /' conftest.$ac_ext >&5
14984 cat >conftest.$ac_ext <<_ACEOF
14987 cat confdefs.h >>conftest.$ac_ext
14988 cat >>conftest.$ac_ext <<_ACEOF
14989 /* end confdefs.h. */
14990 #include <sys/types.h>
14991 #include <$ac_cv_struct_tm>
14997 static struct tm ac_aggr;
14998 if (sizeof ac_aggr.tm_zone)
15004 rm -f conftest.$ac_objext
15005 if { (ac_try="$ac_compile"
15006 case "(($ac_try" in
15007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15008 *) ac_try_echo=$ac_try;;
15010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15011 $as_echo "$ac_try_echo") >&5
15012 (eval "$ac_compile") 2>conftest.er1
15014 grep -v '^ *+' conftest.er1 >conftest.err
15016 cat conftest.err >&5
15017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); } && {
15019 test -z "$ac_c_werror_flag" ||
15020 test ! -s conftest.err
15021 } && test -s conftest.$ac_objext; then
15022 ac_cv_member_struct_tm_tm_zone=yes
15024 $as_echo "$as_me: failed program was:" >&5
15025 sed 's/^/| /' conftest.$ac_ext >&5
15027 ac_cv_member_struct_tm_tm_zone=no
15030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15035 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15036 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15037 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15039 cat >>confdefs.h <<_ACEOF
15040 #define HAVE_STRUCT_TM_TM_ZONE 1
15046 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15048 cat >>confdefs.h <<\_ACEOF
15049 #define HAVE_TM_ZONE 1
15053 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15054 $as_echo_n "checking for tzname... " >&6; }
15055 if test "${ac_cv_var_tzname+set}" = set; then
15056 $as_echo_n "(cached) " >&6
15058 cat >conftest.$ac_ext <<_ACEOF
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h. */
15065 #ifndef tzname /* For SGI. */
15066 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
15077 rm -f conftest.$ac_objext conftest$ac_exeext
15078 if { (ac_try="$ac_link"
15079 case "(($ac_try" in
15080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15081 *) ac_try_echo=$ac_try;;
15083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15084 $as_echo "$ac_try_echo") >&5
15085 (eval "$ac_link") 2>conftest.er1
15087 grep -v '^ *+' conftest.er1 >conftest.err
15089 cat conftest.err >&5
15090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } && {
15092 test -z "$ac_c_werror_flag" ||
15093 test ! -s conftest.err
15094 } && test -s conftest$ac_exeext && {
15095 test "$cross_compiling" = yes ||
15096 $as_test_x conftest$ac_exeext
15098 ac_cv_var_tzname=yes
15100 $as_echo "$as_me: failed program was:" >&5
15101 sed 's/^/| /' conftest.$ac_ext >&5
15103 ac_cv_var_tzname=no
15106 rm -rf conftest.dSYM
15107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15108 conftest$ac_exeext conftest.$ac_ext
15110 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15111 $as_echo "$ac_cv_var_tzname" >&6; }
15112 if test $ac_cv_var_tzname = yes; then
15114 cat >>confdefs.h <<\_ACEOF
15115 #define HAVE_TZNAME 1
15120 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15121 $as_echo_n "checking for union semun... " >&6; }
15122 if test "${ac_cv_type_union_semun+set}" = set; then
15123 $as_echo_n "(cached) " >&6
15125 ac_cv_type_union_semun=no
15126 cat >conftest.$ac_ext <<_ACEOF
15129 cat confdefs.h >>conftest.$ac_ext
15130 cat >>conftest.$ac_ext <<_ACEOF
15131 /* end confdefs.h. */
15132 #include <sys/types.h>
15133 #include <sys/ipc.h>
15134 #include <sys/sem.h>
15139 if (sizeof (union semun))
15145 rm -f conftest.$ac_objext
15146 if { (ac_try="$ac_compile"
15147 case "(($ac_try" in
15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149 *) ac_try_echo=$ac_try;;
15151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15152 $as_echo "$ac_try_echo") >&5
15153 (eval "$ac_compile") 2>conftest.er1
15155 grep -v '^ *+' conftest.er1 >conftest.err
15157 cat conftest.err >&5
15158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } && {
15160 test -z "$ac_c_werror_flag" ||
15161 test ! -s conftest.err
15162 } && test -s conftest.$ac_objext; then
15163 cat >conftest.$ac_ext <<_ACEOF
15166 cat confdefs.h >>conftest.$ac_ext
15167 cat >>conftest.$ac_ext <<_ACEOF
15168 /* end confdefs.h. */
15169 #include <sys/types.h>
15170 #include <sys/ipc.h>
15171 #include <sys/sem.h>
15176 if (sizeof ((union semun)))
15182 rm -f conftest.$ac_objext
15183 if { (ac_try="$ac_compile"
15184 case "(($ac_try" in
15185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15186 *) ac_try_echo=$ac_try;;
15188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15189 $as_echo "$ac_try_echo") >&5
15190 (eval "$ac_compile") 2>conftest.er1
15192 grep -v '^ *+' conftest.er1 >conftest.err
15194 cat conftest.err >&5
15195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); } && {
15197 test -z "$ac_c_werror_flag" ||
15198 test ! -s conftest.err
15199 } && test -s conftest.$ac_objext; then
15202 $as_echo "$as_me: failed program was:" >&5
15203 sed 's/^/| /' conftest.$ac_ext >&5
15205 ac_cv_type_union_semun=yes
15208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15210 $as_echo "$as_me: failed program was:" >&5
15211 sed 's/^/| /' conftest.$ac_ext >&5
15216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15218 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15219 $as_echo "$ac_cv_type_union_semun" >&6; }
15220 if test "x$ac_cv_type_union_semun" = x""yes; then
15222 cat >>confdefs.h <<_ACEOF
15223 #define HAVE_UNION_SEMUN 1
15229 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15230 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15231 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15232 $as_echo_n "(cached) " >&6
15234 ac_cv_type_struct_sockaddr_un=no
15235 cat >conftest.$ac_ext <<_ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h. */
15241 #include <sys/types.h>
15242 #ifdef HAVE_SYS_UN_H
15243 #include <sys/un.h>
15250 if (sizeof (struct sockaddr_un))
15256 rm -f conftest.$ac_objext
15257 if { (ac_try="$ac_compile"
15258 case "(($ac_try" in
15259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15260 *) ac_try_echo=$ac_try;;
15262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15263 $as_echo "$ac_try_echo") >&5
15264 (eval "$ac_compile") 2>conftest.er1
15266 grep -v '^ *+' conftest.er1 >conftest.err
15268 cat conftest.err >&5
15269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } && {
15271 test -z "$ac_c_werror_flag" ||
15272 test ! -s conftest.err
15273 } && test -s conftest.$ac_objext; then
15274 cat >conftest.$ac_ext <<_ACEOF
15277 cat confdefs.h >>conftest.$ac_ext
15278 cat >>conftest.$ac_ext <<_ACEOF
15279 /* end confdefs.h. */
15280 #include <sys/types.h>
15281 #ifdef HAVE_SYS_UN_H
15282 #include <sys/un.h>
15289 if (sizeof ((struct sockaddr_un)))
15295 rm -f conftest.$ac_objext
15296 if { (ac_try="$ac_compile"
15297 case "(($ac_try" in
15298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15299 *) ac_try_echo=$ac_try;;
15301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15302 $as_echo "$ac_try_echo") >&5
15303 (eval "$ac_compile") 2>conftest.er1
15305 grep -v '^ *+' conftest.er1 >conftest.err
15307 cat conftest.err >&5
15308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); } && {
15310 test -z "$ac_c_werror_flag" ||
15311 test ! -s conftest.err
15312 } && test -s conftest.$ac_objext; then
15315 $as_echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15318 ac_cv_type_struct_sockaddr_un=yes
15321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15323 $as_echo "$as_me: failed program was:" >&5
15324 sed 's/^/| /' conftest.$ac_ext >&5
15329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15331 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15332 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15333 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
15335 cat >>confdefs.h <<_ACEOF
15336 #define HAVE_STRUCT_SOCKADDR_UN 1
15340 cat >>confdefs.h <<\_ACEOF
15341 #define HAVE_UNIX_SOCKETS 1
15346 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
15347 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15348 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
15349 $as_echo_n "(cached) " >&6
15351 ac_cv_type_struct_sockaddr_storage=no
15352 cat >conftest.$ac_ext <<_ACEOF
15355 cat confdefs.h >>conftest.$ac_ext
15356 cat >>conftest.$ac_ext <<_ACEOF
15357 /* end confdefs.h. */
15358 #include <sys/types.h>
15359 #ifdef HAVE_SYS_SOCKET_H
15360 #include <sys/socket.h>
15367 if (sizeof (struct sockaddr_storage))
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 #ifdef HAVE_SYS_SOCKET_H
15399 #include <sys/socket.h>
15406 if (sizeof ((struct sockaddr_storage)))
15412 rm -f conftest.$ac_objext
15413 if { (ac_try="$ac_compile"
15414 case "(($ac_try" in
15415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416 *) ac_try_echo=$ac_try;;
15418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15419 $as_echo "$ac_try_echo") >&5
15420 (eval "$ac_compile") 2>conftest.er1
15422 grep -v '^ *+' conftest.er1 >conftest.err
15424 cat conftest.err >&5
15425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); } && {
15427 test -z "$ac_c_werror_flag" ||
15428 test ! -s conftest.err
15429 } && test -s conftest.$ac_objext; then
15432 $as_echo "$as_me: failed program was:" >&5
15433 sed 's/^/| /' conftest.$ac_ext >&5
15435 ac_cv_type_struct_sockaddr_storage=yes
15438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15440 $as_echo "$as_me: failed program was:" >&5
15441 sed 's/^/| /' conftest.$ac_ext >&5
15446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15448 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
15449 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
15450 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
15452 cat >>confdefs.h <<_ACEOF
15453 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15459 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
15460 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
15461 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
15462 $as_echo_n "(cached) " >&6
15464 cat >conftest.$ac_ext <<_ACEOF
15467 cat confdefs.h >>conftest.$ac_ext
15468 cat >>conftest.$ac_ext <<_ACEOF
15469 /* end confdefs.h. */
15470 #include <sys/types.h>
15471 #ifdef HAVE_SYS_SOCKET_H
15472 #include <sys/socket.h>
15479 static struct sockaddr_storage ac_aggr;
15480 if (ac_aggr.ss_family)
15486 rm -f conftest.$ac_objext
15487 if { (ac_try="$ac_compile"
15488 case "(($ac_try" in
15489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15490 *) ac_try_echo=$ac_try;;
15492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15493 $as_echo "$ac_try_echo") >&5
15494 (eval "$ac_compile") 2>conftest.er1
15496 grep -v '^ *+' conftest.er1 >conftest.err
15498 cat conftest.err >&5
15499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); } && {
15501 test -z "$ac_c_werror_flag" ||
15502 test ! -s conftest.err
15503 } && test -s conftest.$ac_objext; then
15504 ac_cv_member_struct_sockaddr_storage_ss_family=yes
15506 $as_echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15509 cat >conftest.$ac_ext <<_ACEOF
15512 cat confdefs.h >>conftest.$ac_ext
15513 cat >>conftest.$ac_ext <<_ACEOF
15514 /* end confdefs.h. */
15515 #include <sys/types.h>
15516 #ifdef HAVE_SYS_SOCKET_H
15517 #include <sys/socket.h>
15524 static struct sockaddr_storage ac_aggr;
15525 if (sizeof ac_aggr.ss_family)
15531 rm -f conftest.$ac_objext
15532 if { (ac_try="$ac_compile"
15533 case "(($ac_try" in
15534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15535 *) ac_try_echo=$ac_try;;
15537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15538 $as_echo "$ac_try_echo") >&5
15539 (eval "$ac_compile") 2>conftest.er1
15541 grep -v '^ *+' conftest.er1 >conftest.err
15543 cat conftest.err >&5
15544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } && {
15546 test -z "$ac_c_werror_flag" ||
15547 test ! -s conftest.err
15548 } && test -s conftest.$ac_objext; then
15549 ac_cv_member_struct_sockaddr_storage_ss_family=yes
15551 $as_echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15554 ac_cv_member_struct_sockaddr_storage_ss_family=no
15557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15562 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
15563 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
15564 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
15566 cat >>confdefs.h <<_ACEOF
15567 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15572 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
15573 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
15574 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
15575 $as_echo_n "(cached) " >&6
15577 cat >conftest.$ac_ext <<_ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h. */
15583 #include <sys/types.h>
15584 #ifdef HAVE_SYS_SOCKET_H
15585 #include <sys/socket.h>
15592 static struct sockaddr_storage ac_aggr;
15593 if (ac_aggr.__ss_family)
15599 rm -f conftest.$ac_objext
15600 if { (ac_try="$ac_compile"
15601 case "(($ac_try" in
15602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15603 *) ac_try_echo=$ac_try;;
15605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15606 $as_echo "$ac_try_echo") >&5
15607 (eval "$ac_compile") 2>conftest.er1
15609 grep -v '^ *+' conftest.er1 >conftest.err
15611 cat conftest.err >&5
15612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); } && {
15614 test -z "$ac_c_werror_flag" ||
15615 test ! -s conftest.err
15616 } && test -s conftest.$ac_objext; then
15617 ac_cv_member_struct_sockaddr_storage___ss_family=yes
15619 $as_echo "$as_me: failed program was:" >&5
15620 sed 's/^/| /' conftest.$ac_ext >&5
15622 cat >conftest.$ac_ext <<_ACEOF
15625 cat confdefs.h >>conftest.$ac_ext
15626 cat >>conftest.$ac_ext <<_ACEOF
15627 /* end confdefs.h. */
15628 #include <sys/types.h>
15629 #ifdef HAVE_SYS_SOCKET_H
15630 #include <sys/socket.h>
15637 static struct sockaddr_storage ac_aggr;
15638 if (sizeof ac_aggr.__ss_family)
15644 rm -f conftest.$ac_objext
15645 if { (ac_try="$ac_compile"
15646 case "(($ac_try" in
15647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15648 *) ac_try_echo=$ac_try;;
15650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15651 $as_echo "$ac_try_echo") >&5
15652 (eval "$ac_compile") 2>conftest.er1
15654 grep -v '^ *+' conftest.er1 >conftest.err
15656 cat conftest.err >&5
15657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); } && {
15659 test -z "$ac_c_werror_flag" ||
15660 test ! -s conftest.err
15661 } && test -s conftest.$ac_objext; then
15662 ac_cv_member_struct_sockaddr_storage___ss_family=yes
15664 $as_echo "$as_me: failed program was:" >&5
15665 sed 's/^/| /' conftest.$ac_ext >&5
15667 ac_cv_member_struct_sockaddr_storage___ss_family=no
15670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15675 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
15676 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
15677 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
15679 cat >>confdefs.h <<_ACEOF
15680 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15685 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
15686 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
15687 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
15688 $as_echo_n "(cached) " >&6
15690 cat >conftest.$ac_ext <<_ACEOF
15693 cat confdefs.h >>conftest.$ac_ext
15694 cat >>conftest.$ac_ext <<_ACEOF
15695 /* end confdefs.h. */
15696 #include <sys/types.h>
15697 #ifdef HAVE_SYS_SOCKET_H
15698 #include <sys/socket.h>
15705 static struct sockaddr_storage ac_aggr;
15706 if (ac_aggr.ss_len)
15712 rm -f conftest.$ac_objext
15713 if { (ac_try="$ac_compile"
15714 case "(($ac_try" in
15715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15716 *) ac_try_echo=$ac_try;;
15718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15719 $as_echo "$ac_try_echo") >&5
15720 (eval "$ac_compile") 2>conftest.er1
15722 grep -v '^ *+' conftest.er1 >conftest.err
15724 cat conftest.err >&5
15725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); } && {
15727 test -z "$ac_c_werror_flag" ||
15728 test ! -s conftest.err
15729 } && test -s conftest.$ac_objext; then
15730 ac_cv_member_struct_sockaddr_storage_ss_len=yes
15732 $as_echo "$as_me: failed program was:" >&5
15733 sed 's/^/| /' conftest.$ac_ext >&5
15735 cat >conftest.$ac_ext <<_ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h. */
15741 #include <sys/types.h>
15742 #ifdef HAVE_SYS_SOCKET_H
15743 #include <sys/socket.h>
15750 static struct sockaddr_storage ac_aggr;
15751 if (sizeof ac_aggr.ss_len)
15757 rm -f conftest.$ac_objext
15758 if { (ac_try="$ac_compile"
15759 case "(($ac_try" in
15760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15761 *) ac_try_echo=$ac_try;;
15763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15764 $as_echo "$ac_try_echo") >&5
15765 (eval "$ac_compile") 2>conftest.er1
15767 grep -v '^ *+' conftest.er1 >conftest.err
15769 cat conftest.err >&5
15770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); } && {
15772 test -z "$ac_c_werror_flag" ||
15773 test ! -s conftest.err
15774 } && test -s conftest.$ac_objext; then
15775 ac_cv_member_struct_sockaddr_storage_ss_len=yes
15777 $as_echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15780 ac_cv_member_struct_sockaddr_storage_ss_len=no
15783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15788 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
15789 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
15790 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
15792 cat >>confdefs.h <<_ACEOF
15793 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
15798 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
15799 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
15800 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
15801 $as_echo_n "(cached) " >&6
15803 cat >conftest.$ac_ext <<_ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h. */
15809 #include <sys/types.h>
15810 #ifdef HAVE_SYS_SOCKET_H
15811 #include <sys/socket.h>
15818 static struct sockaddr_storage ac_aggr;
15819 if (ac_aggr.__ss_len)
15825 rm -f conftest.$ac_objext
15826 if { (ac_try="$ac_compile"
15827 case "(($ac_try" in
15828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15829 *) ac_try_echo=$ac_try;;
15831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15832 $as_echo "$ac_try_echo") >&5
15833 (eval "$ac_compile") 2>conftest.er1
15835 grep -v '^ *+' conftest.er1 >conftest.err
15837 cat conftest.err >&5
15838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); } && {
15840 test -z "$ac_c_werror_flag" ||
15841 test ! -s conftest.err
15842 } && test -s conftest.$ac_objext; then
15843 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15845 $as_echo "$as_me: failed program was:" >&5
15846 sed 's/^/| /' conftest.$ac_ext >&5
15848 cat >conftest.$ac_ext <<_ACEOF
15851 cat confdefs.h >>conftest.$ac_ext
15852 cat >>conftest.$ac_ext <<_ACEOF
15853 /* end confdefs.h. */
15854 #include <sys/types.h>
15855 #ifdef HAVE_SYS_SOCKET_H
15856 #include <sys/socket.h>
15863 static struct sockaddr_storage ac_aggr;
15864 if (sizeof ac_aggr.__ss_len)
15870 rm -f conftest.$ac_objext
15871 if { (ac_try="$ac_compile"
15872 case "(($ac_try" in
15873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15874 *) ac_try_echo=$ac_try;;
15876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15877 $as_echo "$ac_try_echo") >&5
15878 (eval "$ac_compile") 2>conftest.er1
15880 grep -v '^ *+' conftest.er1 >conftest.err
15882 cat conftest.err >&5
15883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } && {
15885 test -z "$ac_c_werror_flag" ||
15886 test ! -s conftest.err
15887 } && test -s conftest.$ac_objext; then
15888 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15890 $as_echo "$as_me: failed program was:" >&5
15891 sed 's/^/| /' conftest.$ac_ext >&5
15893 ac_cv_member_struct_sockaddr_storage___ss_len=no
15896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15901 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
15902 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
15903 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
15905 cat >>confdefs.h <<_ACEOF
15906 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
15911 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15912 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
15913 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15914 $as_echo_n "(cached) " >&6
15916 cat >conftest.$ac_ext <<_ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15922 #include <sys/types.h>
15923 #ifdef HAVE_SYS_SOCKET_H
15924 #include <sys/socket.h>
15931 static struct sockaddr ac_aggr;
15932 if (ac_aggr.sa_len)
15938 rm -f conftest.$ac_objext
15939 if { (ac_try="$ac_compile"
15940 case "(($ac_try" in
15941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15942 *) ac_try_echo=$ac_try;;
15944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15945 $as_echo "$ac_try_echo") >&5
15946 (eval "$ac_compile") 2>conftest.er1
15948 grep -v '^ *+' conftest.er1 >conftest.err
15950 cat conftest.err >&5
15951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); } && {
15953 test -z "$ac_c_werror_flag" ||
15954 test ! -s conftest.err
15955 } && test -s conftest.$ac_objext; then
15956 ac_cv_member_struct_sockaddr_sa_len=yes
15958 $as_echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.$ac_ext >&5
15961 cat >conftest.$ac_ext <<_ACEOF
15964 cat confdefs.h >>conftest.$ac_ext
15965 cat >>conftest.$ac_ext <<_ACEOF
15966 /* end confdefs.h. */
15967 #include <sys/types.h>
15968 #ifdef HAVE_SYS_SOCKET_H
15969 #include <sys/socket.h>
15976 static struct sockaddr ac_aggr;
15977 if (sizeof ac_aggr.sa_len)
15983 rm -f conftest.$ac_objext
15984 if { (ac_try="$ac_compile"
15985 case "(($ac_try" in
15986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987 *) ac_try_echo=$ac_try;;
15989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15990 $as_echo "$ac_try_echo") >&5
15991 (eval "$ac_compile") 2>conftest.er1
15993 grep -v '^ *+' conftest.er1 >conftest.err
15995 cat conftest.err >&5
15996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); } && {
15998 test -z "$ac_c_werror_flag" ||
15999 test ! -s conftest.err
16000 } && test -s conftest.$ac_objext; then
16001 ac_cv_member_struct_sockaddr_sa_len=yes
16003 $as_echo "$as_me: failed program was:" >&5
16004 sed 's/^/| /' conftest.$ac_ext >&5
16006 ac_cv_member_struct_sockaddr_sa_len=no
16009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16014 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16015 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16016 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16018 cat >>confdefs.h <<_ACEOF
16019 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16025 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16026 $as_echo_n "checking for struct addrinfo... " >&6; }
16027 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16028 $as_echo_n "(cached) " >&6
16030 ac_cv_type_struct_addrinfo=no
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 #include <sys/socket.h>
16045 if (sizeof (struct addrinfo))
16051 rm -f conftest.$ac_objext
16052 if { (ac_try="$ac_compile"
16053 case "(($ac_try" in
16054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16055 *) ac_try_echo=$ac_try;;
16057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16058 $as_echo "$ac_try_echo") >&5
16059 (eval "$ac_compile") 2>conftest.er1
16061 grep -v '^ *+' conftest.er1 >conftest.err
16063 cat conftest.err >&5
16064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); } && {
16066 test -z "$ac_c_werror_flag" ||
16067 test ! -s conftest.err
16068 } && test -s conftest.$ac_objext; then
16069 cat >conftest.$ac_ext <<_ACEOF
16072 cat confdefs.h >>conftest.$ac_ext
16073 cat >>conftest.$ac_ext <<_ACEOF
16074 /* end confdefs.h. */
16075 #include <sys/types.h>
16076 #include <sys/socket.h>
16083 if (sizeof ((struct addrinfo)))
16089 rm -f conftest.$ac_objext
16090 if { (ac_try="$ac_compile"
16091 case "(($ac_try" in
16092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093 *) ac_try_echo=$ac_try;;
16095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16096 $as_echo "$ac_try_echo") >&5
16097 (eval "$ac_compile") 2>conftest.er1
16099 grep -v '^ *+' conftest.er1 >conftest.err
16101 cat conftest.err >&5
16102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16103 (exit $ac_status); } && {
16104 test -z "$ac_c_werror_flag" ||
16105 test ! -s conftest.err
16106 } && test -s conftest.$ac_objext; then
16109 $as_echo "$as_me: failed program was:" >&5
16110 sed 's/^/| /' conftest.$ac_ext >&5
16112 ac_cv_type_struct_addrinfo=yes
16115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16117 $as_echo "$as_me: failed program was:" >&5
16118 sed 's/^/| /' conftest.$ac_ext >&5
16123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16125 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16126 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16127 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16129 cat >>confdefs.h <<_ACEOF
16130 #define HAVE_STRUCT_ADDRINFO 1
16137 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16138 $as_echo_n "checking for intptr_t... " >&6; }
16139 if test "${ac_cv_type_intptr_t+set}" = set; then
16140 $as_echo_n "(cached) " >&6
16142 ac_cv_type_intptr_t=no
16143 cat >conftest.$ac_ext <<_ACEOF
16146 cat confdefs.h >>conftest.$ac_ext
16147 cat >>conftest.$ac_ext <<_ACEOF
16148 /* end confdefs.h. */
16149 $ac_includes_default
16153 if (sizeof (intptr_t))
16159 rm -f conftest.$ac_objext
16160 if { (ac_try="$ac_compile"
16161 case "(($ac_try" in
16162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16163 *) ac_try_echo=$ac_try;;
16165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16166 $as_echo "$ac_try_echo") >&5
16167 (eval "$ac_compile") 2>conftest.er1
16169 grep -v '^ *+' conftest.er1 >conftest.err
16171 cat conftest.err >&5
16172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); } && {
16174 test -z "$ac_c_werror_flag" ||
16175 test ! -s conftest.err
16176 } && test -s conftest.$ac_objext; then
16177 cat >conftest.$ac_ext <<_ACEOF
16180 cat confdefs.h >>conftest.$ac_ext
16181 cat >>conftest.$ac_ext <<_ACEOF
16182 /* end confdefs.h. */
16183 $ac_includes_default
16187 if (sizeof ((intptr_t)))
16193 rm -f conftest.$ac_objext
16194 if { (ac_try="$ac_compile"
16195 case "(($ac_try" in
16196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16197 *) ac_try_echo=$ac_try;;
16199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16200 $as_echo "$ac_try_echo") >&5
16201 (eval "$ac_compile") 2>conftest.er1
16203 grep -v '^ *+' conftest.er1 >conftest.err
16205 cat conftest.err >&5
16206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); } && {
16208 test -z "$ac_c_werror_flag" ||
16209 test ! -s conftest.err
16210 } && test -s conftest.$ac_objext; then
16213 $as_echo "$as_me: failed program was:" >&5
16214 sed 's/^/| /' conftest.$ac_ext >&5
16216 ac_cv_type_intptr_t=yes
16219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16221 $as_echo "$as_me: failed program was:" >&5
16222 sed 's/^/| /' conftest.$ac_ext >&5
16227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16229 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16230 $as_echo "$ac_cv_type_intptr_t" >&6; }
16231 if test "x$ac_cv_type_intptr_t" = x""yes; then
16233 cat >>confdefs.h <<\_ACEOF
16234 #define HAVE_INTPTR_T 1
16238 for ac_type in 'int' 'long int' 'long long int'; do
16239 cat >conftest.$ac_ext <<_ACEOF
16242 cat confdefs.h >>conftest.$ac_ext
16243 cat >>conftest.$ac_ext <<_ACEOF
16244 /* end confdefs.h. */
16245 $ac_includes_default
16249 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16256 rm -f conftest.$ac_objext
16257 if { (ac_try="$ac_compile"
16258 case "(($ac_try" in
16259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16260 *) ac_try_echo=$ac_try;;
16262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16263 $as_echo "$ac_try_echo") >&5
16264 (eval "$ac_compile") 2>conftest.er1
16266 grep -v '^ *+' conftest.er1 >conftest.err
16268 cat conftest.err >&5
16269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270 (exit $ac_status); } && {
16271 test -z "$ac_c_werror_flag" ||
16272 test ! -s conftest.err
16273 } && test -s conftest.$ac_objext; then
16275 cat >>confdefs.h <<_ACEOF
16276 #define intptr_t $ac_type
16281 $as_echo "$as_me: failed program was:" >&5
16282 sed 's/^/| /' conftest.$ac_ext >&5
16287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16288 test -z "$ac_type" && break
16294 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16295 $as_echo_n "checking for uintptr_t... " >&6; }
16296 if test "${ac_cv_type_uintptr_t+set}" = set; then
16297 $as_echo_n "(cached) " >&6
16299 ac_cv_type_uintptr_t=no
16300 cat >conftest.$ac_ext <<_ACEOF
16303 cat confdefs.h >>conftest.$ac_ext
16304 cat >>conftest.$ac_ext <<_ACEOF
16305 /* end confdefs.h. */
16306 $ac_includes_default
16310 if (sizeof (uintptr_t))
16316 rm -f conftest.$ac_objext
16317 if { (ac_try="$ac_compile"
16318 case "(($ac_try" in
16319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320 *) ac_try_echo=$ac_try;;
16322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16323 $as_echo "$ac_try_echo") >&5
16324 (eval "$ac_compile") 2>conftest.er1
16326 grep -v '^ *+' conftest.er1 >conftest.err
16328 cat conftest.err >&5
16329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); } && {
16331 test -z "$ac_c_werror_flag" ||
16332 test ! -s conftest.err
16333 } && test -s conftest.$ac_objext; then
16334 cat >conftest.$ac_ext <<_ACEOF
16337 cat confdefs.h >>conftest.$ac_ext
16338 cat >>conftest.$ac_ext <<_ACEOF
16339 /* end confdefs.h. */
16340 $ac_includes_default
16344 if (sizeof ((uintptr_t)))
16350 rm -f conftest.$ac_objext
16351 if { (ac_try="$ac_compile"
16352 case "(($ac_try" in
16353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16354 *) ac_try_echo=$ac_try;;
16356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16357 $as_echo "$ac_try_echo") >&5
16358 (eval "$ac_compile") 2>conftest.er1
16360 grep -v '^ *+' conftest.er1 >conftest.err
16362 cat conftest.err >&5
16363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); } && {
16365 test -z "$ac_c_werror_flag" ||
16366 test ! -s conftest.err
16367 } && test -s conftest.$ac_objext; then
16370 $as_echo "$as_me: failed program was:" >&5
16371 sed 's/^/| /' conftest.$ac_ext >&5
16373 ac_cv_type_uintptr_t=yes
16376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16378 $as_echo "$as_me: failed program was:" >&5
16379 sed 's/^/| /' conftest.$ac_ext >&5
16384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16386 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16387 $as_echo "$ac_cv_type_uintptr_t" >&6; }
16388 if test "x$ac_cv_type_uintptr_t" = x""yes; then
16390 cat >>confdefs.h <<\_ACEOF
16391 #define HAVE_UINTPTR_T 1
16395 for ac_type in 'unsigned int' 'unsigned long int' \
16396 'unsigned long long int'; do
16397 cat >conftest.$ac_ext <<_ACEOF
16400 cat confdefs.h >>conftest.$ac_ext
16401 cat >>conftest.$ac_ext <<_ACEOF
16402 /* end confdefs.h. */
16403 $ac_includes_default
16407 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16414 rm -f conftest.$ac_objext
16415 if { (ac_try="$ac_compile"
16416 case "(($ac_try" in
16417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418 *) ac_try_echo=$ac_try;;
16420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16421 $as_echo "$ac_try_echo") >&5
16422 (eval "$ac_compile") 2>conftest.er1
16424 grep -v '^ *+' conftest.er1 >conftest.err
16426 cat conftest.err >&5
16427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } && {
16429 test -z "$ac_c_werror_flag" ||
16430 test ! -s conftest.err
16431 } && test -s conftest.$ac_objext; then
16433 cat >>confdefs.h <<_ACEOF
16434 #define uintptr_t $ac_type
16439 $as_echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16446 test -z "$ac_type" && break
16452 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
16453 $as_echo_n "checking for struct cmsgcred... " >&6; }
16454 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
16455 $as_echo_n "(cached) " >&6
16457 ac_cv_type_struct_cmsgcred=no
16458 cat >conftest.$ac_ext <<_ACEOF
16461 cat confdefs.h >>conftest.$ac_ext
16462 cat >>conftest.$ac_ext <<_ACEOF
16463 /* end confdefs.h. */
16464 #include <sys/param.h>
16465 #include <sys/types.h>
16466 #include <sys/socket.h>
16467 #include <sys/ucred.h>
16472 if (sizeof (struct cmsgcred))
16478 rm -f conftest.$ac_objext
16479 if { (ac_try="$ac_compile"
16480 case "(($ac_try" in
16481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16482 *) ac_try_echo=$ac_try;;
16484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16485 $as_echo "$ac_try_echo") >&5
16486 (eval "$ac_compile") 2>conftest.er1
16488 grep -v '^ *+' conftest.er1 >conftest.err
16490 cat conftest.err >&5
16491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); } && {
16493 test -z "$ac_c_werror_flag" ||
16494 test ! -s conftest.err
16495 } && test -s conftest.$ac_objext; then
16496 cat >conftest.$ac_ext <<_ACEOF
16499 cat confdefs.h >>conftest.$ac_ext
16500 cat >>conftest.$ac_ext <<_ACEOF
16501 /* end confdefs.h. */
16502 #include <sys/param.h>
16503 #include <sys/types.h>
16504 #include <sys/socket.h>
16505 #include <sys/ucred.h>
16510 if (sizeof ((struct cmsgcred)))
16516 rm -f conftest.$ac_objext
16517 if { (ac_try="$ac_compile"
16518 case "(($ac_try" in
16519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520 *) ac_try_echo=$ac_try;;
16522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16523 $as_echo "$ac_try_echo") >&5
16524 (eval "$ac_compile") 2>conftest.er1
16526 grep -v '^ *+' conftest.er1 >conftest.err
16528 cat conftest.err >&5
16529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); } && {
16531 test -z "$ac_c_werror_flag" ||
16532 test ! -s conftest.err
16533 } && test -s conftest.$ac_objext; then
16536 $as_echo "$as_me: failed program was:" >&5
16537 sed 's/^/| /' conftest.$ac_ext >&5
16539 ac_cv_type_struct_cmsgcred=yes
16542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16544 $as_echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16552 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
16553 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
16554 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
16556 cat >>confdefs.h <<_ACEOF
16557 #define HAVE_STRUCT_CMSGCRED 1
16562 { $as_echo "$as_me:$LINENO: checking for struct fcred" >&5
16563 $as_echo_n "checking for struct fcred... " >&6; }
16564 if test "${ac_cv_type_struct_fcred+set}" = set; then
16565 $as_echo_n "(cached) " >&6
16567 ac_cv_type_struct_fcred=no
16568 cat >conftest.$ac_ext <<_ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h. */
16574 #include <sys/param.h>
16575 #include <sys/types.h>
16576 #include <sys/socket.h>
16577 #include <sys/ucred.h>
16582 if (sizeof (struct fcred))
16588 rm -f conftest.$ac_objext
16589 if { (ac_try="$ac_compile"
16590 case "(($ac_try" in
16591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16592 *) ac_try_echo=$ac_try;;
16594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16595 $as_echo "$ac_try_echo") >&5
16596 (eval "$ac_compile") 2>conftest.er1
16598 grep -v '^ *+' conftest.er1 >conftest.err
16600 cat conftest.err >&5
16601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); } && {
16603 test -z "$ac_c_werror_flag" ||
16604 test ! -s conftest.err
16605 } && test -s conftest.$ac_objext; then
16606 cat >conftest.$ac_ext <<_ACEOF
16609 cat confdefs.h >>conftest.$ac_ext
16610 cat >>conftest.$ac_ext <<_ACEOF
16611 /* end confdefs.h. */
16612 #include <sys/param.h>
16613 #include <sys/types.h>
16614 #include <sys/socket.h>
16615 #include <sys/ucred.h>
16620 if (sizeof ((struct fcred)))
16626 rm -f conftest.$ac_objext
16627 if { (ac_try="$ac_compile"
16628 case "(($ac_try" in
16629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16630 *) ac_try_echo=$ac_try;;
16632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16633 $as_echo "$ac_try_echo") >&5
16634 (eval "$ac_compile") 2>conftest.er1
16636 grep -v '^ *+' conftest.er1 >conftest.err
16638 cat conftest.err >&5
16639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); } && {
16641 test -z "$ac_c_werror_flag" ||
16642 test ! -s conftest.err
16643 } && test -s conftest.$ac_objext; then
16646 $as_echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16649 ac_cv_type_struct_fcred=yes
16652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16654 $as_echo "$as_me: failed program was:" >&5
16655 sed 's/^/| /' conftest.$ac_ext >&5
16660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16662 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
16663 $as_echo "$ac_cv_type_struct_fcred" >&6; }
16664 if test "x$ac_cv_type_struct_fcred" = x""yes; then
16666 cat >>confdefs.h <<_ACEOF
16667 #define HAVE_STRUCT_FCRED 1
16672 { $as_echo "$as_me:$LINENO: checking for struct sockcred" >&5
16673 $as_echo_n "checking for struct sockcred... " >&6; }
16674 if test "${ac_cv_type_struct_sockcred+set}" = set; then
16675 $as_echo_n "(cached) " >&6
16677 ac_cv_type_struct_sockcred=no
16678 cat >conftest.$ac_ext <<_ACEOF
16681 cat confdefs.h >>conftest.$ac_ext
16682 cat >>conftest.$ac_ext <<_ACEOF
16683 /* end confdefs.h. */
16684 #include <sys/param.h>
16685 #include <sys/types.h>
16686 #include <sys/socket.h>
16687 #include <sys/ucred.h>
16692 if (sizeof (struct sockcred))
16698 rm -f conftest.$ac_objext
16699 if { (ac_try="$ac_compile"
16700 case "(($ac_try" in
16701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16702 *) ac_try_echo=$ac_try;;
16704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16705 $as_echo "$ac_try_echo") >&5
16706 (eval "$ac_compile") 2>conftest.er1
16708 grep -v '^ *+' conftest.er1 >conftest.err
16710 cat conftest.err >&5
16711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); } && {
16713 test -z "$ac_c_werror_flag" ||
16714 test ! -s conftest.err
16715 } && test -s conftest.$ac_objext; then
16716 cat >conftest.$ac_ext <<_ACEOF
16719 cat confdefs.h >>conftest.$ac_ext
16720 cat >>conftest.$ac_ext <<_ACEOF
16721 /* end confdefs.h. */
16722 #include <sys/param.h>
16723 #include <sys/types.h>
16724 #include <sys/socket.h>
16725 #include <sys/ucred.h>
16730 if (sizeof ((struct sockcred)))
16736 rm -f conftest.$ac_objext
16737 if { (ac_try="$ac_compile"
16738 case "(($ac_try" in
16739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740 *) ac_try_echo=$ac_try;;
16742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16743 $as_echo "$ac_try_echo") >&5
16744 (eval "$ac_compile") 2>conftest.er1
16746 grep -v '^ *+' conftest.er1 >conftest.err
16748 cat conftest.err >&5
16749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } && {
16751 test -z "$ac_c_werror_flag" ||
16752 test ! -s conftest.err
16753 } && test -s conftest.$ac_objext; then
16756 $as_echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16759 ac_cv_type_struct_sockcred=yes
16762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16764 $as_echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.$ac_ext >&5
16770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16772 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
16773 $as_echo "$ac_cv_type_struct_sockcred" >&6; }
16774 if test "x$ac_cv_type_struct_sockcred" = x""yes; then
16776 cat >>confdefs.h <<_ACEOF
16777 #define HAVE_STRUCT_SOCKCRED 1
16784 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
16785 $as_echo_n "checking for struct option... " >&6; }
16786 if test "${ac_cv_type_struct_option+set}" = set; then
16787 $as_echo_n "(cached) " >&6
16789 ac_cv_type_struct_option=no
16790 cat >conftest.$ac_ext <<_ACEOF
16793 cat confdefs.h >>conftest.$ac_ext
16794 cat >>conftest.$ac_ext <<_ACEOF
16795 /* end confdefs.h. */
16796 #ifdef HAVE_GETOPT_H
16797 #include <getopt.h>
16803 if (sizeof (struct option))
16809 rm -f conftest.$ac_objext
16810 if { (ac_try="$ac_compile"
16811 case "(($ac_try" in
16812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813 *) ac_try_echo=$ac_try;;
16815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16816 $as_echo "$ac_try_echo") >&5
16817 (eval "$ac_compile") 2>conftest.er1
16819 grep -v '^ *+' conftest.er1 >conftest.err
16821 cat conftest.err >&5
16822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } && {
16824 test -z "$ac_c_werror_flag" ||
16825 test ! -s conftest.err
16826 } && test -s conftest.$ac_objext; then
16827 cat >conftest.$ac_ext <<_ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h. */
16833 #ifdef HAVE_GETOPT_H
16834 #include <getopt.h>
16840 if (sizeof ((struct option)))
16846 rm -f conftest.$ac_objext
16847 if { (ac_try="$ac_compile"
16848 case "(($ac_try" in
16849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16850 *) ac_try_echo=$ac_try;;
16852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16853 $as_echo "$ac_try_echo") >&5
16854 (eval "$ac_compile") 2>conftest.er1
16856 grep -v '^ *+' conftest.er1 >conftest.err
16858 cat conftest.err >&5
16859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); } && {
16861 test -z "$ac_c_werror_flag" ||
16862 test ! -s conftest.err
16863 } && test -s conftest.$ac_objext; then
16866 $as_echo "$as_me: failed program was:" >&5
16867 sed 's/^/| /' conftest.$ac_ext >&5
16869 ac_cv_type_struct_option=yes
16872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16874 $as_echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16882 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
16883 $as_echo "$ac_cv_type_struct_option" >&6; }
16884 if test "x$ac_cv_type_struct_option" = x""yes; then
16886 cat >>confdefs.h <<_ACEOF
16887 #define HAVE_STRUCT_OPTION 1
16894 if test "$with_zlib" = yes; then
16895 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
16896 # did not). While we could work around the lack of z_streamp, it
16897 # seems unwise to encourage people to use such old zlib versions...
16898 { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
16899 $as_echo_n "checking for z_streamp... " >&6; }
16900 if test "${ac_cv_type_z_streamp+set}" = set; then
16901 $as_echo_n "(cached) " >&6
16903 ac_cv_type_z_streamp=no
16904 cat >conftest.$ac_ext <<_ACEOF
16907 cat confdefs.h >>conftest.$ac_ext
16908 cat >>conftest.$ac_ext <<_ACEOF
16909 /* end confdefs.h. */
16915 if (sizeof (z_streamp))
16921 rm -f conftest.$ac_objext
16922 if { (ac_try="$ac_compile"
16923 case "(($ac_try" in
16924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16925 *) ac_try_echo=$ac_try;;
16927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16928 $as_echo "$ac_try_echo") >&5
16929 (eval "$ac_compile") 2>conftest.er1
16931 grep -v '^ *+' conftest.er1 >conftest.err
16933 cat conftest.err >&5
16934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } && {
16936 test -z "$ac_c_werror_flag" ||
16937 test ! -s conftest.err
16938 } && test -s conftest.$ac_objext; then
16939 cat >conftest.$ac_ext <<_ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h. */
16950 if (sizeof ((z_streamp)))
16956 rm -f conftest.$ac_objext
16957 if { (ac_try="$ac_compile"
16958 case "(($ac_try" in
16959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16960 *) ac_try_echo=$ac_try;;
16962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16963 $as_echo "$ac_try_echo") >&5
16964 (eval "$ac_compile") 2>conftest.er1
16966 grep -v '^ *+' conftest.er1 >conftest.err
16968 cat conftest.err >&5
16969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } && {
16971 test -z "$ac_c_werror_flag" ||
16972 test ! -s conftest.err
16973 } && test -s conftest.$ac_objext; then
16976 $as_echo "$as_me: failed program was:" >&5
16977 sed 's/^/| /' conftest.$ac_ext >&5
16979 ac_cv_type_z_streamp=yes
16982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16984 $as_echo "$as_me: failed program was:" >&5
16985 sed 's/^/| /' conftest.$ac_ext >&5
16990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16992 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
16993 $as_echo "$ac_cv_type_z_streamp" >&6; }
16994 if test "x$ac_cv_type_z_streamp" = x""yes; then
16997 { { $as_echo "$as_me:$LINENO: error: zlib version is too old
16998 Use --without-zlib to disable zlib support." >&5
16999 $as_echo "$as_me: error: zlib version is too old
17000 Use --without-zlib to disable zlib support." >&2;}
17001 { (exit 1); exit 1; }; }
17006 if test "$with_krb5" = yes; then
17007 # Check for differences between MIT and Heimdal (KTH) releases
17008 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17009 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17010 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17011 $as_echo_n "(cached) " >&6
17013 cat >conftest.$ac_ext <<_ACEOF
17016 cat confdefs.h >>conftest.$ac_ext
17017 cat >>conftest.$ac_ext <<_ACEOF
17018 /* end confdefs.h. */
17024 static krb5_ticket ac_aggr;
17025 if (ac_aggr.enc_part2)
17031 rm -f conftest.$ac_objext
17032 if { (ac_try="$ac_compile"
17033 case "(($ac_try" in
17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035 *) ac_try_echo=$ac_try;;
17037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17038 $as_echo "$ac_try_echo") >&5
17039 (eval "$ac_compile") 2>conftest.er1
17041 grep -v '^ *+' conftest.er1 >conftest.err
17043 cat conftest.err >&5
17044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); } && {
17046 test -z "$ac_c_werror_flag" ||
17047 test ! -s conftest.err
17048 } && test -s conftest.$ac_objext; then
17049 ac_cv_member_krb5_ticket_enc_part2=yes
17051 $as_echo "$as_me: failed program was:" >&5
17052 sed 's/^/| /' conftest.$ac_ext >&5
17054 cat >conftest.$ac_ext <<_ACEOF
17057 cat confdefs.h >>conftest.$ac_ext
17058 cat >>conftest.$ac_ext <<_ACEOF
17059 /* end confdefs.h. */
17065 static krb5_ticket ac_aggr;
17066 if (sizeof ac_aggr.enc_part2)
17072 rm -f conftest.$ac_objext
17073 if { (ac_try="$ac_compile"
17074 case "(($ac_try" in
17075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17076 *) ac_try_echo=$ac_try;;
17078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17079 $as_echo "$ac_try_echo") >&5
17080 (eval "$ac_compile") 2>conftest.er1
17082 grep -v '^ *+' conftest.er1 >conftest.err
17084 cat conftest.err >&5
17085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); } && {
17087 test -z "$ac_c_werror_flag" ||
17088 test ! -s conftest.err
17089 } && test -s conftest.$ac_objext; then
17090 ac_cv_member_krb5_ticket_enc_part2=yes
17092 $as_echo "$as_me: failed program was:" >&5
17093 sed 's/^/| /' conftest.$ac_ext >&5
17095 ac_cv_member_krb5_ticket_enc_part2=no
17098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17103 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17104 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17105 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17107 cat >>confdefs.h <<_ACEOF
17108 #define HAVE_KRB5_TICKET_ENC_PART2 1
17113 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17114 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17115 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17116 $as_echo_n "(cached) " >&6
17118 cat >conftest.$ac_ext <<_ACEOF
17121 cat confdefs.h >>conftest.$ac_ext
17122 cat >>conftest.$ac_ext <<_ACEOF
17123 /* end confdefs.h. */
17129 static krb5_ticket ac_aggr;
17130 if (ac_aggr.client)
17136 rm -f conftest.$ac_objext
17137 if { (ac_try="$ac_compile"
17138 case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17143 $as_echo "$ac_try_echo") >&5
17144 (eval "$ac_compile") 2>conftest.er1
17146 grep -v '^ *+' conftest.er1 >conftest.err
17148 cat conftest.err >&5
17149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); } && {
17151 test -z "$ac_c_werror_flag" ||
17152 test ! -s conftest.err
17153 } && test -s conftest.$ac_objext; then
17154 ac_cv_member_krb5_ticket_client=yes
17156 $as_echo "$as_me: failed program was:" >&5
17157 sed 's/^/| /' conftest.$ac_ext >&5
17159 cat >conftest.$ac_ext <<_ACEOF
17162 cat confdefs.h >>conftest.$ac_ext
17163 cat >>conftest.$ac_ext <<_ACEOF
17164 /* end confdefs.h. */
17170 static krb5_ticket ac_aggr;
17171 if (sizeof ac_aggr.client)
17177 rm -f conftest.$ac_objext
17178 if { (ac_try="$ac_compile"
17179 case "(($ac_try" in
17180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17181 *) ac_try_echo=$ac_try;;
17183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17184 $as_echo "$ac_try_echo") >&5
17185 (eval "$ac_compile") 2>conftest.er1
17187 grep -v '^ *+' conftest.er1 >conftest.err
17189 cat conftest.err >&5
17190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); } && {
17192 test -z "$ac_c_werror_flag" ||
17193 test ! -s conftest.err
17194 } && test -s conftest.$ac_objext; then
17195 ac_cv_member_krb5_ticket_client=yes
17197 $as_echo "$as_me: failed program was:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17200 ac_cv_member_krb5_ticket_client=no
17203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17208 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
17209 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17210 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17212 cat >>confdefs.h <<_ACEOF
17213 #define HAVE_KRB5_TICKET_CLIENT 1
17218 { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17219 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17220 { (exit 1); exit 1; }; }
17225 { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17226 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17227 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17228 $as_echo_n "(cached) " >&6
17230 cat >conftest.$ac_ext <<_ACEOF
17233 cat confdefs.h >>conftest.$ac_ext
17234 cat >>conftest.$ac_ext <<_ACEOF
17235 /* end confdefs.h. */
17241 static krb5_error ac_aggr;
17242 if (ac_aggr.text.data)
17248 rm -f conftest.$ac_objext
17249 if { (ac_try="$ac_compile"
17250 case "(($ac_try" in
17251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252 *) ac_try_echo=$ac_try;;
17254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17255 $as_echo "$ac_try_echo") >&5
17256 (eval "$ac_compile") 2>conftest.er1
17258 grep -v '^ *+' conftest.er1 >conftest.err
17260 cat conftest.err >&5
17261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); } && {
17263 test -z "$ac_c_werror_flag" ||
17264 test ! -s conftest.err
17265 } && test -s conftest.$ac_objext; then
17266 ac_cv_member_krb5_error_text_data=yes
17268 $as_echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17271 cat >conftest.$ac_ext <<_ACEOF
17274 cat confdefs.h >>conftest.$ac_ext
17275 cat >>conftest.$ac_ext <<_ACEOF
17276 /* end confdefs.h. */
17282 static krb5_error ac_aggr;
17283 if (sizeof ac_aggr.text.data)
17289 rm -f conftest.$ac_objext
17290 if { (ac_try="$ac_compile"
17291 case "(($ac_try" in
17292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17293 *) ac_try_echo=$ac_try;;
17295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17296 $as_echo "$ac_try_echo") >&5
17297 (eval "$ac_compile") 2>conftest.er1
17299 grep -v '^ *+' conftest.er1 >conftest.err
17301 cat conftest.err >&5
17302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); } && {
17304 test -z "$ac_c_werror_flag" ||
17305 test ! -s conftest.err
17306 } && test -s conftest.$ac_objext; then
17307 ac_cv_member_krb5_error_text_data=yes
17309 $as_echo "$as_me: failed program was:" >&5
17310 sed 's/^/| /' conftest.$ac_ext >&5
17312 ac_cv_member_krb5_error_text_data=no
17315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17320 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
17321 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
17322 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
17324 cat >>confdefs.h <<_ACEOF
17325 #define HAVE_KRB5_ERROR_TEXT_DATA 1
17330 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
17331 $as_echo_n "checking for krb5_error.e_data... " >&6; }
17332 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
17333 $as_echo_n "(cached) " >&6
17335 cat >conftest.$ac_ext <<_ACEOF
17338 cat confdefs.h >>conftest.$ac_ext
17339 cat >>conftest.$ac_ext <<_ACEOF
17340 /* end confdefs.h. */
17346 static krb5_error ac_aggr;
17347 if (ac_aggr.e_data)
17353 rm -f conftest.$ac_objext
17354 if { (ac_try="$ac_compile"
17355 case "(($ac_try" in
17356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17357 *) ac_try_echo=$ac_try;;
17359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17360 $as_echo "$ac_try_echo") >&5
17361 (eval "$ac_compile") 2>conftest.er1
17363 grep -v '^ *+' conftest.er1 >conftest.err
17365 cat conftest.err >&5
17366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); } && {
17368 test -z "$ac_c_werror_flag" ||
17369 test ! -s conftest.err
17370 } && test -s conftest.$ac_objext; then
17371 ac_cv_member_krb5_error_e_data=yes
17373 $as_echo "$as_me: failed program was:" >&5
17374 sed 's/^/| /' conftest.$ac_ext >&5
17376 cat >conftest.$ac_ext <<_ACEOF
17379 cat confdefs.h >>conftest.$ac_ext
17380 cat >>conftest.$ac_ext <<_ACEOF
17381 /* end confdefs.h. */
17387 static krb5_error ac_aggr;
17388 if (sizeof ac_aggr.e_data)
17394 rm -f conftest.$ac_objext
17395 if { (ac_try="$ac_compile"
17396 case "(($ac_try" in
17397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17398 *) ac_try_echo=$ac_try;;
17400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17401 $as_echo "$ac_try_echo") >&5
17402 (eval "$ac_compile") 2>conftest.er1
17404 grep -v '^ *+' conftest.er1 >conftest.err
17406 cat conftest.err >&5
17407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); } && {
17409 test -z "$ac_c_werror_flag" ||
17410 test ! -s conftest.err
17411 } && test -s conftest.$ac_objext; then
17412 ac_cv_member_krb5_error_e_data=yes
17414 $as_echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17417 ac_cv_member_krb5_error_e_data=no
17420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17425 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
17426 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
17427 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
17429 cat >>confdefs.h <<_ACEOF
17430 #define HAVE_KRB5_ERROR_E_DATA 1
17435 { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
17436 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
17437 { (exit 1); exit 1; }; }
17443 # Win32 requires headers to be loaded for __stdcall, so can't use
17444 # AC_CHECK_FUNCS here.
17445 { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
17446 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
17447 cat >conftest.$ac_ext <<_ACEOF
17450 cat confdefs.h >>conftest.$ac_ext
17451 cat >>conftest.$ac_ext <<_ACEOF
17452 /* end confdefs.h. */
17457 krb5_free_unparsed_name(NULL,NULL);
17462 rm -f conftest.$ac_objext conftest$ac_exeext
17463 if { (ac_try="$ac_link"
17464 case "(($ac_try" in
17465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17466 *) ac_try_echo=$ac_try;;
17468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17469 $as_echo "$ac_try_echo") >&5
17470 (eval "$ac_link") 2>conftest.er1
17472 grep -v '^ *+' conftest.er1 >conftest.err
17474 cat conftest.err >&5
17475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); } && {
17477 test -z "$ac_c_werror_flag" ||
17478 test ! -s conftest.err
17479 } && test -s conftest$ac_exeext && {
17480 test "$cross_compiling" = yes ||
17481 $as_test_x conftest$ac_exeext
17484 cat >>confdefs.h <<\_ACEOF
17485 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
17488 { $as_echo "$as_me:$LINENO: result: yes" >&5
17489 $as_echo "yes" >&6; }
17491 $as_echo "$as_me: failed program was:" >&5
17492 sed 's/^/| /' conftest.$ac_ext >&5
17494 { $as_echo "$as_me:$LINENO: result: no" >&5
17495 $as_echo "no" >&6; }
17498 rm -rf conftest.dSYM
17499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17500 conftest$ac_exeext conftest.$ac_ext
17503 # Check largefile support. You might think this is a system service not a
17504 # compiler characteristic, but you'd be wrong. We must check this before
17505 # probing existence of related functions such as fseeko, since the largefile
17506 # defines can affect what is generated for that.
17507 # Check whether --enable-largefile was given.
17508 if test "${enable_largefile+set}" = set; then
17509 enableval=$enable_largefile;
17512 if test "$enable_largefile" != no; then
17514 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
17515 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17516 if test "${ac_cv_sys_largefile_CC+set}" = set; then
17517 $as_echo_n "(cached) " >&6
17519 ac_cv_sys_largefile_CC=no
17520 if test "$GCC" != yes; then
17523 # IRIX 6.2 and later do not support large files by default,
17524 # so use the C compiler's -n32 option if that helps.
17525 cat >conftest.$ac_ext <<_ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17531 #include <sys/types.h>
17532 /* Check that off_t can represent 2**63 - 1 correctly.
17533 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17534 since some C++ compilers masquerading as C compilers
17535 incorrectly reject 9223372036854775807. */
17536 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17537 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17538 && LARGE_OFF_T % 2147483647 == 1)
17548 rm -f conftest.$ac_objext
17549 if { (ac_try="$ac_compile"
17550 case "(($ac_try" in
17551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552 *) ac_try_echo=$ac_try;;
17554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17555 $as_echo "$ac_try_echo") >&5
17556 (eval "$ac_compile") 2>conftest.er1
17558 grep -v '^ *+' conftest.er1 >conftest.err
17560 cat conftest.err >&5
17561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); } && {
17563 test -z "$ac_c_werror_flag" ||
17564 test ! -s conftest.err
17565 } && test -s conftest.$ac_objext; then
17568 $as_echo "$as_me: failed program was:" >&5
17569 sed 's/^/| /' conftest.$ac_ext >&5
17574 rm -f core conftest.err conftest.$ac_objext
17576 rm -f conftest.$ac_objext
17577 if { (ac_try="$ac_compile"
17578 case "(($ac_try" in
17579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580 *) ac_try_echo=$ac_try;;
17582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17583 $as_echo "$ac_try_echo") >&5
17584 (eval "$ac_compile") 2>conftest.er1
17586 grep -v '^ *+' conftest.er1 >conftest.err
17588 cat conftest.err >&5
17589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); } && {
17591 test -z "$ac_c_werror_flag" ||
17592 test ! -s conftest.err
17593 } && test -s conftest.$ac_objext; then
17594 ac_cv_sys_largefile_CC=' -n32'; break
17596 $as_echo "$as_me: failed program was:" >&5
17597 sed 's/^/| /' conftest.$ac_ext >&5
17602 rm -f core conftest.err conftest.$ac_objext
17606 rm -f conftest.$ac_ext
17609 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
17610 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17611 if test "$ac_cv_sys_largefile_CC" != no; then
17612 CC=$CC$ac_cv_sys_largefile_CC
17615 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17616 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17617 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17618 $as_echo_n "(cached) " >&6
17621 cat >conftest.$ac_ext <<_ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h. */
17627 #include <sys/types.h>
17628 /* Check that off_t can represent 2**63 - 1 correctly.
17629 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17630 since some C++ compilers masquerading as C compilers
17631 incorrectly reject 9223372036854775807. */
17632 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17633 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17634 && LARGE_OFF_T % 2147483647 == 1)
17644 rm -f conftest.$ac_objext
17645 if { (ac_try="$ac_compile"
17646 case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17651 $as_echo "$ac_try_echo") >&5
17652 (eval "$ac_compile") 2>conftest.er1
17654 grep -v '^ *+' conftest.er1 >conftest.err
17656 cat conftest.err >&5
17657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } && {
17659 test -z "$ac_c_werror_flag" ||
17660 test ! -s conftest.err
17661 } && test -s conftest.$ac_objext; then
17662 ac_cv_sys_file_offset_bits=no; break
17664 $as_echo "$as_me: failed program was:" >&5
17665 sed 's/^/| /' conftest.$ac_ext >&5
17670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17671 cat >conftest.$ac_ext <<_ACEOF
17674 cat confdefs.h >>conftest.$ac_ext
17675 cat >>conftest.$ac_ext <<_ACEOF
17676 /* end confdefs.h. */
17677 #define _FILE_OFFSET_BITS 64
17678 #include <sys/types.h>
17679 /* Check that off_t can represent 2**63 - 1 correctly.
17680 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17681 since some C++ compilers masquerading as C compilers
17682 incorrectly reject 9223372036854775807. */
17683 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17684 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17685 && LARGE_OFF_T % 2147483647 == 1)
17695 rm -f conftest.$ac_objext
17696 if { (ac_try="$ac_compile"
17697 case "(($ac_try" in
17698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17699 *) ac_try_echo=$ac_try;;
17701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17702 $as_echo "$ac_try_echo") >&5
17703 (eval "$ac_compile") 2>conftest.er1
17705 grep -v '^ *+' conftest.er1 >conftest.err
17707 cat conftest.err >&5
17708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); } && {
17710 test -z "$ac_c_werror_flag" ||
17711 test ! -s conftest.err
17712 } && test -s conftest.$ac_objext; then
17713 ac_cv_sys_file_offset_bits=64; break
17715 $as_echo "$as_me: failed program was:" >&5
17716 sed 's/^/| /' conftest.$ac_ext >&5
17721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17722 ac_cv_sys_file_offset_bits=unknown
17726 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17727 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17728 case $ac_cv_sys_file_offset_bits in #(
17731 cat >>confdefs.h <<_ACEOF
17732 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17737 if test $ac_cv_sys_file_offset_bits = unknown; then
17738 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17739 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17740 if test "${ac_cv_sys_large_files+set}" = set; then
17741 $as_echo_n "(cached) " >&6
17744 cat >conftest.$ac_ext <<_ACEOF
17747 cat confdefs.h >>conftest.$ac_ext
17748 cat >>conftest.$ac_ext <<_ACEOF
17749 /* end confdefs.h. */
17750 #include <sys/types.h>
17751 /* Check that off_t can represent 2**63 - 1 correctly.
17752 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17753 since some C++ compilers masquerading as C compilers
17754 incorrectly reject 9223372036854775807. */
17755 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17756 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17757 && LARGE_OFF_T % 2147483647 == 1)
17767 rm -f conftest.$ac_objext
17768 if { (ac_try="$ac_compile"
17769 case "(($ac_try" in
17770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17771 *) ac_try_echo=$ac_try;;
17773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17774 $as_echo "$ac_try_echo") >&5
17775 (eval "$ac_compile") 2>conftest.er1
17777 grep -v '^ *+' conftest.er1 >conftest.err
17779 cat conftest.err >&5
17780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); } && {
17782 test -z "$ac_c_werror_flag" ||
17783 test ! -s conftest.err
17784 } && test -s conftest.$ac_objext; then
17785 ac_cv_sys_large_files=no; break
17787 $as_echo "$as_me: failed program was:" >&5
17788 sed 's/^/| /' conftest.$ac_ext >&5
17793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17794 cat >conftest.$ac_ext <<_ACEOF
17797 cat confdefs.h >>conftest.$ac_ext
17798 cat >>conftest.$ac_ext <<_ACEOF
17799 /* end confdefs.h. */
17800 #define _LARGE_FILES 1
17801 #include <sys/types.h>
17802 /* Check that off_t can represent 2**63 - 1 correctly.
17803 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17804 since some C++ compilers masquerading as C compilers
17805 incorrectly reject 9223372036854775807. */
17806 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17807 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17808 && LARGE_OFF_T % 2147483647 == 1)
17818 rm -f conftest.$ac_objext
17819 if { (ac_try="$ac_compile"
17820 case "(($ac_try" in
17821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17822 *) ac_try_echo=$ac_try;;
17824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17825 $as_echo "$ac_try_echo") >&5
17826 (eval "$ac_compile") 2>conftest.er1
17828 grep -v '^ *+' conftest.er1 >conftest.err
17830 cat conftest.err >&5
17831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); } && {
17833 test -z "$ac_c_werror_flag" ||
17834 test ! -s conftest.err
17835 } && test -s conftest.$ac_objext; then
17836 ac_cv_sys_large_files=1; break
17838 $as_echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17845 ac_cv_sys_large_files=unknown
17849 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17850 $as_echo "$ac_cv_sys_large_files" >&6; }
17851 case $ac_cv_sys_large_files in #(
17854 cat >>confdefs.h <<_ACEOF
17855 #define _LARGE_FILES $ac_cv_sys_large_files
17864 # Check for largefile support (must be after AC_SYS_LARGEFILE)
17865 # The cast to long int works around a bug in the HP C Compiler
17866 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17867 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17868 # This bug is HP SR number 8606223364.
17869 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
17870 $as_echo_n "checking size of off_t... " >&6; }
17871 if test "${ac_cv_sizeof_off_t+set}" = set; then
17872 $as_echo_n "(cached) " >&6
17874 if test "$cross_compiling" = yes; then
17875 # Depending upon the size, compute the lo and hi bounds.
17876 cat >conftest.$ac_ext <<_ACEOF
17879 cat confdefs.h >>conftest.$ac_ext
17880 cat >>conftest.$ac_ext <<_ACEOF
17881 /* end confdefs.h. */
17882 $ac_includes_default
17886 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
17893 rm -f conftest.$ac_objext
17894 if { (ac_try="$ac_compile"
17895 case "(($ac_try" in
17896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17897 *) ac_try_echo=$ac_try;;
17899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17900 $as_echo "$ac_try_echo") >&5
17901 (eval "$ac_compile") 2>conftest.er1
17903 grep -v '^ *+' conftest.er1 >conftest.err
17905 cat conftest.err >&5
17906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); } && {
17908 test -z "$ac_c_werror_flag" ||
17909 test ! -s conftest.err
17910 } && test -s conftest.$ac_objext; then
17913 cat >conftest.$ac_ext <<_ACEOF
17916 cat confdefs.h >>conftest.$ac_ext
17917 cat >>conftest.$ac_ext <<_ACEOF
17918 /* end confdefs.h. */
17919 $ac_includes_default
17923 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
17930 rm -f conftest.$ac_objext
17931 if { (ac_try="$ac_compile"
17932 case "(($ac_try" in
17933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17934 *) ac_try_echo=$ac_try;;
17936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17937 $as_echo "$ac_try_echo") >&5
17938 (eval "$ac_compile") 2>conftest.er1
17940 grep -v '^ *+' conftest.er1 >conftest.err
17942 cat conftest.err >&5
17943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } && {
17945 test -z "$ac_c_werror_flag" ||
17946 test ! -s conftest.err
17947 } && test -s conftest.$ac_objext; then
17948 ac_hi=$ac_mid; break
17950 $as_echo "$as_me: failed program was:" >&5
17951 sed 's/^/| /' conftest.$ac_ext >&5
17953 ac_lo=`expr $ac_mid + 1`
17954 if test $ac_lo -le $ac_mid; then
17958 ac_mid=`expr 2 '*' $ac_mid + 1`
17961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17964 $as_echo "$as_me: failed program was:" >&5
17965 sed 's/^/| /' conftest.$ac_ext >&5
17967 cat >conftest.$ac_ext <<_ACEOF
17970 cat confdefs.h >>conftest.$ac_ext
17971 cat >>conftest.$ac_ext <<_ACEOF
17972 /* end confdefs.h. */
17973 $ac_includes_default
17977 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
17984 rm -f conftest.$ac_objext
17985 if { (ac_try="$ac_compile"
17986 case "(($ac_try" in
17987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17988 *) ac_try_echo=$ac_try;;
17990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17991 $as_echo "$ac_try_echo") >&5
17992 (eval "$ac_compile") 2>conftest.er1
17994 grep -v '^ *+' conftest.er1 >conftest.err
17996 cat conftest.err >&5
17997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998 (exit $ac_status); } && {
17999 test -z "$ac_c_werror_flag" ||
18000 test ! -s conftest.err
18001 } && test -s conftest.$ac_objext; then
18004 cat >conftest.$ac_ext <<_ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h. */
18010 $ac_includes_default
18014 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18021 rm -f conftest.$ac_objext
18022 if { (ac_try="$ac_compile"
18023 case "(($ac_try" in
18024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18025 *) ac_try_echo=$ac_try;;
18027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18028 $as_echo "$ac_try_echo") >&5
18029 (eval "$ac_compile") 2>conftest.er1
18031 grep -v '^ *+' conftest.er1 >conftest.err
18033 cat conftest.err >&5
18034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); } && {
18036 test -z "$ac_c_werror_flag" ||
18037 test ! -s conftest.err
18038 } && test -s conftest.$ac_objext; then
18039 ac_lo=$ac_mid; break
18041 $as_echo "$as_me: failed program was:" >&5
18042 sed 's/^/| /' conftest.$ac_ext >&5
18044 ac_hi=`expr '(' $ac_mid ')' - 1`
18045 if test $ac_mid -le $ac_hi; then
18049 ac_mid=`expr 2 '*' $ac_mid`
18052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18055 $as_echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18065 # Binary search between lo and hi bounds.
18066 while test "x$ac_lo" != "x$ac_hi"; do
18067 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18068 cat >conftest.$ac_ext <<_ACEOF
18071 cat confdefs.h >>conftest.$ac_ext
18072 cat >>conftest.$ac_ext <<_ACEOF
18073 /* end confdefs.h. */
18074 $ac_includes_default
18078 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18085 rm -f conftest.$ac_objext
18086 if { (ac_try="$ac_compile"
18087 case "(($ac_try" in
18088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18089 *) ac_try_echo=$ac_try;;
18091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18092 $as_echo "$ac_try_echo") >&5
18093 (eval "$ac_compile") 2>conftest.er1
18095 grep -v '^ *+' conftest.er1 >conftest.err
18097 cat conftest.err >&5
18098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); } && {
18100 test -z "$ac_c_werror_flag" ||
18101 test ! -s conftest.err
18102 } && test -s conftest.$ac_objext; then
18105 $as_echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18108 ac_lo=`expr '(' $ac_mid ')' + 1`
18111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18114 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18115 '') if test "$ac_cv_type_off_t" = yes; then
18116 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18118 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18119 See \`config.log' for more details." >&5
18120 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18121 See \`config.log' for more details." >&2;}
18122 { (exit 77); exit 77; }; }; }
18124 ac_cv_sizeof_off_t=0
18128 cat >conftest.$ac_ext <<_ACEOF
18131 cat confdefs.h >>conftest.$ac_ext
18132 cat >>conftest.$ac_ext <<_ACEOF
18133 /* end confdefs.h. */
18134 $ac_includes_default
18135 static long int longval () { return (long int) (sizeof (off_t)); }
18136 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
18138 #include <stdlib.h>
18143 FILE *f = fopen ("conftest.val", "w");
18146 if (((long int) (sizeof (off_t))) < 0)
18148 long int i = longval ();
18149 if (i != ((long int) (sizeof (off_t))))
18151 fprintf (f, "%ld", i);
18155 unsigned long int i = ulongval ();
18156 if (i != ((long int) (sizeof (off_t))))
18158 fprintf (f, "%lu", i);
18160 /* Do not output a trailing newline, as this causes \r\n confusion
18161 on some platforms. */
18162 return ferror (f) || fclose (f) != 0;
18168 rm -f conftest$ac_exeext
18169 if { (ac_try="$ac_link"
18170 case "(($ac_try" in
18171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18172 *) ac_try_echo=$ac_try;;
18174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18175 $as_echo "$ac_try_echo") >&5
18176 (eval "$ac_link") 2>&5
18178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18180 { (case "(($ac_try" in
18181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18182 *) ac_try_echo=$ac_try;;
18184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18185 $as_echo "$ac_try_echo") >&5
18186 (eval "$ac_try") 2>&5
18188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; }; then
18190 ac_cv_sizeof_off_t=`cat conftest.val`
18192 $as_echo "$as_me: program exited with status $ac_status" >&5
18193 $as_echo "$as_me: failed program was:" >&5
18194 sed 's/^/| /' conftest.$ac_ext >&5
18196 ( exit $ac_status )
18197 if test "$ac_cv_type_off_t" = yes; then
18198 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18200 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18201 See \`config.log' for more details." >&5
18202 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18203 See \`config.log' for more details." >&2;}
18204 { (exit 77); exit 77; }; }; }
18206 ac_cv_sizeof_off_t=0
18209 rm -rf conftest.dSYM
18210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18214 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
18215 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18219 cat >>confdefs.h <<_ACEOF
18220 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18225 # If we don't have largefile support, can't handle segsize >= 2GB.
18226 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
18227 { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
18228 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
18229 { (exit 1); exit 1; }; }
18234 ## Functions, global variables
18237 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
18238 $as_echo_n "checking for int timezone... " >&6; }
18239 if test "${pgac_cv_var_int_timezone+set}" = set; then
18240 $as_echo_n "(cached) " >&6
18242 cat >conftest.$ac_ext <<_ACEOF
18245 cat confdefs.h >>conftest.$ac_ext
18246 cat >>conftest.$ac_ext <<_ACEOF
18247 /* end confdefs.h. */
18254 res = timezone / 60;
18256 res = _timezone / 60;
18262 rm -f conftest.$ac_objext conftest$ac_exeext
18263 if { (ac_try="$ac_link"
18264 case "(($ac_try" in
18265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18266 *) ac_try_echo=$ac_try;;
18268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18269 $as_echo "$ac_try_echo") >&5
18270 (eval "$ac_link") 2>conftest.er1
18272 grep -v '^ *+' conftest.er1 >conftest.err
18274 cat conftest.err >&5
18275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } && {
18277 test -z "$ac_c_werror_flag" ||
18278 test ! -s conftest.err
18279 } && test -s conftest$ac_exeext && {
18280 test "$cross_compiling" = yes ||
18281 $as_test_x conftest$ac_exeext
18283 pgac_cv_var_int_timezone=yes
18285 $as_echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18288 pgac_cv_var_int_timezone=no
18291 rm -rf conftest.dSYM
18292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18293 conftest$ac_exeext conftest.$ac_ext
18295 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
18296 $as_echo "$pgac_cv_var_int_timezone" >&6; }
18297 if test x"$pgac_cv_var_int_timezone" = xyes ; then
18299 cat >>confdefs.h <<\_ACEOF
18300 #define HAVE_INT_TIMEZONE /**/
18304 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
18305 $as_echo_n "checking types of arguments for accept()... " >&6; }
18306 if test "${ac_cv_func_accept_return+set}" = set; then
18307 $as_echo_n "(cached) " >&6
18309 if test "${ac_cv_func_accept_arg1+set}" = set; then
18310 $as_echo_n "(cached) " >&6
18312 if test "${ac_cv_func_accept_arg2+set}" = set; then
18313 $as_echo_n "(cached) " >&6
18315 if test "${ac_cv_func_accept_arg3+set}" = set; then
18316 $as_echo_n "(cached) " >&6
18318 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
18319 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
18320 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
18321 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
18322 cat >conftest.$ac_ext <<_ACEOF
18325 cat confdefs.h >>conftest.$ac_ext
18326 cat >>conftest.$ac_ext <<_ACEOF
18327 /* end confdefs.h. */
18328 #ifdef HAVE_SYS_TYPES_H
18329 #include <sys/types.h>
18331 #ifdef HAVE_SYS_SOCKET_H
18332 #include <sys/socket.h>
18334 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
18343 rm -f conftest.$ac_objext
18344 if { (ac_try="$ac_compile"
18345 case "(($ac_try" in
18346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18347 *) ac_try_echo=$ac_try;;
18349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18350 $as_echo "$ac_try_echo") >&5
18351 (eval "$ac_compile") 2>conftest.er1
18353 grep -v '^ *+' conftest.er1 >conftest.err
18355 cat conftest.err >&5
18356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); } && {
18358 test -z "$ac_c_werror_flag" ||
18359 test ! -s conftest.err
18360 } && test -s conftest.$ac_objext; then
18361 ac_not_found=no; break 4
18363 $as_echo "$as_me: failed program was:" >&5
18364 sed 's/^/| /' conftest.$ac_ext >&5
18369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18374 if test "$ac_not_found" = yes; then
18375 { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
18376 $as_echo "$as_me: error: could not determine argument types" >&2;}
18377 { (exit 1); exit 1; }; }
18379 if test "$ac_cv_func_accept_arg3" = "void"; then
18380 ac_cv_func_accept_arg3=int
18390 { $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
18391 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
18393 cat >>confdefs.h <<_ACEOF
18394 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
18398 cat >>confdefs.h <<_ACEOF
18399 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
18403 cat >>confdefs.h <<_ACEOF
18404 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
18408 cat >>confdefs.h <<_ACEOF
18409 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
18413 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
18414 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
18415 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
18416 $as_echo_n "(cached) " >&6
18418 cat >conftest.$ac_ext <<_ACEOF
18421 cat confdefs.h >>conftest.$ac_ext
18422 cat >>conftest.$ac_ext <<_ACEOF
18423 /* end confdefs.h. */
18424 #include <sys/time.h>
18428 struct timeval *tp;
18429 struct timezone *tzp;
18430 gettimeofday(tp,tzp);
18435 rm -f conftest.$ac_objext
18436 if { (ac_try="$ac_compile"
18437 case "(($ac_try" in
18438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439 *) ac_try_echo=$ac_try;;
18441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18442 $as_echo "$ac_try_echo") >&5
18443 (eval "$ac_compile") 2>conftest.er1
18445 grep -v '^ *+' conftest.er1 >conftest.err
18447 cat conftest.err >&5
18448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); } && {
18450 test -z "$ac_c_werror_flag" ||
18451 test ! -s conftest.err
18452 } && test -s conftest.$ac_objext; then
18453 pgac_cv_func_gettimeofday_1arg=no
18455 $as_echo "$as_me: failed program was:" >&5
18456 sed 's/^/| /' conftest.$ac_ext >&5
18458 pgac_cv_func_gettimeofday_1arg=yes
18461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18463 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
18464 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
18465 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
18467 cat >>confdefs.h <<\_ACEOF
18468 #define GETTIMEOFDAY_1ARG /**/
18497 for ac_func in cbrt dlopen fcvt fdatasync getifaddrs getpeereid getpeerucred getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
18499 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18500 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18501 $as_echo_n "checking for $ac_func... " >&6; }
18502 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18503 $as_echo_n "(cached) " >&6
18505 cat >conftest.$ac_ext <<_ACEOF
18508 cat confdefs.h >>conftest.$ac_ext
18509 cat >>conftest.$ac_ext <<_ACEOF
18510 /* end confdefs.h. */
18511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18513 #define $ac_func innocuous_$ac_func
18515 /* System header to define __stub macros and hopefully few prototypes,
18516 which can conflict with char $ac_func (); below.
18517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18518 <limits.h> exists even on freestanding compilers. */
18521 # include <limits.h>
18523 # include <assert.h>
18528 /* Override any GCC internal prototype to avoid an error.
18529 Use char because int might match the return type of a GCC
18530 builtin and then its argument prototype would still apply. */
18535 /* The GNU C library defines this for functions which it implements
18536 to always fail with ENOSYS. Some functions are actually named
18537 something starting with __ and the normal name is an alias. */
18538 #if defined __stub_$ac_func || defined __stub___$ac_func
18545 return $ac_func ();
18550 rm -f conftest.$ac_objext conftest$ac_exeext
18551 if { (ac_try="$ac_link"
18552 case "(($ac_try" in
18553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18554 *) ac_try_echo=$ac_try;;
18556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18557 $as_echo "$ac_try_echo") >&5
18558 (eval "$ac_link") 2>conftest.er1
18560 grep -v '^ *+' conftest.er1 >conftest.err
18562 cat conftest.err >&5
18563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); } && {
18565 test -z "$ac_c_werror_flag" ||
18566 test ! -s conftest.err
18567 } && test -s conftest$ac_exeext && {
18568 test "$cross_compiling" = yes ||
18569 $as_test_x conftest$ac_exeext
18571 eval "$as_ac_var=yes"
18573 $as_echo "$as_me: failed program was:" >&5
18574 sed 's/^/| /' conftest.$ac_ext >&5
18576 eval "$as_ac_var=no"
18579 rm -rf conftest.dSYM
18580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18581 conftest$ac_exeext conftest.$ac_ext
18583 ac_res=`eval 'as_val=${'$as_ac_var'}
18584 $as_echo "$as_val"'`
18585 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18586 $as_echo "$ac_res" >&6; }
18587 as_val=`eval 'as_val=${'$as_ac_var'}
18588 $as_echo "$as_val"'`
18589 if test "x$as_val" = x""yes; then
18590 cat >>confdefs.h <<_ACEOF
18591 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18599 for ac_func in fseeko
18601 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18602 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18603 $as_echo_n "checking for $ac_func... " >&6; }
18604 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18605 $as_echo_n "(cached) " >&6
18607 cat >conftest.$ac_ext <<_ACEOF
18610 cat confdefs.h >>conftest.$ac_ext
18611 cat >>conftest.$ac_ext <<_ACEOF
18612 /* end confdefs.h. */
18613 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18615 #define $ac_func innocuous_$ac_func
18617 /* System header to define __stub macros and hopefully few prototypes,
18618 which can conflict with char $ac_func (); below.
18619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18620 <limits.h> exists even on freestanding compilers. */
18623 # include <limits.h>
18625 # include <assert.h>
18630 /* Override any GCC internal prototype to avoid an error.
18631 Use char because int might match the return type of a GCC
18632 builtin and then its argument prototype would still apply. */
18637 /* The GNU C library defines this for functions which it implements
18638 to always fail with ENOSYS. Some functions are actually named
18639 something starting with __ and the normal name is an alias. */
18640 #if defined __stub_$ac_func || defined __stub___$ac_func
18647 return $ac_func ();
18652 rm -f conftest.$ac_objext conftest$ac_exeext
18653 if { (ac_try="$ac_link"
18654 case "(($ac_try" in
18655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18656 *) ac_try_echo=$ac_try;;
18658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18659 $as_echo "$ac_try_echo") >&5
18660 (eval "$ac_link") 2>conftest.er1
18662 grep -v '^ *+' conftest.er1 >conftest.err
18664 cat conftest.err >&5
18665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); } && {
18667 test -z "$ac_c_werror_flag" ||
18668 test ! -s conftest.err
18669 } && test -s conftest$ac_exeext && {
18670 test "$cross_compiling" = yes ||
18671 $as_test_x conftest$ac_exeext
18673 eval "$as_ac_var=yes"
18675 $as_echo "$as_me: failed program was:" >&5
18676 sed 's/^/| /' conftest.$ac_ext >&5
18678 eval "$as_ac_var=no"
18681 rm -rf conftest.dSYM
18682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18683 conftest$ac_exeext conftest.$ac_ext
18685 ac_res=`eval 'as_val=${'$as_ac_var'}
18686 $as_echo "$as_val"'`
18687 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18688 $as_echo "$ac_res" >&6; }
18689 as_val=`eval 'as_val=${'$as_ac_var'}
18690 $as_echo "$as_val"'`
18691 if test "x$as_val" = x""yes; then
18692 cat >>confdefs.h <<_ACEOF
18693 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18697 case " $LIBOBJS " in
18698 *" $ac_func.$ac_objext "* ) ;;
18699 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18708 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18709 # Mingw uses macros to access Win32 API calls
18710 bsdi*|netbsd*|mingw*)
18712 cat >>confdefs.h <<\_ACEOF
18713 #define HAVE_FSEEKO 1
18716 ac_cv_func_fseeko=yes;;
18718 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18719 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
18720 if test "${ac_cv_sys_largefile_source+set}" = set; then
18721 $as_echo_n "(cached) " >&6
18724 cat >conftest.$ac_ext <<_ACEOF
18727 cat confdefs.h >>conftest.$ac_ext
18728 cat >>conftest.$ac_ext <<_ACEOF
18729 /* end confdefs.h. */
18730 #include <sys/types.h> /* for off_t */
18735 int (*fp) (FILE *, off_t, int) = fseeko;
18736 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18741 rm -f conftest.$ac_objext conftest$ac_exeext
18742 if { (ac_try="$ac_link"
18743 case "(($ac_try" in
18744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745 *) ac_try_echo=$ac_try;;
18747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18748 $as_echo "$ac_try_echo") >&5
18749 (eval "$ac_link") 2>conftest.er1
18751 grep -v '^ *+' conftest.er1 >conftest.err
18753 cat conftest.err >&5
18754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); } && {
18756 test -z "$ac_c_werror_flag" ||
18757 test ! -s conftest.err
18758 } && test -s conftest$ac_exeext && {
18759 test "$cross_compiling" = yes ||
18760 $as_test_x conftest$ac_exeext
18762 ac_cv_sys_largefile_source=no; break
18764 $as_echo "$as_me: failed program was:" >&5
18765 sed 's/^/| /' conftest.$ac_ext >&5
18770 rm -rf conftest.dSYM
18771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18772 conftest$ac_exeext conftest.$ac_ext
18773 cat >conftest.$ac_ext <<_ACEOF
18776 cat confdefs.h >>conftest.$ac_ext
18777 cat >>conftest.$ac_ext <<_ACEOF
18778 /* end confdefs.h. */
18779 #define _LARGEFILE_SOURCE 1
18780 #include <sys/types.h> /* for off_t */
18785 int (*fp) (FILE *, off_t, int) = fseeko;
18786 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18791 rm -f conftest.$ac_objext conftest$ac_exeext
18792 if { (ac_try="$ac_link"
18793 case "(($ac_try" in
18794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795 *) ac_try_echo=$ac_try;;
18797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18798 $as_echo "$ac_try_echo") >&5
18799 (eval "$ac_link") 2>conftest.er1
18801 grep -v '^ *+' conftest.er1 >conftest.err
18803 cat conftest.err >&5
18804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); } && {
18806 test -z "$ac_c_werror_flag" ||
18807 test ! -s conftest.err
18808 } && test -s conftest$ac_exeext && {
18809 test "$cross_compiling" = yes ||
18810 $as_test_x conftest$ac_exeext
18812 ac_cv_sys_largefile_source=1; break
18814 $as_echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18820 rm -rf conftest.dSYM
18821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18822 conftest$ac_exeext conftest.$ac_ext
18823 ac_cv_sys_largefile_source=unknown
18827 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18828 $as_echo "$ac_cv_sys_largefile_source" >&6; }
18829 case $ac_cv_sys_largefile_source in #(
18832 cat >>confdefs.h <<_ACEOF
18833 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18839 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18840 # in glibc 2.1.3, but that breaks too many other things.
18841 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18842 if test $ac_cv_sys_largefile_source != unknown; then
18844 cat >>confdefs.h <<\_ACEOF
18845 #define HAVE_FSEEKO 1
18852 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
18853 # by calling it, 2009-04-02
18854 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
18855 if test "$PORTNAME" != "solaris"; then
18857 for ac_func in posix_fadvise
18859 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18860 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18861 $as_echo_n "checking for $ac_func... " >&6; }
18862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18863 $as_echo_n "(cached) " >&6
18865 cat >conftest.$ac_ext <<_ACEOF
18868 cat confdefs.h >>conftest.$ac_ext
18869 cat >>conftest.$ac_ext <<_ACEOF
18870 /* end confdefs.h. */
18871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18873 #define $ac_func innocuous_$ac_func
18875 /* System header to define __stub macros and hopefully few prototypes,
18876 which can conflict with char $ac_func (); below.
18877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18878 <limits.h> exists even on freestanding compilers. */
18881 # include <limits.h>
18883 # include <assert.h>
18888 /* Override any GCC internal prototype to avoid an error.
18889 Use char because int might match the return type of a GCC
18890 builtin and then its argument prototype would still apply. */
18895 /* The GNU C library defines this for functions which it implements
18896 to always fail with ENOSYS. Some functions are actually named
18897 something starting with __ and the normal name is an alias. */
18898 #if defined __stub_$ac_func || defined __stub___$ac_func
18905 return $ac_func ();
18910 rm -f conftest.$ac_objext conftest$ac_exeext
18911 if { (ac_try="$ac_link"
18912 case "(($ac_try" in
18913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18914 *) ac_try_echo=$ac_try;;
18916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18917 $as_echo "$ac_try_echo") >&5
18918 (eval "$ac_link") 2>conftest.er1
18920 grep -v '^ *+' conftest.er1 >conftest.err
18922 cat conftest.err >&5
18923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); } && {
18925 test -z "$ac_c_werror_flag" ||
18926 test ! -s conftest.err
18927 } && test -s conftest$ac_exeext && {
18928 test "$cross_compiling" = yes ||
18929 $as_test_x conftest$ac_exeext
18931 eval "$as_ac_var=yes"
18933 $as_echo "$as_me: failed program was:" >&5
18934 sed 's/^/| /' conftest.$ac_ext >&5
18936 eval "$as_ac_var=no"
18939 rm -rf conftest.dSYM
18940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18941 conftest$ac_exeext conftest.$ac_ext
18943 ac_res=`eval 'as_val=${'$as_ac_var'}
18944 $as_echo "$as_val"'`
18945 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18946 $as_echo "$ac_res" >&6; }
18947 as_val=`eval 'as_val=${'$as_ac_var'}
18948 $as_echo "$as_val"'`
18949 if test "x$as_val" = x""yes; then
18950 cat >>confdefs.h <<_ACEOF
18951 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18957 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
18958 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
18959 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
18960 $as_echo_n "(cached) " >&6
18962 cat >conftest.$ac_ext <<_ACEOF
18965 cat confdefs.h >>conftest.$ac_ext
18966 cat >>conftest.$ac_ext <<_ACEOF
18967 /* end confdefs.h. */
18973 #ifndef posix_fadvise
18974 (void) posix_fadvise;
18981 rm -f conftest.$ac_objext
18982 if { (ac_try="$ac_compile"
18983 case "(($ac_try" in
18984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18985 *) ac_try_echo=$ac_try;;
18987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18988 $as_echo "$ac_try_echo") >&5
18989 (eval "$ac_compile") 2>conftest.er1
18991 grep -v '^ *+' conftest.er1 >conftest.err
18993 cat conftest.err >&5
18994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } && {
18996 test -z "$ac_c_werror_flag" ||
18997 test ! -s conftest.err
18998 } && test -s conftest.$ac_objext; then
18999 ac_cv_have_decl_posix_fadvise=yes
19001 $as_echo "$as_me: failed program was:" >&5
19002 sed 's/^/| /' conftest.$ac_ext >&5
19004 ac_cv_have_decl_posix_fadvise=no
19007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19009 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19010 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19011 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19013 cat >>confdefs.h <<_ACEOF
19014 #define HAVE_DECL_POSIX_FADVISE 1
19019 cat >>confdefs.h <<_ACEOF
19020 #define HAVE_DECL_POSIX_FADVISE 0
19029 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19030 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19031 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19032 $as_echo_n "(cached) " >&6
19034 cat >conftest.$ac_ext <<_ACEOF
19037 cat confdefs.h >>conftest.$ac_ext
19038 cat >>conftest.$ac_ext <<_ACEOF
19039 /* end confdefs.h. */
19040 #include <unistd.h>
19053 rm -f conftest.$ac_objext
19054 if { (ac_try="$ac_compile"
19055 case "(($ac_try" in
19056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057 *) ac_try_echo=$ac_try;;
19059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19060 $as_echo "$ac_try_echo") >&5
19061 (eval "$ac_compile") 2>conftest.er1
19063 grep -v '^ *+' conftest.er1 >conftest.err
19065 cat conftest.err >&5
19066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); } && {
19068 test -z "$ac_c_werror_flag" ||
19069 test ! -s conftest.err
19070 } && test -s conftest.$ac_objext; then
19071 ac_cv_have_decl_fdatasync=yes
19073 $as_echo "$as_me: failed program was:" >&5
19074 sed 's/^/| /' conftest.$ac_ext >&5
19076 ac_cv_have_decl_fdatasync=no
19079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19081 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19082 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19083 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19085 cat >>confdefs.h <<_ACEOF
19086 #define HAVE_DECL_FDATASYNC 1
19091 cat >>confdefs.h <<_ACEOF
19092 #define HAVE_DECL_FDATASYNC 0
19099 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19100 $as_echo_n "checking whether strlcat is declared... " >&6; }
19101 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19102 $as_echo_n "(cached) " >&6
19104 cat >conftest.$ac_ext <<_ACEOF
19107 cat confdefs.h >>conftest.$ac_ext
19108 cat >>conftest.$ac_ext <<_ACEOF
19109 /* end confdefs.h. */
19110 $ac_includes_default
19122 rm -f conftest.$ac_objext
19123 if { (ac_try="$ac_compile"
19124 case "(($ac_try" in
19125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126 *) ac_try_echo=$ac_try;;
19128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19129 $as_echo "$ac_try_echo") >&5
19130 (eval "$ac_compile") 2>conftest.er1
19132 grep -v '^ *+' conftest.er1 >conftest.err
19134 cat conftest.err >&5
19135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); } && {
19137 test -z "$ac_c_werror_flag" ||
19138 test ! -s conftest.err
19139 } && test -s conftest.$ac_objext; then
19140 ac_cv_have_decl_strlcat=yes
19142 $as_echo "$as_me: failed program was:" >&5
19143 sed 's/^/| /' conftest.$ac_ext >&5
19145 ac_cv_have_decl_strlcat=no
19148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19150 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
19151 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19152 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
19154 cat >>confdefs.h <<_ACEOF
19155 #define HAVE_DECL_STRLCAT 1
19160 cat >>confdefs.h <<_ACEOF
19161 #define HAVE_DECL_STRLCAT 0
19166 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
19167 $as_echo_n "checking whether strlcpy is declared... " >&6; }
19168 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19169 $as_echo_n "(cached) " >&6
19171 cat >conftest.$ac_ext <<_ACEOF
19174 cat confdefs.h >>conftest.$ac_ext
19175 cat >>conftest.$ac_ext <<_ACEOF
19176 /* end confdefs.h. */
19177 $ac_includes_default
19189 rm -f conftest.$ac_objext
19190 if { (ac_try="$ac_compile"
19191 case "(($ac_try" in
19192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19193 *) ac_try_echo=$ac_try;;
19195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19196 $as_echo "$ac_try_echo") >&5
19197 (eval "$ac_compile") 2>conftest.er1
19199 grep -v '^ *+' conftest.er1 >conftest.err
19201 cat conftest.err >&5
19202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203 (exit $ac_status); } && {
19204 test -z "$ac_c_werror_flag" ||
19205 test ! -s conftest.err
19206 } && test -s conftest.$ac_objext; then
19207 ac_cv_have_decl_strlcpy=yes
19209 $as_echo "$as_me: failed program was:" >&5
19210 sed 's/^/| /' conftest.$ac_ext >&5
19212 ac_cv_have_decl_strlcpy=no
19215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19217 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
19218 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19219 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
19221 cat >>confdefs.h <<_ACEOF
19222 #define HAVE_DECL_STRLCPY 1
19227 cat >>confdefs.h <<_ACEOF
19228 #define HAVE_DECL_STRLCPY 0
19235 # This is probably only present on Darwin, but may as well check always
19236 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
19237 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
19238 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
19239 $as_echo_n "(cached) " >&6
19241 cat >conftest.$ac_ext <<_ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h. */
19252 #ifndef F_FULLFSYNC
19253 (void) F_FULLFSYNC;
19260 rm -f conftest.$ac_objext
19261 if { (ac_try="$ac_compile"
19262 case "(($ac_try" in
19263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264 *) ac_try_echo=$ac_try;;
19266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19267 $as_echo "$ac_try_echo") >&5
19268 (eval "$ac_compile") 2>conftest.er1
19270 grep -v '^ *+' conftest.er1 >conftest.err
19272 cat conftest.err >&5
19273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); } && {
19275 test -z "$ac_c_werror_flag" ||
19276 test ! -s conftest.err
19277 } && test -s conftest.$ac_objext; then
19278 ac_cv_have_decl_F_FULLFSYNC=yes
19280 $as_echo "$as_me: failed program was:" >&5
19281 sed 's/^/| /' conftest.$ac_ext >&5
19283 ac_cv_have_decl_F_FULLFSYNC=no
19286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19288 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
19289 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
19290 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
19292 cat >>confdefs.h <<_ACEOF
19293 #define HAVE_DECL_F_FULLFSYNC 1
19298 cat >>confdefs.h <<_ACEOF
19299 #define HAVE_DECL_F_FULLFSYNC 0
19308 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
19309 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
19310 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
19311 $as_echo_n "(cached) " >&6
19313 ac_cv_type_struct_sockaddr_in6=no
19314 cat >conftest.$ac_ext <<_ACEOF
19317 cat confdefs.h >>conftest.$ac_ext
19318 cat >>conftest.$ac_ext <<_ACEOF
19319 /* end confdefs.h. */
19320 $ac_includes_default
19321 #include <netinet/in.h>
19326 if (sizeof (struct sockaddr_in6))
19332 rm -f conftest.$ac_objext
19333 if { (ac_try="$ac_compile"
19334 case "(($ac_try" in
19335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19336 *) ac_try_echo=$ac_try;;
19338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19339 $as_echo "$ac_try_echo") >&5
19340 (eval "$ac_compile") 2>conftest.er1
19342 grep -v '^ *+' conftest.er1 >conftest.err
19344 cat conftest.err >&5
19345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); } && {
19347 test -z "$ac_c_werror_flag" ||
19348 test ! -s conftest.err
19349 } && test -s conftest.$ac_objext; then
19350 cat >conftest.$ac_ext <<_ACEOF
19353 cat confdefs.h >>conftest.$ac_ext
19354 cat >>conftest.$ac_ext <<_ACEOF
19355 /* end confdefs.h. */
19356 $ac_includes_default
19357 #include <netinet/in.h>
19362 if (sizeof ((struct sockaddr_in6)))
19368 rm -f conftest.$ac_objext
19369 if { (ac_try="$ac_compile"
19370 case "(($ac_try" in
19371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372 *) ac_try_echo=$ac_try;;
19374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19375 $as_echo "$ac_try_echo") >&5
19376 (eval "$ac_compile") 2>conftest.er1
19378 grep -v '^ *+' conftest.er1 >conftest.err
19380 cat conftest.err >&5
19381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } && {
19383 test -z "$ac_c_werror_flag" ||
19384 test ! -s conftest.err
19385 } && test -s conftest.$ac_objext; then
19388 $as_echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19391 ac_cv_type_struct_sockaddr_in6=yes
19394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19396 $as_echo "$as_me: failed program was:" >&5
19397 sed 's/^/| /' conftest.$ac_ext >&5
19402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19404 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
19405 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
19406 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
19408 cat >>confdefs.h <<\_ACEOF
19409 #define HAVE_IPV6 1
19417 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
19418 $as_echo_n "checking for PS_STRINGS... " >&6; }
19419 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
19420 $as_echo_n "(cached) " >&6
19422 cat >conftest.$ac_ext <<_ACEOF
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h. */
19428 #include <machine/vmparam.h>
19429 #include <sys/exec.h>
19434 PS_STRINGS->ps_nargvstr = 1;
19435 PS_STRINGS->ps_argvstr = "foo";
19440 rm -f conftest.$ac_objext conftest$ac_exeext
19441 if { (ac_try="$ac_link"
19442 case "(($ac_try" in
19443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444 *) ac_try_echo=$ac_try;;
19446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19447 $as_echo "$ac_try_echo") >&5
19448 (eval "$ac_link") 2>conftest.er1
19450 grep -v '^ *+' conftest.er1 >conftest.err
19452 cat conftest.err >&5
19453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454 (exit $ac_status); } && {
19455 test -z "$ac_c_werror_flag" ||
19456 test ! -s conftest.err
19457 } && test -s conftest$ac_exeext && {
19458 test "$cross_compiling" = yes ||
19459 $as_test_x conftest$ac_exeext
19461 pgac_cv_var_PS_STRINGS=yes
19463 $as_echo "$as_me: failed program was:" >&5
19464 sed 's/^/| /' conftest.$ac_ext >&5
19466 pgac_cv_var_PS_STRINGS=no
19469 rm -rf conftest.dSYM
19470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19471 conftest$ac_exeext conftest.$ac_ext
19473 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
19474 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
19475 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
19477 cat >>confdefs.h <<\_ACEOF
19478 #define HAVE_PS_STRINGS /**/
19484 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
19485 # is missing. Yes, there are machines that have only one. We may
19486 # also decide to use snprintf.c if snprintf() is present but does not
19487 # have all the features we need --- see below.
19489 if test "$PORTNAME" = "win32"; then
19490 # Win32 gets snprintf.c built unconditionally.
19492 # To properly translate all NLS languages strings, we must support the
19493 # *printf() %$ format, which allows *printf() arguments to be selected
19494 # by position in the translated string.
19496 # libintl versions < 0.13 use the native *printf() functions, and Win32
19497 # *printf() doesn't understand %$, so we must use our /port versions,
19498 # which do understand %$. libintl versions >= 0.13 include their own
19499 # *printf versions on Win32. The libintl 0.13 release note text is:
19501 # C format strings with positions, as they arise when a translator
19502 # needs to reorder a sentence, are now supported on all platforms.
19503 # On those few platforms (NetBSD and Woe32) for which the native
19504 # printf()/fprintf()/... functions don't support such format
19505 # strings, replacements are provided through <libintl.h>.
19507 # We could use libintl >= 0.13's *printf() if we were sure that we had
19508 # a litint >= 0.13 at runtime, but seeing that there is no clean way
19509 # to guarantee that, it is best to just use our own, so we are sure to
19510 # get %$ support. In include/port.h we disable the *printf() macros
19511 # that might have been defined by libintl.
19513 # We do this unconditionally whether NLS is used or not so we are sure
19514 # that all Win32 libraries and binaries behave the same.
19515 pgac_need_repl_snprintf=yes
19517 pgac_need_repl_snprintf=no
19519 for ac_func in snprintf
19521 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19522 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19523 $as_echo_n "checking for $ac_func... " >&6; }
19524 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19525 $as_echo_n "(cached) " >&6
19527 cat >conftest.$ac_ext <<_ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19535 #define $ac_func innocuous_$ac_func
19537 /* System header to define __stub macros and hopefully few prototypes,
19538 which can conflict with char $ac_func (); below.
19539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19540 <limits.h> exists even on freestanding compilers. */
19543 # include <limits.h>
19545 # include <assert.h>
19550 /* Override any GCC internal prototype to avoid an error.
19551 Use char because int might match the return type of a GCC
19552 builtin and then its argument prototype would still apply. */
19557 /* The GNU C library defines this for functions which it implements
19558 to always fail with ENOSYS. Some functions are actually named
19559 something starting with __ and the normal name is an alias. */
19560 #if defined __stub_$ac_func || defined __stub___$ac_func
19567 return $ac_func ();
19572 rm -f conftest.$ac_objext conftest$ac_exeext
19573 if { (ac_try="$ac_link"
19574 case "(($ac_try" in
19575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19576 *) ac_try_echo=$ac_try;;
19578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19579 $as_echo "$ac_try_echo") >&5
19580 (eval "$ac_link") 2>conftest.er1
19582 grep -v '^ *+' conftest.er1 >conftest.err
19584 cat conftest.err >&5
19585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); } && {
19587 test -z "$ac_c_werror_flag" ||
19588 test ! -s conftest.err
19589 } && test -s conftest$ac_exeext && {
19590 test "$cross_compiling" = yes ||
19591 $as_test_x conftest$ac_exeext
19593 eval "$as_ac_var=yes"
19595 $as_echo "$as_me: failed program was:" >&5
19596 sed 's/^/| /' conftest.$ac_ext >&5
19598 eval "$as_ac_var=no"
19601 rm -rf conftest.dSYM
19602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19603 conftest$ac_exeext conftest.$ac_ext
19605 ac_res=`eval 'as_val=${'$as_ac_var'}
19606 $as_echo "$as_val"'`
19607 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19608 $as_echo "$ac_res" >&6; }
19609 as_val=`eval 'as_val=${'$as_ac_var'}
19610 $as_echo "$as_val"'`
19611 if test "x$as_val" = x""yes; then
19612 cat >>confdefs.h <<_ACEOF
19613 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19617 pgac_need_repl_snprintf=yes
19622 for ac_func in vsnprintf
19624 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19625 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19626 $as_echo_n "checking for $ac_func... " >&6; }
19627 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19628 $as_echo_n "(cached) " >&6
19630 cat >conftest.$ac_ext <<_ACEOF
19633 cat confdefs.h >>conftest.$ac_ext
19634 cat >>conftest.$ac_ext <<_ACEOF
19635 /* end confdefs.h. */
19636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19638 #define $ac_func innocuous_$ac_func
19640 /* System header to define __stub macros and hopefully few prototypes,
19641 which can conflict with char $ac_func (); below.
19642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19643 <limits.h> exists even on freestanding compilers. */
19646 # include <limits.h>
19648 # include <assert.h>
19653 /* Override any GCC internal prototype to avoid an error.
19654 Use char because int might match the return type of a GCC
19655 builtin and then its argument prototype would still apply. */
19660 /* The GNU C library defines this for functions which it implements
19661 to always fail with ENOSYS. Some functions are actually named
19662 something starting with __ and the normal name is an alias. */
19663 #if defined __stub_$ac_func || defined __stub___$ac_func
19670 return $ac_func ();
19675 rm -f conftest.$ac_objext conftest$ac_exeext
19676 if { (ac_try="$ac_link"
19677 case "(($ac_try" in
19678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19679 *) ac_try_echo=$ac_try;;
19681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19682 $as_echo "$ac_try_echo") >&5
19683 (eval "$ac_link") 2>conftest.er1
19685 grep -v '^ *+' conftest.er1 >conftest.err
19687 cat conftest.err >&5
19688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); } && {
19690 test -z "$ac_c_werror_flag" ||
19691 test ! -s conftest.err
19692 } && test -s conftest$ac_exeext && {
19693 test "$cross_compiling" = yes ||
19694 $as_test_x conftest$ac_exeext
19696 eval "$as_ac_var=yes"
19698 $as_echo "$as_me: failed program was:" >&5
19699 sed 's/^/| /' conftest.$ac_ext >&5
19701 eval "$as_ac_var=no"
19704 rm -rf conftest.dSYM
19705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19706 conftest$ac_exeext conftest.$ac_ext
19708 ac_res=`eval 'as_val=${'$as_ac_var'}
19709 $as_echo "$as_val"'`
19710 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19711 $as_echo "$ac_res" >&6; }
19712 as_val=`eval 'as_val=${'$as_ac_var'}
19713 $as_echo "$as_val"'`
19714 if test "x$as_val" = x""yes; then
19715 cat >>confdefs.h <<_ACEOF
19716 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19720 pgac_need_repl_snprintf=yes
19727 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
19728 # include/c.h will provide declarations. Note this is a separate test
19729 # from whether the functions exist in the C library --- there are
19730 # systems that have the functions but don't bother to declare them :-(
19732 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
19733 $as_echo_n "checking whether snprintf is declared... " >&6; }
19734 if test "${ac_cv_have_decl_snprintf+set}" = set; then
19735 $as_echo_n "(cached) " >&6
19737 cat >conftest.$ac_ext <<_ACEOF
19740 cat confdefs.h >>conftest.$ac_ext
19741 cat >>conftest.$ac_ext <<_ACEOF
19742 /* end confdefs.h. */
19743 $ac_includes_default
19755 rm -f conftest.$ac_objext
19756 if { (ac_try="$ac_compile"
19757 case "(($ac_try" in
19758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19759 *) ac_try_echo=$ac_try;;
19761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19762 $as_echo "$ac_try_echo") >&5
19763 (eval "$ac_compile") 2>conftest.er1
19765 grep -v '^ *+' conftest.er1 >conftest.err
19767 cat conftest.err >&5
19768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); } && {
19770 test -z "$ac_c_werror_flag" ||
19771 test ! -s conftest.err
19772 } && test -s conftest.$ac_objext; then
19773 ac_cv_have_decl_snprintf=yes
19775 $as_echo "$as_me: failed program was:" >&5
19776 sed 's/^/| /' conftest.$ac_ext >&5
19778 ac_cv_have_decl_snprintf=no
19781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19783 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
19784 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
19785 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
19787 cat >>confdefs.h <<_ACEOF
19788 #define HAVE_DECL_SNPRINTF 1
19793 cat >>confdefs.h <<_ACEOF
19794 #define HAVE_DECL_SNPRINTF 0
19799 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
19800 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
19801 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
19802 $as_echo_n "(cached) " >&6
19804 cat >conftest.$ac_ext <<_ACEOF
19807 cat confdefs.h >>conftest.$ac_ext
19808 cat >>conftest.$ac_ext <<_ACEOF
19809 /* end confdefs.h. */
19810 $ac_includes_default
19822 rm -f conftest.$ac_objext
19823 if { (ac_try="$ac_compile"
19824 case "(($ac_try" in
19825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19826 *) ac_try_echo=$ac_try;;
19828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19829 $as_echo "$ac_try_echo") >&5
19830 (eval "$ac_compile") 2>conftest.er1
19832 grep -v '^ *+' conftest.er1 >conftest.err
19834 cat conftest.err >&5
19835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); } && {
19837 test -z "$ac_c_werror_flag" ||
19838 test ! -s conftest.err
19839 } && test -s conftest.$ac_objext; then
19840 ac_cv_have_decl_vsnprintf=yes
19842 $as_echo "$as_me: failed program was:" >&5
19843 sed 's/^/| /' conftest.$ac_ext >&5
19845 ac_cv_have_decl_vsnprintf=no
19848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19850 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
19851 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
19852 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
19854 cat >>confdefs.h <<_ACEOF
19855 #define HAVE_DECL_VSNPRINTF 1
19860 cat >>confdefs.h <<_ACEOF
19861 #define HAVE_DECL_VSNPRINTF 0
19870 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
19871 $as_echo_n "checking for isinf... " >&6; }
19872 if test "${ac_cv_func_isinf+set}" = set; then
19873 $as_echo_n "(cached) " >&6
19875 cat >conftest.$ac_ext <<_ACEOF
19878 cat confdefs.h >>conftest.$ac_ext
19879 cat >>conftest.$ac_ext <<_ACEOF
19880 /* end confdefs.h. */
19883 double glob_double;
19888 return isinf(glob_double) ? 0 : 1;
19893 rm -f conftest.$ac_objext conftest$ac_exeext
19894 if { (ac_try="$ac_link"
19895 case "(($ac_try" in
19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897 *) ac_try_echo=$ac_try;;
19899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19900 $as_echo "$ac_try_echo") >&5
19901 (eval "$ac_link") 2>conftest.er1
19903 grep -v '^ *+' conftest.er1 >conftest.err
19905 cat conftest.err >&5
19906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); } && {
19908 test -z "$ac_c_werror_flag" ||
19909 test ! -s conftest.err
19910 } && test -s conftest$ac_exeext && {
19911 test "$cross_compiling" = yes ||
19912 $as_test_x conftest$ac_exeext
19914 ac_cv_func_isinf=yes
19916 $as_echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19919 ac_cv_func_isinf=no
19922 rm -rf conftest.dSYM
19923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19924 conftest$ac_exeext conftest.$ac_ext
19926 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
19927 $as_echo "$ac_cv_func_isinf" >&6; }
19929 if test $ac_cv_func_isinf = yes ; then
19931 cat >>confdefs.h <<\_ACEOF
19932 #define HAVE_ISINF 1
19936 case " $LIBOBJS " in
19937 *" isinf.$ac_objext "* ) ;;
19938 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
19942 # Look for a way to implement a substitute for isinf()
19947 for ac_func in fpclass fp_class fp_class_d class
19949 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19950 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19951 $as_echo_n "checking for $ac_func... " >&6; }
19952 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19953 $as_echo_n "(cached) " >&6
19955 cat >conftest.$ac_ext <<_ACEOF
19958 cat confdefs.h >>conftest.$ac_ext
19959 cat >>conftest.$ac_ext <<_ACEOF
19960 /* end confdefs.h. */
19961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19963 #define $ac_func innocuous_$ac_func
19965 /* System header to define __stub macros and hopefully few prototypes,
19966 which can conflict with char $ac_func (); below.
19967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19968 <limits.h> exists even on freestanding compilers. */
19971 # include <limits.h>
19973 # include <assert.h>
19978 /* Override any GCC internal prototype to avoid an error.
19979 Use char because int might match the return type of a GCC
19980 builtin and then its argument prototype would still apply. */
19985 /* The GNU C library defines this for functions which it implements
19986 to always fail with ENOSYS. Some functions are actually named
19987 something starting with __ and the normal name is an alias. */
19988 #if defined __stub_$ac_func || defined __stub___$ac_func
19995 return $ac_func ();
20000 rm -f conftest.$ac_objext conftest$ac_exeext
20001 if { (ac_try="$ac_link"
20002 case "(($ac_try" in
20003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20004 *) ac_try_echo=$ac_try;;
20006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20007 $as_echo "$ac_try_echo") >&5
20008 (eval "$ac_link") 2>conftest.er1
20010 grep -v '^ *+' conftest.er1 >conftest.err
20012 cat conftest.err >&5
20013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); } && {
20015 test -z "$ac_c_werror_flag" ||
20016 test ! -s conftest.err
20017 } && test -s conftest$ac_exeext && {
20018 test "$cross_compiling" = yes ||
20019 $as_test_x conftest$ac_exeext
20021 eval "$as_ac_var=yes"
20023 $as_echo "$as_me: failed program was:" >&5
20024 sed 's/^/| /' conftest.$ac_ext >&5
20026 eval "$as_ac_var=no"
20029 rm -rf conftest.dSYM
20030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20031 conftest$ac_exeext conftest.$ac_ext
20033 ac_res=`eval 'as_val=${'$as_ac_var'}
20034 $as_echo "$as_val"'`
20035 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20036 $as_echo "$ac_res" >&6; }
20037 as_val=`eval 'as_val=${'$as_ac_var'}
20038 $as_echo "$as_val"'`
20039 if test "x$as_val" = x""yes; then
20040 cat >>confdefs.h <<_ACEOF
20041 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20049 # Some versions of libedit contain strlcpy(); so disregard that library while
20050 # checking for these standard libc functions.
20051 pgac_save_LIBS="$LIBS"
20052 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20068 for ac_func in crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20070 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20071 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20072 $as_echo_n "checking for $ac_func... " >&6; }
20073 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20074 $as_echo_n "(cached) " >&6
20076 cat >conftest.$ac_ext <<_ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h. */
20082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20084 #define $ac_func innocuous_$ac_func
20086 /* System header to define __stub macros and hopefully few prototypes,
20087 which can conflict with char $ac_func (); below.
20088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20089 <limits.h> exists even on freestanding compilers. */
20092 # include <limits.h>
20094 # include <assert.h>
20099 /* Override any GCC internal prototype to avoid an error.
20100 Use char because int might match the return type of a GCC
20101 builtin and then its argument prototype would still apply. */
20106 /* The GNU C library defines this for functions which it implements
20107 to always fail with ENOSYS. Some functions are actually named
20108 something starting with __ and the normal name is an alias. */
20109 #if defined __stub_$ac_func || defined __stub___$ac_func
20116 return $ac_func ();
20121 rm -f conftest.$ac_objext conftest$ac_exeext
20122 if { (ac_try="$ac_link"
20123 case "(($ac_try" in
20124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20125 *) ac_try_echo=$ac_try;;
20127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20128 $as_echo "$ac_try_echo") >&5
20129 (eval "$ac_link") 2>conftest.er1
20131 grep -v '^ *+' conftest.er1 >conftest.err
20133 cat conftest.err >&5
20134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); } && {
20136 test -z "$ac_c_werror_flag" ||
20137 test ! -s conftest.err
20138 } && test -s conftest$ac_exeext && {
20139 test "$cross_compiling" = yes ||
20140 $as_test_x conftest$ac_exeext
20142 eval "$as_ac_var=yes"
20144 $as_echo "$as_me: failed program was:" >&5
20145 sed 's/^/| /' conftest.$ac_ext >&5
20147 eval "$as_ac_var=no"
20150 rm -rf conftest.dSYM
20151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20152 conftest$ac_exeext conftest.$ac_ext
20154 ac_res=`eval 'as_val=${'$as_ac_var'}
20155 $as_echo "$as_val"'`
20156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20157 $as_echo "$ac_res" >&6; }
20158 as_val=`eval 'as_val=${'$as_ac_var'}
20159 $as_echo "$as_val"'`
20160 if test "x$as_val" = x""yes; then
20161 cat >>confdefs.h <<_ACEOF
20162 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20166 case " $LIBOBJS " in
20167 *" $ac_func.$ac_objext "* ) ;;
20168 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20179 # Windows uses a specialised env handler
20182 cat >>confdefs.h <<\_ACEOF
20183 #define HAVE_UNSETENV 1
20186 ac_cv_func_unsetenv=yes;;
20189 for ac_func in unsetenv
20191 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20192 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20193 $as_echo_n "checking for $ac_func... " >&6; }
20194 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20195 $as_echo_n "(cached) " >&6
20197 cat >conftest.$ac_ext <<_ACEOF
20200 cat confdefs.h >>conftest.$ac_ext
20201 cat >>conftest.$ac_ext <<_ACEOF
20202 /* end confdefs.h. */
20203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20205 #define $ac_func innocuous_$ac_func
20207 /* System header to define __stub macros and hopefully few prototypes,
20208 which can conflict with char $ac_func (); below.
20209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20210 <limits.h> exists even on freestanding compilers. */
20213 # include <limits.h>
20215 # include <assert.h>
20220 /* Override any GCC internal prototype to avoid an error.
20221 Use char because int might match the return type of a GCC
20222 builtin and then its argument prototype would still apply. */
20227 /* The GNU C library defines this for functions which it implements
20228 to always fail with ENOSYS. Some functions are actually named
20229 something starting with __ and the normal name is an alias. */
20230 #if defined __stub_$ac_func || defined __stub___$ac_func
20237 return $ac_func ();
20242 rm -f conftest.$ac_objext conftest$ac_exeext
20243 if { (ac_try="$ac_link"
20244 case "(($ac_try" in
20245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20246 *) ac_try_echo=$ac_try;;
20248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20249 $as_echo "$ac_try_echo") >&5
20250 (eval "$ac_link") 2>conftest.er1
20252 grep -v '^ *+' conftest.er1 >conftest.err
20254 cat conftest.err >&5
20255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); } && {
20257 test -z "$ac_c_werror_flag" ||
20258 test ! -s conftest.err
20259 } && test -s conftest$ac_exeext && {
20260 test "$cross_compiling" = yes ||
20261 $as_test_x conftest$ac_exeext
20263 eval "$as_ac_var=yes"
20265 $as_echo "$as_me: failed program was:" >&5
20266 sed 's/^/| /' conftest.$ac_ext >&5
20268 eval "$as_ac_var=no"
20271 rm -rf conftest.dSYM
20272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20273 conftest$ac_exeext conftest.$ac_ext
20275 ac_res=`eval 'as_val=${'$as_ac_var'}
20276 $as_echo "$as_val"'`
20277 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20278 $as_echo "$ac_res" >&6; }
20279 as_val=`eval 'as_val=${'$as_ac_var'}
20280 $as_echo "$as_val"'`
20281 if test "x$as_val" = x""yes; then
20282 cat >>confdefs.h <<_ACEOF
20283 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20287 case " $LIBOBJS " in
20288 *" $ac_func.$ac_objext "* ) ;;
20289 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20301 LIBS="$pgac_save_LIBS"
20303 # System's version of getaddrinfo(), if any, may be used only if we found
20304 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
20305 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
20306 # versions of getaddrinfo don't follow normal C call protocol. This is OK
20307 # because we want to use our own getaddrinfo.c on Windows anyway.)
20308 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
20310 for ac_func in getaddrinfo
20312 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20313 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20314 $as_echo_n "checking for $ac_func... " >&6; }
20315 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20316 $as_echo_n "(cached) " >&6
20318 cat >conftest.$ac_ext <<_ACEOF
20321 cat confdefs.h >>conftest.$ac_ext
20322 cat >>conftest.$ac_ext <<_ACEOF
20323 /* end confdefs.h. */
20324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20326 #define $ac_func innocuous_$ac_func
20328 /* System header to define __stub macros and hopefully few prototypes,
20329 which can conflict with char $ac_func (); below.
20330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20331 <limits.h> exists even on freestanding compilers. */
20334 # include <limits.h>
20336 # include <assert.h>
20341 /* Override any GCC internal prototype to avoid an error.
20342 Use char because int might match the return type of a GCC
20343 builtin and then its argument prototype would still apply. */
20348 /* The GNU C library defines this for functions which it implements
20349 to always fail with ENOSYS. Some functions are actually named
20350 something starting with __ and the normal name is an alias. */
20351 #if defined __stub_$ac_func || defined __stub___$ac_func
20358 return $ac_func ();
20363 rm -f conftest.$ac_objext conftest$ac_exeext
20364 if { (ac_try="$ac_link"
20365 case "(($ac_try" in
20366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367 *) ac_try_echo=$ac_try;;
20369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20370 $as_echo "$ac_try_echo") >&5
20371 (eval "$ac_link") 2>conftest.er1
20373 grep -v '^ *+' conftest.er1 >conftest.err
20375 cat conftest.err >&5
20376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); } && {
20378 test -z "$ac_c_werror_flag" ||
20379 test ! -s conftest.err
20380 } && test -s conftest$ac_exeext && {
20381 test "$cross_compiling" = yes ||
20382 $as_test_x conftest$ac_exeext
20384 eval "$as_ac_var=yes"
20386 $as_echo "$as_me: failed program was:" >&5
20387 sed 's/^/| /' conftest.$ac_ext >&5
20389 eval "$as_ac_var=no"
20392 rm -rf conftest.dSYM
20393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20394 conftest$ac_exeext conftest.$ac_ext
20396 ac_res=`eval 'as_val=${'$as_ac_var'}
20397 $as_echo "$as_val"'`
20398 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20399 $as_echo "$ac_res" >&6; }
20400 as_val=`eval 'as_val=${'$as_ac_var'}
20401 $as_echo "$as_val"'`
20402 if test "x$as_val" = x""yes; then
20403 cat >>confdefs.h <<_ACEOF
20404 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20408 case " $LIBOBJS " in
20409 *" $ac_func.$ac_objext "* ) ;;
20410 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20419 case " $LIBOBJS " in
20420 *" getaddrinfo.$ac_objext "* ) ;;
20421 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
20427 # Similarly, use system's getopt_long() only if system provides struct option.
20428 if test x"$ac_cv_type_struct_option" = xyes ; then
20430 for ac_func in getopt_long
20432 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20433 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20434 $as_echo_n "checking for $ac_func... " >&6; }
20435 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20436 $as_echo_n "(cached) " >&6
20438 cat >conftest.$ac_ext <<_ACEOF
20441 cat confdefs.h >>conftest.$ac_ext
20442 cat >>conftest.$ac_ext <<_ACEOF
20443 /* end confdefs.h. */
20444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20446 #define $ac_func innocuous_$ac_func
20448 /* System header to define __stub macros and hopefully few prototypes,
20449 which can conflict with char $ac_func (); below.
20450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20451 <limits.h> exists even on freestanding compilers. */
20454 # include <limits.h>
20456 # include <assert.h>
20461 /* Override any GCC internal prototype to avoid an error.
20462 Use char because int might match the return type of a GCC
20463 builtin and then its argument prototype would still apply. */
20468 /* The GNU C library defines this for functions which it implements
20469 to always fail with ENOSYS. Some functions are actually named
20470 something starting with __ and the normal name is an alias. */
20471 #if defined __stub_$ac_func || defined __stub___$ac_func
20478 return $ac_func ();
20483 rm -f conftest.$ac_objext conftest$ac_exeext
20484 if { (ac_try="$ac_link"
20485 case "(($ac_try" in
20486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20487 *) ac_try_echo=$ac_try;;
20489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20490 $as_echo "$ac_try_echo") >&5
20491 (eval "$ac_link") 2>conftest.er1
20493 grep -v '^ *+' conftest.er1 >conftest.err
20495 cat conftest.err >&5
20496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); } && {
20498 test -z "$ac_c_werror_flag" ||
20499 test ! -s conftest.err
20500 } && test -s conftest$ac_exeext && {
20501 test "$cross_compiling" = yes ||
20502 $as_test_x conftest$ac_exeext
20504 eval "$as_ac_var=yes"
20506 $as_echo "$as_me: failed program was:" >&5
20507 sed 's/^/| /' conftest.$ac_ext >&5
20509 eval "$as_ac_var=no"
20512 rm -rf conftest.dSYM
20513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20514 conftest$ac_exeext conftest.$ac_ext
20516 ac_res=`eval 'as_val=${'$as_ac_var'}
20517 $as_echo "$as_val"'`
20518 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20519 $as_echo "$ac_res" >&6; }
20520 as_val=`eval 'as_val=${'$as_ac_var'}
20521 $as_echo "$as_val"'`
20522 if test "x$as_val" = x""yes; then
20523 cat >>confdefs.h <<_ACEOF
20524 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20528 case " $LIBOBJS " in
20529 *" $ac_func.$ac_objext "* ) ;;
20530 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20539 case " $LIBOBJS " in
20540 *" getopt_long.$ac_objext "* ) ;;
20541 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
20547 # Solaris' getopt() doesn't do what we want for long options, so always use
20548 # our version on that platform.
20549 if test "$PORTNAME" = "solaris"; then
20550 case " $LIBOBJS " in
20551 *" getopt.$ac_objext "* ) ;;
20552 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
20558 # Cygwin's erand48() is broken (always returns zero) in some releases,
20559 # so force use of ours.
20560 if test "$PORTNAME" = "cygwin"; then
20561 case " $LIBOBJS " in
20562 *" erand48.$ac_objext "* ) ;;
20563 *) LIBOBJS="$LIBOBJS erand48.$ac_objext"
20570 if test "$PORTNAME" = "win32"; then
20572 for ac_func in gettimeofday
20574 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20575 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20576 $as_echo_n "checking for $ac_func... " >&6; }
20577 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20578 $as_echo_n "(cached) " >&6
20580 cat >conftest.$ac_ext <<_ACEOF
20583 cat confdefs.h >>conftest.$ac_ext
20584 cat >>conftest.$ac_ext <<_ACEOF
20585 /* end confdefs.h. */
20586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20588 #define $ac_func innocuous_$ac_func
20590 /* System header to define __stub macros and hopefully few prototypes,
20591 which can conflict with char $ac_func (); below.
20592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20593 <limits.h> exists even on freestanding compilers. */
20596 # include <limits.h>
20598 # include <assert.h>
20603 /* Override any GCC internal prototype to avoid an error.
20604 Use char because int might match the return type of a GCC
20605 builtin and then its argument prototype would still apply. */
20610 /* The GNU C library defines this for functions which it implements
20611 to always fail with ENOSYS. Some functions are actually named
20612 something starting with __ and the normal name is an alias. */
20613 #if defined __stub_$ac_func || defined __stub___$ac_func
20620 return $ac_func ();
20625 rm -f conftest.$ac_objext conftest$ac_exeext
20626 if { (ac_try="$ac_link"
20627 case "(($ac_try" in
20628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629 *) ac_try_echo=$ac_try;;
20631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20632 $as_echo "$ac_try_echo") >&5
20633 (eval "$ac_link") 2>conftest.er1
20635 grep -v '^ *+' conftest.er1 >conftest.err
20637 cat conftest.err >&5
20638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); } && {
20640 test -z "$ac_c_werror_flag" ||
20641 test ! -s conftest.err
20642 } && test -s conftest$ac_exeext && {
20643 test "$cross_compiling" = yes ||
20644 $as_test_x conftest$ac_exeext
20646 eval "$as_ac_var=yes"
20648 $as_echo "$as_me: failed program was:" >&5
20649 sed 's/^/| /' conftest.$ac_ext >&5
20651 eval "$as_ac_var=no"
20654 rm -rf conftest.dSYM
20655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20656 conftest$ac_exeext conftest.$ac_ext
20658 ac_res=`eval 'as_val=${'$as_ac_var'}
20659 $as_echo "$as_val"'`
20660 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20661 $as_echo "$ac_res" >&6; }
20662 as_val=`eval 'as_val=${'$as_ac_var'}
20663 $as_echo "$as_val"'`
20664 if test "x$as_val" = x""yes; then
20665 cat >>confdefs.h <<_ACEOF
20666 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20670 case " $LIBOBJS " in
20671 *" $ac_func.$ac_objext "* ) ;;
20672 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20680 case " $LIBOBJS " in
20681 *" kill.$ac_objext "* ) ;;
20682 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
20686 case " $LIBOBJS " in
20687 *" open.$ac_objext "* ) ;;
20688 *) LIBOBJS="$LIBOBJS open.$ac_objext"
20692 case " $LIBOBJS " in
20693 *" win32env.$ac_objext "* ) ;;
20694 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
20698 case " $LIBOBJS " in
20699 *" win32error.$ac_objext "* ) ;;
20700 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
20705 cat >>confdefs.h <<\_ACEOF
20706 #define HAVE_SYMLINK 1
20711 if test "$with_readline" = yes; then
20712 { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
20713 $as_echo_n "checking for rl_completion_append_character... " >&6; }
20714 cat >conftest.$ac_ext <<_ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h. */
20721 #ifdef HAVE_READLINE_READLINE_H
20722 # include <readline/readline.h>
20723 #elif defined(HAVE_READLINE_H)
20724 # include <readline.h>
20730 rl_completion_append_character = 'x';
20735 rm -f conftest.$ac_objext conftest$ac_exeext
20736 if { (ac_try="$ac_link"
20737 case "(($ac_try" in
20738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20739 *) ac_try_echo=$ac_try;;
20741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20742 $as_echo "$ac_try_echo") >&5
20743 (eval "$ac_link") 2>conftest.er1
20745 grep -v '^ *+' conftest.er1 >conftest.err
20747 cat conftest.err >&5
20748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749 (exit $ac_status); } && {
20750 test -z "$ac_c_werror_flag" ||
20751 test ! -s conftest.err
20752 } && test -s conftest$ac_exeext && {
20753 test "$cross_compiling" = yes ||
20754 $as_test_x conftest$ac_exeext
20756 { $as_echo "$as_me:$LINENO: result: yes" >&5
20757 $as_echo "yes" >&6; }
20759 cat >>confdefs.h <<\_ACEOF
20760 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20764 $as_echo "$as_me: failed program was:" >&5
20765 sed 's/^/| /' conftest.$ac_ext >&5
20767 { $as_echo "$as_me:$LINENO: result: no" >&5
20768 $as_echo "no" >&6; }
20771 rm -rf conftest.dSYM
20772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20773 conftest$ac_exeext conftest.$ac_ext
20776 for ac_func in rl_completion_matches rl_filename_completion_function
20778 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20779 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20780 $as_echo_n "checking for $ac_func... " >&6; }
20781 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20782 $as_echo_n "(cached) " >&6
20784 cat >conftest.$ac_ext <<_ACEOF
20787 cat confdefs.h >>conftest.$ac_ext
20788 cat >>conftest.$ac_ext <<_ACEOF
20789 /* end confdefs.h. */
20790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20792 #define $ac_func innocuous_$ac_func
20794 /* System header to define __stub macros and hopefully few prototypes,
20795 which can conflict with char $ac_func (); below.
20796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20797 <limits.h> exists even on freestanding compilers. */
20800 # include <limits.h>
20802 # include <assert.h>
20807 /* Override any GCC internal prototype to avoid an error.
20808 Use char because int might match the return type of a GCC
20809 builtin and then its argument prototype would still apply. */
20814 /* The GNU C library defines this for functions which it implements
20815 to always fail with ENOSYS. Some functions are actually named
20816 something starting with __ and the normal name is an alias. */
20817 #if defined __stub_$ac_func || defined __stub___$ac_func
20824 return $ac_func ();
20829 rm -f conftest.$ac_objext conftest$ac_exeext
20830 if { (ac_try="$ac_link"
20831 case "(($ac_try" in
20832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20833 *) ac_try_echo=$ac_try;;
20835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20836 $as_echo "$ac_try_echo") >&5
20837 (eval "$ac_link") 2>conftest.er1
20839 grep -v '^ *+' conftest.er1 >conftest.err
20841 cat conftest.err >&5
20842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } && {
20844 test -z "$ac_c_werror_flag" ||
20845 test ! -s conftest.err
20846 } && test -s conftest$ac_exeext && {
20847 test "$cross_compiling" = yes ||
20848 $as_test_x conftest$ac_exeext
20850 eval "$as_ac_var=yes"
20852 $as_echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.$ac_ext >&5
20855 eval "$as_ac_var=no"
20858 rm -rf conftest.dSYM
20859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20860 conftest$ac_exeext conftest.$ac_ext
20862 ac_res=`eval 'as_val=${'$as_ac_var'}
20863 $as_echo "$as_val"'`
20864 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20865 $as_echo "$ac_res" >&6; }
20866 as_val=`eval 'as_val=${'$as_ac_var'}
20867 $as_echo "$as_val"'`
20868 if test "x$as_val" = x""yes; then
20869 cat >>confdefs.h <<_ACEOF
20870 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20878 for ac_func in append_history history_truncate_file
20880 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20881 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20882 $as_echo_n "checking for $ac_func... " >&6; }
20883 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20884 $as_echo_n "(cached) " >&6
20886 cat >conftest.$ac_ext <<_ACEOF
20889 cat confdefs.h >>conftest.$ac_ext
20890 cat >>conftest.$ac_ext <<_ACEOF
20891 /* end confdefs.h. */
20892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20894 #define $ac_func innocuous_$ac_func
20896 /* System header to define __stub macros and hopefully few prototypes,
20897 which can conflict with char $ac_func (); below.
20898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20899 <limits.h> exists even on freestanding compilers. */
20902 # include <limits.h>
20904 # include <assert.h>
20909 /* Override any GCC internal prototype to avoid an error.
20910 Use char because int might match the return type of a GCC
20911 builtin and then its argument prototype would still apply. */
20916 /* The GNU C library defines this for functions which it implements
20917 to always fail with ENOSYS. Some functions are actually named
20918 something starting with __ and the normal name is an alias. */
20919 #if defined __stub_$ac_func || defined __stub___$ac_func
20926 return $ac_func ();
20931 rm -f conftest.$ac_objext conftest$ac_exeext
20932 if { (ac_try="$ac_link"
20933 case "(($ac_try" in
20934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20935 *) ac_try_echo=$ac_try;;
20937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20938 $as_echo "$ac_try_echo") >&5
20939 (eval "$ac_link") 2>conftest.er1
20941 grep -v '^ *+' conftest.er1 >conftest.err
20943 cat conftest.err >&5
20944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } && {
20946 test -z "$ac_c_werror_flag" ||
20947 test ! -s conftest.err
20948 } && test -s conftest$ac_exeext && {
20949 test "$cross_compiling" = yes ||
20950 $as_test_x conftest$ac_exeext
20952 eval "$as_ac_var=yes"
20954 $as_echo "$as_me: failed program was:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20957 eval "$as_ac_var=no"
20960 rm -rf conftest.dSYM
20961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20962 conftest$ac_exeext conftest.$ac_ext
20964 ac_res=`eval 'as_val=${'$as_ac_var'}
20965 $as_echo "$as_val"'`
20966 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20967 $as_echo "$ac_res" >&6; }
20968 as_val=`eval 'as_val=${'$as_ac_var'}
20969 $as_echo "$as_val"'`
20970 if test "x$as_val" = x""yes; then
20971 cat >>confdefs.h <<_ACEOF
20972 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20981 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
20982 $as_echo_n "checking for sigsetjmp... " >&6; }
20983 cat >conftest.$ac_ext <<_ACEOF
20986 cat confdefs.h >>conftest.$ac_ext
20987 cat >>conftest.$ac_ext <<_ACEOF
20988 /* end confdefs.h. */
20989 #include <setjmp.h>
20993 sigjmp_buf x; sigsetjmp(x, 1);
20998 rm -f conftest.$ac_objext conftest$ac_exeext
20999 if { (ac_try="$ac_link"
21000 case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21005 $as_echo "$ac_try_echo") >&5
21006 (eval "$ac_link") 2>conftest.er1
21008 grep -v '^ *+' conftest.er1 >conftest.err
21010 cat conftest.err >&5
21011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); } && {
21013 test -z "$ac_c_werror_flag" ||
21014 test ! -s conftest.err
21015 } && test -s conftest$ac_exeext && {
21016 test "$cross_compiling" = yes ||
21017 $as_test_x conftest$ac_exeext
21020 cat >>confdefs.h <<\_ACEOF
21021 #define HAVE_SIGSETJMP 1
21024 { $as_echo "$as_me:$LINENO: result: yes" >&5
21025 $as_echo "yes" >&6; }
21027 $as_echo "$as_me: failed program was:" >&5
21028 sed 's/^/| /' conftest.$ac_ext >&5
21030 { $as_echo "$as_me:$LINENO: result: no" >&5
21031 $as_echo "no" >&6; }
21034 rm -rf conftest.dSYM
21035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21036 conftest$ac_exeext conftest.$ac_ext
21038 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21039 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21040 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21041 $as_echo_n "(cached) " >&6
21043 cat >conftest.$ac_ext <<_ACEOF
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h. */
21049 #include <signal.h>
21050 /* NetBSD declares sys_siglist in unistd.h. */
21051 #ifdef HAVE_UNISTD_H
21052 # include <unistd.h>
21059 #ifndef sys_siglist
21060 (void) sys_siglist;
21067 rm -f conftest.$ac_objext
21068 if { (ac_try="$ac_compile"
21069 case "(($ac_try" in
21070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21071 *) ac_try_echo=$ac_try;;
21073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21074 $as_echo "$ac_try_echo") >&5
21075 (eval "$ac_compile") 2>conftest.er1
21077 grep -v '^ *+' conftest.er1 >conftest.err
21079 cat conftest.err >&5
21080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); } && {
21082 test -z "$ac_c_werror_flag" ||
21083 test ! -s conftest.err
21084 } && test -s conftest.$ac_objext; then
21085 ac_cv_have_decl_sys_siglist=yes
21087 $as_echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21090 ac_cv_have_decl_sys_siglist=no
21093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21095 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21096 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21097 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
21099 cat >>confdefs.h <<_ACEOF
21100 #define HAVE_DECL_SYS_SIGLIST 1
21105 cat >>confdefs.h <<_ACEOF
21106 #define HAVE_DECL_SYS_SIGLIST 0
21115 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
21116 $as_echo_n "checking for syslog... " >&6; }
21117 if test "${ac_cv_func_syslog+set}" = set; then
21118 $as_echo_n "(cached) " >&6
21120 cat >conftest.$ac_ext <<_ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h. */
21126 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
21127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21128 #define syslog innocuous_syslog
21130 /* System header to define __stub macros and hopefully few prototypes,
21131 which can conflict with char syslog (); below.
21132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21133 <limits.h> exists even on freestanding compilers. */
21136 # include <limits.h>
21138 # include <assert.h>
21143 /* Override any GCC internal prototype to avoid an error.
21144 Use char because int might match the return type of a GCC
21145 builtin and then its argument prototype would still apply. */
21150 /* The GNU C library defines this for functions which it implements
21151 to always fail with ENOSYS. Some functions are actually named
21152 something starting with __ and the normal name is an alias. */
21153 #if defined __stub_syslog || defined __stub___syslog
21165 rm -f conftest.$ac_objext conftest$ac_exeext
21166 if { (ac_try="$ac_link"
21167 case "(($ac_try" in
21168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21169 *) ac_try_echo=$ac_try;;
21171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21172 $as_echo "$ac_try_echo") >&5
21173 (eval "$ac_link") 2>conftest.er1
21175 grep -v '^ *+' conftest.er1 >conftest.err
21177 cat conftest.err >&5
21178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); } && {
21180 test -z "$ac_c_werror_flag" ||
21181 test ! -s conftest.err
21182 } && test -s conftest$ac_exeext && {
21183 test "$cross_compiling" = yes ||
21184 $as_test_x conftest$ac_exeext
21186 ac_cv_func_syslog=yes
21188 $as_echo "$as_me: failed program was:" >&5
21189 sed 's/^/| /' conftest.$ac_ext >&5
21191 ac_cv_func_syslog=no
21194 rm -rf conftest.dSYM
21195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21196 conftest$ac_exeext conftest.$ac_ext
21198 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
21199 $as_echo "$ac_cv_func_syslog" >&6; }
21200 if test "x$ac_cv_func_syslog" = x""yes; then
21201 if test "${ac_cv_header_syslog_h+set}" = set; then
21202 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21203 $as_echo_n "checking for syslog.h... " >&6; }
21204 if test "${ac_cv_header_syslog_h+set}" = set; then
21205 $as_echo_n "(cached) " >&6
21207 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21208 $as_echo "$ac_cv_header_syslog_h" >&6; }
21210 # Is the header compilable?
21211 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
21212 $as_echo_n "checking syslog.h usability... " >&6; }
21213 cat >conftest.$ac_ext <<_ACEOF
21216 cat confdefs.h >>conftest.$ac_ext
21217 cat >>conftest.$ac_ext <<_ACEOF
21218 /* end confdefs.h. */
21219 $ac_includes_default
21220 #include <syslog.h>
21222 rm -f conftest.$ac_objext
21223 if { (ac_try="$ac_compile"
21224 case "(($ac_try" in
21225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226 *) ac_try_echo=$ac_try;;
21228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21229 $as_echo "$ac_try_echo") >&5
21230 (eval "$ac_compile") 2>conftest.er1
21232 grep -v '^ *+' conftest.er1 >conftest.err
21234 cat conftest.err >&5
21235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); } && {
21237 test -z "$ac_c_werror_flag" ||
21238 test ! -s conftest.err
21239 } && test -s conftest.$ac_objext; then
21240 ac_header_compiler=yes
21242 $as_echo "$as_me: failed program was:" >&5
21243 sed 's/^/| /' conftest.$ac_ext >&5
21245 ac_header_compiler=no
21248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21249 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21250 $as_echo "$ac_header_compiler" >&6; }
21252 # Is the header present?
21253 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
21254 $as_echo_n "checking syslog.h presence... " >&6; }
21255 cat >conftest.$ac_ext <<_ACEOF
21258 cat confdefs.h >>conftest.$ac_ext
21259 cat >>conftest.$ac_ext <<_ACEOF
21260 /* end confdefs.h. */
21261 #include <syslog.h>
21263 if { (ac_try="$ac_cpp conftest.$ac_ext"
21264 case "(($ac_try" in
21265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21266 *) ac_try_echo=$ac_try;;
21268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21269 $as_echo "$ac_try_echo") >&5
21270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21272 grep -v '^ *+' conftest.er1 >conftest.err
21274 cat conftest.err >&5
21275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); } >/dev/null && {
21277 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21278 test ! -s conftest.err
21280 ac_header_preproc=yes
21282 $as_echo "$as_me: failed program was:" >&5
21283 sed 's/^/| /' conftest.$ac_ext >&5
21285 ac_header_preproc=no
21288 rm -f conftest.err conftest.$ac_ext
21289 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21290 $as_echo "$ac_header_preproc" >&6; }
21292 # So? What about this header?
21293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21295 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
21296 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21297 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
21298 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
21299 ac_header_preproc=yes
21302 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
21303 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
21304 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
21305 $as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
21306 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
21307 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
21308 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
21309 $as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
21310 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
21311 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
21312 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
21313 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
21315 ## ---------------------------------------- ##
21316 ## Report this to pgsql-bugs@postgresql.org ##
21317 ## ---------------------------------------- ##
21319 ) | sed "s/^/$as_me: WARNING: /" >&2
21322 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21323 $as_echo_n "checking for syslog.h... " >&6; }
21324 if test "${ac_cv_header_syslog_h+set}" = set; then
21325 $as_echo_n "(cached) " >&6
21327 ac_cv_header_syslog_h=$ac_header_preproc
21329 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21330 $as_echo "$ac_cv_header_syslog_h" >&6; }
21333 if test "x$ac_cv_header_syslog_h" = x""yes; then
21335 cat >>confdefs.h <<\_ACEOF
21336 #define HAVE_SYSLOG 1
21345 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
21346 $as_echo_n "checking for opterr... " >&6; }
21347 if test "${pgac_cv_var_int_opterr+set}" = set; then
21348 $as_echo_n "(cached) " >&6
21350 cat >conftest.$ac_ext <<_ACEOF
21353 cat confdefs.h >>conftest.$ac_ext
21354 cat >>conftest.$ac_ext <<_ACEOF
21355 /* end confdefs.h. */
21356 #include <unistd.h>
21360 extern int opterr; opterr = 1;
21365 rm -f conftest.$ac_objext conftest$ac_exeext
21366 if { (ac_try="$ac_link"
21367 case "(($ac_try" in
21368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21369 *) ac_try_echo=$ac_try;;
21371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21372 $as_echo "$ac_try_echo") >&5
21373 (eval "$ac_link") 2>conftest.er1
21375 grep -v '^ *+' conftest.er1 >conftest.err
21377 cat conftest.err >&5
21378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); } && {
21380 test -z "$ac_c_werror_flag" ||
21381 test ! -s conftest.err
21382 } && test -s conftest$ac_exeext && {
21383 test "$cross_compiling" = yes ||
21384 $as_test_x conftest$ac_exeext
21386 pgac_cv_var_int_opterr=yes
21388 $as_echo "$as_me: failed program was:" >&5
21389 sed 's/^/| /' conftest.$ac_ext >&5
21391 pgac_cv_var_int_opterr=no
21394 rm -rf conftest.dSYM
21395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21396 conftest$ac_exeext conftest.$ac_ext
21398 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
21399 $as_echo "$pgac_cv_var_int_opterr" >&6; }
21400 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
21402 cat >>confdefs.h <<\_ACEOF
21403 #define HAVE_INT_OPTERR 1
21408 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
21409 $as_echo_n "checking for optreset... " >&6; }
21410 if test "${pgac_cv_var_int_optreset+set}" = set; then
21411 $as_echo_n "(cached) " >&6
21413 cat >conftest.$ac_ext <<_ACEOF
21416 cat confdefs.h >>conftest.$ac_ext
21417 cat >>conftest.$ac_ext <<_ACEOF
21418 /* end confdefs.h. */
21419 #include <unistd.h>
21423 extern int optreset; optreset = 1;
21428 rm -f conftest.$ac_objext conftest$ac_exeext
21429 if { (ac_try="$ac_link"
21430 case "(($ac_try" in
21431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21432 *) ac_try_echo=$ac_try;;
21434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21435 $as_echo "$ac_try_echo") >&5
21436 (eval "$ac_link") 2>conftest.er1
21438 grep -v '^ *+' conftest.er1 >conftest.err
21440 cat conftest.err >&5
21441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); } && {
21443 test -z "$ac_c_werror_flag" ||
21444 test ! -s conftest.err
21445 } && test -s conftest$ac_exeext && {
21446 test "$cross_compiling" = yes ||
21447 $as_test_x conftest$ac_exeext
21449 pgac_cv_var_int_optreset=yes
21451 $as_echo "$as_me: failed program was:" >&5
21452 sed 's/^/| /' conftest.$ac_ext >&5
21454 pgac_cv_var_int_optreset=no
21457 rm -rf conftest.dSYM
21458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21459 conftest$ac_exeext conftest.$ac_ext
21461 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
21462 $as_echo "$pgac_cv_var_int_optreset" >&6; }
21463 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
21465 cat >>confdefs.h <<\_ACEOF
21466 #define HAVE_INT_OPTRESET 1
21473 for ac_func in strtoll strtoq
21475 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21476 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21477 $as_echo_n "checking for $ac_func... " >&6; }
21478 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21479 $as_echo_n "(cached) " >&6
21481 cat >conftest.$ac_ext <<_ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h. */
21487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21489 #define $ac_func innocuous_$ac_func
21491 /* System header to define __stub macros and hopefully few prototypes,
21492 which can conflict with char $ac_func (); below.
21493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21494 <limits.h> exists even on freestanding compilers. */
21497 # include <limits.h>
21499 # include <assert.h>
21504 /* Override any GCC internal prototype to avoid an error.
21505 Use char because int might match the return type of a GCC
21506 builtin and then its argument prototype would still apply. */
21511 /* The GNU C library defines this for functions which it implements
21512 to always fail with ENOSYS. Some functions are actually named
21513 something starting with __ and the normal name is an alias. */
21514 #if defined __stub_$ac_func || defined __stub___$ac_func
21521 return $ac_func ();
21526 rm -f conftest.$ac_objext conftest$ac_exeext
21527 if { (ac_try="$ac_link"
21528 case "(($ac_try" in
21529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21530 *) ac_try_echo=$ac_try;;
21532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21533 $as_echo "$ac_try_echo") >&5
21534 (eval "$ac_link") 2>conftest.er1
21536 grep -v '^ *+' conftest.er1 >conftest.err
21538 cat conftest.err >&5
21539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); } && {
21541 test -z "$ac_c_werror_flag" ||
21542 test ! -s conftest.err
21543 } && test -s conftest$ac_exeext && {
21544 test "$cross_compiling" = yes ||
21545 $as_test_x conftest$ac_exeext
21547 eval "$as_ac_var=yes"
21549 $as_echo "$as_me: failed program was:" >&5
21550 sed 's/^/| /' conftest.$ac_ext >&5
21552 eval "$as_ac_var=no"
21555 rm -rf conftest.dSYM
21556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21557 conftest$ac_exeext conftest.$ac_ext
21559 ac_res=`eval 'as_val=${'$as_ac_var'}
21560 $as_echo "$as_val"'`
21561 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21562 $as_echo "$ac_res" >&6; }
21563 as_val=`eval 'as_val=${'$as_ac_var'}
21564 $as_echo "$as_val"'`
21565 if test "x$as_val" = x""yes; then
21566 cat >>confdefs.h <<_ACEOF
21567 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21575 for ac_func in strtoull strtouq
21577 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21578 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21579 $as_echo_n "checking for $ac_func... " >&6; }
21580 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21581 $as_echo_n "(cached) " >&6
21583 cat >conftest.$ac_ext <<_ACEOF
21586 cat confdefs.h >>conftest.$ac_ext
21587 cat >>conftest.$ac_ext <<_ACEOF
21588 /* end confdefs.h. */
21589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21591 #define $ac_func innocuous_$ac_func
21593 /* System header to define __stub macros and hopefully few prototypes,
21594 which can conflict with char $ac_func (); below.
21595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21596 <limits.h> exists even on freestanding compilers. */
21599 # include <limits.h>
21601 # include <assert.h>
21606 /* Override any GCC internal prototype to avoid an error.
21607 Use char because int might match the return type of a GCC
21608 builtin and then its argument prototype would still apply. */
21613 /* The GNU C library defines this for functions which it implements
21614 to always fail with ENOSYS. Some functions are actually named
21615 something starting with __ and the normal name is an alias. */
21616 #if defined __stub_$ac_func || defined __stub___$ac_func
21623 return $ac_func ();
21628 rm -f conftest.$ac_objext conftest$ac_exeext
21629 if { (ac_try="$ac_link"
21630 case "(($ac_try" in
21631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21632 *) ac_try_echo=$ac_try;;
21634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21635 $as_echo "$ac_try_echo") >&5
21636 (eval "$ac_link") 2>conftest.er1
21638 grep -v '^ *+' conftest.er1 >conftest.err
21640 cat conftest.err >&5
21641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); } && {
21643 test -z "$ac_c_werror_flag" ||
21644 test ! -s conftest.err
21645 } && test -s conftest$ac_exeext && {
21646 test "$cross_compiling" = yes ||
21647 $as_test_x conftest$ac_exeext
21649 eval "$as_ac_var=yes"
21651 $as_echo "$as_me: failed program was:" >&5
21652 sed 's/^/| /' conftest.$ac_ext >&5
21654 eval "$as_ac_var=no"
21657 rm -rf conftest.dSYM
21658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21659 conftest$ac_exeext conftest.$ac_ext
21661 ac_res=`eval 'as_val=${'$as_ac_var'}
21662 $as_echo "$as_val"'`
21663 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21664 $as_echo "$ac_res" >&6; }
21665 as_val=`eval 'as_val=${'$as_ac_var'}
21666 $as_echo "$as_val"'`
21667 if test "x$as_val" = x""yes; then
21668 cat >>confdefs.h <<_ACEOF
21669 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21676 # Check for one of atexit() or on_exit()
21678 for ac_func in atexit
21680 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21681 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21682 $as_echo_n "checking for $ac_func... " >&6; }
21683 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21684 $as_echo_n "(cached) " >&6
21686 cat >conftest.$ac_ext <<_ACEOF
21689 cat confdefs.h >>conftest.$ac_ext
21690 cat >>conftest.$ac_ext <<_ACEOF
21691 /* end confdefs.h. */
21692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21694 #define $ac_func innocuous_$ac_func
21696 /* System header to define __stub macros and hopefully few prototypes,
21697 which can conflict with char $ac_func (); below.
21698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21699 <limits.h> exists even on freestanding compilers. */
21702 # include <limits.h>
21704 # include <assert.h>
21709 /* Override any GCC internal prototype to avoid an error.
21710 Use char because int might match the return type of a GCC
21711 builtin and then its argument prototype would still apply. */
21716 /* The GNU C library defines this for functions which it implements
21717 to always fail with ENOSYS. Some functions are actually named
21718 something starting with __ and the normal name is an alias. */
21719 #if defined __stub_$ac_func || defined __stub___$ac_func
21726 return $ac_func ();
21731 rm -f conftest.$ac_objext conftest$ac_exeext
21732 if { (ac_try="$ac_link"
21733 case "(($ac_try" in
21734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21735 *) ac_try_echo=$ac_try;;
21737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21738 $as_echo "$ac_try_echo") >&5
21739 (eval "$ac_link") 2>conftest.er1
21741 grep -v '^ *+' conftest.er1 >conftest.err
21743 cat conftest.err >&5
21744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); } && {
21746 test -z "$ac_c_werror_flag" ||
21747 test ! -s conftest.err
21748 } && test -s conftest$ac_exeext && {
21749 test "$cross_compiling" = yes ||
21750 $as_test_x conftest$ac_exeext
21752 eval "$as_ac_var=yes"
21754 $as_echo "$as_me: failed program was:" >&5
21755 sed 's/^/| /' conftest.$ac_ext >&5
21757 eval "$as_ac_var=no"
21760 rm -rf conftest.dSYM
21761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21762 conftest$ac_exeext conftest.$ac_ext
21764 ac_res=`eval 'as_val=${'$as_ac_var'}
21765 $as_echo "$as_val"'`
21766 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21767 $as_echo "$ac_res" >&6; }
21768 as_val=`eval 'as_val=${'$as_ac_var'}
21769 $as_echo "$as_val"'`
21770 if test "x$as_val" = x""yes; then
21771 cat >>confdefs.h <<_ACEOF
21772 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21777 for ac_func in on_exit
21779 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21780 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21781 $as_echo_n "checking for $ac_func... " >&6; }
21782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21783 $as_echo_n "(cached) " >&6
21785 cat >conftest.$ac_ext <<_ACEOF
21788 cat confdefs.h >>conftest.$ac_ext
21789 cat >>conftest.$ac_ext <<_ACEOF
21790 /* end confdefs.h. */
21791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21793 #define $ac_func innocuous_$ac_func
21795 /* System header to define __stub macros and hopefully few prototypes,
21796 which can conflict with char $ac_func (); below.
21797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21798 <limits.h> exists even on freestanding compilers. */
21801 # include <limits.h>
21803 # include <assert.h>
21808 /* Override any GCC internal prototype to avoid an error.
21809 Use char because int might match the return type of a GCC
21810 builtin and then its argument prototype would still apply. */
21815 /* The GNU C library defines this for functions which it implements
21816 to always fail with ENOSYS. Some functions are actually named
21817 something starting with __ and the normal name is an alias. */
21818 #if defined __stub_$ac_func || defined __stub___$ac_func
21825 return $ac_func ();
21830 rm -f conftest.$ac_objext conftest$ac_exeext
21831 if { (ac_try="$ac_link"
21832 case "(($ac_try" in
21833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21834 *) ac_try_echo=$ac_try;;
21836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21837 $as_echo "$ac_try_echo") >&5
21838 (eval "$ac_link") 2>conftest.er1
21840 grep -v '^ *+' conftest.er1 >conftest.err
21842 cat conftest.err >&5
21843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); } && {
21845 test -z "$ac_c_werror_flag" ||
21846 test ! -s conftest.err
21847 } && test -s conftest$ac_exeext && {
21848 test "$cross_compiling" = yes ||
21849 $as_test_x conftest$ac_exeext
21851 eval "$as_ac_var=yes"
21853 $as_echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21856 eval "$as_ac_var=no"
21859 rm -rf conftest.dSYM
21860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21861 conftest$ac_exeext conftest.$ac_ext
21863 ac_res=`eval 'as_val=${'$as_ac_var'}
21864 $as_echo "$as_val"'`
21865 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21866 $as_echo "$ac_res" >&6; }
21867 as_val=`eval 'as_val=${'$as_ac_var'}
21868 $as_echo "$as_val"'`
21869 if test "x$as_val" = x""yes; then
21870 cat >>confdefs.h <<_ACEOF
21871 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21875 { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
21876 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
21877 { (exit 1); exit 1; }; }
21889 # For each platform, we need to know about any special compile and link
21890 # libraries, and whether the normal C function names are thread-safe.
21891 # See the comment at the top of src/port/thread.c for more information.
21892 # WIN32 doesn't need the pthread tests; it always uses threads
21893 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
21898 ac_cpp='$CPP $CPPFLAGS'
21899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21905 # We used to check for pthread.h first, but this fails if pthread.h
21906 # requires special compiler flags (e.g. on True64 or Sequent).
21907 # It gets checked for in the link test anyway.
21909 # First of all, check if the user has set any of the PTHREAD_LIBS,
21910 # etcetera environment variables, and if threads linking works using
21912 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21913 save_CFLAGS="$CFLAGS"
21914 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21916 LIBS="$PTHREAD_LIBS $LIBS"
21917 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
21918 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
21919 cat >conftest.$ac_ext <<_ACEOF
21922 cat confdefs.h >>conftest.$ac_ext
21923 cat >>conftest.$ac_ext <<_ACEOF
21924 /* end confdefs.h. */
21926 /* Override any GCC internal prototype to avoid an error.
21927 Use char because int might match the return type of a GCC
21928 builtin and then its argument prototype would still apply. */
21932 char pthread_join ();
21936 return pthread_join ();
21941 rm -f conftest.$ac_objext conftest$ac_exeext
21942 if { (ac_try="$ac_link"
21943 case "(($ac_try" in
21944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21945 *) ac_try_echo=$ac_try;;
21947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21948 $as_echo "$ac_try_echo") >&5
21949 (eval "$ac_link") 2>conftest.er1
21951 grep -v '^ *+' conftest.er1 >conftest.err
21953 cat conftest.err >&5
21954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955 (exit $ac_status); } && {
21956 test -z "$ac_c_werror_flag" ||
21957 test ! -s conftest.err
21958 } && test -s conftest$ac_exeext && {
21959 test "$cross_compiling" = yes ||
21960 $as_test_x conftest$ac_exeext
21964 $as_echo "$as_me: failed program was:" >&5
21965 sed 's/^/| /' conftest.$ac_ext >&5
21970 rm -rf conftest.dSYM
21971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21972 conftest$ac_exeext conftest.$ac_ext
21973 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
21974 $as_echo "$acx_pthread_ok" >&6; }
21975 if test x"$acx_pthread_ok" = xno; then
21980 CFLAGS="$save_CFLAGS"
21983 # We must check for the threads library under a number of different
21984 # names; the ordering is very important because some systems
21985 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
21986 # libraries is broken (non-POSIX).
21988 # Create a list of thread flags to try. Items starting with a "-" are
21989 # C compiler flags, and other items are library names, except for "none"
21990 # which indicates that we try without any flags at all, and "pthread-config"
21991 # which is a program returning the flags for the Pth emulation library.
21993 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
21995 # The ordering *is* (sometimes) important. Some notes on the
21996 # individual items follow:
21998 # pthreads: AIX (must check this before -lpthread)
21999 # none: in case threads are in libc; should be tried before -Kthread and
22000 # other compiler flags to prevent continual compiler warnings
22001 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22002 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22003 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22004 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22005 # -pthreads: Solaris/gcc
22006 # -mthreads: Mingw32/gcc, Lynx/gcc
22007 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22008 # doesn't hurt to check since this sometimes defines pthreads too;
22009 # also defines -D_REENTRANT)
22010 # pthread: Linux, etcetera
22011 # --thread-safe: KAI C++
22012 # pthread-config: use pthread-config program (for GNU Pth library)
22014 case "${host_cpu}-${host_os}" in
22017 # On Solaris (at least, for some versions), libc contains stubbed
22018 # (non-functional) versions of the pthreads routines, so link-based
22019 # tests will erroneously succeed. (We need to link with -pthread or
22020 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22021 # a function called by this macro, so we could check for that, but
22022 # who knows whether they'll stub that too in a future libc.) So,
22023 # we'll just look for -pthreads and -lpthread first:
22025 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22029 if test x"$acx_pthread_ok" = xno; then
22030 for flag in $acx_pthread_flags; do
22032 tryPTHREAD_CFLAGS=""
22036 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22037 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22041 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22042 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22043 tryPTHREAD_CFLAGS="$flag"
22047 # skip this if we already have flags defined, for PostgreSQL
22048 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22049 # Extract the first word of "pthread-config", so it can be a program name with args.
22050 set dummy pthread-config; ac_word=$2
22051 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22052 $as_echo_n "checking for $ac_word... " >&6; }
22053 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22054 $as_echo_n "(cached) " >&6
22056 if test -n "$acx_pthread_config"; then
22057 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22060 for as_dir in $PATH
22063 test -z "$as_dir" && as_dir=.
22064 for ac_exec_ext in '' $ac_executable_extensions; do
22065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22066 ac_cv_prog_acx_pthread_config="yes"
22067 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22074 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22077 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22078 if test -n "$acx_pthread_config"; then
22079 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22080 $as_echo "$acx_pthread_config" >&6; }
22082 { $as_echo "$as_me:$LINENO: result: no" >&5
22083 $as_echo "no" >&6; }
22087 if test x"$acx_pthread_config" = xno; then continue; fi
22088 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22089 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22093 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22094 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22095 tryPTHREAD_LIBS="-l$flag"
22100 save_CFLAGS="$CFLAGS"
22101 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22102 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22104 # Check for various functions. We must include pthread.h,
22105 # since some functions may be macros. (On the Sequent, we
22106 # need a special flag -Kthread to make this header compile.)
22107 # We check for pthread_join because it is in -lpthread on IRIX
22108 # while pthread_create is in libc. We check for pthread_attr_init
22109 # due to DEC craziness with -lpthreads. We check for
22110 # pthread_cleanup_push because it is one of the few pthread
22111 # functions on Solaris that doesn't have a non-functional libc stub.
22112 # We try pthread_create on general principles.
22113 cat >conftest.$ac_ext <<_ACEOF
22116 cat confdefs.h >>conftest.$ac_ext
22117 cat >>conftest.$ac_ext <<_ACEOF
22118 /* end confdefs.h. */
22119 #include <pthread.h>
22123 pthread_t th; pthread_join(th, 0);
22124 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22125 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22130 rm -f conftest.$ac_objext conftest$ac_exeext
22131 if { (ac_try="$ac_link"
22132 case "(($ac_try" in
22133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22134 *) ac_try_echo=$ac_try;;
22136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22137 $as_echo "$ac_try_echo") >&5
22138 (eval "$ac_link") 2>conftest.er1
22140 grep -v '^ *+' conftest.er1 >conftest.err
22142 cat conftest.err >&5
22143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); } && {
22145 test -z "$ac_c_werror_flag" ||
22146 test ! -s conftest.err
22147 } && test -s conftest$ac_exeext && {
22148 test "$cross_compiling" = yes ||
22149 $as_test_x conftest$ac_exeext
22153 $as_echo "$as_me: failed program was:" >&5
22154 sed 's/^/| /' conftest.$ac_ext >&5
22159 rm -rf conftest.dSYM
22160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22161 conftest$ac_exeext conftest.$ac_ext
22163 if test "x$acx_pthread_ok" = xyes; then
22164 # Don't use options that are ignored by the compiler.
22165 # We find them by checking stderror.
22166 cat >conftest.$ac_ext <<_ACEOF
22168 main (int argc, char **argv)
22175 rm -f conftest.$ac_objext conftest$ac_exeext
22176 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
22177 # we continue with more flags because Linux needs -lpthread
22178 # for libpq builds on PostgreSQL. The test above only
22179 # tests for building binaries, not shared libraries.
22180 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22181 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22182 else acx_pthread_ok=no
22187 CFLAGS="$save_CFLAGS"
22189 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22190 $as_echo "$acx_pthread_ok" >&6; }
22194 # Various other checks:
22195 if test "x$acx_pthread_ok" = xyes; then
22197 LIBS="$PTHREAD_LIBS $LIBS"
22198 save_CFLAGS="$CFLAGS"
22199 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22201 # Detect AIX lossage: threads are created detached by default
22202 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22203 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22204 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22205 cat >conftest.$ac_ext <<_ACEOF
22208 cat confdefs.h >>conftest.$ac_ext
22209 cat >>conftest.$ac_ext <<_ACEOF
22210 /* end confdefs.h. */
22211 #include <pthread.h>
22215 int attr=PTHREAD_CREATE_JOINABLE;
22220 rm -f conftest.$ac_objext conftest$ac_exeext
22221 if { (ac_try="$ac_link"
22222 case "(($ac_try" in
22223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22224 *) ac_try_echo=$ac_try;;
22226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22227 $as_echo "$ac_try_echo") >&5
22228 (eval "$ac_link") 2>conftest.er1
22230 grep -v '^ *+' conftest.er1 >conftest.err
22232 cat conftest.err >&5
22233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); } && {
22235 test -z "$ac_c_werror_flag" ||
22236 test ! -s conftest.err
22237 } && test -s conftest$ac_exeext && {
22238 test "$cross_compiling" = yes ||
22239 $as_test_x conftest$ac_exeext
22241 ok=PTHREAD_CREATE_JOINABLE
22243 $as_echo "$as_me: failed program was:" >&5
22244 sed 's/^/| /' conftest.$ac_ext >&5
22249 rm -rf conftest.dSYM
22250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22251 conftest$ac_exeext conftest.$ac_ext
22252 if test x"$ok" = xunknown; then
22253 cat >conftest.$ac_ext <<_ACEOF
22256 cat confdefs.h >>conftest.$ac_ext
22257 cat >>conftest.$ac_ext <<_ACEOF
22258 /* end confdefs.h. */
22259 #include <pthread.h>
22263 int attr=PTHREAD_CREATE_UNDETACHED;
22268 rm -f conftest.$ac_objext conftest$ac_exeext
22269 if { (ac_try="$ac_link"
22270 case "(($ac_try" in
22271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22272 *) ac_try_echo=$ac_try;;
22274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22275 $as_echo "$ac_try_echo") >&5
22276 (eval "$ac_link") 2>conftest.er1
22278 grep -v '^ *+' conftest.er1 >conftest.err
22280 cat conftest.err >&5
22281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); } && {
22283 test -z "$ac_c_werror_flag" ||
22284 test ! -s conftest.err
22285 } && test -s conftest$ac_exeext && {
22286 test "$cross_compiling" = yes ||
22287 $as_test_x conftest$ac_exeext
22289 ok=PTHREAD_CREATE_UNDETACHED
22291 $as_echo "$as_me: failed program was:" >&5
22292 sed 's/^/| /' conftest.$ac_ext >&5
22297 rm -rf conftest.dSYM
22298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22299 conftest$ac_exeext conftest.$ac_ext
22301 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22303 cat >>confdefs.h <<\_ACEOF
22304 #define PTHREAD_CREATE_JOINABLE $ok
22308 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
22309 $as_echo "${ok}" >&6; }
22310 if test x"$ok" = xunknown; then
22311 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22312 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22315 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22316 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
22318 # We always add these in PostgreSQL
22319 # case "${host_cpu}-${host_os}" in
22320 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22321 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22323 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
22324 $as_echo "${flag}" >&6; }
22325 if test "x$flag" != xno; then
22326 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22330 CFLAGS="$save_CFLAGS"
22332 # Supporting cc_r would require a special CC in all places that
22333 # use libpq, and that is ugly, so we don't do it. Users can still
22334 # define their compiler as cc_r to do thread builds of everything.
22335 # More AIX lossage: must compile with cc_r
22336 # Extract the first word of "cc_r", so it can be a program name with args.
22337 set dummy cc_r; ac_word=$2
22338 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22339 $as_echo_n "checking for $ac_word... " >&6; }
22340 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22341 $as_echo_n "(cached) " >&6
22343 if test -n "$PTHREAD_CC"; then
22344 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22347 for as_dir in $PATH
22350 test -z "$as_dir" && as_dir=.
22351 for ac_exec_ext in '' $ac_executable_extensions; do
22352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22353 ac_cv_prog_PTHREAD_CC="cc_r"
22354 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22361 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
22364 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22365 if test -n "$PTHREAD_CC"; then
22366 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22367 $as_echo "$PTHREAD_CC" >&6; }
22369 { $as_echo "$as_me:$LINENO: result: no" >&5
22370 $as_echo "no" >&6; }
22382 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22383 if test x"$acx_pthread_ok" = xyes; then
22385 cat >>confdefs.h <<\_ACEOF
22386 #define HAVE_PTHREAD 1
22395 ac_cpp='$CPP $CPPFLAGS'
22396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22402 # Some platforms use these, so just define them. They can't hurt if they
22403 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
22404 # enables 5-arg getpwuid_r, among other things.
22405 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
22408 # At this point, we don't want to muck with the compiler name for threading.
22409 # Let's see who fails, perhaps AIX. 2004-04-23
22410 if test "$PTHREAD_CC" != "$CC"; then
22411 { { $as_echo "$as_me:$LINENO: error:
22412 PostgreSQL does not support platforms that require a special compiler
22413 for thread safety; use --disable-thread-safety to disable thread safety." >&5
22414 $as_echo "$as_me: error:
22415 PostgreSQL does not support platforms that require a special compiler
22416 for thread safety; use --disable-thread-safety to disable thread safety." >&2;}
22417 { (exit 1); exit 1; }; }
22420 # Check for *_r functions
22423 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22424 LIBS="$LIBS $PTHREAD_LIBS"
22426 if test "$PORTNAME" != "win32"; then
22427 if test "${ac_cv_header_pthread_h+set}" = set; then
22428 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
22429 $as_echo_n "checking for pthread.h... " >&6; }
22430 if test "${ac_cv_header_pthread_h+set}" = set; then
22431 $as_echo_n "(cached) " >&6
22433 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22434 $as_echo "$ac_cv_header_pthread_h" >&6; }
22436 # Is the header compilable?
22437 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
22438 $as_echo_n "checking pthread.h usability... " >&6; }
22439 cat >conftest.$ac_ext <<_ACEOF
22442 cat confdefs.h >>conftest.$ac_ext
22443 cat >>conftest.$ac_ext <<_ACEOF
22444 /* end confdefs.h. */
22445 $ac_includes_default
22446 #include <pthread.h>
22448 rm -f conftest.$ac_objext
22449 if { (ac_try="$ac_compile"
22450 case "(($ac_try" in
22451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22452 *) ac_try_echo=$ac_try;;
22454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22455 $as_echo "$ac_try_echo") >&5
22456 (eval "$ac_compile") 2>conftest.er1
22458 grep -v '^ *+' conftest.er1 >conftest.err
22460 cat conftest.err >&5
22461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); } && {
22463 test -z "$ac_c_werror_flag" ||
22464 test ! -s conftest.err
22465 } && test -s conftest.$ac_objext; then
22466 ac_header_compiler=yes
22468 $as_echo "$as_me: failed program was:" >&5
22469 sed 's/^/| /' conftest.$ac_ext >&5
22471 ac_header_compiler=no
22474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22475 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22476 $as_echo "$ac_header_compiler" >&6; }
22478 # Is the header present?
22479 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
22480 $as_echo_n "checking pthread.h presence... " >&6; }
22481 cat >conftest.$ac_ext <<_ACEOF
22484 cat confdefs.h >>conftest.$ac_ext
22485 cat >>conftest.$ac_ext <<_ACEOF
22486 /* end confdefs.h. */
22487 #include <pthread.h>
22489 if { (ac_try="$ac_cpp conftest.$ac_ext"
22490 case "(($ac_try" in
22491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22492 *) ac_try_echo=$ac_try;;
22494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22495 $as_echo "$ac_try_echo") >&5
22496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22498 grep -v '^ *+' conftest.er1 >conftest.err
22500 cat conftest.err >&5
22501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502 (exit $ac_status); } >/dev/null && {
22503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22504 test ! -s conftest.err
22506 ac_header_preproc=yes
22508 $as_echo "$as_me: failed program was:" >&5
22509 sed 's/^/| /' conftest.$ac_ext >&5
22511 ac_header_preproc=no
22514 rm -f conftest.err conftest.$ac_ext
22515 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22516 $as_echo "$ac_header_preproc" >&6; }
22518 # So? What about this header?
22519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22521 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
22522 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22523 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
22524 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
22525 ac_header_preproc=yes
22528 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
22529 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
22530 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
22531 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
22532 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
22533 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
22534 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
22535 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
22536 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
22537 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
22538 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
22539 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
22541 ## ---------------------------------------- ##
22542 ## Report this to pgsql-bugs@postgresql.org ##
22543 ## ---------------------------------------- ##
22545 ) | sed "s/^/$as_me: WARNING: /" >&2
22548 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
22549 $as_echo_n "checking for pthread.h... " >&6; }
22550 if test "${ac_cv_header_pthread_h+set}" = set; then
22551 $as_echo_n "(cached) " >&6
22553 ac_cv_header_pthread_h=$ac_header_preproc
22555 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22556 $as_echo "$ac_cv_header_pthread_h" >&6; }
22559 if test "x$ac_cv_header_pthread_h" = x""yes; then
22562 { { $as_echo "$as_me:$LINENO: error:
22563 pthread.h not found; use --disable-thread-safety to disable thread safety" >&5
22564 $as_echo "$as_me: error:
22565 pthread.h not found; use --disable-thread-safety to disable thread safety" >&2;}
22566 { (exit 1); exit 1; }; }
22575 for ac_func in strerror_r getpwuid_r gethostbyname_r
22577 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22578 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22579 $as_echo_n "checking for $ac_func... " >&6; }
22580 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22581 $as_echo_n "(cached) " >&6
22583 cat >conftest.$ac_ext <<_ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h. */
22589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22591 #define $ac_func innocuous_$ac_func
22593 /* System header to define __stub macros and hopefully few prototypes,
22594 which can conflict with char $ac_func (); below.
22595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22596 <limits.h> exists even on freestanding compilers. */
22599 # include <limits.h>
22601 # include <assert.h>
22606 /* Override any GCC internal prototype to avoid an error.
22607 Use char because int might match the return type of a GCC
22608 builtin and then its argument prototype would still apply. */
22613 /* The GNU C library defines this for functions which it implements
22614 to always fail with ENOSYS. Some functions are actually named
22615 something starting with __ and the normal name is an alias. */
22616 #if defined __stub_$ac_func || defined __stub___$ac_func
22623 return $ac_func ();
22628 rm -f conftest.$ac_objext conftest$ac_exeext
22629 if { (ac_try="$ac_link"
22630 case "(($ac_try" in
22631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22632 *) ac_try_echo=$ac_try;;
22634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22635 $as_echo "$ac_try_echo") >&5
22636 (eval "$ac_link") 2>conftest.er1
22638 grep -v '^ *+' conftest.er1 >conftest.err
22640 cat conftest.err >&5
22641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); } && {
22643 test -z "$ac_c_werror_flag" ||
22644 test ! -s conftest.err
22645 } && test -s conftest$ac_exeext && {
22646 test "$cross_compiling" = yes ||
22647 $as_test_x conftest$ac_exeext
22649 eval "$as_ac_var=yes"
22651 $as_echo "$as_me: failed program was:" >&5
22652 sed 's/^/| /' conftest.$ac_ext >&5
22654 eval "$as_ac_var=no"
22657 rm -rf conftest.dSYM
22658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22659 conftest$ac_exeext conftest.$ac_ext
22661 ac_res=`eval 'as_val=${'$as_ac_var'}
22662 $as_echo "$as_val"'`
22663 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22664 $as_echo "$ac_res" >&6; }
22665 as_val=`eval 'as_val=${'$as_ac_var'}
22666 $as_echo "$as_val"'`
22667 if test "x$as_val" = x""yes; then
22668 cat >>confdefs.h <<_ACEOF
22669 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22676 # Do test here with the proper thread flags
22677 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
22678 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
22679 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
22680 $as_echo_n "(cached) " >&6
22682 cat >conftest.$ac_ext <<_ACEOF
22685 cat confdefs.h >>conftest.$ac_ext
22686 cat >>conftest.$ac_ext <<_ACEOF
22687 /* end confdefs.h. */
22688 #include <sys/types.h>
22694 struct passwd *space;
22697 struct passwd **result;
22698 getpwuid_r(uid, space, buf, bufsize, result);
22703 rm -f conftest.$ac_objext
22704 if { (ac_try="$ac_compile"
22705 case "(($ac_try" in
22706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22707 *) ac_try_echo=$ac_try;;
22709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22710 $as_echo "$ac_try_echo") >&5
22711 (eval "$ac_compile") 2>conftest.er1
22713 grep -v '^ *+' conftest.er1 >conftest.err
22715 cat conftest.err >&5
22716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); } && {
22718 test -z "$ac_c_werror_flag" ||
22719 test ! -s conftest.err
22720 } && test -s conftest.$ac_objext; then
22721 pgac_cv_func_getpwuid_r_5arg=yes
22723 $as_echo "$as_me: failed program was:" >&5
22724 sed 's/^/| /' conftest.$ac_ext >&5
22726 pgac_cv_func_getpwuid_r_5arg=no
22729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22731 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
22732 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
22733 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
22735 cat >>confdefs.h <<\_ACEOF
22736 #define GETPWUID_R_5ARG /**/
22741 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
22742 $as_echo_n "checking whether strerror_r returns int... " >&6; }
22743 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
22744 $as_echo_n "(cached) " >&6
22746 cat >conftest.$ac_ext <<_ACEOF
22749 cat confdefs.h >>conftest.$ac_ext
22750 cat >>conftest.$ac_ext <<_ACEOF
22751 /* end confdefs.h. */
22752 #include <string.h>
22757 int strerror_r(int, char *, size_t);
22759 /* Older AIX has 'int' for the third argument so we don't test the args. */
22766 rm -f conftest.$ac_objext
22767 if { (ac_try="$ac_compile"
22768 case "(($ac_try" in
22769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22770 *) ac_try_echo=$ac_try;;
22772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22773 $as_echo "$ac_try_echo") >&5
22774 (eval "$ac_compile") 2>conftest.er1
22776 grep -v '^ *+' conftest.er1 >conftest.err
22778 cat conftest.err >&5
22779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); } && {
22781 test -z "$ac_c_werror_flag" ||
22782 test ! -s conftest.err
22783 } && test -s conftest.$ac_objext; then
22784 pgac_cv_func_strerror_r_int=yes
22786 $as_echo "$as_me: failed program was:" >&5
22787 sed 's/^/| /' conftest.$ac_ext >&5
22789 pgac_cv_func_strerror_r_int=no
22792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22794 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
22795 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
22796 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
22798 cat >>confdefs.h <<\_ACEOF
22799 #define STRERROR_R_INT /**/
22809 # do not use values from template file
22818 # We can test for libldap_r only after we know PTHREAD_LIBS
22819 if test "$with_ldap" = yes ; then
22821 if test "$PORTNAME" != "win32"; then
22823 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
22824 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
22825 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
22826 $as_echo_n "(cached) " >&6
22828 ac_check_lib_save_LIBS=$LIBS
22829 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
22830 cat >conftest.$ac_ext <<_ACEOF
22833 cat confdefs.h >>conftest.$ac_ext
22834 cat >>conftest.$ac_ext <<_ACEOF
22835 /* end confdefs.h. */
22837 /* Override any GCC internal prototype to avoid an error.
22838 Use char because int might match the return type of a GCC
22839 builtin and then its argument prototype would still apply. */
22847 return ldap_bind ();
22852 rm -f conftest.$ac_objext conftest$ac_exeext
22853 if { (ac_try="$ac_link"
22854 case "(($ac_try" in
22855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22856 *) ac_try_echo=$ac_try;;
22858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22859 $as_echo "$ac_try_echo") >&5
22860 (eval "$ac_link") 2>conftest.er1
22862 grep -v '^ *+' conftest.er1 >conftest.err
22864 cat conftest.err >&5
22865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866 (exit $ac_status); } && {
22867 test -z "$ac_c_werror_flag" ||
22868 test ! -s conftest.err
22869 } && test -s conftest$ac_exeext && {
22870 test "$cross_compiling" = yes ||
22871 $as_test_x conftest$ac_exeext
22873 ac_cv_lib_ldap_ldap_bind=yes
22875 $as_echo "$as_me: failed program was:" >&5
22876 sed 's/^/| /' conftest.$ac_ext >&5
22878 ac_cv_lib_ldap_ldap_bind=no
22881 rm -rf conftest.dSYM
22882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22883 conftest$ac_exeext conftest.$ac_ext
22884 LIBS=$ac_check_lib_save_LIBS
22886 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
22887 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
22888 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
22889 cat >>confdefs.h <<_ACEOF
22890 #define HAVE_LIBLDAP 1
22893 LIBS="-lldap $LIBS"
22896 { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
22897 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
22898 { (exit 1); exit 1; }; }
22901 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
22902 if test "$enable_thread_safety" = yes; then
22903 # on some platforms ldap_r fails to link without PTHREAD_LIBS
22905 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
22906 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
22907 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
22908 $as_echo_n "(cached) " >&6
22910 ac_check_lib_save_LIBS=$LIBS
22911 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
22912 cat >conftest.$ac_ext <<_ACEOF
22915 cat confdefs.h >>conftest.$ac_ext
22916 cat >>conftest.$ac_ext <<_ACEOF
22917 /* end confdefs.h. */
22919 /* Override any GCC internal prototype to avoid an error.
22920 Use char because int might match the return type of a GCC
22921 builtin and then its argument prototype would still apply. */
22925 char ldap_simple_bind ();
22929 return ldap_simple_bind ();
22934 rm -f conftest.$ac_objext conftest$ac_exeext
22935 if { (ac_try="$ac_link"
22936 case "(($ac_try" in
22937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22938 *) ac_try_echo=$ac_try;;
22940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22941 $as_echo "$ac_try_echo") >&5
22942 (eval "$ac_link") 2>conftest.er1
22944 grep -v '^ *+' conftest.er1 >conftest.err
22946 cat conftest.err >&5
22947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); } && {
22949 test -z "$ac_c_werror_flag" ||
22950 test ! -s conftest.err
22951 } && test -s conftest$ac_exeext && {
22952 test "$cross_compiling" = yes ||
22953 $as_test_x conftest$ac_exeext
22955 ac_cv_lib_ldap_r_ldap_simple_bind=yes
22957 $as_echo "$as_me: failed program was:" >&5
22958 sed 's/^/| /' conftest.$ac_ext >&5
22960 ac_cv_lib_ldap_r_ldap_simple_bind=no
22963 rm -rf conftest.dSYM
22964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22965 conftest$ac_exeext conftest.$ac_ext
22966 LIBS=$ac_check_lib_save_LIBS
22968 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
22969 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
22970 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
22971 cat >>confdefs.h <<_ACEOF
22972 #define HAVE_LIBLDAP_R 1
22975 LIBS="-lldap_r $LIBS"
22978 { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
22979 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
22980 { (exit 1); exit 1; }; }
22983 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
22985 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
22989 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
22990 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
22991 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
22992 $as_echo_n "(cached) " >&6
22994 ac_check_lib_save_LIBS=$LIBS
22995 LIBS="-lwldap32 $LIBS"
22996 cat >conftest.$ac_ext <<_ACEOF
22999 cat confdefs.h >>conftest.$ac_ext
23000 cat >>conftest.$ac_ext <<_ACEOF
23001 /* end confdefs.h. */
23003 /* Override any GCC internal prototype to avoid an error.
23004 Use char because int might match the return type of a GCC
23005 builtin and then its argument prototype would still apply. */
23013 return ldap_bind ();
23018 rm -f conftest.$ac_objext conftest$ac_exeext
23019 if { (ac_try="$ac_link"
23020 case "(($ac_try" in
23021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23022 *) ac_try_echo=$ac_try;;
23024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23025 $as_echo "$ac_try_echo") >&5
23026 (eval "$ac_link") 2>conftest.er1
23028 grep -v '^ *+' conftest.er1 >conftest.err
23030 cat conftest.err >&5
23031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); } && {
23033 test -z "$ac_c_werror_flag" ||
23034 test ! -s conftest.err
23035 } && test -s conftest$ac_exeext && {
23036 test "$cross_compiling" = yes ||
23037 $as_test_x conftest$ac_exeext
23039 ac_cv_lib_wldap32_ldap_bind=yes
23041 $as_echo "$as_me: failed program was:" >&5
23042 sed 's/^/| /' conftest.$ac_ext >&5
23044 ac_cv_lib_wldap32_ldap_bind=no
23047 rm -rf conftest.dSYM
23048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23049 conftest$ac_exeext conftest.$ac_ext
23050 LIBS=$ac_check_lib_save_LIBS
23052 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23053 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23054 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23055 cat >>confdefs.h <<_ACEOF
23056 #define HAVE_LIBWLDAP32 1
23059 LIBS="-lwldap32 $LIBS"
23062 { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23063 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23064 { (exit 1); exit 1; }; }
23067 LDAP_LIBS_FE="-lwldap32"
23068 LDAP_LIBS_BE="-lwldap32"
23076 # This test makes sure that run tests work at all. Sometimes a shared
23077 # library is found by the linker, but the runtime linker can't find it.
23078 # This check should come after all modifications of compiler or linker
23079 # variables, and before any other run tests.
23080 { $as_echo "$as_me:$LINENO: checking test program" >&5
23081 $as_echo_n "checking test program... " >&6; }
23082 if test "$cross_compiling" = yes; then
23083 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23084 $as_echo "cross-compiling" >&6; }
23086 cat >conftest.$ac_ext <<_ACEOF
23089 cat confdefs.h >>conftest.$ac_ext
23090 cat >>conftest.$ac_ext <<_ACEOF
23091 /* end confdefs.h. */
23092 int main() { return 0; }
23094 rm -f conftest$ac_exeext
23095 if { (ac_try="$ac_link"
23096 case "(($ac_try" in
23097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23098 *) ac_try_echo=$ac_try;;
23100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23101 $as_echo "$ac_try_echo") >&5
23102 (eval "$ac_link") 2>&5
23104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23106 { (case "(($ac_try" in
23107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23108 *) ac_try_echo=$ac_try;;
23110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23111 $as_echo "$ac_try_echo") >&5
23112 (eval "$ac_try") 2>&5
23114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115 (exit $ac_status); }; }; then
23116 { $as_echo "$as_me:$LINENO: result: ok" >&5
23117 $as_echo "ok" >&6; }
23119 $as_echo "$as_me: program exited with status $ac_status" >&5
23120 $as_echo "$as_me: failed program was:" >&5
23121 sed 's/^/| /' conftest.$ac_ext >&5
23123 ( exit $ac_status )
23124 { $as_echo "$as_me:$LINENO: result: failed" >&5
23125 $as_echo "failed" >&6; }
23126 { { $as_echo "$as_me:$LINENO: error:
23127 Could not execute a simple test program. This may be a problem
23128 related to locating shared libraries. Check the file 'config.log'
23129 for the exact reason." >&5
23130 $as_echo "$as_me: error:
23131 Could not execute a simple test program. This may be a problem
23132 related to locating shared libraries. Check the file 'config.log'
23133 for the exact reason." >&2;}
23134 { (exit 1); exit 1; }; }
23136 rm -rf conftest.dSYM
23137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23142 # --------------------
23143 # Run tests below here
23144 # --------------------
23146 # Force use of our snprintf if system's doesn't do arg control
23147 # See comment above at snprintf test for details.
23148 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23149 { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
23150 $as_echo_n "checking whether printf supports argument control... " >&6; }
23151 if test "${pgac_cv_printf_arg_control+set}" = set; then
23152 $as_echo_n "(cached) " >&6
23154 if test "$cross_compiling" = yes; then
23155 pgac_cv_printf_arg_control=cross
23157 cat >conftest.$ac_ext <<_ACEOF
23160 cat confdefs.h >>conftest.$ac_ext
23161 cat >>conftest.$ac_ext <<_ACEOF
23162 /* end confdefs.h. */
23164 #include <string.h>
23170 /* can it swap arguments? */
23171 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
23172 if (strcmp(buf, "4 3") != 0)
23177 rm -f conftest$ac_exeext
23178 if { (ac_try="$ac_link"
23179 case "(($ac_try" in
23180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23181 *) ac_try_echo=$ac_try;;
23183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23184 $as_echo "$ac_try_echo") >&5
23185 (eval "$ac_link") 2>&5
23187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23189 { (case "(($ac_try" in
23190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23191 *) ac_try_echo=$ac_try;;
23193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23194 $as_echo "$ac_try_echo") >&5
23195 (eval "$ac_try") 2>&5
23197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198 (exit $ac_status); }; }; then
23199 pgac_cv_printf_arg_control=yes
23201 $as_echo "$as_me: program exited with status $ac_status" >&5
23202 $as_echo "$as_me: failed program was:" >&5
23203 sed 's/^/| /' conftest.$ac_ext >&5
23205 ( exit $ac_status )
23206 pgac_cv_printf_arg_control=no
23208 rm -rf conftest.dSYM
23209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23215 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
23216 $as_echo "$pgac_cv_printf_arg_control" >&6; }
23218 if test $pgac_cv_printf_arg_control != yes ; then
23219 pgac_need_repl_snprintf=yes
23226 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
23227 $as_echo_n "checking whether long int is 64 bits... " >&6; }
23228 if test "${pgac_cv_type_long_int_64+set}" = set; then
23229 $as_echo_n "(cached) " >&6
23231 if test "$cross_compiling" = yes; then
23232 # If cross-compiling, check the size reported by the compiler and
23233 # trust that the arithmetic works.
23234 cat >conftest.$ac_ext <<_ACEOF
23237 cat confdefs.h >>conftest.$ac_ext
23238 cat >>conftest.$ac_ext <<_ACEOF
23239 /* end confdefs.h. */
23244 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
23251 rm -f conftest.$ac_objext
23252 if { (ac_try="$ac_compile"
23253 case "(($ac_try" in
23254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23255 *) ac_try_echo=$ac_try;;
23257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23258 $as_echo "$ac_try_echo") >&5
23259 (eval "$ac_compile") 2>conftest.er1
23261 grep -v '^ *+' conftest.er1 >conftest.err
23263 cat conftest.err >&5
23264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265 (exit $ac_status); } && {
23266 test -z "$ac_c_werror_flag" ||
23267 test ! -s conftest.err
23268 } && test -s conftest.$ac_objext; then
23269 pgac_cv_type_long_int_64=yes
23271 $as_echo "$as_me: failed program was:" >&5
23272 sed 's/^/| /' conftest.$ac_ext >&5
23274 pgac_cv_type_long_int_64=no
23277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23279 cat >conftest.$ac_ext <<_ACEOF
23282 cat confdefs.h >>conftest.$ac_ext
23283 cat >>conftest.$ac_ext <<_ACEOF
23284 /* end confdefs.h. */
23285 typedef long int ac_int64;
23288 * These are globals to discourage the compiler from folding all the
23289 * arithmetic tests down to compile-time constants.
23291 ac_int64 a = 20000001;
23292 ac_int64 b = 40000005;
23294 int does_int64_work()
23298 if (sizeof(ac_int64) != 8)
23299 return 0; /* definitely not the right size */
23301 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
23309 exit(! does_int64_work());
23312 rm -f conftest$ac_exeext
23313 if { (ac_try="$ac_link"
23314 case "(($ac_try" in
23315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23316 *) ac_try_echo=$ac_try;;
23318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23319 $as_echo "$ac_try_echo") >&5
23320 (eval "$ac_link") 2>&5
23322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23324 { (case "(($ac_try" in
23325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23326 *) ac_try_echo=$ac_try;;
23328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23329 $as_echo "$ac_try_echo") >&5
23330 (eval "$ac_try") 2>&5
23332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); }; }; then
23334 pgac_cv_type_long_int_64=yes
23336 $as_echo "$as_me: program exited with status $ac_status" >&5
23337 $as_echo "$as_me: failed program was:" >&5
23338 sed 's/^/| /' conftest.$ac_ext >&5
23340 ( exit $ac_status )
23341 pgac_cv_type_long_int_64=no
23343 rm -rf conftest.dSYM
23344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23349 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
23350 $as_echo "$pgac_cv_type_long_int_64" >&6; }
23352 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
23353 if test x"$pgac_cv_type_long_int_64" = xyes ; then
23355 cat >>confdefs.h <<\_ACEOF
23356 #define HAVE_LONG_INT_64 1
23362 if test x"$HAVE_LONG_INT_64" = x"no" ; then
23363 { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
23364 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
23365 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
23366 $as_echo_n "(cached) " >&6
23368 if test "$cross_compiling" = yes; then
23369 # If cross-compiling, check the size reported by the compiler and
23370 # trust that the arithmetic works.
23371 cat >conftest.$ac_ext <<_ACEOF
23374 cat confdefs.h >>conftest.$ac_ext
23375 cat >>conftest.$ac_ext <<_ACEOF
23376 /* end confdefs.h. */
23381 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
23388 rm -f conftest.$ac_objext
23389 if { (ac_try="$ac_compile"
23390 case "(($ac_try" in
23391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23392 *) ac_try_echo=$ac_try;;
23394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23395 $as_echo "$ac_try_echo") >&5
23396 (eval "$ac_compile") 2>conftest.er1
23398 grep -v '^ *+' conftest.er1 >conftest.err
23400 cat conftest.err >&5
23401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23402 (exit $ac_status); } && {
23403 test -z "$ac_c_werror_flag" ||
23404 test ! -s conftest.err
23405 } && test -s conftest.$ac_objext; then
23406 pgac_cv_type_long_long_int_64=yes
23408 $as_echo "$as_me: failed program was:" >&5
23409 sed 's/^/| /' conftest.$ac_ext >&5
23411 pgac_cv_type_long_long_int_64=no
23414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23416 cat >conftest.$ac_ext <<_ACEOF
23419 cat confdefs.h >>conftest.$ac_ext
23420 cat >>conftest.$ac_ext <<_ACEOF
23421 /* end confdefs.h. */
23422 typedef long long int ac_int64;
23425 * These are globals to discourage the compiler from folding all the
23426 * arithmetic tests down to compile-time constants.
23428 ac_int64 a = 20000001;
23429 ac_int64 b = 40000005;
23431 int does_int64_work()
23435 if (sizeof(ac_int64) != 8)
23436 return 0; /* definitely not the right size */
23438 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
23446 exit(! does_int64_work());
23449 rm -f conftest$ac_exeext
23450 if { (ac_try="$ac_link"
23451 case "(($ac_try" in
23452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23453 *) ac_try_echo=$ac_try;;
23455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23456 $as_echo "$ac_try_echo") >&5
23457 (eval "$ac_link") 2>&5
23459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23461 { (case "(($ac_try" in
23462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23463 *) ac_try_echo=$ac_try;;
23465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23466 $as_echo "$ac_try_echo") >&5
23467 (eval "$ac_try") 2>&5
23469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); }; }; then
23471 pgac_cv_type_long_long_int_64=yes
23473 $as_echo "$as_me: program exited with status $ac_status" >&5
23474 $as_echo "$as_me: failed program was:" >&5
23475 sed 's/^/| /' conftest.$ac_ext >&5
23477 ( exit $ac_status )
23478 pgac_cv_type_long_long_int_64=no
23480 rm -rf conftest.dSYM
23481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23486 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
23487 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
23489 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
23490 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
23492 cat >>confdefs.h <<\_ACEOF
23493 #define HAVE_LONG_LONG_INT_64 1
23498 if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
23499 { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
23500 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
23501 { (exit 1); exit 1; }; }
23507 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
23508 cat >conftest.$ac_ext <<_ACEOF
23511 cat confdefs.h >>conftest.$ac_ext
23512 cat >>conftest.$ac_ext <<_ACEOF
23513 /* end confdefs.h. */
23515 #define INT64CONST(x) x##LL
23516 long long int foo = INT64CONST(0x1234567890123456);
23526 rm -f conftest.$ac_objext
23527 if { (ac_try="$ac_compile"
23528 case "(($ac_try" in
23529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23530 *) ac_try_echo=$ac_try;;
23532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23533 $as_echo "$ac_try_echo") >&5
23534 (eval "$ac_compile") 2>conftest.er1
23536 grep -v '^ *+' conftest.er1 >conftest.err
23538 cat conftest.err >&5
23539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540 (exit $ac_status); } && {
23541 test -z "$ac_c_werror_flag" ||
23542 test ! -s conftest.err
23543 } && test -s conftest.$ac_objext; then
23545 cat >>confdefs.h <<\_ACEOF
23546 #define HAVE_LL_CONSTANTS 1
23550 $as_echo "$as_me: failed program was:" >&5
23551 sed 's/^/| /' conftest.$ac_ext >&5
23556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23560 # If we found "long int" is 64 bits, assume snprintf handles it. If
23561 # we found we need to use "long long int", better check. We cope with
23562 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
23563 # work, fall back to our own snprintf emulation (which we know uses %lld).
23565 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
23566 if test $pgac_need_repl_snprintf = no; then
23567 { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
23568 $as_echo_n "checking snprintf format for long long int... " >&6; }
23569 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
23570 $as_echo_n "(cached) " >&6
23572 for pgac_format in '%lld' '%qd' '%I64d'; do
23573 if test "$cross_compiling" = yes; then
23574 pgac_cv_snprintf_long_long_int_format=cross; break
23576 cat >conftest.$ac_ext <<_ACEOF
23579 cat confdefs.h >>conftest.$ac_ext
23580 cat >>conftest.$ac_ext <<_ACEOF
23581 /* end confdefs.h. */
23583 typedef long long int ac_int64;
23584 #define INT64_FORMAT "$pgac_format"
23586 ac_int64 a = 20000001;
23587 ac_int64 b = 40000005;
23589 int does_int64_snprintf_work()
23594 if (sizeof(ac_int64) != 8)
23595 return 0; /* doesn't look like the right size */
23598 snprintf(buf, 100, INT64_FORMAT, c);
23599 if (strcmp(buf, "800000140000005") != 0)
23600 return 0; /* either multiply or snprintf is busted */
23604 exit(! does_int64_snprintf_work());
23607 rm -f conftest$ac_exeext
23608 if { (ac_try="$ac_link"
23609 case "(($ac_try" in
23610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23611 *) ac_try_echo=$ac_try;;
23613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23614 $as_echo "$ac_try_echo") >&5
23615 (eval "$ac_link") 2>&5
23617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23619 { (case "(($ac_try" in
23620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23621 *) ac_try_echo=$ac_try;;
23623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23624 $as_echo "$ac_try_echo") >&5
23625 (eval "$ac_try") 2>&5
23627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628 (exit $ac_status); }; }; then
23629 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
23631 $as_echo "$as_me: program exited with status $ac_status" >&5
23632 $as_echo "$as_me: failed program was:" >&5
23633 sed 's/^/| /' conftest.$ac_ext >&5
23636 rm -rf conftest.dSYM
23637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23644 LONG_LONG_INT_FORMAT=''
23646 case $pgac_cv_snprintf_long_long_int_format in
23647 cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
23648 $as_echo "cannot test (not on host machine)" >&6; };;
23649 ?*) { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
23650 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
23651 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
23652 *) { $as_echo "$as_me:$LINENO: result: none" >&5
23653 $as_echo "none" >&6; };;
23655 if test "$LONG_LONG_INT_FORMAT" = ""; then
23656 # Force usage of our own snprintf, since system snprintf is broken
23657 pgac_need_repl_snprintf=yes
23658 LONG_LONG_INT_FORMAT='%lld'
23661 # Here if we previously decided we needed to use our own snprintf
23662 LONG_LONG_INT_FORMAT='%lld'
23664 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
23665 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
23666 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
23668 # Here if we are not using 'long long int' at all
23669 INT64_FORMAT='"%ld"'
23670 UINT64_FORMAT='"%lu"'
23674 cat >>confdefs.h <<_ACEOF
23675 #define INT64_FORMAT $INT64_FORMAT
23680 cat >>confdefs.h <<_ACEOF
23681 #define UINT64_FORMAT $UINT64_FORMAT
23685 # Now we have checked all the reasons to replace snprintf
23686 if test $pgac_need_repl_snprintf = yes; then
23688 cat >>confdefs.h <<\_ACEOF
23689 #define USE_REPL_SNPRINTF 1
23692 case " $LIBOBJS " in
23693 *" snprintf.$ac_objext "* ) ;;
23694 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
23700 # Check size of void *, size_t (enables tweaks for > 32bit address space)
23701 # The cast to long int works around a bug in the HP C Compiler
23702 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23703 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23704 # This bug is HP SR number 8606223364.
23705 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
23706 $as_echo_n "checking size of void *... " >&6; }
23707 if test "${ac_cv_sizeof_void_p+set}" = set; then
23708 $as_echo_n "(cached) " >&6
23710 if test "$cross_compiling" = yes; then
23711 # Depending upon the size, compute the lo and hi bounds.
23712 cat >conftest.$ac_ext <<_ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h. */
23718 $ac_includes_default
23722 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
23729 rm -f conftest.$ac_objext
23730 if { (ac_try="$ac_compile"
23731 case "(($ac_try" in
23732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23733 *) ac_try_echo=$ac_try;;
23735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23736 $as_echo "$ac_try_echo") >&5
23737 (eval "$ac_compile") 2>conftest.er1
23739 grep -v '^ *+' conftest.er1 >conftest.err
23741 cat conftest.err >&5
23742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743 (exit $ac_status); } && {
23744 test -z "$ac_c_werror_flag" ||
23745 test ! -s conftest.err
23746 } && test -s conftest.$ac_objext; then
23749 cat >conftest.$ac_ext <<_ACEOF
23752 cat confdefs.h >>conftest.$ac_ext
23753 cat >>conftest.$ac_ext <<_ACEOF
23754 /* end confdefs.h. */
23755 $ac_includes_default
23759 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
23766 rm -f conftest.$ac_objext
23767 if { (ac_try="$ac_compile"
23768 case "(($ac_try" in
23769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23770 *) ac_try_echo=$ac_try;;
23772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23773 $as_echo "$ac_try_echo") >&5
23774 (eval "$ac_compile") 2>conftest.er1
23776 grep -v '^ *+' conftest.er1 >conftest.err
23778 cat conftest.err >&5
23779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780 (exit $ac_status); } && {
23781 test -z "$ac_c_werror_flag" ||
23782 test ! -s conftest.err
23783 } && test -s conftest.$ac_objext; then
23784 ac_hi=$ac_mid; break
23786 $as_echo "$as_me: failed program was:" >&5
23787 sed 's/^/| /' conftest.$ac_ext >&5
23789 ac_lo=`expr $ac_mid + 1`
23790 if test $ac_lo -le $ac_mid; then
23794 ac_mid=`expr 2 '*' $ac_mid + 1`
23797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23800 $as_echo "$as_me: failed program was:" >&5
23801 sed 's/^/| /' conftest.$ac_ext >&5
23803 cat >conftest.$ac_ext <<_ACEOF
23806 cat confdefs.h >>conftest.$ac_ext
23807 cat >>conftest.$ac_ext <<_ACEOF
23808 /* end confdefs.h. */
23809 $ac_includes_default
23813 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
23820 rm -f conftest.$ac_objext
23821 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23830 grep -v '^ *+' conftest.er1 >conftest.err
23832 cat conftest.err >&5
23833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834 (exit $ac_status); } && {
23835 test -z "$ac_c_werror_flag" ||
23836 test ! -s conftest.err
23837 } && test -s conftest.$ac_objext; then
23840 cat >conftest.$ac_ext <<_ACEOF
23843 cat confdefs.h >>conftest.$ac_ext
23844 cat >>conftest.$ac_ext <<_ACEOF
23845 /* end confdefs.h. */
23846 $ac_includes_default
23850 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
23857 rm -f conftest.$ac_objext
23858 if { (ac_try="$ac_compile"
23859 case "(($ac_try" in
23860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23861 *) ac_try_echo=$ac_try;;
23863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23864 $as_echo "$ac_try_echo") >&5
23865 (eval "$ac_compile") 2>conftest.er1
23867 grep -v '^ *+' conftest.er1 >conftest.err
23869 cat conftest.err >&5
23870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871 (exit $ac_status); } && {
23872 test -z "$ac_c_werror_flag" ||
23873 test ! -s conftest.err
23874 } && test -s conftest.$ac_objext; then
23875 ac_lo=$ac_mid; break
23877 $as_echo "$as_me: failed program was:" >&5
23878 sed 's/^/| /' conftest.$ac_ext >&5
23880 ac_hi=`expr '(' $ac_mid ')' - 1`
23881 if test $ac_mid -le $ac_hi; then
23885 ac_mid=`expr 2 '*' $ac_mid`
23888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23891 $as_echo "$as_me: failed program was:" >&5
23892 sed 's/^/| /' conftest.$ac_ext >&5
23897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23901 # Binary search between lo and hi bounds.
23902 while test "x$ac_lo" != "x$ac_hi"; do
23903 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23904 cat >conftest.$ac_ext <<_ACEOF
23907 cat confdefs.h >>conftest.$ac_ext
23908 cat >>conftest.$ac_ext <<_ACEOF
23909 /* end confdefs.h. */
23910 $ac_includes_default
23914 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
23921 rm -f conftest.$ac_objext
23922 if { (ac_try="$ac_compile"
23923 case "(($ac_try" in
23924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23925 *) ac_try_echo=$ac_try;;
23927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23928 $as_echo "$ac_try_echo") >&5
23929 (eval "$ac_compile") 2>conftest.er1
23931 grep -v '^ *+' conftest.er1 >conftest.err
23933 cat conftest.err >&5
23934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935 (exit $ac_status); } && {
23936 test -z "$ac_c_werror_flag" ||
23937 test ! -s conftest.err
23938 } && test -s conftest.$ac_objext; then
23941 $as_echo "$as_me: failed program was:" >&5
23942 sed 's/^/| /' conftest.$ac_ext >&5
23944 ac_lo=`expr '(' $ac_mid ')' + 1`
23947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23950 ?*) ac_cv_sizeof_void_p=$ac_lo;;
23951 '') if test "$ac_cv_type_void_p" = yes; then
23952 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23954 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
23955 See \`config.log' for more details." >&5
23956 $as_echo "$as_me: error: cannot compute sizeof (void *)
23957 See \`config.log' for more details." >&2;}
23958 { (exit 77); exit 77; }; }; }
23960 ac_cv_sizeof_void_p=0
23964 cat >conftest.$ac_ext <<_ACEOF
23967 cat confdefs.h >>conftest.$ac_ext
23968 cat >>conftest.$ac_ext <<_ACEOF
23969 /* end confdefs.h. */
23970 $ac_includes_default
23971 static long int longval () { return (long int) (sizeof (void *)); }
23972 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
23974 #include <stdlib.h>
23979 FILE *f = fopen ("conftest.val", "w");
23982 if (((long int) (sizeof (void *))) < 0)
23984 long int i = longval ();
23985 if (i != ((long int) (sizeof (void *))))
23987 fprintf (f, "%ld", i);
23991 unsigned long int i = ulongval ();
23992 if (i != ((long int) (sizeof (void *))))
23994 fprintf (f, "%lu", i);
23996 /* Do not output a trailing newline, as this causes \r\n confusion
23997 on some platforms. */
23998 return ferror (f) || fclose (f) != 0;
24004 rm -f conftest$ac_exeext
24005 if { (ac_try="$ac_link"
24006 case "(($ac_try" in
24007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24008 *) ac_try_echo=$ac_try;;
24010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24011 $as_echo "$ac_try_echo") >&5
24012 (eval "$ac_link") 2>&5
24014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24016 { (case "(($ac_try" in
24017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24018 *) ac_try_echo=$ac_try;;
24020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24021 $as_echo "$ac_try_echo") >&5
24022 (eval "$ac_try") 2>&5
24024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24025 (exit $ac_status); }; }; then
24026 ac_cv_sizeof_void_p=`cat conftest.val`
24028 $as_echo "$as_me: program exited with status $ac_status" >&5
24029 $as_echo "$as_me: failed program was:" >&5
24030 sed 's/^/| /' conftest.$ac_ext >&5
24032 ( exit $ac_status )
24033 if test "$ac_cv_type_void_p" = yes; then
24034 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24036 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24037 See \`config.log' for more details." >&5
24038 $as_echo "$as_me: error: cannot compute sizeof (void *)
24039 See \`config.log' for more details." >&2;}
24040 { (exit 77); exit 77; }; }; }
24042 ac_cv_sizeof_void_p=0
24045 rm -rf conftest.dSYM
24046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24050 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24051 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24055 cat >>confdefs.h <<_ACEOF
24056 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24060 # The cast to long int works around a bug in the HP C Compiler
24061 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24062 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24063 # This bug is HP SR number 8606223364.
24064 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24065 $as_echo_n "checking size of size_t... " >&6; }
24066 if test "${ac_cv_sizeof_size_t+set}" = set; then
24067 $as_echo_n "(cached) " >&6
24069 if test "$cross_compiling" = yes; then
24070 # Depending upon the size, compute the lo and hi bounds.
24071 cat >conftest.$ac_ext <<_ACEOF
24074 cat confdefs.h >>conftest.$ac_ext
24075 cat >>conftest.$ac_ext <<_ACEOF
24076 /* end confdefs.h. */
24077 $ac_includes_default
24081 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24088 rm -f conftest.$ac_objext
24089 if { (ac_try="$ac_compile"
24090 case "(($ac_try" in
24091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24092 *) ac_try_echo=$ac_try;;
24094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24095 $as_echo "$ac_try_echo") >&5
24096 (eval "$ac_compile") 2>conftest.er1
24098 grep -v '^ *+' conftest.er1 >conftest.err
24100 cat conftest.err >&5
24101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102 (exit $ac_status); } && {
24103 test -z "$ac_c_werror_flag" ||
24104 test ! -s conftest.err
24105 } && test -s conftest.$ac_objext; then
24108 cat >conftest.$ac_ext <<_ACEOF
24111 cat confdefs.h >>conftest.$ac_ext
24112 cat >>conftest.$ac_ext <<_ACEOF
24113 /* end confdefs.h. */
24114 $ac_includes_default
24118 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24125 rm -f conftest.$ac_objext
24126 if { (ac_try="$ac_compile"
24127 case "(($ac_try" in
24128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24129 *) ac_try_echo=$ac_try;;
24131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24132 $as_echo "$ac_try_echo") >&5
24133 (eval "$ac_compile") 2>conftest.er1
24135 grep -v '^ *+' conftest.er1 >conftest.err
24137 cat conftest.err >&5
24138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139 (exit $ac_status); } && {
24140 test -z "$ac_c_werror_flag" ||
24141 test ! -s conftest.err
24142 } && test -s conftest.$ac_objext; then
24143 ac_hi=$ac_mid; break
24145 $as_echo "$as_me: failed program was:" >&5
24146 sed 's/^/| /' conftest.$ac_ext >&5
24148 ac_lo=`expr $ac_mid + 1`
24149 if test $ac_lo -le $ac_mid; then
24153 ac_mid=`expr 2 '*' $ac_mid + 1`
24156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24159 $as_echo "$as_me: failed program was:" >&5
24160 sed 's/^/| /' conftest.$ac_ext >&5
24162 cat >conftest.$ac_ext <<_ACEOF
24165 cat confdefs.h >>conftest.$ac_ext
24166 cat >>conftest.$ac_ext <<_ACEOF
24167 /* end confdefs.h. */
24168 $ac_includes_default
24172 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
24179 rm -f conftest.$ac_objext
24180 if { (ac_try="$ac_compile"
24181 case "(($ac_try" in
24182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24183 *) ac_try_echo=$ac_try;;
24185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24186 $as_echo "$ac_try_echo") >&5
24187 (eval "$ac_compile") 2>conftest.er1
24189 grep -v '^ *+' conftest.er1 >conftest.err
24191 cat conftest.err >&5
24192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 (exit $ac_status); } && {
24194 test -z "$ac_c_werror_flag" ||
24195 test ! -s conftest.err
24196 } && test -s conftest.$ac_objext; then
24199 cat >conftest.$ac_ext <<_ACEOF
24202 cat confdefs.h >>conftest.$ac_ext
24203 cat >>conftest.$ac_ext <<_ACEOF
24204 /* end confdefs.h. */
24205 $ac_includes_default
24209 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
24216 rm -f conftest.$ac_objext
24217 if { (ac_try="$ac_compile"
24218 case "(($ac_try" in
24219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24220 *) ac_try_echo=$ac_try;;
24222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24223 $as_echo "$ac_try_echo") >&5
24224 (eval "$ac_compile") 2>conftest.er1
24226 grep -v '^ *+' conftest.er1 >conftest.err
24228 cat conftest.err >&5
24229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24230 (exit $ac_status); } && {
24231 test -z "$ac_c_werror_flag" ||
24232 test ! -s conftest.err
24233 } && test -s conftest.$ac_objext; then
24234 ac_lo=$ac_mid; break
24236 $as_echo "$as_me: failed program was:" >&5
24237 sed 's/^/| /' conftest.$ac_ext >&5
24239 ac_hi=`expr '(' $ac_mid ')' - 1`
24240 if test $ac_mid -le $ac_hi; then
24244 ac_mid=`expr 2 '*' $ac_mid`
24247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24250 $as_echo "$as_me: failed program was:" >&5
24251 sed 's/^/| /' conftest.$ac_ext >&5
24256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24260 # Binary search between lo and hi bounds.
24261 while test "x$ac_lo" != "x$ac_hi"; do
24262 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24263 cat >conftest.$ac_ext <<_ACEOF
24266 cat confdefs.h >>conftest.$ac_ext
24267 cat >>conftest.$ac_ext <<_ACEOF
24268 /* end confdefs.h. */
24269 $ac_includes_default
24273 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24280 rm -f conftest.$ac_objext
24281 if { (ac_try="$ac_compile"
24282 case "(($ac_try" in
24283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24284 *) ac_try_echo=$ac_try;;
24286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24287 $as_echo "$ac_try_echo") >&5
24288 (eval "$ac_compile") 2>conftest.er1
24290 grep -v '^ *+' conftest.er1 >conftest.err
24292 cat conftest.err >&5
24293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24294 (exit $ac_status); } && {
24295 test -z "$ac_c_werror_flag" ||
24296 test ! -s conftest.err
24297 } && test -s conftest.$ac_objext; then
24300 $as_echo "$as_me: failed program was:" >&5
24301 sed 's/^/| /' conftest.$ac_ext >&5
24303 ac_lo=`expr '(' $ac_mid ')' + 1`
24306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24309 ?*) ac_cv_sizeof_size_t=$ac_lo;;
24310 '') if test "$ac_cv_type_size_t" = yes; then
24311 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24313 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24314 See \`config.log' for more details." >&5
24315 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24316 See \`config.log' for more details." >&2;}
24317 { (exit 77); exit 77; }; }; }
24319 ac_cv_sizeof_size_t=0
24323 cat >conftest.$ac_ext <<_ACEOF
24326 cat confdefs.h >>conftest.$ac_ext
24327 cat >>conftest.$ac_ext <<_ACEOF
24328 /* end confdefs.h. */
24329 $ac_includes_default
24330 static long int longval () { return (long int) (sizeof (size_t)); }
24331 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
24333 #include <stdlib.h>
24338 FILE *f = fopen ("conftest.val", "w");
24341 if (((long int) (sizeof (size_t))) < 0)
24343 long int i = longval ();
24344 if (i != ((long int) (sizeof (size_t))))
24346 fprintf (f, "%ld", i);
24350 unsigned long int i = ulongval ();
24351 if (i != ((long int) (sizeof (size_t))))
24353 fprintf (f, "%lu", i);
24355 /* Do not output a trailing newline, as this causes \r\n confusion
24356 on some platforms. */
24357 return ferror (f) || fclose (f) != 0;
24363 rm -f conftest$ac_exeext
24364 if { (ac_try="$ac_link"
24365 case "(($ac_try" in
24366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24367 *) ac_try_echo=$ac_try;;
24369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24370 $as_echo "$ac_try_echo") >&5
24371 (eval "$ac_link") 2>&5
24373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24375 { (case "(($ac_try" in
24376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24377 *) ac_try_echo=$ac_try;;
24379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24380 $as_echo "$ac_try_echo") >&5
24381 (eval "$ac_try") 2>&5
24383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384 (exit $ac_status); }; }; then
24385 ac_cv_sizeof_size_t=`cat conftest.val`
24387 $as_echo "$as_me: program exited with status $ac_status" >&5
24388 $as_echo "$as_me: failed program was:" >&5
24389 sed 's/^/| /' conftest.$ac_ext >&5
24391 ( exit $ac_status )
24392 if test "$ac_cv_type_size_t" = yes; then
24393 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24395 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24396 See \`config.log' for more details." >&5
24397 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24398 See \`config.log' for more details." >&2;}
24399 { (exit 77); exit 77; }; }; }
24401 ac_cv_sizeof_size_t=0
24404 rm -rf conftest.dSYM
24405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24409 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
24410 $as_echo "$ac_cv_sizeof_size_t" >&6; }
24414 cat >>confdefs.h <<_ACEOF
24415 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24419 # The cast to long int works around a bug in the HP C Compiler
24420 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24421 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24422 # This bug is HP SR number 8606223364.
24423 { $as_echo "$as_me:$LINENO: checking size of long" >&5
24424 $as_echo_n "checking size of long... " >&6; }
24425 if test "${ac_cv_sizeof_long+set}" = set; then
24426 $as_echo_n "(cached) " >&6
24428 if test "$cross_compiling" = yes; then
24429 # Depending upon the size, compute the lo and hi bounds.
24430 cat >conftest.$ac_ext <<_ACEOF
24433 cat confdefs.h >>conftest.$ac_ext
24434 cat >>conftest.$ac_ext <<_ACEOF
24435 /* end confdefs.h. */
24436 $ac_includes_default
24440 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
24447 rm -f conftest.$ac_objext
24448 if { (ac_try="$ac_compile"
24449 case "(($ac_try" in
24450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24451 *) ac_try_echo=$ac_try;;
24453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24454 $as_echo "$ac_try_echo") >&5
24455 (eval "$ac_compile") 2>conftest.er1
24457 grep -v '^ *+' conftest.er1 >conftest.err
24459 cat conftest.err >&5
24460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461 (exit $ac_status); } && {
24462 test -z "$ac_c_werror_flag" ||
24463 test ! -s conftest.err
24464 } && test -s conftest.$ac_objext; then
24467 cat >conftest.$ac_ext <<_ACEOF
24470 cat confdefs.h >>conftest.$ac_ext
24471 cat >>conftest.$ac_ext <<_ACEOF
24472 /* end confdefs.h. */
24473 $ac_includes_default
24477 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
24484 rm -f conftest.$ac_objext
24485 if { (ac_try="$ac_compile"
24486 case "(($ac_try" in
24487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24488 *) ac_try_echo=$ac_try;;
24490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24491 $as_echo "$ac_try_echo") >&5
24492 (eval "$ac_compile") 2>conftest.er1
24494 grep -v '^ *+' conftest.er1 >conftest.err
24496 cat conftest.err >&5
24497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24498 (exit $ac_status); } && {
24499 test -z "$ac_c_werror_flag" ||
24500 test ! -s conftest.err
24501 } && test -s conftest.$ac_objext; then
24502 ac_hi=$ac_mid; break
24504 $as_echo "$as_me: failed program was:" >&5
24505 sed 's/^/| /' conftest.$ac_ext >&5
24507 ac_lo=`expr $ac_mid + 1`
24508 if test $ac_lo -le $ac_mid; then
24512 ac_mid=`expr 2 '*' $ac_mid + 1`
24515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24518 $as_echo "$as_me: failed program was:" >&5
24519 sed 's/^/| /' conftest.$ac_ext >&5
24521 cat >conftest.$ac_ext <<_ACEOF
24524 cat confdefs.h >>conftest.$ac_ext
24525 cat >>conftest.$ac_ext <<_ACEOF
24526 /* end confdefs.h. */
24527 $ac_includes_default
24531 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
24538 rm -f conftest.$ac_objext
24539 if { (ac_try="$ac_compile"
24540 case "(($ac_try" in
24541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24542 *) ac_try_echo=$ac_try;;
24544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24545 $as_echo "$ac_try_echo") >&5
24546 (eval "$ac_compile") 2>conftest.er1
24548 grep -v '^ *+' conftest.er1 >conftest.err
24550 cat conftest.err >&5
24551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552 (exit $ac_status); } && {
24553 test -z "$ac_c_werror_flag" ||
24554 test ! -s conftest.err
24555 } && test -s conftest.$ac_objext; then
24558 cat >conftest.$ac_ext <<_ACEOF
24561 cat confdefs.h >>conftest.$ac_ext
24562 cat >>conftest.$ac_ext <<_ACEOF
24563 /* end confdefs.h. */
24564 $ac_includes_default
24568 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
24575 rm -f conftest.$ac_objext
24576 if { (ac_try="$ac_compile"
24577 case "(($ac_try" in
24578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24579 *) ac_try_echo=$ac_try;;
24581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24582 $as_echo "$ac_try_echo") >&5
24583 (eval "$ac_compile") 2>conftest.er1
24585 grep -v '^ *+' conftest.er1 >conftest.err
24587 cat conftest.err >&5
24588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589 (exit $ac_status); } && {
24590 test -z "$ac_c_werror_flag" ||
24591 test ! -s conftest.err
24592 } && test -s conftest.$ac_objext; then
24593 ac_lo=$ac_mid; break
24595 $as_echo "$as_me: failed program was:" >&5
24596 sed 's/^/| /' conftest.$ac_ext >&5
24598 ac_hi=`expr '(' $ac_mid ')' - 1`
24599 if test $ac_mid -le $ac_hi; then
24603 ac_mid=`expr 2 '*' $ac_mid`
24606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24609 $as_echo "$as_me: failed program was:" >&5
24610 sed 's/^/| /' conftest.$ac_ext >&5
24615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24619 # Binary search between lo and hi bounds.
24620 while test "x$ac_lo" != "x$ac_hi"; do
24621 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24622 cat >conftest.$ac_ext <<_ACEOF
24625 cat confdefs.h >>conftest.$ac_ext
24626 cat >>conftest.$ac_ext <<_ACEOF
24627 /* end confdefs.h. */
24628 $ac_includes_default
24632 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
24639 rm -f conftest.$ac_objext
24640 if { (ac_try="$ac_compile"
24641 case "(($ac_try" in
24642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24643 *) ac_try_echo=$ac_try;;
24645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24646 $as_echo "$ac_try_echo") >&5
24647 (eval "$ac_compile") 2>conftest.er1
24649 grep -v '^ *+' conftest.er1 >conftest.err
24651 cat conftest.err >&5
24652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653 (exit $ac_status); } && {
24654 test -z "$ac_c_werror_flag" ||
24655 test ! -s conftest.err
24656 } && test -s conftest.$ac_objext; then
24659 $as_echo "$as_me: failed program was:" >&5
24660 sed 's/^/| /' conftest.$ac_ext >&5
24662 ac_lo=`expr '(' $ac_mid ')' + 1`
24665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24668 ?*) ac_cv_sizeof_long=$ac_lo;;
24669 '') if test "$ac_cv_type_long" = yes; then
24670 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24672 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24673 See \`config.log' for more details." >&5
24674 $as_echo "$as_me: error: cannot compute sizeof (long)
24675 See \`config.log' for more details." >&2;}
24676 { (exit 77); exit 77; }; }; }
24678 ac_cv_sizeof_long=0
24682 cat >conftest.$ac_ext <<_ACEOF
24685 cat confdefs.h >>conftest.$ac_ext
24686 cat >>conftest.$ac_ext <<_ACEOF
24687 /* end confdefs.h. */
24688 $ac_includes_default
24689 static long int longval () { return (long int) (sizeof (long)); }
24690 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
24692 #include <stdlib.h>
24697 FILE *f = fopen ("conftest.val", "w");
24700 if (((long int) (sizeof (long))) < 0)
24702 long int i = longval ();
24703 if (i != ((long int) (sizeof (long))))
24705 fprintf (f, "%ld", i);
24709 unsigned long int i = ulongval ();
24710 if (i != ((long int) (sizeof (long))))
24712 fprintf (f, "%lu", i);
24714 /* Do not output a trailing newline, as this causes \r\n confusion
24715 on some platforms. */
24716 return ferror (f) || fclose (f) != 0;
24722 rm -f conftest$ac_exeext
24723 if { (ac_try="$ac_link"
24724 case "(($ac_try" in
24725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24726 *) ac_try_echo=$ac_try;;
24728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24729 $as_echo "$ac_try_echo") >&5
24730 (eval "$ac_link") 2>&5
24732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24734 { (case "(($ac_try" in
24735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24736 *) ac_try_echo=$ac_try;;
24738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24739 $as_echo "$ac_try_echo") >&5
24740 (eval "$ac_try") 2>&5
24742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 (exit $ac_status); }; }; then
24744 ac_cv_sizeof_long=`cat conftest.val`
24746 $as_echo "$as_me: program exited with status $ac_status" >&5
24747 $as_echo "$as_me: failed program was:" >&5
24748 sed 's/^/| /' conftest.$ac_ext >&5
24750 ( exit $ac_status )
24751 if test "$ac_cv_type_long" = yes; then
24752 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24754 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24755 See \`config.log' for more details." >&5
24756 $as_echo "$as_me: error: cannot compute sizeof (long)
24757 See \`config.log' for more details." >&2;}
24758 { (exit 77); exit 77; }; }; }
24760 ac_cv_sizeof_long=0
24763 rm -rf conftest.dSYM
24764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24768 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
24769 $as_echo "$ac_cv_sizeof_long" >&6; }
24773 cat >>confdefs.h <<_ACEOF
24774 #define SIZEOF_LONG $ac_cv_sizeof_long
24779 # Decide whether float4 is passed by value: user-selectable, enabled by default
24780 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
24781 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
24784 # Check whether --enable-float4-byval was given.
24785 if test "${enable_float4_byval+set}" = set; then
24786 enableval=$enable_float4_byval;
24790 cat >>confdefs.h <<\_ACEOF
24791 #define USE_FLOAT4_BYVAL 1
24794 float4passbyval=true
24797 float4passbyval=false
24800 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
24801 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
24802 { (exit 1); exit 1; }; }
24807 enable_float4_byval=yes
24809 cat >>confdefs.h <<\_ACEOF
24810 #define USE_FLOAT4_BYVAL 1
24813 float4passbyval=true
24817 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
24818 $as_echo "$enable_float4_byval" >&6; }
24820 cat >>confdefs.h <<_ACEOF
24821 #define FLOAT4PASSBYVAL $float4passbyval
24825 # Decide whether float8 is passed by value.
24826 # Note: this setting also controls int8 and related types such as timestamp.
24827 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
24828 # If not, trying to select it is an error.
24829 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
24830 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
24831 if test $ac_cv_sizeof_void_p -ge 8 ; then
24834 # Check whether --enable-float8-byval was given.
24835 if test "${enable_float8_byval+set}" = set; then
24836 enableval=$enable_float8_byval;
24845 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
24846 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
24847 { (exit 1); exit 1; }; }
24852 enable_float8_byval=yes
24860 # Check whether --enable-float8-byval was given.
24861 if test "${enable_float8_byval+set}" = set; then
24862 enableval=$enable_float8_byval;
24871 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
24872 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
24873 { (exit 1); exit 1; }; }
24878 enable_float8_byval=no
24883 if test "$enable_float8_byval" = yes ; then
24884 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
24885 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
24886 { (exit 1); exit 1; }; }
24889 if test "$enable_float8_byval" = yes ; then
24891 cat >>confdefs.h <<\_ACEOF
24892 #define USE_FLOAT8_BYVAL 1
24895 float8passbyval=true
24897 float8passbyval=false
24899 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
24900 $as_echo "$enable_float8_byval" >&6; }
24902 cat >>confdefs.h <<_ACEOF
24903 #define FLOAT8PASSBYVAL $float8passbyval
24907 # Determine memory alignment requirements for the basic C data types.
24909 # The cast to long int works around a bug in the HP C Compiler,
24910 # see AC_CHECK_SIZEOF for more information.
24911 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
24912 $as_echo_n "checking alignment of short... " >&6; }
24913 if test "${ac_cv_alignof_short+set}" = set; then
24914 $as_echo_n "(cached) " >&6
24916 if test "$cross_compiling" = yes; then
24917 # Depending upon the size, compute the lo and hi bounds.
24918 cat >conftest.$ac_ext <<_ACEOF
24921 cat confdefs.h >>conftest.$ac_ext
24922 cat >>conftest.$ac_ext <<_ACEOF
24923 /* end confdefs.h. */
24924 $ac_includes_default
24926 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24928 typedef struct { char x; short y; } ac__type_alignof_;
24932 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24939 rm -f conftest.$ac_objext
24940 if { (ac_try="$ac_compile"
24941 case "(($ac_try" in
24942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24943 *) ac_try_echo=$ac_try;;
24945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24946 $as_echo "$ac_try_echo") >&5
24947 (eval "$ac_compile") 2>conftest.er1
24949 grep -v '^ *+' conftest.er1 >conftest.err
24951 cat conftest.err >&5
24952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953 (exit $ac_status); } && {
24954 test -z "$ac_c_werror_flag" ||
24955 test ! -s conftest.err
24956 } && test -s conftest.$ac_objext; then
24959 cat >conftest.$ac_ext <<_ACEOF
24962 cat confdefs.h >>conftest.$ac_ext
24963 cat >>conftest.$ac_ext <<_ACEOF
24964 /* end confdefs.h. */
24965 $ac_includes_default
24967 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24969 typedef struct { char x; short y; } ac__type_alignof_;
24973 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24980 rm -f conftest.$ac_objext
24981 if { (ac_try="$ac_compile"
24982 case "(($ac_try" in
24983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24984 *) ac_try_echo=$ac_try;;
24986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24987 $as_echo "$ac_try_echo") >&5
24988 (eval "$ac_compile") 2>conftest.er1
24990 grep -v '^ *+' conftest.er1 >conftest.err
24992 cat conftest.err >&5
24993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994 (exit $ac_status); } && {
24995 test -z "$ac_c_werror_flag" ||
24996 test ! -s conftest.err
24997 } && test -s conftest.$ac_objext; then
24998 ac_hi=$ac_mid; break
25000 $as_echo "$as_me: failed program was:" >&5
25001 sed 's/^/| /' conftest.$ac_ext >&5
25003 ac_lo=`expr $ac_mid + 1`
25004 if test $ac_lo -le $ac_mid; then
25008 ac_mid=`expr 2 '*' $ac_mid + 1`
25011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25014 $as_echo "$as_me: failed program was:" >&5
25015 sed 's/^/| /' conftest.$ac_ext >&5
25017 cat >conftest.$ac_ext <<_ACEOF
25020 cat confdefs.h >>conftest.$ac_ext
25021 cat >>conftest.$ac_ext <<_ACEOF
25022 /* end confdefs.h. */
25023 $ac_includes_default
25025 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25027 typedef struct { char x; short y; } ac__type_alignof_;
25031 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25038 rm -f conftest.$ac_objext
25039 if { (ac_try="$ac_compile"
25040 case "(($ac_try" in
25041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25042 *) ac_try_echo=$ac_try;;
25044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25045 $as_echo "$ac_try_echo") >&5
25046 (eval "$ac_compile") 2>conftest.er1
25048 grep -v '^ *+' conftest.er1 >conftest.err
25050 cat conftest.err >&5
25051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052 (exit $ac_status); } && {
25053 test -z "$ac_c_werror_flag" ||
25054 test ! -s conftest.err
25055 } && test -s conftest.$ac_objext; then
25058 cat >conftest.$ac_ext <<_ACEOF
25061 cat confdefs.h >>conftest.$ac_ext
25062 cat >>conftest.$ac_ext <<_ACEOF
25063 /* end confdefs.h. */
25064 $ac_includes_default
25066 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25068 typedef struct { char x; short y; } ac__type_alignof_;
25072 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25079 rm -f conftest.$ac_objext
25080 if { (ac_try="$ac_compile"
25081 case "(($ac_try" in
25082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25083 *) ac_try_echo=$ac_try;;
25085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25086 $as_echo "$ac_try_echo") >&5
25087 (eval "$ac_compile") 2>conftest.er1
25089 grep -v '^ *+' conftest.er1 >conftest.err
25091 cat conftest.err >&5
25092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093 (exit $ac_status); } && {
25094 test -z "$ac_c_werror_flag" ||
25095 test ! -s conftest.err
25096 } && test -s conftest.$ac_objext; then
25097 ac_lo=$ac_mid; break
25099 $as_echo "$as_me: failed program was:" >&5
25100 sed 's/^/| /' conftest.$ac_ext >&5
25102 ac_hi=`expr '(' $ac_mid ')' - 1`
25103 if test $ac_mid -le $ac_hi; then
25107 ac_mid=`expr 2 '*' $ac_mid`
25110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25113 $as_echo "$as_me: failed program was:" >&5
25114 sed 's/^/| /' conftest.$ac_ext >&5
25119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25123 # Binary search between lo and hi bounds.
25124 while test "x$ac_lo" != "x$ac_hi"; do
25125 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25126 cat >conftest.$ac_ext <<_ACEOF
25129 cat confdefs.h >>conftest.$ac_ext
25130 cat >>conftest.$ac_ext <<_ACEOF
25131 /* end confdefs.h. */
25132 $ac_includes_default
25134 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25136 typedef struct { char x; short y; } ac__type_alignof_;
25140 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25147 rm -f conftest.$ac_objext
25148 if { (ac_try="$ac_compile"
25149 case "(($ac_try" in
25150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25151 *) ac_try_echo=$ac_try;;
25153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25154 $as_echo "$ac_try_echo") >&5
25155 (eval "$ac_compile") 2>conftest.er1
25157 grep -v '^ *+' conftest.er1 >conftest.err
25159 cat conftest.err >&5
25160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25161 (exit $ac_status); } && {
25162 test -z "$ac_c_werror_flag" ||
25163 test ! -s conftest.err
25164 } && test -s conftest.$ac_objext; then
25167 $as_echo "$as_me: failed program was:" >&5
25168 sed 's/^/| /' conftest.$ac_ext >&5
25170 ac_lo=`expr '(' $ac_mid ')' + 1`
25173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25176 ?*) ac_cv_alignof_short=$ac_lo;;
25177 '') if test "$ac_cv_type_short" = yes; then
25178 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25180 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25181 See \`config.log' for more details." >&5
25182 $as_echo "$as_me: error: cannot compute alignment of short
25183 See \`config.log' for more details." >&2;}
25184 { (exit 77); exit 77; }; }; }
25186 ac_cv_alignof_short=0
25190 cat >conftest.$ac_ext <<_ACEOF
25193 cat confdefs.h >>conftest.$ac_ext
25194 cat >>conftest.$ac_ext <<_ACEOF
25195 /* end confdefs.h. */
25196 $ac_includes_default
25198 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25200 typedef struct { char x; short y; } ac__type_alignof_;
25201 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25202 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25204 #include <stdlib.h>
25209 FILE *f = fopen ("conftest.val", "w");
25212 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25214 long int i = longval ();
25215 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25217 fprintf (f, "%ld", i);
25221 unsigned long int i = ulongval ();
25222 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25224 fprintf (f, "%lu", i);
25226 /* Do not output a trailing newline, as this causes \r\n confusion
25227 on some platforms. */
25228 return ferror (f) || fclose (f) != 0;
25234 rm -f conftest$ac_exeext
25235 if { (ac_try="$ac_link"
25236 case "(($ac_try" in
25237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25238 *) ac_try_echo=$ac_try;;
25240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25241 $as_echo "$ac_try_echo") >&5
25242 (eval "$ac_link") 2>&5
25244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25246 { (case "(($ac_try" in
25247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25248 *) ac_try_echo=$ac_try;;
25250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25251 $as_echo "$ac_try_echo") >&5
25252 (eval "$ac_try") 2>&5
25254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255 (exit $ac_status); }; }; then
25256 ac_cv_alignof_short=`cat conftest.val`
25258 $as_echo "$as_me: program exited with status $ac_status" >&5
25259 $as_echo "$as_me: failed program was:" >&5
25260 sed 's/^/| /' conftest.$ac_ext >&5
25262 ( exit $ac_status )
25263 if test "$ac_cv_type_short" = yes; then
25264 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25266 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25267 See \`config.log' for more details." >&5
25268 $as_echo "$as_me: error: cannot compute alignment of short
25269 See \`config.log' for more details." >&2;}
25270 { (exit 77); exit 77; }; }; }
25272 ac_cv_alignof_short=0
25275 rm -rf conftest.dSYM
25276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25280 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
25281 $as_echo "$ac_cv_alignof_short" >&6; }
25285 cat >>confdefs.h <<_ACEOF
25286 #define ALIGNOF_SHORT $ac_cv_alignof_short
25290 # The cast to long int works around a bug in the HP C Compiler,
25291 # see AC_CHECK_SIZEOF for more information.
25292 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
25293 $as_echo_n "checking alignment of int... " >&6; }
25294 if test "${ac_cv_alignof_int+set}" = set; then
25295 $as_echo_n "(cached) " >&6
25297 if test "$cross_compiling" = yes; then
25298 # Depending upon the size, compute the lo and hi bounds.
25299 cat >conftest.$ac_ext <<_ACEOF
25302 cat confdefs.h >>conftest.$ac_ext
25303 cat >>conftest.$ac_ext <<_ACEOF
25304 /* end confdefs.h. */
25305 $ac_includes_default
25307 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25309 typedef struct { char x; int y; } ac__type_alignof_;
25313 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25320 rm -f conftest.$ac_objext
25321 if { (ac_try="$ac_compile"
25322 case "(($ac_try" in
25323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25324 *) ac_try_echo=$ac_try;;
25326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25327 $as_echo "$ac_try_echo") >&5
25328 (eval "$ac_compile") 2>conftest.er1
25330 grep -v '^ *+' conftest.er1 >conftest.err
25332 cat conftest.err >&5
25333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25334 (exit $ac_status); } && {
25335 test -z "$ac_c_werror_flag" ||
25336 test ! -s conftest.err
25337 } && test -s conftest.$ac_objext; then
25340 cat >conftest.$ac_ext <<_ACEOF
25343 cat confdefs.h >>conftest.$ac_ext
25344 cat >>conftest.$ac_ext <<_ACEOF
25345 /* end confdefs.h. */
25346 $ac_includes_default
25348 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25350 typedef struct { char x; int y; } ac__type_alignof_;
25354 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25361 rm -f conftest.$ac_objext
25362 if { (ac_try="$ac_compile"
25363 case "(($ac_try" in
25364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25365 *) ac_try_echo=$ac_try;;
25367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25368 $as_echo "$ac_try_echo") >&5
25369 (eval "$ac_compile") 2>conftest.er1
25371 grep -v '^ *+' conftest.er1 >conftest.err
25373 cat conftest.err >&5
25374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25375 (exit $ac_status); } && {
25376 test -z "$ac_c_werror_flag" ||
25377 test ! -s conftest.err
25378 } && test -s conftest.$ac_objext; then
25379 ac_hi=$ac_mid; break
25381 $as_echo "$as_me: failed program was:" >&5
25382 sed 's/^/| /' conftest.$ac_ext >&5
25384 ac_lo=`expr $ac_mid + 1`
25385 if test $ac_lo -le $ac_mid; then
25389 ac_mid=`expr 2 '*' $ac_mid + 1`
25392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25395 $as_echo "$as_me: failed program was:" >&5
25396 sed 's/^/| /' conftest.$ac_ext >&5
25398 cat >conftest.$ac_ext <<_ACEOF
25401 cat confdefs.h >>conftest.$ac_ext
25402 cat >>conftest.$ac_ext <<_ACEOF
25403 /* end confdefs.h. */
25404 $ac_includes_default
25406 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25408 typedef struct { char x; int y; } ac__type_alignof_;
25412 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25419 rm -f conftest.$ac_objext
25420 if { (ac_try="$ac_compile"
25421 case "(($ac_try" in
25422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25423 *) ac_try_echo=$ac_try;;
25425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25426 $as_echo "$ac_try_echo") >&5
25427 (eval "$ac_compile") 2>conftest.er1
25429 grep -v '^ *+' conftest.er1 >conftest.err
25431 cat conftest.err >&5
25432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433 (exit $ac_status); } && {
25434 test -z "$ac_c_werror_flag" ||
25435 test ! -s conftest.err
25436 } && test -s conftest.$ac_objext; then
25439 cat >conftest.$ac_ext <<_ACEOF
25442 cat confdefs.h >>conftest.$ac_ext
25443 cat >>conftest.$ac_ext <<_ACEOF
25444 /* end confdefs.h. */
25445 $ac_includes_default
25447 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25449 typedef struct { char x; int y; } ac__type_alignof_;
25453 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25460 rm -f conftest.$ac_objext
25461 if { (ac_try="$ac_compile"
25462 case "(($ac_try" in
25463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25464 *) ac_try_echo=$ac_try;;
25466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25467 $as_echo "$ac_try_echo") >&5
25468 (eval "$ac_compile") 2>conftest.er1
25470 grep -v '^ *+' conftest.er1 >conftest.err
25472 cat conftest.err >&5
25473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25474 (exit $ac_status); } && {
25475 test -z "$ac_c_werror_flag" ||
25476 test ! -s conftest.err
25477 } && test -s conftest.$ac_objext; then
25478 ac_lo=$ac_mid; break
25480 $as_echo "$as_me: failed program was:" >&5
25481 sed 's/^/| /' conftest.$ac_ext >&5
25483 ac_hi=`expr '(' $ac_mid ')' - 1`
25484 if test $ac_mid -le $ac_hi; then
25488 ac_mid=`expr 2 '*' $ac_mid`
25491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25494 $as_echo "$as_me: failed program was:" >&5
25495 sed 's/^/| /' conftest.$ac_ext >&5
25500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25504 # Binary search between lo and hi bounds.
25505 while test "x$ac_lo" != "x$ac_hi"; do
25506 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25507 cat >conftest.$ac_ext <<_ACEOF
25510 cat confdefs.h >>conftest.$ac_ext
25511 cat >>conftest.$ac_ext <<_ACEOF
25512 /* end confdefs.h. */
25513 $ac_includes_default
25515 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25517 typedef struct { char x; int y; } ac__type_alignof_;
25521 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25528 rm -f conftest.$ac_objext
25529 if { (ac_try="$ac_compile"
25530 case "(($ac_try" in
25531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25532 *) ac_try_echo=$ac_try;;
25534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25535 $as_echo "$ac_try_echo") >&5
25536 (eval "$ac_compile") 2>conftest.er1
25538 grep -v '^ *+' conftest.er1 >conftest.err
25540 cat conftest.err >&5
25541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542 (exit $ac_status); } && {
25543 test -z "$ac_c_werror_flag" ||
25544 test ! -s conftest.err
25545 } && test -s conftest.$ac_objext; then
25548 $as_echo "$as_me: failed program was:" >&5
25549 sed 's/^/| /' conftest.$ac_ext >&5
25551 ac_lo=`expr '(' $ac_mid ')' + 1`
25554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25557 ?*) ac_cv_alignof_int=$ac_lo;;
25558 '') if test "$ac_cv_type_int" = yes; then
25559 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25561 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
25562 See \`config.log' for more details." >&5
25563 $as_echo "$as_me: error: cannot compute alignment of int
25564 See \`config.log' for more details." >&2;}
25565 { (exit 77); exit 77; }; }; }
25567 ac_cv_alignof_int=0
25571 cat >conftest.$ac_ext <<_ACEOF
25574 cat confdefs.h >>conftest.$ac_ext
25575 cat >>conftest.$ac_ext <<_ACEOF
25576 /* end confdefs.h. */
25577 $ac_includes_default
25579 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25581 typedef struct { char x; int y; } ac__type_alignof_;
25582 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25583 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25585 #include <stdlib.h>
25590 FILE *f = fopen ("conftest.val", "w");
25593 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25595 long int i = longval ();
25596 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25598 fprintf (f, "%ld", i);
25602 unsigned long int i = ulongval ();
25603 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25605 fprintf (f, "%lu", i);
25607 /* Do not output a trailing newline, as this causes \r\n confusion
25608 on some platforms. */
25609 return ferror (f) || fclose (f) != 0;
25615 rm -f conftest$ac_exeext
25616 if { (ac_try="$ac_link"
25617 case "(($ac_try" in
25618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25619 *) ac_try_echo=$ac_try;;
25621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25622 $as_echo "$ac_try_echo") >&5
25623 (eval "$ac_link") 2>&5
25625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25627 { (case "(($ac_try" in
25628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25629 *) ac_try_echo=$ac_try;;
25631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25632 $as_echo "$ac_try_echo") >&5
25633 (eval "$ac_try") 2>&5
25635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25636 (exit $ac_status); }; }; then
25637 ac_cv_alignof_int=`cat conftest.val`
25639 $as_echo "$as_me: program exited with status $ac_status" >&5
25640 $as_echo "$as_me: failed program was:" >&5
25641 sed 's/^/| /' conftest.$ac_ext >&5
25643 ( exit $ac_status )
25644 if test "$ac_cv_type_int" = yes; then
25645 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25647 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
25648 See \`config.log' for more details." >&5
25649 $as_echo "$as_me: error: cannot compute alignment of int
25650 See \`config.log' for more details." >&2;}
25651 { (exit 77); exit 77; }; }; }
25653 ac_cv_alignof_int=0
25656 rm -rf conftest.dSYM
25657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25661 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
25662 $as_echo "$ac_cv_alignof_int" >&6; }
25666 cat >>confdefs.h <<_ACEOF
25667 #define ALIGNOF_INT $ac_cv_alignof_int
25671 # The cast to long int works around a bug in the HP C Compiler,
25672 # see AC_CHECK_SIZEOF for more information.
25673 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
25674 $as_echo_n "checking alignment of long... " >&6; }
25675 if test "${ac_cv_alignof_long+set}" = set; then
25676 $as_echo_n "(cached) " >&6
25678 if test "$cross_compiling" = yes; then
25679 # Depending upon the size, compute the lo and hi bounds.
25680 cat >conftest.$ac_ext <<_ACEOF
25683 cat confdefs.h >>conftest.$ac_ext
25684 cat >>conftest.$ac_ext <<_ACEOF
25685 /* end confdefs.h. */
25686 $ac_includes_default
25688 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25690 typedef struct { char x; long y; } ac__type_alignof_;
25694 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25701 rm -f conftest.$ac_objext
25702 if { (ac_try="$ac_compile"
25703 case "(($ac_try" in
25704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25705 *) ac_try_echo=$ac_try;;
25707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25708 $as_echo "$ac_try_echo") >&5
25709 (eval "$ac_compile") 2>conftest.er1
25711 grep -v '^ *+' conftest.er1 >conftest.err
25713 cat conftest.err >&5
25714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715 (exit $ac_status); } && {
25716 test -z "$ac_c_werror_flag" ||
25717 test ! -s conftest.err
25718 } && test -s conftest.$ac_objext; then
25721 cat >conftest.$ac_ext <<_ACEOF
25724 cat confdefs.h >>conftest.$ac_ext
25725 cat >>conftest.$ac_ext <<_ACEOF
25726 /* end confdefs.h. */
25727 $ac_includes_default
25729 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25731 typedef struct { char x; long y; } ac__type_alignof_;
25735 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25742 rm -f conftest.$ac_objext
25743 if { (ac_try="$ac_compile"
25744 case "(($ac_try" in
25745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25746 *) ac_try_echo=$ac_try;;
25748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25749 $as_echo "$ac_try_echo") >&5
25750 (eval "$ac_compile") 2>conftest.er1
25752 grep -v '^ *+' conftest.er1 >conftest.err
25754 cat conftest.err >&5
25755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25756 (exit $ac_status); } && {
25757 test -z "$ac_c_werror_flag" ||
25758 test ! -s conftest.err
25759 } && test -s conftest.$ac_objext; then
25760 ac_hi=$ac_mid; break
25762 $as_echo "$as_me: failed program was:" >&5
25763 sed 's/^/| /' conftest.$ac_ext >&5
25765 ac_lo=`expr $ac_mid + 1`
25766 if test $ac_lo -le $ac_mid; then
25770 ac_mid=`expr 2 '*' $ac_mid + 1`
25773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25776 $as_echo "$as_me: failed program was:" >&5
25777 sed 's/^/| /' conftest.$ac_ext >&5
25779 cat >conftest.$ac_ext <<_ACEOF
25782 cat confdefs.h >>conftest.$ac_ext
25783 cat >>conftest.$ac_ext <<_ACEOF
25784 /* end confdefs.h. */
25785 $ac_includes_default
25787 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25789 typedef struct { char x; long y; } ac__type_alignof_;
25793 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25800 rm -f conftest.$ac_objext
25801 if { (ac_try="$ac_compile"
25802 case "(($ac_try" in
25803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25804 *) ac_try_echo=$ac_try;;
25806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25807 $as_echo "$ac_try_echo") >&5
25808 (eval "$ac_compile") 2>conftest.er1
25810 grep -v '^ *+' conftest.er1 >conftest.err
25812 cat conftest.err >&5
25813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25814 (exit $ac_status); } && {
25815 test -z "$ac_c_werror_flag" ||
25816 test ! -s conftest.err
25817 } && test -s conftest.$ac_objext; then
25820 cat >conftest.$ac_ext <<_ACEOF
25823 cat confdefs.h >>conftest.$ac_ext
25824 cat >>conftest.$ac_ext <<_ACEOF
25825 /* end confdefs.h. */
25826 $ac_includes_default
25828 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25830 typedef struct { char x; long y; } ac__type_alignof_;
25834 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25841 rm -f conftest.$ac_objext
25842 if { (ac_try="$ac_compile"
25843 case "(($ac_try" in
25844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25845 *) ac_try_echo=$ac_try;;
25847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25848 $as_echo "$ac_try_echo") >&5
25849 (eval "$ac_compile") 2>conftest.er1
25851 grep -v '^ *+' conftest.er1 >conftest.err
25853 cat conftest.err >&5
25854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855 (exit $ac_status); } && {
25856 test -z "$ac_c_werror_flag" ||
25857 test ! -s conftest.err
25858 } && test -s conftest.$ac_objext; then
25859 ac_lo=$ac_mid; break
25861 $as_echo "$as_me: failed program was:" >&5
25862 sed 's/^/| /' conftest.$ac_ext >&5
25864 ac_hi=`expr '(' $ac_mid ')' - 1`
25865 if test $ac_mid -le $ac_hi; then
25869 ac_mid=`expr 2 '*' $ac_mid`
25872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25875 $as_echo "$as_me: failed program was:" >&5
25876 sed 's/^/| /' conftest.$ac_ext >&5
25881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25885 # Binary search between lo and hi bounds.
25886 while test "x$ac_lo" != "x$ac_hi"; do
25887 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25888 cat >conftest.$ac_ext <<_ACEOF
25891 cat confdefs.h >>conftest.$ac_ext
25892 cat >>conftest.$ac_ext <<_ACEOF
25893 /* end confdefs.h. */
25894 $ac_includes_default
25896 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25898 typedef struct { char x; long y; } ac__type_alignof_;
25902 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25909 rm -f conftest.$ac_objext
25910 if { (ac_try="$ac_compile"
25911 case "(($ac_try" in
25912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25913 *) ac_try_echo=$ac_try;;
25915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25916 $as_echo "$ac_try_echo") >&5
25917 (eval "$ac_compile") 2>conftest.er1
25919 grep -v '^ *+' conftest.er1 >conftest.err
25921 cat conftest.err >&5
25922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25923 (exit $ac_status); } && {
25924 test -z "$ac_c_werror_flag" ||
25925 test ! -s conftest.err
25926 } && test -s conftest.$ac_objext; then
25929 $as_echo "$as_me: failed program was:" >&5
25930 sed 's/^/| /' conftest.$ac_ext >&5
25932 ac_lo=`expr '(' $ac_mid ')' + 1`
25935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25938 ?*) ac_cv_alignof_long=$ac_lo;;
25939 '') if test "$ac_cv_type_long" = yes; then
25940 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25942 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
25943 See \`config.log' for more details." >&5
25944 $as_echo "$as_me: error: cannot compute alignment of long
25945 See \`config.log' for more details." >&2;}
25946 { (exit 77); exit 77; }; }; }
25948 ac_cv_alignof_long=0
25952 cat >conftest.$ac_ext <<_ACEOF
25955 cat confdefs.h >>conftest.$ac_ext
25956 cat >>conftest.$ac_ext <<_ACEOF
25957 /* end confdefs.h. */
25958 $ac_includes_default
25960 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25962 typedef struct { char x; long y; } ac__type_alignof_;
25963 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25964 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25966 #include <stdlib.h>
25971 FILE *f = fopen ("conftest.val", "w");
25974 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25976 long int i = longval ();
25977 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25979 fprintf (f, "%ld", i);
25983 unsigned long int i = ulongval ();
25984 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25986 fprintf (f, "%lu", i);
25988 /* Do not output a trailing newline, as this causes \r\n confusion
25989 on some platforms. */
25990 return ferror (f) || fclose (f) != 0;
25996 rm -f conftest$ac_exeext
25997 if { (ac_try="$ac_link"
25998 case "(($ac_try" in
25999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26000 *) ac_try_echo=$ac_try;;
26002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26003 $as_echo "$ac_try_echo") >&5
26004 (eval "$ac_link") 2>&5
26006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26008 { (case "(($ac_try" in
26009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26010 *) ac_try_echo=$ac_try;;
26012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26013 $as_echo "$ac_try_echo") >&5
26014 (eval "$ac_try") 2>&5
26016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26017 (exit $ac_status); }; }; then
26018 ac_cv_alignof_long=`cat conftest.val`
26020 $as_echo "$as_me: program exited with status $ac_status" >&5
26021 $as_echo "$as_me: failed program was:" >&5
26022 sed 's/^/| /' conftest.$ac_ext >&5
26024 ( exit $ac_status )
26025 if test "$ac_cv_type_long" = yes; then
26026 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26028 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26029 See \`config.log' for more details." >&5
26030 $as_echo "$as_me: error: cannot compute alignment of long
26031 See \`config.log' for more details." >&2;}
26032 { (exit 77); exit 77; }; }; }
26034 ac_cv_alignof_long=0
26037 rm -rf conftest.dSYM
26038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26042 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26043 $as_echo "$ac_cv_alignof_long" >&6; }
26047 cat >>confdefs.h <<_ACEOF
26048 #define ALIGNOF_LONG $ac_cv_alignof_long
26052 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26053 # The cast to long int works around a bug in the HP C Compiler,
26054 # see AC_CHECK_SIZEOF for more information.
26055 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26056 $as_echo_n "checking alignment of long long int... " >&6; }
26057 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26058 $as_echo_n "(cached) " >&6
26060 if test "$cross_compiling" = yes; then
26061 # Depending upon the size, compute the lo and hi bounds.
26062 cat >conftest.$ac_ext <<_ACEOF
26065 cat confdefs.h >>conftest.$ac_ext
26066 cat >>conftest.$ac_ext <<_ACEOF
26067 /* end confdefs.h. */
26068 $ac_includes_default
26070 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26072 typedef struct { char x; long long int y; } ac__type_alignof_;
26076 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26083 rm -f conftest.$ac_objext
26084 if { (ac_try="$ac_compile"
26085 case "(($ac_try" in
26086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26087 *) ac_try_echo=$ac_try;;
26089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26090 $as_echo "$ac_try_echo") >&5
26091 (eval "$ac_compile") 2>conftest.er1
26093 grep -v '^ *+' conftest.er1 >conftest.err
26095 cat conftest.err >&5
26096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097 (exit $ac_status); } && {
26098 test -z "$ac_c_werror_flag" ||
26099 test ! -s conftest.err
26100 } && test -s conftest.$ac_objext; then
26103 cat >conftest.$ac_ext <<_ACEOF
26106 cat confdefs.h >>conftest.$ac_ext
26107 cat >>conftest.$ac_ext <<_ACEOF
26108 /* end confdefs.h. */
26109 $ac_includes_default
26111 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26113 typedef struct { char x; long long int y; } ac__type_alignof_;
26117 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26124 rm -f conftest.$ac_objext
26125 if { (ac_try="$ac_compile"
26126 case "(($ac_try" in
26127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26128 *) ac_try_echo=$ac_try;;
26130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26131 $as_echo "$ac_try_echo") >&5
26132 (eval "$ac_compile") 2>conftest.er1
26134 grep -v '^ *+' conftest.er1 >conftest.err
26136 cat conftest.err >&5
26137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26138 (exit $ac_status); } && {
26139 test -z "$ac_c_werror_flag" ||
26140 test ! -s conftest.err
26141 } && test -s conftest.$ac_objext; then
26142 ac_hi=$ac_mid; break
26144 $as_echo "$as_me: failed program was:" >&5
26145 sed 's/^/| /' conftest.$ac_ext >&5
26147 ac_lo=`expr $ac_mid + 1`
26148 if test $ac_lo -le $ac_mid; then
26152 ac_mid=`expr 2 '*' $ac_mid + 1`
26155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26158 $as_echo "$as_me: failed program was:" >&5
26159 sed 's/^/| /' conftest.$ac_ext >&5
26161 cat >conftest.$ac_ext <<_ACEOF
26164 cat confdefs.h >>conftest.$ac_ext
26165 cat >>conftest.$ac_ext <<_ACEOF
26166 /* end confdefs.h. */
26167 $ac_includes_default
26169 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26171 typedef struct { char x; long long int y; } ac__type_alignof_;
26175 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26182 rm -f conftest.$ac_objext
26183 if { (ac_try="$ac_compile"
26184 case "(($ac_try" in
26185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26186 *) ac_try_echo=$ac_try;;
26188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26189 $as_echo "$ac_try_echo") >&5
26190 (eval "$ac_compile") 2>conftest.er1
26192 grep -v '^ *+' conftest.er1 >conftest.err
26194 cat conftest.err >&5
26195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196 (exit $ac_status); } && {
26197 test -z "$ac_c_werror_flag" ||
26198 test ! -s conftest.err
26199 } && test -s conftest.$ac_objext; then
26202 cat >conftest.$ac_ext <<_ACEOF
26205 cat confdefs.h >>conftest.$ac_ext
26206 cat >>conftest.$ac_ext <<_ACEOF
26207 /* end confdefs.h. */
26208 $ac_includes_default
26210 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26212 typedef struct { char x; long long int y; } ac__type_alignof_;
26216 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26223 rm -f conftest.$ac_objext
26224 if { (ac_try="$ac_compile"
26225 case "(($ac_try" in
26226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26227 *) ac_try_echo=$ac_try;;
26229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26230 $as_echo "$ac_try_echo") >&5
26231 (eval "$ac_compile") 2>conftest.er1
26233 grep -v '^ *+' conftest.er1 >conftest.err
26235 cat conftest.err >&5
26236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237 (exit $ac_status); } && {
26238 test -z "$ac_c_werror_flag" ||
26239 test ! -s conftest.err
26240 } && test -s conftest.$ac_objext; then
26241 ac_lo=$ac_mid; break
26243 $as_echo "$as_me: failed program was:" >&5
26244 sed 's/^/| /' conftest.$ac_ext >&5
26246 ac_hi=`expr '(' $ac_mid ')' - 1`
26247 if test $ac_mid -le $ac_hi; then
26251 ac_mid=`expr 2 '*' $ac_mid`
26254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26257 $as_echo "$as_me: failed program was:" >&5
26258 sed 's/^/| /' conftest.$ac_ext >&5
26263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26267 # Binary search between lo and hi bounds.
26268 while test "x$ac_lo" != "x$ac_hi"; do
26269 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26270 cat >conftest.$ac_ext <<_ACEOF
26273 cat confdefs.h >>conftest.$ac_ext
26274 cat >>conftest.$ac_ext <<_ACEOF
26275 /* end confdefs.h. */
26276 $ac_includes_default
26278 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26280 typedef struct { char x; long long int y; } ac__type_alignof_;
26284 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26291 rm -f conftest.$ac_objext
26292 if { (ac_try="$ac_compile"
26293 case "(($ac_try" in
26294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26295 *) ac_try_echo=$ac_try;;
26297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26298 $as_echo "$ac_try_echo") >&5
26299 (eval "$ac_compile") 2>conftest.er1
26301 grep -v '^ *+' conftest.er1 >conftest.err
26303 cat conftest.err >&5
26304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305 (exit $ac_status); } && {
26306 test -z "$ac_c_werror_flag" ||
26307 test ! -s conftest.err
26308 } && test -s conftest.$ac_objext; then
26311 $as_echo "$as_me: failed program was:" >&5
26312 sed 's/^/| /' conftest.$ac_ext >&5
26314 ac_lo=`expr '(' $ac_mid ')' + 1`
26317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26320 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
26321 '') if test "$ac_cv_type_long_long_int" = yes; then
26322 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26324 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
26325 See \`config.log' for more details." >&5
26326 $as_echo "$as_me: error: cannot compute alignment of long long int
26327 See \`config.log' for more details." >&2;}
26328 { (exit 77); exit 77; }; }; }
26330 ac_cv_alignof_long_long_int=0
26334 cat >conftest.$ac_ext <<_ACEOF
26337 cat confdefs.h >>conftest.$ac_ext
26338 cat >>conftest.$ac_ext <<_ACEOF
26339 /* end confdefs.h. */
26340 $ac_includes_default
26342 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26344 typedef struct { char x; long long int y; } ac__type_alignof_;
26345 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26346 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26348 #include <stdlib.h>
26353 FILE *f = fopen ("conftest.val", "w");
26356 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26358 long int i = longval ();
26359 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26361 fprintf (f, "%ld", i);
26365 unsigned long int i = ulongval ();
26366 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26368 fprintf (f, "%lu", i);
26370 /* Do not output a trailing newline, as this causes \r\n confusion
26371 on some platforms. */
26372 return ferror (f) || fclose (f) != 0;
26378 rm -f conftest$ac_exeext
26379 if { (ac_try="$ac_link"
26380 case "(($ac_try" in
26381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26382 *) ac_try_echo=$ac_try;;
26384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26385 $as_echo "$ac_try_echo") >&5
26386 (eval "$ac_link") 2>&5
26388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26390 { (case "(($ac_try" in
26391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26392 *) ac_try_echo=$ac_try;;
26394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26395 $as_echo "$ac_try_echo") >&5
26396 (eval "$ac_try") 2>&5
26398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399 (exit $ac_status); }; }; then
26400 ac_cv_alignof_long_long_int=`cat conftest.val`
26402 $as_echo "$as_me: program exited with status $ac_status" >&5
26403 $as_echo "$as_me: failed program was:" >&5
26404 sed 's/^/| /' conftest.$ac_ext >&5
26406 ( exit $ac_status )
26407 if test "$ac_cv_type_long_long_int" = yes; then
26408 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26410 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
26411 See \`config.log' for more details." >&5
26412 $as_echo "$as_me: error: cannot compute alignment of long long int
26413 See \`config.log' for more details." >&2;}
26414 { (exit 77); exit 77; }; }; }
26416 ac_cv_alignof_long_long_int=0
26419 rm -rf conftest.dSYM
26420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26424 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
26425 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
26429 cat >>confdefs.h <<_ACEOF
26430 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
26435 # The cast to long int works around a bug in the HP C Compiler,
26436 # see AC_CHECK_SIZEOF for more information.
26437 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
26438 $as_echo_n "checking alignment of double... " >&6; }
26439 if test "${ac_cv_alignof_double+set}" = set; then
26440 $as_echo_n "(cached) " >&6
26442 if test "$cross_compiling" = yes; then
26443 # Depending upon the size, compute the lo and hi bounds.
26444 cat >conftest.$ac_ext <<_ACEOF
26447 cat confdefs.h >>conftest.$ac_ext
26448 cat >>conftest.$ac_ext <<_ACEOF
26449 /* end confdefs.h. */
26450 $ac_includes_default
26452 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26454 typedef struct { char x; double y; } ac__type_alignof_;
26458 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26465 rm -f conftest.$ac_objext
26466 if { (ac_try="$ac_compile"
26467 case "(($ac_try" in
26468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26469 *) ac_try_echo=$ac_try;;
26471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26472 $as_echo "$ac_try_echo") >&5
26473 (eval "$ac_compile") 2>conftest.er1
26475 grep -v '^ *+' conftest.er1 >conftest.err
26477 cat conftest.err >&5
26478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); } && {
26480 test -z "$ac_c_werror_flag" ||
26481 test ! -s conftest.err
26482 } && test -s conftest.$ac_objext; then
26485 cat >conftest.$ac_ext <<_ACEOF
26488 cat confdefs.h >>conftest.$ac_ext
26489 cat >>conftest.$ac_ext <<_ACEOF
26490 /* end confdefs.h. */
26491 $ac_includes_default
26493 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26495 typedef struct { char x; double y; } ac__type_alignof_;
26499 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26506 rm -f conftest.$ac_objext
26507 if { (ac_try="$ac_compile"
26508 case "(($ac_try" in
26509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26510 *) ac_try_echo=$ac_try;;
26512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26513 $as_echo "$ac_try_echo") >&5
26514 (eval "$ac_compile") 2>conftest.er1
26516 grep -v '^ *+' conftest.er1 >conftest.err
26518 cat conftest.err >&5
26519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26520 (exit $ac_status); } && {
26521 test -z "$ac_c_werror_flag" ||
26522 test ! -s conftest.err
26523 } && test -s conftest.$ac_objext; then
26524 ac_hi=$ac_mid; break
26526 $as_echo "$as_me: failed program was:" >&5
26527 sed 's/^/| /' conftest.$ac_ext >&5
26529 ac_lo=`expr $ac_mid + 1`
26530 if test $ac_lo -le $ac_mid; then
26534 ac_mid=`expr 2 '*' $ac_mid + 1`
26537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26540 $as_echo "$as_me: failed program was:" >&5
26541 sed 's/^/| /' conftest.$ac_ext >&5
26543 cat >conftest.$ac_ext <<_ACEOF
26546 cat confdefs.h >>conftest.$ac_ext
26547 cat >>conftest.$ac_ext <<_ACEOF
26548 /* end confdefs.h. */
26549 $ac_includes_default
26551 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26553 typedef struct { char x; double y; } ac__type_alignof_;
26557 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26564 rm -f conftest.$ac_objext
26565 if { (ac_try="$ac_compile"
26566 case "(($ac_try" in
26567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26568 *) ac_try_echo=$ac_try;;
26570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26571 $as_echo "$ac_try_echo") >&5
26572 (eval "$ac_compile") 2>conftest.er1
26574 grep -v '^ *+' conftest.er1 >conftest.err
26576 cat conftest.err >&5
26577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26578 (exit $ac_status); } && {
26579 test -z "$ac_c_werror_flag" ||
26580 test ! -s conftest.err
26581 } && test -s conftest.$ac_objext; then
26584 cat >conftest.$ac_ext <<_ACEOF
26587 cat confdefs.h >>conftest.$ac_ext
26588 cat >>conftest.$ac_ext <<_ACEOF
26589 /* end confdefs.h. */
26590 $ac_includes_default
26592 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26594 typedef struct { char x; double y; } ac__type_alignof_;
26598 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26605 rm -f conftest.$ac_objext
26606 if { (ac_try="$ac_compile"
26607 case "(($ac_try" in
26608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26609 *) ac_try_echo=$ac_try;;
26611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26612 $as_echo "$ac_try_echo") >&5
26613 (eval "$ac_compile") 2>conftest.er1
26615 grep -v '^ *+' conftest.er1 >conftest.err
26617 cat conftest.err >&5
26618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619 (exit $ac_status); } && {
26620 test -z "$ac_c_werror_flag" ||
26621 test ! -s conftest.err
26622 } && test -s conftest.$ac_objext; then
26623 ac_lo=$ac_mid; break
26625 $as_echo "$as_me: failed program was:" >&5
26626 sed 's/^/| /' conftest.$ac_ext >&5
26628 ac_hi=`expr '(' $ac_mid ')' - 1`
26629 if test $ac_mid -le $ac_hi; then
26633 ac_mid=`expr 2 '*' $ac_mid`
26636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26639 $as_echo "$as_me: failed program was:" >&5
26640 sed 's/^/| /' conftest.$ac_ext >&5
26645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26649 # Binary search between lo and hi bounds.
26650 while test "x$ac_lo" != "x$ac_hi"; do
26651 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26652 cat >conftest.$ac_ext <<_ACEOF
26655 cat confdefs.h >>conftest.$ac_ext
26656 cat >>conftest.$ac_ext <<_ACEOF
26657 /* end confdefs.h. */
26658 $ac_includes_default
26660 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26662 typedef struct { char x; double y; } ac__type_alignof_;
26666 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26673 rm -f conftest.$ac_objext
26674 if { (ac_try="$ac_compile"
26675 case "(($ac_try" in
26676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26677 *) ac_try_echo=$ac_try;;
26679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26680 $as_echo "$ac_try_echo") >&5
26681 (eval "$ac_compile") 2>conftest.er1
26683 grep -v '^ *+' conftest.er1 >conftest.err
26685 cat conftest.err >&5
26686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26687 (exit $ac_status); } && {
26688 test -z "$ac_c_werror_flag" ||
26689 test ! -s conftest.err
26690 } && test -s conftest.$ac_objext; then
26693 $as_echo "$as_me: failed program was:" >&5
26694 sed 's/^/| /' conftest.$ac_ext >&5
26696 ac_lo=`expr '(' $ac_mid ')' + 1`
26699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26702 ?*) ac_cv_alignof_double=$ac_lo;;
26703 '') if test "$ac_cv_type_double" = yes; then
26704 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26706 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
26707 See \`config.log' for more details." >&5
26708 $as_echo "$as_me: error: cannot compute alignment of double
26709 See \`config.log' for more details." >&2;}
26710 { (exit 77); exit 77; }; }; }
26712 ac_cv_alignof_double=0
26716 cat >conftest.$ac_ext <<_ACEOF
26719 cat confdefs.h >>conftest.$ac_ext
26720 cat >>conftest.$ac_ext <<_ACEOF
26721 /* end confdefs.h. */
26722 $ac_includes_default
26724 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26726 typedef struct { char x; double y; } ac__type_alignof_;
26727 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26728 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26730 #include <stdlib.h>
26735 FILE *f = fopen ("conftest.val", "w");
26738 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26740 long int i = longval ();
26741 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26743 fprintf (f, "%ld", i);
26747 unsigned long int i = ulongval ();
26748 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26750 fprintf (f, "%lu", i);
26752 /* Do not output a trailing newline, as this causes \r\n confusion
26753 on some platforms. */
26754 return ferror (f) || fclose (f) != 0;
26760 rm -f conftest$ac_exeext
26761 if { (ac_try="$ac_link"
26762 case "(($ac_try" in
26763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26764 *) ac_try_echo=$ac_try;;
26766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26767 $as_echo "$ac_try_echo") >&5
26768 (eval "$ac_link") 2>&5
26770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26772 { (case "(($ac_try" in
26773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26774 *) ac_try_echo=$ac_try;;
26776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26777 $as_echo "$ac_try_echo") >&5
26778 (eval "$ac_try") 2>&5
26780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781 (exit $ac_status); }; }; then
26782 ac_cv_alignof_double=`cat conftest.val`
26784 $as_echo "$as_me: program exited with status $ac_status" >&5
26785 $as_echo "$as_me: failed program was:" >&5
26786 sed 's/^/| /' conftest.$ac_ext >&5
26788 ( exit $ac_status )
26789 if test "$ac_cv_type_double" = yes; then
26790 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26792 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
26793 See \`config.log' for more details." >&5
26794 $as_echo "$as_me: error: cannot compute alignment of double
26795 See \`config.log' for more details." >&2;}
26796 { (exit 77); exit 77; }; }; }
26798 ac_cv_alignof_double=0
26801 rm -rf conftest.dSYM
26802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26806 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
26807 $as_echo "$ac_cv_alignof_double" >&6; }
26811 cat >>confdefs.h <<_ACEOF
26812 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
26817 # Compute maximum alignment of any basic type.
26818 # We assume long's alignment is at least as strong as char, short, or int;
26819 # but we must check long long (if it exists) and double.
26821 MAX_ALIGNOF=$ac_cv_alignof_long
26822 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
26823 MAX_ALIGNOF=$ac_cv_alignof_double
26825 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
26826 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
26829 cat >>confdefs.h <<_ACEOF
26830 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
26835 # Some platforms predefine the types int8, int16, etc. Only check
26836 # a (hopefully) representative subset.
26837 { $as_echo "$as_me:$LINENO: checking for int8" >&5
26838 $as_echo_n "checking for int8... " >&6; }
26839 if test "${ac_cv_type_int8+set}" = set; then
26840 $as_echo_n "(cached) " >&6
26843 cat >conftest.$ac_ext <<_ACEOF
26846 cat confdefs.h >>conftest.$ac_ext
26847 cat >>conftest.$ac_ext <<_ACEOF
26848 /* end confdefs.h. */
26850 #ifdef HAVE_SUPPORTDEFS_H
26851 #include <SupportDefs.h>
26863 rm -f conftest.$ac_objext
26864 if { (ac_try="$ac_compile"
26865 case "(($ac_try" in
26866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26867 *) ac_try_echo=$ac_try;;
26869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26870 $as_echo "$ac_try_echo") >&5
26871 (eval "$ac_compile") 2>conftest.er1
26873 grep -v '^ *+' conftest.er1 >conftest.err
26875 cat conftest.err >&5
26876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877 (exit $ac_status); } && {
26878 test -z "$ac_c_werror_flag" ||
26879 test ! -s conftest.err
26880 } && test -s conftest.$ac_objext; then
26881 cat >conftest.$ac_ext <<_ACEOF
26884 cat confdefs.h >>conftest.$ac_ext
26885 cat >>conftest.$ac_ext <<_ACEOF
26886 /* end confdefs.h. */
26888 #ifdef HAVE_SUPPORTDEFS_H
26889 #include <SupportDefs.h>
26895 if (sizeof ((int8)))
26901 rm -f conftest.$ac_objext
26902 if { (ac_try="$ac_compile"
26903 case "(($ac_try" in
26904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26905 *) ac_try_echo=$ac_try;;
26907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26908 $as_echo "$ac_try_echo") >&5
26909 (eval "$ac_compile") 2>conftest.er1
26911 grep -v '^ *+' conftest.er1 >conftest.err
26913 cat conftest.err >&5
26914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26915 (exit $ac_status); } && {
26916 test -z "$ac_c_werror_flag" ||
26917 test ! -s conftest.err
26918 } && test -s conftest.$ac_objext; then
26921 $as_echo "$as_me: failed program was:" >&5
26922 sed 's/^/| /' conftest.$ac_ext >&5
26924 ac_cv_type_int8=yes
26927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26929 $as_echo "$as_me: failed program was:" >&5
26930 sed 's/^/| /' conftest.$ac_ext >&5
26935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26937 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
26938 $as_echo "$ac_cv_type_int8" >&6; }
26939 if test "x$ac_cv_type_int8" = x""yes; then
26941 cat >>confdefs.h <<_ACEOF
26942 #define HAVE_INT8 1
26947 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
26948 $as_echo_n "checking for uint8... " >&6; }
26949 if test "${ac_cv_type_uint8+set}" = set; then
26950 $as_echo_n "(cached) " >&6
26952 ac_cv_type_uint8=no
26953 cat >conftest.$ac_ext <<_ACEOF
26956 cat confdefs.h >>conftest.$ac_ext
26957 cat >>conftest.$ac_ext <<_ACEOF
26958 /* end confdefs.h. */
26960 #ifdef HAVE_SUPPORTDEFS_H
26961 #include <SupportDefs.h>
26967 if (sizeof (uint8))
26973 rm -f conftest.$ac_objext
26974 if { (ac_try="$ac_compile"
26975 case "(($ac_try" in
26976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26977 *) ac_try_echo=$ac_try;;
26979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26980 $as_echo "$ac_try_echo") >&5
26981 (eval "$ac_compile") 2>conftest.er1
26983 grep -v '^ *+' conftest.er1 >conftest.err
26985 cat conftest.err >&5
26986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26987 (exit $ac_status); } && {
26988 test -z "$ac_c_werror_flag" ||
26989 test ! -s conftest.err
26990 } && test -s conftest.$ac_objext; then
26991 cat >conftest.$ac_ext <<_ACEOF
26994 cat confdefs.h >>conftest.$ac_ext
26995 cat >>conftest.$ac_ext <<_ACEOF
26996 /* end confdefs.h. */
26998 #ifdef HAVE_SUPPORTDEFS_H
26999 #include <SupportDefs.h>
27005 if (sizeof ((uint8)))
27011 rm -f conftest.$ac_objext
27012 if { (ac_try="$ac_compile"
27013 case "(($ac_try" in
27014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27015 *) ac_try_echo=$ac_try;;
27017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27018 $as_echo "$ac_try_echo") >&5
27019 (eval "$ac_compile") 2>conftest.er1
27021 grep -v '^ *+' conftest.er1 >conftest.err
27023 cat conftest.err >&5
27024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025 (exit $ac_status); } && {
27026 test -z "$ac_c_werror_flag" ||
27027 test ! -s conftest.err
27028 } && test -s conftest.$ac_objext; then
27031 $as_echo "$as_me: failed program was:" >&5
27032 sed 's/^/| /' conftest.$ac_ext >&5
27034 ac_cv_type_uint8=yes
27037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27039 $as_echo "$as_me: failed program was:" >&5
27040 sed 's/^/| /' conftest.$ac_ext >&5
27045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27047 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27048 $as_echo "$ac_cv_type_uint8" >&6; }
27049 if test "x$ac_cv_type_uint8" = x""yes; then
27051 cat >>confdefs.h <<_ACEOF
27052 #define HAVE_UINT8 1
27057 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27058 $as_echo_n "checking for int64... " >&6; }
27059 if test "${ac_cv_type_int64+set}" = set; then
27060 $as_echo_n "(cached) " >&6
27062 ac_cv_type_int64=no
27063 cat >conftest.$ac_ext <<_ACEOF
27066 cat confdefs.h >>conftest.$ac_ext
27067 cat >>conftest.$ac_ext <<_ACEOF
27068 /* end confdefs.h. */
27070 #ifdef HAVE_SUPPORTDEFS_H
27071 #include <SupportDefs.h>
27077 if (sizeof (int64))
27083 rm -f conftest.$ac_objext
27084 if { (ac_try="$ac_compile"
27085 case "(($ac_try" in
27086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27087 *) ac_try_echo=$ac_try;;
27089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27090 $as_echo "$ac_try_echo") >&5
27091 (eval "$ac_compile") 2>conftest.er1
27093 grep -v '^ *+' conftest.er1 >conftest.err
27095 cat conftest.err >&5
27096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097 (exit $ac_status); } && {
27098 test -z "$ac_c_werror_flag" ||
27099 test ! -s conftest.err
27100 } && test -s conftest.$ac_objext; then
27101 cat >conftest.$ac_ext <<_ACEOF
27104 cat confdefs.h >>conftest.$ac_ext
27105 cat >>conftest.$ac_ext <<_ACEOF
27106 /* end confdefs.h. */
27108 #ifdef HAVE_SUPPORTDEFS_H
27109 #include <SupportDefs.h>
27115 if (sizeof ((int64)))
27121 rm -f conftest.$ac_objext
27122 if { (ac_try="$ac_compile"
27123 case "(($ac_try" in
27124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27125 *) ac_try_echo=$ac_try;;
27127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27128 $as_echo "$ac_try_echo") >&5
27129 (eval "$ac_compile") 2>conftest.er1
27131 grep -v '^ *+' conftest.er1 >conftest.err
27133 cat conftest.err >&5
27134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135 (exit $ac_status); } && {
27136 test -z "$ac_c_werror_flag" ||
27137 test ! -s conftest.err
27138 } && test -s conftest.$ac_objext; then
27141 $as_echo "$as_me: failed program was:" >&5
27142 sed 's/^/| /' conftest.$ac_ext >&5
27144 ac_cv_type_int64=yes
27147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27149 $as_echo "$as_me: failed program was:" >&5
27150 sed 's/^/| /' conftest.$ac_ext >&5
27155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27157 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
27158 $as_echo "$ac_cv_type_int64" >&6; }
27159 if test "x$ac_cv_type_int64" = x""yes; then
27161 cat >>confdefs.h <<_ACEOF
27162 #define HAVE_INT64 1
27167 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
27168 $as_echo_n "checking for uint64... " >&6; }
27169 if test "${ac_cv_type_uint64+set}" = set; then
27170 $as_echo_n "(cached) " >&6
27172 ac_cv_type_uint64=no
27173 cat >conftest.$ac_ext <<_ACEOF
27176 cat confdefs.h >>conftest.$ac_ext
27177 cat >>conftest.$ac_ext <<_ACEOF
27178 /* end confdefs.h. */
27180 #ifdef HAVE_SUPPORTDEFS_H
27181 #include <SupportDefs.h>
27187 if (sizeof (uint64))
27193 rm -f conftest.$ac_objext
27194 if { (ac_try="$ac_compile"
27195 case "(($ac_try" in
27196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27197 *) ac_try_echo=$ac_try;;
27199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27200 $as_echo "$ac_try_echo") >&5
27201 (eval "$ac_compile") 2>conftest.er1
27203 grep -v '^ *+' conftest.er1 >conftest.err
27205 cat conftest.err >&5
27206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27207 (exit $ac_status); } && {
27208 test -z "$ac_c_werror_flag" ||
27209 test ! -s conftest.err
27210 } && test -s conftest.$ac_objext; then
27211 cat >conftest.$ac_ext <<_ACEOF
27214 cat confdefs.h >>conftest.$ac_ext
27215 cat >>conftest.$ac_ext <<_ACEOF
27216 /* end confdefs.h. */
27218 #ifdef HAVE_SUPPORTDEFS_H
27219 #include <SupportDefs.h>
27225 if (sizeof ((uint64)))
27231 rm -f conftest.$ac_objext
27232 if { (ac_try="$ac_compile"
27233 case "(($ac_try" in
27234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27235 *) ac_try_echo=$ac_try;;
27237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27238 $as_echo "$ac_try_echo") >&5
27239 (eval "$ac_compile") 2>conftest.er1
27241 grep -v '^ *+' conftest.er1 >conftest.err
27243 cat conftest.err >&5
27244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245 (exit $ac_status); } && {
27246 test -z "$ac_c_werror_flag" ||
27247 test ! -s conftest.err
27248 } && test -s conftest.$ac_objext; then
27251 $as_echo "$as_me: failed program was:" >&5
27252 sed 's/^/| /' conftest.$ac_ext >&5
27254 ac_cv_type_uint64=yes
27257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27259 $as_echo "$as_me: failed program was:" >&5
27260 sed 's/^/| /' conftest.$ac_ext >&5
27265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27267 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
27268 $as_echo "$ac_cv_type_uint64" >&6; }
27269 if test "x$ac_cv_type_uint64" = x""yes; then
27271 cat >>confdefs.h <<_ACEOF
27272 #define HAVE_UINT64 1
27279 # We also check for sig_atomic_t, which *should* be defined per ANSI
27280 # C, but is missing on some old platforms.
27281 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
27282 $as_echo_n "checking for sig_atomic_t... " >&6; }
27283 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
27284 $as_echo_n "(cached) " >&6
27286 ac_cv_type_sig_atomic_t=no
27287 cat >conftest.$ac_ext <<_ACEOF
27290 cat confdefs.h >>conftest.$ac_ext
27291 cat >>conftest.$ac_ext <<_ACEOF
27292 /* end confdefs.h. */
27293 #include <signal.h>
27298 if (sizeof (sig_atomic_t))
27304 rm -f conftest.$ac_objext
27305 if { (ac_try="$ac_compile"
27306 case "(($ac_try" in
27307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27308 *) ac_try_echo=$ac_try;;
27310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27311 $as_echo "$ac_try_echo") >&5
27312 (eval "$ac_compile") 2>conftest.er1
27314 grep -v '^ *+' conftest.er1 >conftest.err
27316 cat conftest.err >&5
27317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318 (exit $ac_status); } && {
27319 test -z "$ac_c_werror_flag" ||
27320 test ! -s conftest.err
27321 } && test -s conftest.$ac_objext; then
27322 cat >conftest.$ac_ext <<_ACEOF
27325 cat confdefs.h >>conftest.$ac_ext
27326 cat >>conftest.$ac_ext <<_ACEOF
27327 /* end confdefs.h. */
27328 #include <signal.h>
27333 if (sizeof ((sig_atomic_t)))
27339 rm -f conftest.$ac_objext
27340 if { (ac_try="$ac_compile"
27341 case "(($ac_try" in
27342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27343 *) ac_try_echo=$ac_try;;
27345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27346 $as_echo "$ac_try_echo") >&5
27347 (eval "$ac_compile") 2>conftest.er1
27349 grep -v '^ *+' conftest.er1 >conftest.err
27351 cat conftest.err >&5
27352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27353 (exit $ac_status); } && {
27354 test -z "$ac_c_werror_flag" ||
27355 test ! -s conftest.err
27356 } && test -s conftest.$ac_objext; then
27359 $as_echo "$as_me: failed program was:" >&5
27360 sed 's/^/| /' conftest.$ac_ext >&5
27362 ac_cv_type_sig_atomic_t=yes
27365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27367 $as_echo "$as_me: failed program was:" >&5
27368 sed 's/^/| /' conftest.$ac_ext >&5
27373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27375 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
27376 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
27377 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
27379 cat >>confdefs.h <<_ACEOF
27380 #define HAVE_SIG_ATOMIC_T 1
27388 if test "$PORTNAME" != "win32"
27390 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
27391 $as_echo_n "checking for POSIX signal interface... " >&6; }
27392 if test "${pgac_cv_func_posix_signals+set}" = set; then
27393 $as_echo_n "(cached) " >&6
27395 cat >conftest.$ac_ext <<_ACEOF
27398 cat confdefs.h >>conftest.$ac_ext
27399 cat >>conftest.$ac_ext <<_ACEOF
27400 /* end confdefs.h. */
27401 #include <signal.h>
27406 struct sigaction act, oact;
27407 sigemptyset(&act.sa_mask);
27408 act.sa_flags = SA_RESTART;
27409 sigaction(0, &act, &oact);
27414 rm -f conftest.$ac_objext conftest$ac_exeext
27415 if { (ac_try="$ac_link"
27416 case "(($ac_try" in
27417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27418 *) ac_try_echo=$ac_try;;
27420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27421 $as_echo "$ac_try_echo") >&5
27422 (eval "$ac_link") 2>conftest.er1
27424 grep -v '^ *+' conftest.er1 >conftest.err
27426 cat conftest.err >&5
27427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27428 (exit $ac_status); } && {
27429 test -z "$ac_c_werror_flag" ||
27430 test ! -s conftest.err
27431 } && test -s conftest$ac_exeext && {
27432 test "$cross_compiling" = yes ||
27433 $as_test_x conftest$ac_exeext
27435 pgac_cv_func_posix_signals=yes
27437 $as_echo "$as_me: failed program was:" >&5
27438 sed 's/^/| /' conftest.$ac_ext >&5
27440 pgac_cv_func_posix_signals=no
27443 rm -rf conftest.dSYM
27444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27445 conftest$ac_exeext conftest.$ac_ext
27447 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
27448 $as_echo "$pgac_cv_func_posix_signals" >&6; }
27449 if test x"$pgac_cv_func_posix_signals" = xyes ; then
27451 cat >>confdefs.h <<\_ACEOF
27452 #define HAVE_POSIX_SIGNALS /**/
27456 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
27458 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
27459 { { $as_echo "$as_me:$LINENO: error:
27460 Thread-safety requires POSIX signals, which are not supported by this
27461 operating system; use --disable-thread-safety to disable thread safety." >&5
27462 $as_echo "$as_me: error:
27463 Thread-safety requires POSIX signals, which are not supported by this
27464 operating system; use --disable-thread-safety to disable thread safety." >&2;}
27465 { (exit 1); exit 1; }; }
27469 # SunOS doesn't handle negative byte comparisons properly with +/- return
27470 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
27471 $as_echo_n "checking for working memcmp... " >&6; }
27472 if test "${ac_cv_func_memcmp_working+set}" = set; then
27473 $as_echo_n "(cached) " >&6
27475 if test "$cross_compiling" = yes; then
27476 ac_cv_func_memcmp_working=no
27478 cat >conftest.$ac_ext <<_ACEOF
27481 cat confdefs.h >>conftest.$ac_ext
27482 cat >>conftest.$ac_ext <<_ACEOF
27483 /* end confdefs.h. */
27484 $ac_includes_default
27489 /* Some versions of memcmp are not 8-bit clean. */
27490 char c0 = '\100', c1 = '\200', c2 = '\201';
27491 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27494 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27495 or more and with at least one buffer not starting on a 4-byte boundary.
27496 William Lewis provided this test program. */
27501 for (i = 0; i < 4; i++)
27505 strcpy (a, "--------01111111");
27506 strcpy (b, "--------10000000");
27507 if (memcmp (a, b, 16) >= 0)
27517 rm -f conftest$ac_exeext
27518 if { (ac_try="$ac_link"
27519 case "(($ac_try" in
27520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27521 *) ac_try_echo=$ac_try;;
27523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27524 $as_echo "$ac_try_echo") >&5
27525 (eval "$ac_link") 2>&5
27527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27529 { (case "(($ac_try" in
27530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27531 *) ac_try_echo=$ac_try;;
27533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27534 $as_echo "$ac_try_echo") >&5
27535 (eval "$ac_try") 2>&5
27537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27538 (exit $ac_status); }; }; then
27539 ac_cv_func_memcmp_working=yes
27541 $as_echo "$as_me: program exited with status $ac_status" >&5
27542 $as_echo "$as_me: failed program was:" >&5
27543 sed 's/^/| /' conftest.$ac_ext >&5
27545 ( exit $ac_status )
27546 ac_cv_func_memcmp_working=no
27548 rm -rf conftest.dSYM
27549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27554 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27555 $as_echo "$ac_cv_func_memcmp_working" >&6; }
27556 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27557 *" memcmp.$ac_objext "* ) ;;
27558 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27565 # Select semaphore implementation type.
27566 if test "$PORTNAME" != "win32"; then
27567 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
27569 cat >>confdefs.h <<\_ACEOF
27570 #define USE_NAMED_POSIX_SEMAPHORES 1
27573 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27575 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
27577 cat >>confdefs.h <<\_ACEOF
27578 #define USE_UNNAMED_POSIX_SEMAPHORES 1
27581 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27584 cat >>confdefs.h <<\_ACEOF
27585 #define USE_SYSV_SEMAPHORES 1
27588 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
27593 cat >>confdefs.h <<\_ACEOF
27594 #define USE_WIN32_SEMAPHORES 1
27597 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
27601 # Select shared-memory implementation type.
27602 if test "$PORTNAME" != "win32"; then
27604 cat >>confdefs.h <<\_ACEOF
27605 #define USE_SYSV_SHARED_MEMORY 1
27608 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
27611 cat >>confdefs.h <<\_ACEOF
27612 #define USE_WIN32_SHARED_MEMORY 1
27615 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
27618 # If not set in template file, set bytes to use libc memset()
27619 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
27620 MEMSET_LOOP_LIMIT=1024
27623 cat >>confdefs.h <<_ACEOF
27624 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
27629 if test "$enable_nls" = yes ; then
27631 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
27632 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
27633 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27634 $as_echo_n "(cached) " >&6
27636 ac_func_search_save_LIBS=$LIBS
27637 cat >conftest.$ac_ext <<_ACEOF
27640 cat confdefs.h >>conftest.$ac_ext
27641 cat >>conftest.$ac_ext <<_ACEOF
27642 /* end confdefs.h. */
27644 /* Override any GCC internal prototype to avoid an error.
27645 Use char because int might match the return type of a GCC
27646 builtin and then its argument prototype would still apply. */
27650 char bind_textdomain_codeset ();
27654 return bind_textdomain_codeset ();
27659 for ac_lib in '' intl; do
27660 if test -z "$ac_lib"; then
27661 ac_res="none required"
27664 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27666 rm -f conftest.$ac_objext conftest$ac_exeext
27667 if { (ac_try="$ac_link"
27668 case "(($ac_try" in
27669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27670 *) ac_try_echo=$ac_try;;
27672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27673 $as_echo "$ac_try_echo") >&5
27674 (eval "$ac_link") 2>conftest.er1
27676 grep -v '^ *+' conftest.er1 >conftest.err
27678 cat conftest.err >&5
27679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680 (exit $ac_status); } && {
27681 test -z "$ac_c_werror_flag" ||
27682 test ! -s conftest.err
27683 } && test -s conftest$ac_exeext && {
27684 test "$cross_compiling" = yes ||
27685 $as_test_x conftest$ac_exeext
27687 ac_cv_search_bind_textdomain_codeset=$ac_res
27689 $as_echo "$as_me: failed program was:" >&5
27690 sed 's/^/| /' conftest.$ac_ext >&5
27695 rm -rf conftest.dSYM
27696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27698 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27702 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27705 ac_cv_search_bind_textdomain_codeset=no
27707 rm conftest.$ac_ext
27708 LIBS=$ac_func_search_save_LIBS
27710 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
27711 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
27712 ac_res=$ac_cv_search_bind_textdomain_codeset
27713 if test "$ac_res" != no; then
27714 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27717 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
27718 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
27719 { (exit 1); exit 1; }; }
27722 if test "${ac_cv_header_libintl_h+set}" = set; then
27723 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27724 $as_echo_n "checking for libintl.h... " >&6; }
27725 if test "${ac_cv_header_libintl_h+set}" = set; then
27726 $as_echo_n "(cached) " >&6
27728 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27729 $as_echo "$ac_cv_header_libintl_h" >&6; }
27731 # Is the header compilable?
27732 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
27733 $as_echo_n "checking libintl.h usability... " >&6; }
27734 cat >conftest.$ac_ext <<_ACEOF
27737 cat confdefs.h >>conftest.$ac_ext
27738 cat >>conftest.$ac_ext <<_ACEOF
27739 /* end confdefs.h. */
27740 $ac_includes_default
27741 #include <libintl.h>
27743 rm -f conftest.$ac_objext
27744 if { (ac_try="$ac_compile"
27745 case "(($ac_try" in
27746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27747 *) ac_try_echo=$ac_try;;
27749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27750 $as_echo "$ac_try_echo") >&5
27751 (eval "$ac_compile") 2>conftest.er1
27753 grep -v '^ *+' conftest.er1 >conftest.err
27755 cat conftest.err >&5
27756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27757 (exit $ac_status); } && {
27758 test -z "$ac_c_werror_flag" ||
27759 test ! -s conftest.err
27760 } && test -s conftest.$ac_objext; then
27761 ac_header_compiler=yes
27763 $as_echo "$as_me: failed program was:" >&5
27764 sed 's/^/| /' conftest.$ac_ext >&5
27766 ac_header_compiler=no
27769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27770 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27771 $as_echo "$ac_header_compiler" >&6; }
27773 # Is the header present?
27774 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
27775 $as_echo_n "checking libintl.h presence... " >&6; }
27776 cat >conftest.$ac_ext <<_ACEOF
27779 cat confdefs.h >>conftest.$ac_ext
27780 cat >>conftest.$ac_ext <<_ACEOF
27781 /* end confdefs.h. */
27782 #include <libintl.h>
27784 if { (ac_try="$ac_cpp conftest.$ac_ext"
27785 case "(($ac_try" in
27786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27787 *) ac_try_echo=$ac_try;;
27789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27790 $as_echo "$ac_try_echo") >&5
27791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27793 grep -v '^ *+' conftest.er1 >conftest.err
27795 cat conftest.err >&5
27796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27797 (exit $ac_status); } >/dev/null && {
27798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27799 test ! -s conftest.err
27801 ac_header_preproc=yes
27803 $as_echo "$as_me: failed program was:" >&5
27804 sed 's/^/| /' conftest.$ac_ext >&5
27806 ac_header_preproc=no
27809 rm -f conftest.err conftest.$ac_ext
27810 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27811 $as_echo "$ac_header_preproc" >&6; }
27813 # So? What about this header?
27814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27816 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27817 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27818 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
27819 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
27820 ac_header_preproc=yes
27823 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
27824 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
27825 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
27826 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
27827 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
27828 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
27829 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
27830 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
27831 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
27832 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
27833 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
27834 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
27836 ## ---------------------------------------- ##
27837 ## Report this to pgsql-bugs@postgresql.org ##
27838 ## ---------------------------------------- ##
27840 ) | sed "s/^/$as_me: WARNING: /" >&2
27843 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27844 $as_echo_n "checking for libintl.h... " >&6; }
27845 if test "${ac_cv_header_libintl_h+set}" = set; then
27846 $as_echo_n "(cached) " >&6
27848 ac_cv_header_libintl_h=$ac_header_preproc
27850 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27851 $as_echo "$ac_cv_header_libintl_h" >&6; }
27854 if test "x$ac_cv_header_libintl_h" = x""yes; then
27857 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
27858 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
27859 { (exit 1); exit 1; }; }
27863 for ac_prog in msgfmt
27865 # Extract the first word of "$ac_prog", so it can be a program name with args.
27866 set dummy $ac_prog; ac_word=$2
27867 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27868 $as_echo_n "checking for $ac_word... " >&6; }
27869 if test "${ac_cv_prog_MSGFMT+set}" = set; then
27870 $as_echo_n "(cached) " >&6
27872 if test -n "$MSGFMT"; then
27873 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
27875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27876 for as_dir in $PATH
27879 test -z "$as_dir" && as_dir=.
27880 for ac_exec_ext in '' $ac_executable_extensions; do
27881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27882 ac_cv_prog_MSGFMT="$ac_prog"
27883 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27892 MSGFMT=$ac_cv_prog_MSGFMT
27893 if test -n "$MSGFMT"; then
27894 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
27895 $as_echo "$MSGFMT" >&6; }
27897 { $as_echo "$as_me:$LINENO: result: no" >&5
27898 $as_echo "no" >&6; }
27902 test -n "$MSGFMT" && break
27905 if test -z "$MSGFMT"; then
27906 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
27907 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
27908 { (exit 1); exit 1; }; }
27910 for ac_prog in msgmerge
27912 # Extract the first word of "$ac_prog", so it can be a program name with args.
27913 set dummy $ac_prog; ac_word=$2
27914 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27915 $as_echo_n "checking for $ac_word... " >&6; }
27916 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
27917 $as_echo_n "(cached) " >&6
27919 if test -n "$MSGMERGE"; then
27920 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
27922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27923 for as_dir in $PATH
27926 test -z "$as_dir" && as_dir=.
27927 for ac_exec_ext in '' $ac_executable_extensions; do
27928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27929 ac_cv_prog_MSGMERGE="$ac_prog"
27930 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27939 MSGMERGE=$ac_cv_prog_MSGMERGE
27940 if test -n "$MSGMERGE"; then
27941 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
27942 $as_echo "$MSGMERGE" >&6; }
27944 { $as_echo "$as_me:$LINENO: result: no" >&5
27945 $as_echo "no" >&6; }
27949 test -n "$MSGMERGE" && break
27952 for ac_prog in xgettext
27954 # Extract the first word of "$ac_prog", so it can be a program name with args.
27955 set dummy $ac_prog; ac_word=$2
27956 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27957 $as_echo_n "checking for $ac_word... " >&6; }
27958 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
27959 $as_echo_n "(cached) " >&6
27961 if test -n "$XGETTEXT"; then
27962 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
27964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27965 for as_dir in $PATH
27968 test -z "$as_dir" && as_dir=.
27969 for ac_exec_ext in '' $ac_executable_extensions; do
27970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27971 ac_cv_prog_XGETTEXT="$ac_prog"
27972 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27981 XGETTEXT=$ac_cv_prog_XGETTEXT
27982 if test -n "$XGETTEXT"; then
27983 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
27984 $as_echo "$XGETTEXT" >&6; }
27986 { $as_echo "$as_me:$LINENO: result: no" >&5
27987 $as_echo "no" >&6; }
27991 test -n "$XGETTEXT" && break
27997 # Check for Tcl configuration script tclConfig.sh
27998 if test "$with_tcl" = yes; then
27999 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28001 # Extract the first word of "$ac_prog", so it can be a program name with args.
28002 set dummy $ac_prog; ac_word=$2
28003 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28004 $as_echo_n "checking for $ac_word... " >&6; }
28005 if test "${ac_cv_path_TCLSH+set}" = set; then
28006 $as_echo_n "(cached) " >&6
28010 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28014 for as_dir in $PATH
28017 test -z "$as_dir" && as_dir=.
28018 for ac_exec_ext in '' $ac_executable_extensions; do
28019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28020 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28021 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28031 TCLSH=$ac_cv_path_TCLSH
28032 if test -n "$TCLSH"; then
28033 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28034 $as_echo "$TCLSH" >&6; }
28036 { $as_echo "$as_me:$LINENO: result: no" >&5
28037 $as_echo "no" >&6; }
28041 test -n "$TCLSH" && break
28044 if test x"$TCLSH" = x""; then
28045 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28046 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28047 { (exit 1); exit 1; }; }
28050 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28051 $as_echo_n "checking for tclConfig.sh... " >&6; }
28052 # Let user override test
28053 if test -z "$TCL_CONFIG_SH"; then
28054 pgac_test_dirs="$with_tclconfig"
28056 set X $pgac_test_dirs; shift
28057 if test $# -eq 0; then
28058 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28059 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28060 { (exit 1); exit 1; }; }
28061 set X `echo 'puts $auto_path' | $TCLSH`; shift
28065 if test -r "$pgac_dir/tclConfig.sh"; then
28066 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28072 if test -z "$TCL_CONFIG_SH"; then
28073 { $as_echo "$as_me:$LINENO: result: no" >&5
28074 $as_echo "no" >&6; }
28075 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28076 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28077 { (exit 1); exit 1; }; }
28079 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28080 $as_echo "$TCL_CONFIG_SH" >&6; }
28086 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28087 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28088 eval TCL_LIBS=\"$TCL_LIBS\"
28089 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28090 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28092 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28093 ac_save_CPPFLAGS=$CPPFLAGS
28094 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28095 if test "${ac_cv_header_tcl_h+set}" = set; then
28096 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28097 $as_echo_n "checking for tcl.h... " >&6; }
28098 if test "${ac_cv_header_tcl_h+set}" = set; then
28099 $as_echo_n "(cached) " >&6
28101 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28102 $as_echo "$ac_cv_header_tcl_h" >&6; }
28104 # Is the header compilable?
28105 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28106 $as_echo_n "checking tcl.h usability... " >&6; }
28107 cat >conftest.$ac_ext <<_ACEOF
28110 cat confdefs.h >>conftest.$ac_ext
28111 cat >>conftest.$ac_ext <<_ACEOF
28112 /* end confdefs.h. */
28113 $ac_includes_default
28116 rm -f conftest.$ac_objext
28117 if { (ac_try="$ac_compile"
28118 case "(($ac_try" in
28119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28120 *) ac_try_echo=$ac_try;;
28122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28123 $as_echo "$ac_try_echo") >&5
28124 (eval "$ac_compile") 2>conftest.er1
28126 grep -v '^ *+' conftest.er1 >conftest.err
28128 cat conftest.err >&5
28129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28130 (exit $ac_status); } && {
28131 test -z "$ac_c_werror_flag" ||
28132 test ! -s conftest.err
28133 } && test -s conftest.$ac_objext; then
28134 ac_header_compiler=yes
28136 $as_echo "$as_me: failed program was:" >&5
28137 sed 's/^/| /' conftest.$ac_ext >&5
28139 ac_header_compiler=no
28142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28143 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28144 $as_echo "$ac_header_compiler" >&6; }
28146 # Is the header present?
28147 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28148 $as_echo_n "checking tcl.h presence... " >&6; }
28149 cat >conftest.$ac_ext <<_ACEOF
28152 cat confdefs.h >>conftest.$ac_ext
28153 cat >>conftest.$ac_ext <<_ACEOF
28154 /* end confdefs.h. */
28157 if { (ac_try="$ac_cpp conftest.$ac_ext"
28158 case "(($ac_try" in
28159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28160 *) ac_try_echo=$ac_try;;
28162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28163 $as_echo "$ac_try_echo") >&5
28164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28166 grep -v '^ *+' conftest.er1 >conftest.err
28168 cat conftest.err >&5
28169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170 (exit $ac_status); } >/dev/null && {
28171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28172 test ! -s conftest.err
28174 ac_header_preproc=yes
28176 $as_echo "$as_me: failed program was:" >&5
28177 sed 's/^/| /' conftest.$ac_ext >&5
28179 ac_header_preproc=no
28182 rm -f conftest.err conftest.$ac_ext
28183 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28184 $as_echo "$ac_header_preproc" >&6; }
28186 # So? What about this header?
28187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28189 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28190 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28191 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
28192 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
28193 ac_header_preproc=yes
28196 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
28197 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
28198 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
28199 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
28200 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
28201 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
28202 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
28203 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28204 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
28205 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
28206 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
28207 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
28209 ## ---------------------------------------- ##
28210 ## Report this to pgsql-bugs@postgresql.org ##
28211 ## ---------------------------------------- ##
28213 ) | sed "s/^/$as_me: WARNING: /" >&2
28216 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28217 $as_echo_n "checking for tcl.h... " >&6; }
28218 if test "${ac_cv_header_tcl_h+set}" = set; then
28219 $as_echo_n "(cached) " >&6
28221 ac_cv_header_tcl_h=$ac_header_preproc
28223 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28224 $as_echo "$ac_cv_header_tcl_h" >&6; }
28227 if test "x$ac_cv_header_tcl_h" = x""yes; then
28230 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
28231 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
28232 { (exit 1); exit 1; }; }
28236 CPPFLAGS=$ac_save_CPPFLAGS
28240 # Check for DocBook and tools
28242 for ac_prog in onsgmls nsgmls
28244 # Extract the first word of "$ac_prog", so it can be a program name with args.
28245 set dummy $ac_prog; ac_word=$2
28246 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28247 $as_echo_n "checking for $ac_word... " >&6; }
28248 if test "${ac_cv_prog_NSGMLS+set}" = set; then
28249 $as_echo_n "(cached) " >&6
28251 if test -n "$NSGMLS"; then
28252 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
28254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28255 for as_dir in $PATH
28258 test -z "$as_dir" && as_dir=.
28259 for ac_exec_ext in '' $ac_executable_extensions; do
28260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28261 ac_cv_prog_NSGMLS="$ac_prog"
28262 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28271 NSGMLS=$ac_cv_prog_NSGMLS
28272 if test -n "$NSGMLS"; then
28273 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
28274 $as_echo "$NSGMLS" >&6; }
28276 { $as_echo "$as_me:$LINENO: result: no" >&5
28277 $as_echo "no" >&6; }
28281 test -n "$NSGMLS" && break
28284 for ac_prog in openjade jade
28286 # Extract the first word of "$ac_prog", so it can be a program name with args.
28287 set dummy $ac_prog; ac_word=$2
28288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28289 $as_echo_n "checking for $ac_word... " >&6; }
28290 if test "${ac_cv_prog_JADE+set}" = set; then
28291 $as_echo_n "(cached) " >&6
28293 if test -n "$JADE"; then
28294 ac_cv_prog_JADE="$JADE" # Let the user override the test.
28296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28297 for as_dir in $PATH
28300 test -z "$as_dir" && as_dir=.
28301 for ac_exec_ext in '' $ac_executable_extensions; do
28302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28303 ac_cv_prog_JADE="$ac_prog"
28304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28313 JADE=$ac_cv_prog_JADE
28314 if test -n "$JADE"; then
28315 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
28316 $as_echo "$JADE" >&6; }
28318 { $as_echo "$as_me:$LINENO: result: no" >&5
28319 $as_echo "no" >&6; }
28323 test -n "$JADE" && break
28327 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
28328 $as_echo_n "checking for DocBook V4.2... " >&6; }
28329 if test "${pgac_cv_check_docbook+set}" = set; then
28330 $as_echo_n "(cached) " >&6
28332 cat >conftest.sgml <<EOF
28333 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
28335 <title>test</title>
28337 <title>random</title>
28339 <title>testsect</title>
28346 pgac_cv_check_docbook=no
28348 if test -n "$NSGMLS"; then
28349 $NSGMLS -s conftest.sgml 1>&5 2>&1
28350 if test $? -eq 0; then
28351 pgac_cv_check_docbook=yes
28354 rm -f conftest.sgml
28356 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
28357 $as_echo "$pgac_cv_check_docbook" >&6; }
28359 have_docbook=$pgac_cv_check_docbook
28362 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
28363 $as_echo_n "checking for DocBook stylesheets... " >&6; }
28364 if test "${pgac_cv_path_stylesheets+set}" = set; then
28365 $as_echo_n "(cached) " >&6
28367 if test -n "$DOCBOOKSTYLE"; then
28368 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
28370 for pgac_prefix in /usr /usr/local /opt /sw; do
28371 for pgac_infix in share lib; do
28372 for pgac_postfix in \
28373 sgml/stylesheets/nwalsh-modular \
28374 sgml/stylesheets/docbook \
28375 sgml/stylesheets/dsssl/docbook \
28376 sgml/docbook-dsssl \
28377 sgml/docbook/dsssl/modular \
28378 sgml/docbook/stylesheet/dsssl/modular \
28379 sgml/docbook/dsssl-stylesheets \
28380 sgml/dsssl/docbook-dsssl-nwalsh
28382 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
28383 if test -r "$pgac_candidate/html/docbook.dsl" \
28384 && test -r "$pgac_candidate/print/docbook.dsl"
28386 pgac_cv_path_stylesheets=$pgac_candidate
28395 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
28397 if test -n "$DOCBOOKSTYLE"; then
28398 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
28399 $as_echo "$DOCBOOKSTYLE" >&6; }
28401 { $as_echo "$as_me:$LINENO: result: no" >&5
28402 $as_echo "no" >&6; }
28404 if test -n "$DOCBOOKSTYLE"; then
28405 for ac_prog in collateindex.pl
28407 # Extract the first word of "$ac_prog", so it can be a program name with args.
28408 set dummy $ac_prog; ac_word=$2
28409 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28410 $as_echo_n "checking for $ac_word... " >&6; }
28411 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28412 $as_echo_n "(cached) " >&6
28414 case $COLLATEINDEX in
28416 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28420 for as_dir in $DOCBOOKSTYLE/bin $PATH
28423 test -z "$as_dir" && as_dir=.
28424 for ac_exec_ext in '' $ac_executable_extensions; do
28425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28426 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28427 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28437 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28438 if test -n "$COLLATEINDEX"; then
28439 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28440 $as_echo "$COLLATEINDEX" >&6; }
28442 { $as_echo "$as_me:$LINENO: result: no" >&5
28443 $as_echo "no" >&6; }
28447 test -n "$COLLATEINDEX" && break
28451 for ac_prog in collateindex.pl
28453 # Extract the first word of "$ac_prog", so it can be a program name with args.
28454 set dummy $ac_prog; ac_word=$2
28455 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28456 $as_echo_n "checking for $ac_word... " >&6; }
28457 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28458 $as_echo_n "(cached) " >&6
28460 case $COLLATEINDEX in
28462 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28466 for as_dir in $PATH
28469 test -z "$as_dir" && as_dir=.
28470 for ac_exec_ext in '' $ac_executable_extensions; do
28471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28472 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28473 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28483 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28484 if test -n "$COLLATEINDEX"; then
28485 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28486 $as_echo "$COLLATEINDEX" >&6; }
28488 { $as_echo "$as_me:$LINENO: result: no" >&5
28489 $as_echo "no" >&6; }
28493 test -n "$COLLATEINDEX" && break
28497 for ac_prog in xsltproc
28499 # Extract the first word of "$ac_prog", so it can be a program name with args.
28500 set dummy $ac_prog; ac_word=$2
28501 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28502 $as_echo_n "checking for $ac_word... " >&6; }
28503 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
28504 $as_echo_n "(cached) " >&6
28506 if test -n "$XSLTPROC"; then
28507 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
28509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28510 for as_dir in $PATH
28513 test -z "$as_dir" && as_dir=.
28514 for ac_exec_ext in '' $ac_executable_extensions; do
28515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28516 ac_cv_prog_XSLTPROC="$ac_prog"
28517 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28526 XSLTPROC=$ac_cv_prog_XSLTPROC
28527 if test -n "$XSLTPROC"; then
28528 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
28529 $as_echo "$XSLTPROC" >&6; }
28531 { $as_echo "$as_me:$LINENO: result: no" >&5
28532 $as_echo "no" >&6; }
28536 test -n "$XSLTPROC" && break
28539 for ac_prog in osx sgml2xml sx
28541 # Extract the first word of "$ac_prog", so it can be a program name with args.
28542 set dummy $ac_prog; ac_word=$2
28543 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28544 $as_echo_n "checking for $ac_word... " >&6; }
28545 if test "${ac_cv_prog_OSX+set}" = set; then
28546 $as_echo_n "(cached) " >&6
28548 if test -n "$OSX"; then
28549 ac_cv_prog_OSX="$OSX" # Let the user override the test.
28551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28552 for as_dir in $PATH
28555 test -z "$as_dir" && as_dir=.
28556 for ac_exec_ext in '' $ac_executable_extensions; do
28557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28558 ac_cv_prog_OSX="$ac_prog"
28559 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28568 OSX=$ac_cv_prog_OSX
28569 if test -n "$OSX"; then
28570 { $as_echo "$as_me:$LINENO: result: $OSX" >&5
28571 $as_echo "$OSX" >&6; }
28573 { $as_echo "$as_me:$LINENO: result: no" >&5
28574 $as_echo "no" >&6; }
28578 test -n "$OSX" && break
28584 # We have to run the thread test near the end so we have all our symbols
28585 # defined. Cross compiling throws a warning.
28587 if test "$enable_thread_safety" = yes; then
28588 if test "$PORTNAME" != "win32"
28590 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
28591 $as_echo_n "checking thread safety of required library functions... " >&6; }
28595 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
28596 LIBS="$LIBS $PTHREAD_LIBS"
28597 if test "$cross_compiling" = yes; then
28598 { $as_echo "$as_me:$LINENO: result: maybe" >&5
28599 $as_echo "maybe" >&6; }
28600 { $as_echo "$as_me:$LINENO: WARNING:
28601 *** Skipping thread test program because of cross-compile build.
28602 *** Run the program in src/test/thread on the target machine.
28604 $as_echo "$as_me: WARNING:
28605 *** Skipping thread test program because of cross-compile build.
28606 *** Run the program in src/test/thread on the target machine.
28609 cat >conftest.$ac_ext <<_ACEOF
28612 cat confdefs.h >>conftest.$ac_ext
28613 cat >>conftest.$ac_ext <<_ACEOF
28614 /* end confdefs.h. */
28615 #include "$srcdir/src/test/thread/thread_test.c"
28617 rm -f conftest$ac_exeext
28618 if { (ac_try="$ac_link"
28619 case "(($ac_try" in
28620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28621 *) ac_try_echo=$ac_try;;
28623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28624 $as_echo "$ac_try_echo") >&5
28625 (eval "$ac_link") 2>&5
28627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28629 { (case "(($ac_try" in
28630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28631 *) ac_try_echo=$ac_try;;
28633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28634 $as_echo "$ac_try_echo") >&5
28635 (eval "$ac_try") 2>&5
28637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28638 (exit $ac_status); }; }; then
28639 { $as_echo "$as_me:$LINENO: result: yes" >&5
28640 $as_echo "yes" >&6; }
28642 $as_echo "$as_me: program exited with status $ac_status" >&5
28643 $as_echo "$as_me: failed program was:" >&5
28644 sed 's/^/| /' conftest.$ac_ext >&5
28646 ( exit $ac_status )
28647 { $as_echo "$as_me:$LINENO: result: no" >&5
28648 $as_echo "no" >&6; }
28649 { { $as_echo "$as_me:$LINENO: error: thread test program failed
28650 This platform is not thread-safe. Check the file 'config.log' or compile
28651 and run src/test/thread/thread_test for the exact reason.
28652 Use --disable-thread-safety to disable thread safety." >&5
28653 $as_echo "$as_me: error: thread test program failed
28654 This platform is not thread-safe. Check the file 'config.log' or compile
28655 and run src/test/thread/thread_test for the exact reason.
28656 Use --disable-thread-safety to disable thread safety." >&2;}
28657 { (exit 1); exit 1; }; }
28659 rm -rf conftest.dSYM
28660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28667 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
28668 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
28672 # If compiler will take -Wl,--as-needed (or various platform-specific
28673 # spellings thereof) then add that to LDFLAGS. This is much easier than
28674 # trying to filter LIBS to the minimum for each executable.
28675 # (Note that shared library links won't use this switch, though.)
28676 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
28677 # libreadline; therefore we postpone testing it until we know what library
28678 # dependencies readline has. The test code will try to link with $LIBS.
28679 if test "$with_readline" = yes; then
28680 link_test_func=readline
28682 link_test_func=exit
28685 if test "$PORTNAME" = "darwin"; then
28686 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
28687 $as_echo_n "checking if $CC supports -Wl,-dead_strip_dylibs... " >&6; }
28688 pgac_save_LDFLAGS=$LDFLAGS
28689 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
28690 if test "$cross_compiling" = yes; then
28691 LDFLAGS="$pgac_save_LDFLAGS"
28692 { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28693 $as_echo "assuming no" >&6; }
28695 cat >conftest.$ac_ext <<_ACEOF
28698 cat confdefs.h >>conftest.$ac_ext
28699 cat >>conftest.$ac_ext <<_ACEOF
28700 /* end confdefs.h. */
28701 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28710 rm -f conftest$ac_exeext
28711 if { (ac_try="$ac_link"
28712 case "(($ac_try" in
28713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28714 *) ac_try_echo=$ac_try;;
28716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28717 $as_echo "$ac_try_echo") >&5
28718 (eval "$ac_link") 2>&5
28720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28722 { (case "(($ac_try" in
28723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28724 *) ac_try_echo=$ac_try;;
28726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28727 $as_echo "$ac_try_echo") >&5
28728 (eval "$ac_try") 2>&5
28730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28731 (exit $ac_status); }; }; then
28732 { $as_echo "$as_me:$LINENO: result: yes" >&5
28733 $as_echo "yes" >&6; }
28735 $as_echo "$as_me: program exited with status $ac_status" >&5
28736 $as_echo "$as_me: failed program was:" >&5
28737 sed 's/^/| /' conftest.$ac_ext >&5
28739 ( exit $ac_status )
28740 LDFLAGS="$pgac_save_LDFLAGS"
28741 { $as_echo "$as_me:$LINENO: result: no" >&5
28742 $as_echo "no" >&6; }
28744 rm -rf conftest.dSYM
28745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28750 elif test "$PORTNAME" = "openbsd"; then
28751 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-Bdynamic" >&5
28752 $as_echo_n "checking if $CC supports -Wl,-Bdynamic... " >&6; }
28753 pgac_save_LDFLAGS=$LDFLAGS
28754 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
28755 if test "$cross_compiling" = yes; then
28756 LDFLAGS="$pgac_save_LDFLAGS"
28757 { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28758 $as_echo "assuming no" >&6; }
28760 cat >conftest.$ac_ext <<_ACEOF
28763 cat confdefs.h >>conftest.$ac_ext
28764 cat >>conftest.$ac_ext <<_ACEOF
28765 /* end confdefs.h. */
28766 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28775 rm -f conftest$ac_exeext
28776 if { (ac_try="$ac_link"
28777 case "(($ac_try" in
28778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28779 *) ac_try_echo=$ac_try;;
28781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28782 $as_echo "$ac_try_echo") >&5
28783 (eval "$ac_link") 2>&5
28785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28787 { (case "(($ac_try" in
28788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28789 *) ac_try_echo=$ac_try;;
28791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28792 $as_echo "$ac_try_echo") >&5
28793 (eval "$ac_try") 2>&5
28795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796 (exit $ac_status); }; }; then
28797 { $as_echo "$as_me:$LINENO: result: yes" >&5
28798 $as_echo "yes" >&6; }
28800 $as_echo "$as_me: program exited with status $ac_status" >&5
28801 $as_echo "$as_me: failed program was:" >&5
28802 sed 's/^/| /' conftest.$ac_ext >&5
28804 ( exit $ac_status )
28805 LDFLAGS="$pgac_save_LDFLAGS"
28806 { $as_echo "$as_me:$LINENO: result: no" >&5
28807 $as_echo "no" >&6; }
28809 rm -rf conftest.dSYM
28810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28816 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
28817 $as_echo_n "checking if $CC supports -Wl,--as-needed... " >&6; }
28818 pgac_save_LDFLAGS=$LDFLAGS
28819 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
28820 if test "$cross_compiling" = yes; then
28821 LDFLAGS="$pgac_save_LDFLAGS"
28822 { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28823 $as_echo "assuming no" >&6; }
28825 cat >conftest.$ac_ext <<_ACEOF
28828 cat confdefs.h >>conftest.$ac_ext
28829 cat >>conftest.$ac_ext <<_ACEOF
28830 /* end confdefs.h. */
28831 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28840 rm -f conftest$ac_exeext
28841 if { (ac_try="$ac_link"
28842 case "(($ac_try" in
28843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28844 *) ac_try_echo=$ac_try;;
28846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28847 $as_echo "$ac_try_echo") >&5
28848 (eval "$ac_link") 2>&5
28850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28852 { (case "(($ac_try" in
28853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28854 *) ac_try_echo=$ac_try;;
28856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28857 $as_echo "$ac_try_echo") >&5
28858 (eval "$ac_try") 2>&5
28860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 (exit $ac_status); }; }; then
28862 { $as_echo "$as_me:$LINENO: result: yes" >&5
28863 $as_echo "yes" >&6; }
28865 $as_echo "$as_me: program exited with status $ac_status" >&5
28866 $as_echo "$as_me: failed program was:" >&5
28867 sed 's/^/| /' conftest.$ac_ext >&5
28869 ( exit $ac_status )
28870 LDFLAGS="$pgac_save_LDFLAGS"
28871 { $as_echo "$as_me:$LINENO: result: no" >&5
28872 $as_echo "no" >&6; }
28874 rm -rf conftest.dSYM
28875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28883 # Begin output steps
28885 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
28886 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
28887 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
28888 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
28889 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
28890 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
28892 # Create compiler version string
28893 if test x"$GCC" = x"yes" ; then
28894 cc_string="GCC `${CC} --version | sed q`"
28895 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
28896 cc_string=`${CC} -V 2>&1 | sed q`
28902 cat >>confdefs.h <<_ACEOF
28903 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
28907 # Supply a numeric version string for use by 3rd party add-ons
28908 # awk -F is a regex on some platforms, and not on others, so make "." a tab
28909 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
28911 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
28913 cat >>confdefs.h <<_ACEOF
28914 #define PG_VERSION_NUM $PG_VERSION_NUM
28919 # prepare build tree if outside source tree
28920 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
28921 # Note 2: /bin/pwd might be better than shell's built-in at getting
28922 # a symlink-free name.
28923 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
28927 if test "$no_create" != yes; then
28928 $as_echo_n "preparing build tree... " >&6
28929 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
28930 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
28931 || { { $as_echo "$as_me:$LINENO: error: failed" >&5
28932 $as_echo "$as_me: error: failed" >&2;}
28933 { (exit 1); exit 1; }; }
28934 { $as_echo "$as_me:$LINENO: result: done" >&5
28935 $as_echo "done" >&6; }
28941 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
28944 ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
28947 if test "$PORTNAME" = "win32"; then
28948 ac_config_commands="$ac_config_commands check_win32_symlinks"
28952 ac_config_headers="$ac_config_headers src/include/pg_config.h"
28955 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
28958 cat >confcache <<\_ACEOF
28959 # This file is a shell script that caches the results of configure
28960 # tests run on this system so they can be shared between configure
28961 # scripts and configure runs, see configure's option --config-cache.
28962 # It is not useful on other systems. If it contains results you don't
28963 # want to keep, you may remove or edit it.
28965 # config.status only pays attention to the cache file if you give it
28966 # the --recheck option to rerun configure.
28968 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28969 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28970 # following values.
28974 # The following way of writing the cache mishandles newlines in values,
28975 # but we know of no workaround that is simple, portable, and efficient.
28976 # So, we kill variables containing newlines.
28977 # Ultrix sh set writes to stderr and can't be redirected directly,
28978 # and sets the high bit in the cache file unless we assign to the vars.
28980 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28981 eval ac_val=\$$ac_var
28985 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
28986 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28989 _ | IFS | as_nl) ;; #(
28990 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28991 *) $as_unset $ac_var ;;
28997 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28998 *${as_nl}ac_space=\ *)
28999 # `set' does not quote correctly, so add quotes (double-quote
29000 # substitution turns \\\\ into \\, and sed turns \\ into \).
29003 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29006 # `set' quotes correctly as required by POSIX, so do not add quotes.
29007 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29016 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29018 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29020 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29021 if test -w "$cache_file"; then
29022 test "x$cache_file" != "x/dev/null" &&
29023 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29024 $as_echo "$as_me: updating cache $cache_file" >&6;}
29025 cat confcache >$cache_file
29027 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29028 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29033 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29034 # Let make expand exec_prefix.
29035 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29037 DEFS=-DHAVE_CONFIG_H
29041 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29042 # 1. Remove the extension, and $U if already installed.
29043 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29044 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29045 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29046 # will be set to the directory where LIBOBJS objects are built.
29047 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29048 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29050 LIBOBJS=$ac_libobjs
29052 LTLIBOBJS=$ac_ltlibobjs
29057 : ${CONFIG_STATUS=./config.status}
29059 ac_clean_files_save=$ac_clean_files
29060 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29061 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29062 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29063 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29065 # Generated by $as_me.
29066 # Run this file to recreate the current configuration.
29067 # Compiler output produced by configure, useful for debugging
29068 # configure, is in config.log if it exists.
29071 ac_cs_recheck=false
29073 SHELL=\${CONFIG_SHELL-$SHELL}
29076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29077 ## --------------------- ##
29078 ## M4sh Initialization. ##
29079 ## --------------------- ##
29081 # Be more Bourne compatible
29082 DUALCASE=1; export DUALCASE # for MKS sh
29083 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29086 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29087 # is contrary to our usage. Disable this feature.
29088 alias -g '${1+"$@"}'='"$@"'
29089 setopt NO_GLOB_SUBST
29091 case `(set -o) 2>/dev/null` in
29092 *posix*) set -o posix ;;
29101 # Avoid depending upon Character Ranges.
29102 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29103 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29104 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29105 as_cr_digits='0123456789'
29106 as_cr_alnum=$as_cr_Letters$as_cr_digits
29111 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29112 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29113 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29114 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29115 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29116 as_echo='printf %s\n'
29117 as_echo_n='printf %s'
29119 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29120 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29121 as_echo_n='/usr/ucb/echo -n'
29123 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29124 as_echo_n_body='eval
29128 expr "X$arg" : "X\\(.*\\)$as_nl";
29129 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29131 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29133 export as_echo_n_body
29134 as_echo_n='sh -c $as_echo_n_body as_echo'
29136 export as_echo_body
29137 as_echo='sh -c $as_echo_body as_echo'
29140 # The user is always right.
29141 if test "${PATH_SEPARATOR+set}" != set; then
29143 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29144 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29149 # Support unset when possible.
29150 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29158 # We need space, tab and new line, in precisely that order. Quoting is
29159 # there to prevent editors from complaining about space-tab.
29160 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29161 # splitting by setting IFS to empty value.)
29164 # Find who we are. Look in the path if we contain no directory separator.
29166 *[\\/]* ) as_myself=$0 ;;
29167 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29168 for as_dir in $PATH
29171 test -z "$as_dir" && as_dir=.
29172 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29178 # We did not find ourselves, most probably we were run as `sh COMMAND'
29179 # in which case we are not to be found in the path.
29180 if test "x$as_myself" = x; then
29183 if test ! -f "$as_myself"; then
29184 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29185 { (exit 1); exit 1; }
29188 # Work around bugs in pre-3.0 UWIN ksh.
29189 for as_var in ENV MAIL MAILPATH
29190 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29202 # Required to use basename.
29203 if expr a : '\(a\)' >/dev/null 2>&1 &&
29204 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29210 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29211 as_basename=basename
29217 # Name of the executable.
29218 as_me=`$as_basename -- "$0" ||
29219 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29220 X"$0" : 'X\(//\)$' \| \
29221 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29223 sed '/^.*\/\([^/][^/]*\)\/*$/{
29242 as_lineno_1=$LINENO
29243 as_lineno_2=$LINENO
29244 test "x$as_lineno_1" != "x$as_lineno_2" &&
29245 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29247 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29248 # uniformly replaced by the line number. The first 'sed' inserts a
29249 # line-number line after each line using $LINENO; the second 'sed'
29250 # does the real work. The second script uses 'N' to pair each
29251 # line-number line with the line containing $LINENO, and appends
29252 # trailing '-' during substitution so that $LINENO is not a special
29253 # case at line end.
29254 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29255 # scripts with optimization help from Paolo Bonzini. Blame Lee
29256 # E. McMahon (1931-1989) for sed's syntax. :-)
29268 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29271 ' >$as_me.lineno &&
29272 chmod +x "$as_me.lineno" ||
29273 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29274 { (exit 1); exit 1; }; }
29276 # Don't try to exec as it changes $[0], causing all sort of problems
29277 # (the dirname of $[0] is not the place where we might find the
29278 # original and so on. Autoconf is especially sensitive to this).
29279 . "./$as_me.lineno"
29280 # Exit status is that of the last command.
29285 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29291 ECHO_C= ECHO_N= ECHO_T=
29292 case `echo -n x` in
29294 case `echo 'x\c'` in
29295 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29301 if expr a : '\(a\)' >/dev/null 2>&1 &&
29302 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29308 rm -f conf$$ conf$$.exe conf$$.file
29309 if test -d conf$$.dir; then
29310 rm -f conf$$.dir/conf$$.file
29313 mkdir conf$$.dir 2>/dev/null
29315 if (echo >conf$$.file) 2>/dev/null; then
29316 if ln -s conf$$.file conf$$ 2>/dev/null; then
29318 # ... but there are two gotchas:
29319 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29320 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29321 # In both cases, we have to default to `cp -p'.
29322 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29324 elif ln conf$$.file conf$$ 2>/dev/null; then
29332 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29333 rmdir conf$$.dir 2>/dev/null
29335 if mkdir -p . 2>/dev/null; then
29338 test -d ./-p && rmdir ./-p
29342 if test -x / >/dev/null 2>&1; then
29343 as_test_x='test -x'
29345 if ls -dL / >/dev/null 2>&1; then
29352 if test -d "$1"; then
29358 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29359 ???[sx]*):;;*)false;;esac;fi
29363 as_executable_p=$as_test_x
29365 # Sed expression to map a string onto a valid CPP name.
29366 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29368 # Sed expression to map a string onto a valid variable name.
29369 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29374 # Save the log message, to keep $[0] and so on meaningful, and to
29375 # report actual input values of CONFIG_FILES etc. instead of their
29376 # values after options handling.
29378 This file was extended by PostgreSQL $as_me 9.0devel, which was
29379 generated by GNU Autoconf 2.63. Invocation command line was
29381 CONFIG_FILES = $CONFIG_FILES
29382 CONFIG_HEADERS = $CONFIG_HEADERS
29383 CONFIG_LINKS = $CONFIG_LINKS
29384 CONFIG_COMMANDS = $CONFIG_COMMANDS
29387 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29392 case $ac_config_files in *"
29393 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29396 case $ac_config_headers in *"
29397 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29402 # Files that config.status was made for.
29403 config_files="$ac_config_files"
29404 config_headers="$ac_config_headers"
29405 config_links="$ac_config_links"
29406 config_commands="$ac_config_commands"
29410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29412 \`$as_me' instantiates files from templates according to the
29413 current configuration.
29415 Usage: $0 [OPTION]... [FILE]...
29417 -h, --help print this help, then exit
29418 -V, --version print version number and configuration settings, then exit
29419 -q, --quiet, --silent
29420 do not print progress messages
29421 -d, --debug don't remove temporary files
29422 --recheck update $as_me by reconfiguring in the same conditions
29423 --file=FILE[:TEMPLATE]
29424 instantiate the configuration file FILE
29425 --header=FILE[:TEMPLATE]
29426 instantiate the configuration header FILE
29428 Configuration files:
29431 Configuration headers:
29434 Configuration links:
29437 Configuration commands:
29440 Report bugs to <bug-autoconf@gnu.org>."
29443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29445 PostgreSQL config.status 9.0devel
29446 configured by $0, generated by GNU Autoconf 2.63,
29447 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29449 Copyright (C) 2008 Free Software Foundation, Inc.
29450 This config.status script is free software; the Free Software Foundation
29451 gives unlimited permission to copy, distribute and modify it."
29457 test -n "\$AWK" || AWK=awk
29460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29461 # The default lists apply if the user does not specify any file.
29467 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29468 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29479 # Handling of the options.
29480 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29482 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29483 $as_echo "$ac_cs_version"; exit ;;
29484 --debug | --debu | --deb | --de | --d | -d )
29486 --file | --fil | --fi | --f )
29489 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29491 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
29492 ac_need_defaults=false;;
29493 --header | --heade | --head | --hea )
29496 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29498 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
29499 ac_need_defaults=false;;
29501 # Conflict between --help and --header
29502 { $as_echo "$as_me: error: ambiguous option: $1
29503 Try \`$0 --help' for more information." >&2
29504 { (exit 1); exit 1; }; };;
29505 --help | --hel | -h )
29506 $as_echo "$ac_cs_usage"; exit ;;
29507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29508 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29511 # This is an error.
29512 -*) { $as_echo "$as_me: error: unrecognized option: $1
29513 Try \`$0 --help' for more information." >&2
29514 { (exit 1); exit 1; }; } ;;
29516 *) ac_config_targets="$ac_config_targets $1"
29517 ac_need_defaults=false ;;
29523 ac_configure_extra_args=
29525 if $ac_cs_silent; then
29527 ac_configure_extra_args="$ac_configure_extra_args --silent"
29531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29532 if \$ac_cs_recheck; then
29533 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29535 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29536 CONFIG_SHELL='$SHELL'
29537 export CONFIG_SHELL
29542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29546 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29547 ## Running $as_me. ##
29553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29558 # Handling of arguments.
29559 for ac_config_target in $ac_config_targets
29561 case $ac_config_target in
29562 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
29563 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
29564 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
29565 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
29566 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
29567 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
29568 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
29569 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
29570 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
29571 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
29572 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
29573 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
29575 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29576 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29577 { (exit 1); exit 1; }; };;
29582 # If the user did not use the arguments to specify the items to instantiate,
29583 # then the envvar interface is used. Set only those that are not.
29584 # We use the long form for the default assignment because of an extremely
29585 # bizarre bug on SunOS 4.1.3.
29586 if $ac_need_defaults; then
29587 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29588 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29589 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29590 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29593 # Have a temporary directory for convenience. Make it in the build tree
29594 # simply because there is no reason against having it here, and in addition,
29595 # creating and moving files from /tmp can sometimes cause problems.
29596 # Hook for its removal unless debugging.
29597 # Note that there is a small window in which the directory will not be cleaned:
29598 # after its creation but before its name has been assigned to `$tmp'.
29602 trap 'exit_status=$?
29603 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29605 trap '{ (exit 1); exit 1; }' 1 2 13 15
29607 # Create a (secure) tmp directory for tmp files.
29610 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29611 test -n "$tmp" && test -d "$tmp"
29614 tmp=./conf$$-$RANDOM
29615 (umask 077 && mkdir "$tmp")
29618 $as_echo "$as_me: cannot create a temporary directory in ." >&2
29619 { (exit 1); exit 1; }
29622 # Set up the scripts for CONFIG_FILES section.
29623 # No need to generate them if there are no CONFIG_FILES.
29624 # This happens for instance with `./config.status config.h'.
29625 if test -n "$CONFIG_FILES"; then
29629 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29630 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29633 ac_cs_awk_cr=$ac_cr
29636 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29641 echo "cat >conf$$subs.awk <<_ACEOF" &&
29642 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29644 } >conf$$subs.sh ||
29645 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29646 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29647 { (exit 1); exit 1; }; }
29648 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29650 for ac_last_try in false false false false false :; do
29651 . ./conf$$subs.sh ||
29652 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29653 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29654 { (exit 1); exit 1; }; }
29656 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29657 if test $ac_delim_n = $ac_delim_num; then
29659 elif $ac_last_try; then
29660 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29661 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29662 { (exit 1); exit 1; }; }
29664 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29667 rm -f conf$$subs.sh
29669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29670 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29674 s/^/S["/; s/!.*/"]=/
29684 s/\(.\{148\}\).*/\1/
29686 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29691 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29698 s/\(.\{148\}\).*/\1/
29700 s/["\\]/\\&/g; s/^/"/; s/$/"/
29704 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29709 ' <conf$$subs.awk | sed '
29714 ' >>$CONFIG_STATUS || ac_write_fail=1
29715 rm -f conf$$subs.awk
29716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29718 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29719 for (key in S) S_is_set[key] = 1
29725 nfields = split(line, field, "@")
29727 len = length(field[1])
29728 for (i = 2; i < nfields; i++) {
29730 keylen = length(key)
29731 if (S_is_set[key]) {
29733 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29734 len += length(value) + length(field[++i])
29745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29746 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29747 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29750 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29751 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
29752 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
29753 { (exit 1); exit 1; }; }
29756 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29757 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29758 # trailing colons and then remove the whole line if VPATH becomes empty
29759 # (actually we leave an empty line to preserve line numbers).
29760 if test "x$srcdir" = x.; then
29761 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29762 s/:*\$(srcdir):*/:/
29763 s/:*\${srcdir}:*/:/
29765 s/^\([^=]*=[ ]*\):*/\1/
29771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29772 fi # test -n "$CONFIG_FILES"
29774 # Set up the scripts for CONFIG_HEADERS section.
29775 # No need to generate them if there are no CONFIG_HEADERS.
29776 # This happens for instance with `./config.status Makefile'.
29777 if test -n "$CONFIG_HEADERS"; then
29778 cat >"$tmp/defines.awk" <<\_ACAWK ||
29782 # Transform confdefs.h into an awk script `defines.awk', embedded as
29783 # here-document in config.status, that substitutes the proper values into
29784 # config.h.in to produce config.h.
29786 # Create a delimiter string that does not exist in confdefs.h, to ease
29787 # handling of long lines.
29789 for ac_last_try in false false :; do
29790 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29791 if test -z "$ac_t"; then
29793 elif $ac_last_try; then
29794 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
29795 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
29796 { (exit 1); exit 1; }; }
29798 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29802 # For the awk script, D is an array of macro values keyed by name,
29803 # likewise P contains macro parameters if any. Preserve backslash
29804 # newline sequences.
29806 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29808 s/.\{148\}/&'"$ac_delim"'/g
29811 s/^[ ]*#[ ]*define[ ][ ]*/ /
29818 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29820 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29824 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29825 D["\1"]=" \3\\\\\\n"\\/p
29827 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29832 s/.\{148\}/&'"$ac_delim"'/g
29837 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29840 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29842 ' <confdefs.h | sed '
29843 s/'"$ac_delim"'/"\\\
29844 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29847 for (key in D) D_is_set[key] = 1
29850 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29852 split(line, arg, " ")
29853 if (arg[1] == "#") {
29857 defundef = substr(arg[1], 2)
29860 split(mac1, mac2, "(") #)
29862 prefix = substr(line, 1, index(line, defundef) - 1)
29863 if (D_is_set[macro]) {
29864 # Preserve the white space surrounding the "#".
29865 print prefix "define", macro P[macro] D[macro]
29868 # Replace #undef with comments. This is necessary, for example,
29869 # in the case of _POSIX_SOURCE, which is predefined and required
29870 # on some systems where configure will not decide to define it.
29871 if (defundef == "undef") {
29872 print "/*", prefix defundef, macro, "*/"
29880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29881 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
29882 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
29883 { (exit 1); exit 1; }; }
29884 fi # test -n "$CONFIG_HEADERS"
29887 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29892 :[FHLC]) ac_mode=$ac_tag; continue;;
29894 case $ac_mode$ac_tag in
29896 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
29897 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
29898 { (exit 1); exit 1; }; };;
29899 :[FH]-) ac_tag=-:-;;
29900 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29917 -) ac_f="$tmp/stdin";;
29918 *) # Look for the file first in the build tree, then in the source tree
29919 # (if the path is not absolute). The absolute path cannot be DOS-style,
29920 # because $ac_f cannot contain `:'.
29924 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29926 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29927 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29928 { (exit 1); exit 1; }; };;
29930 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29931 ac_file_inputs="$ac_file_inputs '$ac_f'"
29934 # Let's still pretend it is `configure' which instantiates (i.e., don't
29935 # use $as_me), people would be surprised to read:
29936 # /* config.h. Generated by config.status. */
29937 configure_input='Generated from '`
29938 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29940 if test x"$ac_file" != x-; then
29941 configure_input="$ac_file. $configure_input"
29942 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
29943 $as_echo "$as_me: creating $ac_file" >&6;}
29945 # Neutralize special characters interpreted by sed in replacement strings.
29946 case $configure_input in #(
29947 *\&* | *\|* | *\\* )
29948 ac_sed_conf_input=`$as_echo "$configure_input" |
29949 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29950 *) ac_sed_conf_input=$configure_input;;
29954 *:-:* | *:-) cat >"$tmp/stdin" \
29955 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29956 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29957 { (exit 1); exit 1; }; } ;;
29962 ac_dir=`$as_dirname -- "$ac_file" ||
29963 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29964 X"$ac_file" : 'X\(//\)[^/]' \| \
29965 X"$ac_file" : 'X\(//\)$' \| \
29966 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29967 $as_echo X"$ac_file" |
29968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29972 /^X\(\/\/\)[^/].*/{
29987 -*) as_dir=./$as_dir;;
29989 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29993 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29994 *) as_qdir=$as_dir;;
29996 as_dirs="'$as_qdir' $as_dirs"
29997 as_dir=`$as_dirname -- "$as_dir" ||
29998 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29999 X"$as_dir" : 'X\(//\)[^/]' \| \
30000 X"$as_dir" : 'X\(//\)$' \| \
30001 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30002 $as_echo X"$as_dir" |
30003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30007 /^X\(\/\/\)[^/].*/{
30020 test -d "$as_dir" && break
30022 test -z "$as_dirs" || eval "mkdir $as_dirs"
30023 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30024 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30025 { (exit 1); exit 1; }; }; }
30029 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30031 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30032 # A ".." for each directory in $ac_dir_suffix.
30033 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30034 case $ac_top_builddir_sub in
30035 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30036 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30039 ac_abs_top_builddir=$ac_pwd
30040 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30041 # for backward compatibility:
30042 ac_top_builddir=$ac_top_build_prefix
30045 .) # We are building in place.
30047 ac_top_srcdir=$ac_top_builddir_sub
30048 ac_abs_top_srcdir=$ac_pwd ;;
30049 [\\/]* | ?:[\\/]* ) # Absolute name.
30050 ac_srcdir=$srcdir$ac_dir_suffix;
30051 ac_top_srcdir=$srcdir
30052 ac_abs_top_srcdir=$srcdir ;;
30053 *) # Relative name.
30054 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30055 ac_top_srcdir=$ac_top_build_prefix$srcdir
30056 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30058 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30067 ac_MKDIR_P=$MKDIR_P
30069 [\\/$]* | ?:[\\/]* ) ;;
30070 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30075 # If the template does not know about datarootdir, expand it.
30076 # FIXME: This hack should be removed a few years after 2.60.
30077 ac_datarootdir_hack=; ac_datarootdir_seen=
30090 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30091 *datarootdir*) ac_datarootdir_seen=yes;;
30092 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30093 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30094 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30097 ac_datarootdir_hack='
30098 s&@datadir@&$datadir&g
30099 s&@docdir@&$docdir&g
30100 s&@infodir@&$infodir&g
30101 s&@localedir@&$localedir&g
30102 s&@mandir@&$mandir&g
30103 s&\\\${datarootdir}&$datarootdir&g' ;;
30107 # Neutralize VPATH when `$srcdir' = `.'.
30108 # Shell code in configure.ac might set extrasub.
30109 # FIXME: do we really want to maintain this feature?
30110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30111 ac_sed_extra="$ac_vpsub
30114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30116 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30117 s|@configure_input@|$ac_sed_conf_input|;t t
30118 s&@top_builddir@&$ac_top_builddir_sub&;t t
30119 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30120 s&@srcdir@&$ac_srcdir&;t t
30121 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30122 s&@top_srcdir@&$ac_top_srcdir&;t t
30123 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30124 s&@builddir@&$ac_builddir&;t t
30125 s&@abs_builddir@&$ac_abs_builddir&;t t
30126 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30127 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30128 $ac_datarootdir_hack
30130 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
30131 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30132 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30133 { (exit 1); exit 1; }; }
30135 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30136 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30137 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30138 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30139 which seems to be undefined. Please make sure it is defined." >&5
30140 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30141 which seems to be undefined. Please make sure it is defined." >&2;}
30145 -) cat "$tmp/out" && rm -f "$tmp/out";;
30146 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30148 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30149 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30150 { (exit 1); exit 1; }; }
30156 if test x"$ac_file" != x-; then
30158 $as_echo "/* $configure_input */" \
30159 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30160 } >"$tmp/config.h" \
30161 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30162 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30163 { (exit 1); exit 1; }; }
30164 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30165 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30166 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30169 mv "$tmp/config.h" "$ac_file" \
30170 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30171 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30172 { (exit 1); exit 1; }; }
30175 $as_echo "/* $configure_input */" \
30176 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30177 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
30178 $as_echo "$as_me: error: could not create -" >&2;}
30179 { (exit 1); exit 1; }; }
30187 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30190 # Prefer the file from the source tree if names are identical.
30191 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30192 ac_source=$srcdir/$ac_source
30195 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
30196 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30198 if test ! -r "$ac_source"; then
30199 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
30200 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
30201 { (exit 1); exit 1; }; }
30205 # Try a relative symlink, then a hard link, then a copy.
30207 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30208 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30210 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30211 ln "$ac_source" "$ac_file" 2>/dev/null ||
30212 cp -p "$ac_source" "$ac_file" ||
30213 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
30214 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
30215 { (exit 1); exit 1; }; }
30218 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
30219 $as_echo "$as_me: executing $ac_file commands" >&6;}
30224 case $ac_file$ac_mode in
30225 "check_win32_symlinks":C)
30226 # Links sometimes fail undetected on Mingw -
30227 # so here we detect it and warn the user
30228 for FILE in $CONFIG_LINKS
30230 # test -e works for symlinks in the MinGW console
30231 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
30232 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
30235 "src/include/pg_config.h":H)
30236 # Update timestamp for pg_config.h (see Makefile.global)
30237 echo >src/include/stamp-h
30239 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
30245 { (exit 0); exit 0; }
30247 chmod +x $CONFIG_STATUS
30248 ac_clean_files=$ac_clean_files_save
30250 test $ac_write_fail = 0 ||
30251 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
30252 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
30253 { (exit 1); exit 1; }; }
30256 # configure is writing to config.log, and then calls config.status.
30257 # config.status does its own redirection, appending to config.log.
30258 # Unfortunately, on DOS this fails, as config.log is still kept open
30259 # by configure, so config.status won't be able to write to it; its
30260 # output is simply discarded. So we exec the FD to /dev/null,
30261 # effectively closing config.log, so it can be properly (re)opened and
30262 # appended to by config.status. When coming back to configure, we
30263 # need to make the FD available again.
30264 if test "$no_create" != yes; then
30266 ac_config_status_args=
30267 test "$silent" = yes &&
30268 ac_config_status_args="$ac_config_status_args --quiet"
30270 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30272 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30273 # would make configure fail if this is the last instruction.
30274 $ac_cs_success || { (exit 1); exit 1; }
30276 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30277 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30278 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}