2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 9.0beta1.
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.0beta1'
602 PACKAGE_STRING='PostgreSQL 9.0beta1'
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.0beta1 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.0beta1:";;
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.0beta1
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.0beta1, 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
2012 for ac_dir in config "$srcdir"/config; do
2013 if test -f "$ac_dir/install-sh"; then
2015 ac_install_sh="$ac_aux_dir/install-sh -c"
2017 elif test -f "$ac_dir/install.sh"; then
2019 ac_install_sh="$ac_aux_dir/install.sh -c"
2021 elif test -f "$ac_dir/shtool"; then
2023 ac_install_sh="$ac_aux_dir/shtool install -c"
2027 if test -z "$ac_aux_dir"; then
2028 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2029 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2030 { (exit 1); exit 1; }; }
2033 # These three variables are undocumented and unsupported,
2034 # and are intended to be withdrawn in a future Autoconf release.
2035 # They can cause serious problems if a builder's source tree is in a directory
2036 # whose full name contains unusual characters.
2037 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2038 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2039 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2043 configure_args=$ac_configure_args
2047 cat >>confdefs.h <<_ACEOF
2048 #define PG_VERSION "$PACKAGE_VERSION"
2051 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2054 cat >>confdefs.h <<_ACEOF
2055 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2059 # Make sure we can run config.sub.
2060 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2061 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2062 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2063 { (exit 1); exit 1; }; }
2065 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2066 $as_echo_n "checking build system type... " >&6; }
2067 if test "${ac_cv_build+set}" = set; then
2068 $as_echo_n "(cached) " >&6
2070 ac_build_alias=$build_alias
2071 test "x$ac_build_alias" = x &&
2072 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2073 test "x$ac_build_alias" = x &&
2074 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2075 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2076 { (exit 1); exit 1; }; }
2077 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2078 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2079 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2080 { (exit 1); exit 1; }; }
2083 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2084 $as_echo "$ac_cv_build" >&6; }
2085 case $ac_cv_build in
2087 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2088 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2089 { (exit 1); exit 1; }; };;
2092 ac_save_IFS=$IFS; IFS='-'
2098 # Remember, the first character of IFS is used to create $*,
2099 # except with old shells:
2102 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2105 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2106 $as_echo_n "checking host system type... " >&6; }
2107 if test "${ac_cv_host+set}" = set; then
2108 $as_echo_n "(cached) " >&6
2110 if test "x$host_alias" = x; then
2111 ac_cv_host=$ac_cv_build
2113 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2114 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2115 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2116 { (exit 1); exit 1; }; }
2120 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2121 $as_echo "$ac_cv_host" >&6; }
2124 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2125 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2126 { (exit 1); exit 1; }; };;
2129 ac_save_IFS=$IFS; IFS='-'
2135 # Remember, the first character of IFS is used to create $*,
2136 # except with old shells:
2139 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2144 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2145 $as_echo_n "checking which template to use... " >&6; }
2150 # Check whether --with-template was given.
2151 if test "${with_template+set}" = set; then
2152 withval=$with_template;
2155 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2156 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2157 { (exit 1); exit 1; }; }
2160 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2161 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2162 { (exit 1); exit 1; }; }
2167 list) echo; ls "$srcdir/src/template"; exit;;
2168 *) if test -f "$srcdir/src/template/$with_template" ; then
2171 { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2172 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2173 { (exit 1); exit 1; }; }
2182 # --with-template not given
2185 aix*) template=aix ;;
2186 bsdi*) template=bsdi ;;
2187 cygwin*) template=cygwin ;;
2188 darwin*) template=darwin ;;
2189 dgux*) template=dgux ;;
2190 freebsd*) template=freebsd ;;
2191 hpux*) template=hpux ;;
2192 irix*) template=irix ;;
2193 linux*|gnu*|k*bsd*-gnu)
2195 mingw*) template=win32 ;;
2196 netbsd*) template=netbsd ;;
2197 nextstep*) template=nextstep ;;
2198 openbsd*) template=openbsd ;;
2199 osf*) template=osf ;;
2200 sco*) template=sco ;;
2201 solaris*) template=solaris ;;
2202 sunos*) template=sunos4 ;;
2204 case $host_vendor in
2205 univel) template=univel ;;
2207 sysv4*) template=svr4 ;;
2208 sysv5*) template=unixware ;;
2209 ultrix*) template=ultrix4 ;;
2212 if test x"$template" = x"" ; then
2213 { { $as_echo "$as_me:$LINENO: error:
2214 *******************************************************************
2215 PostgreSQL has apparently not been ported to your platform yet.
2216 To try a manual configuration, look into the src/template directory
2217 for a similar platform and use the '--with-template=' option.
2219 Please also contact <pgsql-bugs@postgresql.org> to see about
2220 rectifying this. Include the above 'checking host system type...'
2222 *******************************************************************
2224 $as_echo "$as_me: error:
2225 *******************************************************************
2226 PostgreSQL has apparently not been ported to your platform yet.
2227 To try a manual configuration, look into the src/template directory
2228 for a similar platform and use the '--with-template=' option.
2230 Please also contact <pgsql-bugs@postgresql.org> to see about
2231 rectifying this. Include the above 'checking host system type...'
2233 *******************************************************************
2235 { (exit 1); exit 1; }; }
2243 { $as_echo "$as_me:$LINENO: result: $template" >&5
2244 $as_echo "$template" >&6; }
2249 # Initialize default assumption that we do not need separate assembly code
2250 # for TAS (test-and-set). This can be overridden by the template file
2251 # when it's executed.
2258 ## Command line options
2262 # Add non-standard directories to the include path
2267 # Check whether --with-includes was given.
2268 if test "${with_includes+set}" = set; then
2269 withval=$with_includes;
2272 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2273 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2274 { (exit 1); exit 1; }; }
2277 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2278 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2279 { (exit 1); exit 1; }; }
2292 # Add non-standard directories to the library search path
2297 # Check whether --with-libraries was given.
2298 if test "${with_libraries+set}" = set; then
2299 withval=$with_libraries;
2302 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2303 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2304 { (exit 1); exit 1; }; }
2307 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2308 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2309 { (exit 1); exit 1; }; }
2312 LIBRARY_DIRS=$withval
2323 # Check whether --with-libs was given.
2324 if test "${with_libs+set}" = set; then
2328 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2329 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2330 { (exit 1); exit 1; }; }
2333 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2334 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2335 { (exit 1); exit 1; }; }
2338 LIBRARY_DIRS=$withval
2348 # 64-bit integer date/time storage: enabled by default.
2350 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2351 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2354 # Check whether --enable-integer-datetimes was given.
2355 if test "${enable_integer_datetimes+set}" = set; then
2356 enableval=$enable_integer_datetimes;
2360 cat >>confdefs.h <<\_ACEOF
2361 #define USE_INTEGER_DATETIMES 1
2369 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2370 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2371 { (exit 1); exit 1; }; }
2376 enable_integer_datetimes=yes
2378 cat >>confdefs.h <<\_ACEOF
2379 #define USE_INTEGER_DATETIMES 1
2385 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2386 $as_echo "$enable_integer_datetimes" >&6; }
2392 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2393 $as_echo_n "checking whether NLS is wanted... " >&6; }
2396 # Check whether --enable-nls was given.
2397 if test "${enable_nls+set}" = set; then
2398 enableval=$enable_nls;
2408 WANTED_LANGUAGES=$enableval
2418 if test "$enable_nls" = yes; then
2420 cat >>confdefs.h <<\_ACEOF
2421 #define ENABLE_NLS 1
2426 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2427 $as_echo "$enable_nls" >&6; }
2432 # Default port number (--with-pgport), default 5432
2434 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2435 $as_echo_n "checking for default port number... " >&6; }
2439 # Check whether --with-pgport was given.
2440 if test "${with_pgport+set}" = set; then
2441 withval=$with_pgport;
2444 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2445 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2446 { (exit 1); exit 1; }; }
2449 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2450 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2451 { (exit 1); exit 1; }; }
2454 default_port=$withval
2463 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2464 $as_echo "$default_port" >&6; }
2465 # Need both of these because some places want an integer and some a string
2467 cat >>confdefs.h <<_ACEOF
2468 #define DEF_PGPORT ${default_port}
2472 cat >>confdefs.h <<_ACEOF
2473 #define DEF_PGPORT_STR "${default_port}"
2479 # Option to disable shared libraries
2483 # Check whether --enable-shared was given.
2484 if test "${enable_shared+set}" = set; then
2485 enableval=$enable_shared;
2494 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2495 $as_echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2496 { (exit 1); exit 1; }; }
2509 # '-rpath'-like feature can be disabled
2513 # Check whether --enable-rpath was given.
2514 if test "${enable_rpath+set}" = set; then
2515 enableval=$enable_rpath;
2524 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2525 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2526 { (exit 1); exit 1; }; }
2543 # Check whether --enable-spinlocks was given.
2544 if test "${enable_spinlocks+set}" = set; then
2545 enableval=$enable_spinlocks;
2554 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2555 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2556 { (exit 1); exit 1; }; }
2561 enable_spinlocks=yes
2568 # --enable-debug adds -g to compiler flags
2572 # Check whether --enable-debug was given.
2573 if test "${enable_debug+set}" = set; then
2574 enableval=$enable_debug;
2583 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2584 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2585 { (exit 1); exit 1; }; }
2598 # --enable-profiling enables gcc profiling
2602 # Check whether --enable-profiling was given.
2603 if test "${enable_profiling+set}" = set; then
2604 enableval=$enable_profiling;
2613 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2614 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2615 { (exit 1); exit 1; }; }
2628 # --enable-coverage enables generation of code coverage metrics with gcov
2632 # Check whether --enable-coverage was given.
2633 if test "${enable_coverage+set}" = set; then
2634 enableval=$enable_coverage;
2639 # Extract the first word of "$ac_prog", so it can be a program name with args.
2640 set dummy $ac_prog; ac_word=$2
2641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2642 $as_echo_n "checking for $ac_word... " >&6; }
2643 if test "${ac_cv_prog_GCOV+set}" = set; then
2644 $as_echo_n "(cached) " >&6
2646 if test -n "$GCOV"; then
2647 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656 ac_cv_prog_GCOV="$ac_prog"
2657 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 GCOV=$ac_cv_prog_GCOV
2667 if test -n "$GCOV"; then
2668 { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2669 $as_echo "$GCOV" >&6; }
2671 { $as_echo "$as_me:$LINENO: result: no" >&5
2672 $as_echo "no" >&6; }
2676 test -n "$GCOV" && break
2679 if test -z "$GCOV"; then
2680 { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2681 $as_echo "$as_me: error: gcov not found" >&2;}
2682 { (exit 1); exit 1; }; }
2686 # Extract the first word of "$ac_prog", so it can be a program name with args.
2687 set dummy $ac_prog; ac_word=$2
2688 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2689 $as_echo_n "checking for $ac_word... " >&6; }
2690 if test "${ac_cv_prog_LCOV+set}" = set; then
2691 $as_echo_n "(cached) " >&6
2693 if test -n "$LCOV"; then
2694 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 test -z "$as_dir" && as_dir=.
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2703 ac_cv_prog_LCOV="$ac_prog"
2704 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2713 LCOV=$ac_cv_prog_LCOV
2714 if test -n "$LCOV"; then
2715 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2716 $as_echo "$LCOV" >&6; }
2718 { $as_echo "$as_me:$LINENO: result: no" >&5
2719 $as_echo "no" >&6; }
2723 test -n "$LCOV" && break
2726 if test -z "$LCOV"; then
2727 { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2728 $as_echo "$as_me: error: lcov not found" >&2;}
2729 { (exit 1); exit 1; }; }
2731 for ac_prog in genhtml
2733 # Extract the first word of "$ac_prog", so it can be a program name with args.
2734 set dummy $ac_prog; ac_word=$2
2735 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2736 $as_echo_n "checking for $ac_word... " >&6; }
2737 if test "${ac_cv_prog_GENHTML+set}" = set; then
2738 $as_echo_n "(cached) " >&6
2740 if test -n "$GENHTML"; then
2741 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 test -z "$as_dir" && as_dir=.
2748 for ac_exec_ext in '' $ac_executable_extensions; do
2749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2750 ac_cv_prog_GENHTML="$ac_prog"
2751 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2760 GENHTML=$ac_cv_prog_GENHTML
2761 if test -n "$GENHTML"; then
2762 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2763 $as_echo "$GENHTML" >&6; }
2765 { $as_echo "$as_me:$LINENO: result: no" >&5
2766 $as_echo "no" >&6; }
2770 test -n "$GENHTML" && break
2773 if test -z "$GENHTML"; then
2774 { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2775 $as_echo "$as_me: error: genhtml not found" >&2;}
2776 { (exit 1); exit 1; }; }
2783 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2784 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2785 { (exit 1); exit 1; }; }
2802 # Check whether --enable-dtrace was given.
2803 if test "${enable_dtrace+set}" = set; then
2804 enableval=$enable_dtrace;
2808 cat >>confdefs.h <<\_ACEOF
2809 #define ENABLE_DTRACE 1
2812 for ac_prog in dtrace
2814 # Extract the first word of "$ac_prog", so it can be a program name with args.
2815 set dummy $ac_prog; ac_word=$2
2816 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2817 $as_echo_n "checking for $ac_word... " >&6; }
2818 if test "${ac_cv_prog_DTRACE+set}" = set; then
2819 $as_echo_n "(cached) " >&6
2821 if test -n "$DTRACE"; then
2822 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 ac_cv_prog_DTRACE="$ac_prog"
2832 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 DTRACE=$ac_cv_prog_DTRACE
2842 if test -n "$DTRACE"; then
2843 { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2844 $as_echo "$DTRACE" >&6; }
2846 { $as_echo "$as_me:$LINENO: result: no" >&5
2847 $as_echo "no" >&6; }
2851 test -n "$DTRACE" && break
2854 if test -z "$DTRACE"; then
2855 { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2856 $as_echo "$as_me: error: dtrace not found" >&2;}
2857 { (exit 1); exit 1; }; }
2865 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2866 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2867 { (exit 1); exit 1; }; }
2882 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2883 $as_echo_n "checking for block size... " >&6; }
2887 # Check whether --with-blocksize was given.
2888 if test "${with_blocksize+set}" = set; then
2889 withval=$with_blocksize;
2892 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2893 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2894 { (exit 1); exit 1; }; }
2897 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2898 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2899 { (exit 1); exit 1; }; }
2911 case ${blocksize} in
2918 *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2919 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2920 { (exit 1); exit 1; }; }
2922 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2923 $as_echo "${blocksize}kB" >&6; }
2926 cat >>confdefs.h <<_ACEOF
2927 #define BLCKSZ ${BLCKSZ}
2932 # Relation segment size
2934 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2935 $as_echo_n "checking for segment size... " >&6; }
2939 # Check whether --with-segsize was given.
2940 if test "${with_segsize+set}" = set; then
2941 withval=$with_segsize;
2944 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2945 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2946 { (exit 1); exit 1; }; }
2949 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2950 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2951 { (exit 1); exit 1; }; }
2963 # this expression is set up to avoid unnecessary integer overflow
2964 # blocksize is already guaranteed to be a factor of 1024
2965 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2966 test $? -eq 0 || exit 1
2967 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2968 $as_echo "${segsize}GB" >&6; }
2971 cat >>confdefs.h <<_ACEOF
2972 #define RELSEG_SIZE ${RELSEG_SIZE}
2979 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2980 $as_echo_n "checking for WAL block size... " >&6; }
2984 # Check whether --with-wal-blocksize was given.
2985 if test "${with_wal_blocksize+set}" = set; then
2986 withval=$with_wal_blocksize;
2989 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2990 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2991 { (exit 1); exit 1; }; }
2994 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2995 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2996 { (exit 1); exit 1; }; }
2999 wal_blocksize=$withval
3008 case ${wal_blocksize} in
3009 1) XLOG_BLCKSZ=1024;;
3010 2) XLOG_BLCKSZ=2048;;
3011 4) XLOG_BLCKSZ=4096;;
3012 8) XLOG_BLCKSZ=8192;;
3013 16) XLOG_BLCKSZ=16384;;
3014 32) XLOG_BLCKSZ=32768;;
3015 64) XLOG_BLCKSZ=65536;;
3016 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
3017 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3018 { (exit 1); exit 1; }; }
3020 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
3021 $as_echo "${wal_blocksize}kB" >&6; }
3024 cat >>confdefs.h <<_ACEOF
3025 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3032 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
3033 $as_echo_n "checking for WAL segment size... " >&6; }
3037 # Check whether --with-wal-segsize was given.
3038 if test "${with_wal_segsize+set}" = set; then
3039 withval=$with_wal_segsize;
3042 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3043 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3044 { (exit 1); exit 1; }; }
3047 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3048 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3049 { (exit 1); exit 1; }; }
3052 wal_segsize=$withval
3061 case ${wal_segsize} in
3069 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3070 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3071 { (exit 1); exit 1; }; }
3073 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3074 $as_echo "${wal_segsize}MB" >&6; }
3077 cat >>confdefs.h <<_ACEOF
3078 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3086 # For historical reasons you can also use --with-CC to specify the C compiler
3087 # to use, although the standard way to do this is to set the CC environment
3092 # Check whether --with-CC was given.
3093 if test "${with_CC+set}" = set; then
3097 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3098 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3099 { (exit 1); exit 1; }; }
3102 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3103 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3104 { (exit 1); exit 1; }; }
3116 aix) pgac_cc_list="gcc xlc";;
3117 irix) pgac_cc_list="cc";; # no gcc
3118 *) pgac_cc_list="gcc cc";;
3122 ac_cpp='$CPP $CPPFLAGS'
3123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3126 if test -n "$ac_tool_prefix"; then
3127 for ac_prog in $pgac_cc_list
3129 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3130 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3131 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if test "${ac_cv_prog_CC+set}" = set; then
3134 $as_echo_n "(cached) " >&6
3136 if test -n "$CC"; then
3137 ac_cv_prog_CC="$CC" # Let the user override the test.
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 test -z "$as_dir" && as_dir=.
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3146 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3147 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 if test -n "$CC"; then
3158 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3159 $as_echo "$CC" >&6; }
3161 { $as_echo "$as_me:$LINENO: result: no" >&5
3162 $as_echo "no" >&6; }
3166 test -n "$CC" && break
3169 if test -z "$CC"; then
3171 for ac_prog in $pgac_cc_list
3173 # Extract the first word of "$ac_prog", so it can be a program name with args.
3174 set dummy $ac_prog; ac_word=$2
3175 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3178 $as_echo_n "(cached) " >&6
3180 if test -n "$ac_ct_CC"; then
3181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3190 ac_cv_prog_ac_ct_CC="$ac_prog"
3191 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3201 if test -n "$ac_ct_CC"; then
3202 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3203 $as_echo "$ac_ct_CC" >&6; }
3205 { $as_echo "$as_me:$LINENO: result: no" >&5
3206 $as_echo "no" >&6; }
3210 test -n "$ac_ct_CC" && break
3213 if test "x$ac_ct_CC" = x; then
3216 case $cross_compiling:$ac_tool_warned in
3218 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3220 ac_tool_warned=yes ;;
3227 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3229 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3230 See \`config.log' for more details." >&5
3231 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3232 See \`config.log' for more details." >&2;}
3233 { (exit 1); exit 1; }; }; }
3235 # Provide some information about the compiler.
3236 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3239 { (ac_try="$ac_compiler --version >&5"
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3245 $as_echo "$ac_try_echo") >&5
3246 (eval "$ac_compiler --version >&5") 2>&5
3248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }
3250 { (ac_try="$ac_compiler -v >&5"
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3256 $as_echo "$ac_try_echo") >&5
3257 (eval "$ac_compiler -v >&5") 2>&5
3259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); }
3261 { (ac_try="$ac_compiler -V >&5"
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3267 $as_echo "$ac_try_echo") >&5
3268 (eval "$ac_compiler -V >&5") 2>&5
3270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }
3273 cat >conftest.$ac_ext <<_ACEOF
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h. */
3288 ac_clean_files_save=$ac_clean_files
3289 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3290 # Try to create an executable without -o first, disregard a.out.
3291 # It will help us diagnose broken compilers, and finding out an intuition
3293 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3294 $as_echo_n "checking for C compiler default output file name... " >&6; }
3295 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3297 # The possible output files:
3298 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3301 for ac_file in $ac_files
3304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3305 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3310 if { (ac_try="$ac_link_default"
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3316 $as_echo "$ac_try_echo") >&5
3317 (eval "$ac_link_default") 2>&5
3319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; then
3321 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3322 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3323 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3324 # so that the user can short-circuit this test for compilers unknown to
3326 for ac_file in $ac_files ''
3328 test -f "$ac_file" || continue
3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3333 # We found the default executable, but exeext='' is most
3337 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3339 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3341 # We set ac_cv_exeext here because the later test for it is not
3342 # safe: cross compilers may not add the suffix if given an `-o'
3343 # argument, so we may need to know it at that point already.
3344 # Even if this section looks crufty: it has the advantage of
3351 test "$ac_cv_exeext" = no && ac_cv_exeext=
3357 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3358 $as_echo "$ac_file" >&6; }
3359 if test -z "$ac_file"; then
3360 $as_echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3363 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3366 See \`config.log' for more details." >&5
3367 $as_echo "$as_me: error: C compiler cannot create executables
3368 See \`config.log' for more details." >&2;}
3369 { (exit 77); exit 77; }; }; }
3372 ac_exeext=$ac_cv_exeext
3374 # Check that the compiler produces executables we can run. If not, either
3375 # the compiler is broken, or we cross compile.
3376 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3377 $as_echo_n "checking whether the C compiler works... " >&6; }
3378 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3379 # If not cross compiling, check that we can run a simple program.
3380 if test "$cross_compiling" != yes; then
3381 if { ac_try='./$ac_file'
3382 { (case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3387 $as_echo "$ac_try_echo") >&5
3388 (eval "$ac_try") 2>&5
3390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; }; then
3394 if test "$cross_compiling" = maybe; then
3397 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3400 If you meant to cross compile, use \`--host'.
3401 See \`config.log' for more details." >&5
3402 $as_echo "$as_me: error: cannot run C compiled programs.
3403 If you meant to cross compile, use \`--host'.
3404 See \`config.log' for more details." >&2;}
3405 { (exit 1); exit 1; }; }; }
3409 { $as_echo "$as_me:$LINENO: result: yes" >&5
3410 $as_echo "yes" >&6; }
3412 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3413 ac_clean_files=$ac_clean_files_save
3414 # Check that the compiler produces executables we can run. If not, either
3415 # the compiler is broken, or we cross compile.
3416 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3417 $as_echo_n "checking whether we are cross compiling... " >&6; }
3418 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3419 $as_echo "$cross_compiling" >&6; }
3421 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3422 $as_echo_n "checking for suffix of executables... " >&6; }
3423 if { (ac_try="$ac_link"
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3429 $as_echo "$ac_try_echo") >&5
3430 (eval "$ac_link") 2>&5
3432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; then
3434 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3435 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3436 # work properly (i.e., refer to `conftest.exe'), while it won't with
3438 for ac_file in conftest.exe conftest conftest.*; do
3439 test -f "$ac_file" || continue
3441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3442 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3448 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3451 See \`config.log' for more details." >&5
3452 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3453 See \`config.log' for more details." >&2;}
3454 { (exit 1); exit 1; }; }; }
3457 rm -f conftest$ac_cv_exeext
3458 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3459 $as_echo "$ac_cv_exeext" >&6; }
3461 rm -f conftest.$ac_ext
3462 EXEEXT=$ac_cv_exeext
3464 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3465 $as_echo_n "checking for suffix of object files... " >&6; }
3466 if test "${ac_cv_objext+set}" = set; then
3467 $as_echo_n "(cached) " >&6
3469 cat >conftest.$ac_ext <<_ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3484 rm -f conftest.o conftest.obj
3485 if { (ac_try="$ac_compile"
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3491 $as_echo "$ac_try_echo") >&5
3492 (eval "$ac_compile") 2>&5
3494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; then
3496 for ac_file in conftest.o conftest.obj conftest.*; do
3497 test -f "$ac_file" || continue;
3499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3500 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3505 $as_echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3508 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3511 See \`config.log' for more details." >&5
3512 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3513 See \`config.log' for more details." >&2;}
3514 { (exit 1); exit 1; }; }; }
3517 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3519 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3520 $as_echo "$ac_cv_objext" >&6; }
3521 OBJEXT=$ac_cv_objext
3523 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3524 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3525 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3526 $as_echo_n "(cached) " >&6
3528 cat >conftest.$ac_ext <<_ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3546 rm -f conftest.$ac_objext
3547 if { (ac_try="$ac_compile"
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3553 $as_echo "$ac_try_echo") >&5
3554 (eval "$ac_compile") 2>conftest.er1
3556 grep -v '^ *+' conftest.er1 >conftest.err
3558 cat conftest.err >&5
3559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); } && {
3561 test -z "$ac_c_werror_flag" ||
3562 test ! -s conftest.err
3563 } && test -s conftest.$ac_objext; then
3566 $as_echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3576 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3577 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3578 if test $ac_compiler_gnu = yes; then
3583 ac_test_CFLAGS=${CFLAGS+set}
3584 ac_save_CFLAGS=$CFLAGS
3585 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3586 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3587 if test "${ac_cv_prog_cc_g+set}" = set; then
3588 $as_echo_n "(cached) " >&6
3590 ac_save_c_werror_flag=$ac_c_werror_flag
3591 ac_c_werror_flag=yes
3594 cat >conftest.$ac_ext <<_ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3609 rm -f conftest.$ac_objext
3610 if { (ac_try="$ac_compile"
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3616 $as_echo "$ac_try_echo") >&5
3617 (eval "$ac_compile") 2>conftest.er1
3619 grep -v '^ *+' conftest.er1 >conftest.err
3621 cat conftest.err >&5
3622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); } && {
3624 test -z "$ac_c_werror_flag" ||
3625 test ! -s conftest.err
3626 } && test -s conftest.$ac_objext; then
3629 $as_echo "$as_me: failed program was:" >&5
3630 sed 's/^/| /' conftest.$ac_ext >&5
3633 cat >conftest.$ac_ext <<_ACEOF
3636 cat confdefs.h >>conftest.$ac_ext
3637 cat >>conftest.$ac_ext <<_ACEOF
3638 /* end confdefs.h. */
3648 rm -f conftest.$ac_objext
3649 if { (ac_try="$ac_compile"
3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3655 $as_echo "$ac_try_echo") >&5
3656 (eval "$ac_compile") 2>conftest.er1
3658 grep -v '^ *+' conftest.er1 >conftest.err
3660 cat conftest.err >&5
3661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); } && {
3663 test -z "$ac_c_werror_flag" ||
3664 test ! -s conftest.err
3665 } && test -s conftest.$ac_objext; then
3668 $as_echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.$ac_ext >&5
3671 ac_c_werror_flag=$ac_save_c_werror_flag
3673 cat >conftest.$ac_ext <<_ACEOF
3676 cat confdefs.h >>conftest.$ac_ext
3677 cat >>conftest.$ac_ext <<_ACEOF
3678 /* end confdefs.h. */
3688 rm -f conftest.$ac_objext
3689 if { (ac_try="$ac_compile"
3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692 *) ac_try_echo=$ac_try;;
3694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3695 $as_echo "$ac_try_echo") >&5
3696 (eval "$ac_compile") 2>conftest.er1
3698 grep -v '^ *+' conftest.er1 >conftest.err
3700 cat conftest.err >&5
3701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); } && {
3703 test -z "$ac_c_werror_flag" ||
3704 test ! -s conftest.err
3705 } && test -s conftest.$ac_objext; then
3708 $as_echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 ac_c_werror_flag=$ac_save_c_werror_flag
3723 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3724 $as_echo "$ac_cv_prog_cc_g" >&6; }
3725 if test "$ac_test_CFLAGS" = set; then
3726 CFLAGS=$ac_save_CFLAGS
3727 elif test $ac_cv_prog_cc_g = yes; then
3728 if test "$GCC" = yes; then
3734 if test "$GCC" = yes; then
3740 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3741 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3742 if test "${ac_cv_prog_cc_c89+set}" = set; then
3743 $as_echo_n "(cached) " >&6
3745 ac_cv_prog_cc_c89=no
3747 cat >conftest.$ac_ext <<_ACEOF
3750 cat confdefs.h >>conftest.$ac_ext
3751 cat >>conftest.$ac_ext <<_ACEOF
3752 /* end confdefs.h. */
3755 #include <sys/types.h>
3756 #include <sys/stat.h>
3757 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3758 struct buf { int x; };
3759 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3760 static char *e (p, i)
3766 static char *f (char * (*g) (char **, int), char **p, ...)
3771 s = g (p, va_arg (v,int));
3776 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3777 function prototypes and stuff, but not '\xHH' hex character constants.
3778 These don't provoke an error unfortunately, instead are silently treated
3779 as 'x'. The following induces an error, until -std is added to get
3780 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3781 array size at least. It's necessary to write '\x00'==0 to get something
3782 that's true only with -std. */
3783 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3785 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3786 inside strings and character constants. */
3788 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3790 int test (int i, double x);
3791 struct s1 {int (*f) (int a);};
3792 struct s2 {int (*f) (double a);};
3793 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3799 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3804 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3805 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3807 CC="$ac_save_CC $ac_arg"
3808 rm -f conftest.$ac_objext
3809 if { (ac_try="$ac_compile"
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3815 $as_echo "$ac_try_echo") >&5
3816 (eval "$ac_compile") 2>conftest.er1
3818 grep -v '^ *+' conftest.er1 >conftest.err
3820 cat conftest.err >&5
3821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); } && {
3823 test -z "$ac_c_werror_flag" ||
3824 test ! -s conftest.err
3825 } && test -s conftest.$ac_objext; then
3826 ac_cv_prog_cc_c89=$ac_arg
3828 $as_echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3834 rm -f core conftest.err conftest.$ac_objext
3835 test "x$ac_cv_prog_cc_c89" != "xno" && break
3837 rm -f conftest.$ac_ext
3842 case "x$ac_cv_prog_cc_c89" in
3844 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3845 $as_echo "none needed" >&6; } ;;
3847 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3848 $as_echo "unsupported" >&6; } ;;
3850 CC="$CC $ac_cv_prog_cc_c89"
3851 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3852 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3857 ac_cpp='$CPP $CPPFLAGS'
3858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3863 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3864 # but has idiosyncrasies of its own. We assume icc will define
3865 # __INTEL_COMPILER regardless of CFLAGS.
3867 cat >conftest.$ac_ext <<_ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h. */
3877 #ifndef __INTEL_COMPILER
3884 rm -f conftest.$ac_objext
3885 if { (ac_try="$ac_compile"
3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888 *) ac_try_echo=$ac_try;;
3890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3891 $as_echo "$ac_try_echo") >&5
3892 (eval "$ac_compile") 2>conftest.er1
3894 grep -v '^ *+' conftest.er1 >conftest.err
3896 cat conftest.err >&5
3897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); } && {
3899 test -z "$ac_c_werror_flag" ||
3900 test ! -s conftest.err
3901 } && test -s conftest.$ac_objext; then
3904 $as_echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912 # Check if it's Sun Studio compiler. We assume that
3913 # __SUNPRO_C will be defined for Sun Studio compilers
3914 cat >conftest.$ac_ext <<_ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3931 rm -f conftest.$ac_objext
3932 if { (ac_try="$ac_compile"
3934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935 *) ac_try_echo=$ac_try;;
3937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3938 $as_echo "$ac_try_echo") >&5
3939 (eval "$ac_compile") 2>conftest.er1
3941 grep -v '^ *+' conftest.er1 >conftest.err
3943 cat conftest.err >&5
3944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } && {
3946 test -z "$ac_c_werror_flag" ||
3947 test ! -s conftest.err
3948 } && test -s conftest.$ac_objext; then
3951 $as_echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 . "$srcdir/src/template/$template" || exit
3968 # CFLAGS are selected so:
3969 # If the user specifies something in the environment, that is used.
3970 # else: If the template file set something, that is used.
3971 # else: If coverage was enabled, don't set anything.
3972 # else: If the compiler is GCC, then we use -O2.
3973 # else: If the compiler is something else, then we use -O, unless debugging.
3975 if test "$ac_env_CFLAGS_set" = set; then
3976 CFLAGS=$ac_env_CFLAGS_value
3977 elif test "${CFLAGS+set}" = set; then
3978 : # (keep what template set)
3979 elif test "$enable_coverage" = yes; then
3980 : # no optimization by default
3981 elif test "$GCC" = yes; then
3984 # if the user selected debug mode, don't use -O
3985 if test "$enable_debug" != yes; then
3990 # Some versions of GCC support some additional useful warning flags.
3991 # Check whether they are supported, and add them to CFLAGS if so.
3992 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3993 # but has its own. Also check other compiler-specific flags here.
3995 if test "$GCC" = yes -a "$ICC" = no; then
3996 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3997 # These work in some but not all gcc versions
3998 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3999 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
4000 pgac_save_CFLAGS=$CFLAGS
4001 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4002 cat >conftest.$ac_ext <<_ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h. */
4017 rm -f conftest.$ac_objext
4018 if { (ac_try="$ac_compile"
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4024 $as_echo "$ac_try_echo") >&5
4025 (eval "$ac_compile") 2>conftest.er1
4027 grep -v '^ *+' conftest.er1 >conftest.err
4029 cat conftest.err >&5
4030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } && {
4032 test -z "$ac_c_werror_flag" ||
4033 test ! -s conftest.err
4034 } && test -s conftest.$ac_objext; then
4035 { $as_echo "$as_me:$LINENO: result: yes" >&5
4036 $as_echo "yes" >&6; }
4038 $as_echo "$as_me: failed program was:" >&5
4039 sed 's/^/| /' conftest.$ac_ext >&5
4041 CFLAGS="$pgac_save_CFLAGS"
4042 { $as_echo "$as_me:$LINENO: result: no" >&5
4043 $as_echo "no" >&6; }
4046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
4049 $as_echo_n "checking if $CC supports -Wendif-labels... " >&6; }
4050 pgac_save_CFLAGS=$CFLAGS
4051 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4052 cat >conftest.$ac_ext <<_ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4067 rm -f conftest.$ac_objext
4068 if { (ac_try="$ac_compile"
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4074 $as_echo "$ac_try_echo") >&5
4075 (eval "$ac_compile") 2>conftest.er1
4077 grep -v '^ *+' conftest.er1 >conftest.err
4079 cat conftest.err >&5
4080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } && {
4082 test -z "$ac_c_werror_flag" ||
4083 test ! -s conftest.err
4084 } && test -s conftest.$ac_objext; then
4085 { $as_echo "$as_me:$LINENO: result: yes" >&5
4086 $as_echo "yes" >&6; }
4088 $as_echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4091 CFLAGS="$pgac_save_CFLAGS"
4092 { $as_echo "$as_me:$LINENO: result: no" >&5
4093 $as_echo "no" >&6; }
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4098 # Disable strict-aliasing rules; needed for gcc 3.3+
4099 { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4100 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4101 pgac_save_CFLAGS=$CFLAGS
4102 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4103 cat >conftest.$ac_ext <<_ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */
4118 rm -f conftest.$ac_objext
4119 if { (ac_try="$ac_compile"
4121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122 *) ac_try_echo=$ac_try;;
4124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4125 $as_echo "$ac_try_echo") >&5
4126 (eval "$ac_compile") 2>conftest.er1
4128 grep -v '^ *+' conftest.er1 >conftest.err
4130 cat conftest.err >&5
4131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); } && {
4133 test -z "$ac_c_werror_flag" ||
4134 test ! -s conftest.err
4135 } && test -s conftest.$ac_objext; then
4136 { $as_echo "$as_me:$LINENO: result: yes" >&5
4137 $as_echo "yes" >&6; }
4139 $as_echo "$as_me: failed program was:" >&5
4140 sed 's/^/| /' conftest.$ac_ext >&5
4142 CFLAGS="$pgac_save_CFLAGS"
4143 { $as_echo "$as_me:$LINENO: result: no" >&5
4144 $as_echo "no" >&6; }
4147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4150 { $as_echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
4151 $as_echo_n "checking if $CC supports -fwrapv... " >&6; }
4152 pgac_save_CFLAGS=$CFLAGS
4153 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4154 cat >conftest.$ac_ext <<_ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4169 rm -f conftest.$ac_objext
4170 if { (ac_try="$ac_compile"
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4176 $as_echo "$ac_try_echo") >&5
4177 (eval "$ac_compile") 2>conftest.er1
4179 grep -v '^ *+' conftest.er1 >conftest.err
4181 cat conftest.err >&5
4182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } && {
4184 test -z "$ac_c_werror_flag" ||
4185 test ! -s conftest.err
4186 } && test -s conftest.$ac_objext; then
4187 { $as_echo "$as_me:$LINENO: result: yes" >&5
4188 $as_echo "yes" >&6; }
4190 $as_echo "$as_me: failed program was:" >&5
4191 sed 's/^/| /' conftest.$ac_ext >&5
4193 CFLAGS="$pgac_save_CFLAGS"
4194 { $as_echo "$as_me:$LINENO: result: no" >&5
4195 $as_echo "no" >&6; }
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 elif test "$ICC" = yes; then
4201 # Intel's compiler has a bug/misoptimization in checking for
4202 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4203 { $as_echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4204 $as_echo_n "checking if $CC supports -mp1... " >&6; }
4205 pgac_save_CFLAGS=$CFLAGS
4206 CFLAGS="$pgac_save_CFLAGS -mp1"
4207 cat >conftest.$ac_ext <<_ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h. */
4222 rm -f conftest.$ac_objext
4223 if { (ac_try="$ac_compile"
4225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226 *) ac_try_echo=$ac_try;;
4228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4229 $as_echo "$ac_try_echo") >&5
4230 (eval "$ac_compile") 2>conftest.er1
4232 grep -v '^ *+' conftest.er1 >conftest.err
4234 cat conftest.err >&5
4235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); } && {
4237 test -z "$ac_c_werror_flag" ||
4238 test ! -s conftest.err
4239 } && test -s conftest.$ac_objext; then
4240 { $as_echo "$as_me:$LINENO: result: yes" >&5
4241 $as_echo "yes" >&6; }
4243 $as_echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4246 CFLAGS="$pgac_save_CFLAGS"
4247 { $as_echo "$as_me:$LINENO: result: no" >&5
4248 $as_echo "no" >&6; }
4251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253 # Make sure strict aliasing is off (though this is said to be the default)
4254 { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4255 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4256 pgac_save_CFLAGS=$CFLAGS
4257 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4258 cat >conftest.$ac_ext <<_ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4273 rm -f conftest.$ac_objext
4274 if { (ac_try="$ac_compile"
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4280 $as_echo "$ac_try_echo") >&5
4281 (eval "$ac_compile") 2>conftest.er1
4283 grep -v '^ *+' conftest.er1 >conftest.err
4285 cat conftest.err >&5
4286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } && {
4288 test -z "$ac_c_werror_flag" ||
4289 test ! -s conftest.err
4290 } && test -s conftest.$ac_objext; then
4291 { $as_echo "$as_me:$LINENO: result: yes" >&5
4292 $as_echo "yes" >&6; }
4294 $as_echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4297 CFLAGS="$pgac_save_CFLAGS"
4298 { $as_echo "$as_me:$LINENO: result: no" >&5
4299 $as_echo "no" >&6; }
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4304 elif test "$PORTNAME" = "aix"; then
4305 # AIX's xlc has to have strict aliasing turned off too
4306 { $as_echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4307 $as_echo_n "checking if $CC supports -qnoansialias... " >&6; }
4308 pgac_save_CFLAGS=$CFLAGS
4309 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4310 cat >conftest.$ac_ext <<_ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4325 rm -f conftest.$ac_objext
4326 if { (ac_try="$ac_compile"
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4332 $as_echo "$ac_try_echo") >&5
4333 (eval "$ac_compile") 2>conftest.er1
4335 grep -v '^ *+' conftest.er1 >conftest.err
4337 cat conftest.err >&5
4338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); } && {
4340 test -z "$ac_c_werror_flag" ||
4341 test ! -s conftest.err
4342 } && test -s conftest.$ac_objext; then
4343 { $as_echo "$as_me:$LINENO: result: yes" >&5
4344 $as_echo "yes" >&6; }
4346 $as_echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4349 CFLAGS="$pgac_save_CFLAGS"
4350 { $as_echo "$as_me:$LINENO: result: no" >&5
4351 $as_echo "no" >&6; }
4354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4358 # supply -g if --enable-debug
4359 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4363 # enable code coverage if --enable-coverage
4364 if test "$enable_coverage" = yes; then
4365 if test "$GCC" = yes; then
4366 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4368 { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4369 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4370 { (exit 1); exit 1; }; }
4374 # enable profiling if --enable-profiling
4375 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4376 if test "$GCC" = yes; then
4378 cat >>confdefs.h <<\_ACEOF
4379 #define PROFILE_PID_DIR 1
4382 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4384 { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4385 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4386 { (exit 1); exit 1; }; }
4390 # We already have this in Makefile.win32, but configure needs it too
4391 if test "$PORTNAME" = "win32"; then
4392 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4395 # Check if the compiler still works with the template settings
4396 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4397 $as_echo_n "checking whether the C compiler still works... " >&6; }
4398 cat >conftest.$ac_ext <<_ACEOF
4401 cat confdefs.h >>conftest.$ac_ext
4402 cat >>conftest.$ac_ext <<_ACEOF
4403 /* end confdefs.h. */
4413 rm -f conftest.$ac_objext conftest$ac_exeext
4414 if { (ac_try="$ac_link"
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4420 $as_echo "$ac_try_echo") >&5
4421 (eval "$ac_link") 2>conftest.er1
4423 grep -v '^ *+' conftest.er1 >conftest.err
4425 cat conftest.err >&5
4426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); } && {
4428 test -z "$ac_c_werror_flag" ||
4429 test ! -s conftest.err
4430 } && test -s conftest$ac_exeext && {
4431 test "$cross_compiling" = yes ||
4432 $as_test_x conftest$ac_exeext
4434 { $as_echo "$as_me:$LINENO: result: yes" >&5
4435 $as_echo "yes" >&6; }
4437 $as_echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4440 { $as_echo "$as_me:$LINENO: result: no" >&5
4441 $as_echo "no" >&6; }
4442 { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4443 $as_echo "$as_me: error: cannot proceed" >&2;}
4444 { (exit 1); exit 1; }; }
4447 rm -rf conftest.dSYM
4448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4449 conftest$ac_exeext conftest.$ac_ext
4451 # Defend against gcc -ffast-math
4452 if test "$GCC" = yes; then
4453 cat >conftest.$ac_ext <<_ACEOF
4456 cat confdefs.h >>conftest.$ac_ext
4457 cat >>conftest.$ac_ext <<_ACEOF
4458 /* end confdefs.h. */
4463 #ifdef __FAST_MATH__
4470 rm -f conftest.$ac_objext
4471 if { (ac_try="$ac_compile"
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4477 $as_echo "$ac_try_echo") >&5
4478 (eval "$ac_compile") 2>conftest.er1
4480 grep -v '^ *+' conftest.er1 >conftest.err
4482 cat conftest.err >&5
4483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); } && {
4485 test -z "$ac_c_werror_flag" ||
4486 test ! -s conftest.err
4487 } && test -s conftest.$ac_objext; then
4490 $as_echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4493 { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4494 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4495 { (exit 1); exit 1; }; }
4498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4502 ac_cpp='$CPP $CPPFLAGS'
4503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4506 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4507 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4508 # On Suns, sometimes $CPP names a directory.
4509 if test -n "$CPP" && test -d "$CPP"; then
4512 if test -z "$CPP"; then
4513 if test "${ac_cv_prog_CPP+set}" = set; then
4514 $as_echo_n "(cached) " >&6
4516 # Double quotes because CPP needs to be expanded
4517 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4520 for ac_c_preproc_warn_flag in '' yes
4522 # Use a header file that comes with gcc, so configuring glibc
4523 # with a fresh cross-compiler works.
4524 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4525 # <limits.h> exists even on freestanding compilers.
4526 # On the NeXT, cc -E runs the code through the compiler's parser,
4527 # not just through cpp. "Syntax error" is here to catch this case.
4528 cat >conftest.$ac_ext <<_ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h. */
4535 # include <limits.h>
4537 # include <assert.h>
4541 if { (ac_try="$ac_cpp conftest.$ac_ext"
4543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544 *) ac_try_echo=$ac_try;;
4546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4547 $as_echo "$ac_try_echo") >&5
4548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4550 grep -v '^ *+' conftest.er1 >conftest.err
4552 cat conftest.err >&5
4553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } >/dev/null && {
4555 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4556 test ! -s conftest.err
4560 $as_echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4563 # Broken: fails on valid input.
4567 rm -f conftest.err conftest.$ac_ext
4569 # OK, works on sane cases. Now check whether nonexistent headers
4570 # can be detected and how.
4571 cat >conftest.$ac_ext <<_ACEOF
4574 cat confdefs.h >>conftest.$ac_ext
4575 cat >>conftest.$ac_ext <<_ACEOF
4576 /* end confdefs.h. */
4577 #include <ac_nonexistent.h>
4579 if { (ac_try="$ac_cpp conftest.$ac_ext"
4581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582 *) ac_try_echo=$ac_try;;
4584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4585 $as_echo "$ac_try_echo") >&5
4586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4588 grep -v '^ *+' conftest.er1 >conftest.err
4590 cat conftest.err >&5
4591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); } >/dev/null && {
4593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4594 test ! -s conftest.err
4596 # Broken: success on invalid input.
4599 $as_echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4602 # Passes both tests.
4607 rm -f conftest.err conftest.$ac_ext
4610 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4611 rm -f conftest.err conftest.$ac_ext
4612 if $ac_preproc_ok; then
4624 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4625 $as_echo "$CPP" >&6; }
4627 for ac_c_preproc_warn_flag in '' yes
4629 # Use a header file that comes with gcc, so configuring glibc
4630 # with a fresh cross-compiler works.
4631 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4632 # <limits.h> exists even on freestanding compilers.
4633 # On the NeXT, cc -E runs the code through the compiler's parser,
4634 # not just through cpp. "Syntax error" is here to catch this case.
4635 cat >conftest.$ac_ext <<_ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4642 # include <limits.h>
4644 # include <assert.h>
4648 if { (ac_try="$ac_cpp conftest.$ac_ext"
4650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651 *) ac_try_echo=$ac_try;;
4653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4654 $as_echo "$ac_try_echo") >&5
4655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4657 grep -v '^ *+' conftest.er1 >conftest.err
4659 cat conftest.err >&5
4660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } >/dev/null && {
4662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4663 test ! -s conftest.err
4667 $as_echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4670 # Broken: fails on valid input.
4674 rm -f conftest.err conftest.$ac_ext
4676 # OK, works on sane cases. Now check whether nonexistent headers
4677 # can be detected and how.
4678 cat >conftest.$ac_ext <<_ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4684 #include <ac_nonexistent.h>
4686 if { (ac_try="$ac_cpp conftest.$ac_ext"
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4692 $as_echo "$ac_try_echo") >&5
4693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4695 grep -v '^ *+' conftest.er1 >conftest.err
4697 cat conftest.err >&5
4698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } >/dev/null && {
4700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4701 test ! -s conftest.err
4703 # Broken: success on invalid input.
4706 $as_echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4709 # Passes both tests.
4714 rm -f conftest.err conftest.$ac_ext
4717 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4718 rm -f conftest.err conftest.$ac_ext
4719 if $ac_preproc_ok; then
4722 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4724 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4725 See \`config.log' for more details." >&5
4726 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4727 See \`config.log' for more details." >&2;}
4728 { (exit 1); exit 1; }; }; }
4732 ac_cpp='$CPP $CPPFLAGS'
4733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4741 # Set up TAS assembly code if needed; the template file has now had its
4742 # chance to request this.
4744 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4747 if test "$need_tas" = yes ; then
4756 # Automatic dependency tracking
4760 # Check whether --enable-depend was given.
4761 if test "${enable_depend+set}" = set; then
4762 enableval=$enable_depend;
4771 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4772 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4773 { (exit 1); exit 1; }; }
4787 # Enable assert checks
4791 # Check whether --enable-cassert was given.
4792 if test "${enable_cassert+set}" = set; then
4793 enableval=$enable_cassert;
4797 cat >>confdefs.h <<\_ACEOF
4798 #define USE_ASSERT_CHECKING 1
4806 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4807 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4808 { (exit 1); exit 1; }; }
4821 # Include directories
4824 IFS="${IFS}${PATH_SEPARATOR}"
4825 # SRCH_INC comes from the template file
4826 for dir in $with_includes $SRCH_INC; do
4827 if test -d "$dir"; then
4828 INCLUDES="$INCLUDES -I$dir"
4830 { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4831 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4839 # Library directories
4842 IFS="${IFS}${PATH_SEPARATOR}"
4843 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4844 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4845 if test -d "$dir"; then
4846 LIBDIRS="$LIBDIRS -L$dir"
4848 { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4849 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4855 # Enable thread-safe client libraries
4857 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4858 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
4861 # Check whether --enable-thread-safety was given.
4862 if test "${enable_thread_safety+set}" = set; then
4863 enableval=$enable_thread_safety;
4872 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4873 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4874 { (exit 1); exit 1; }; }
4879 enable_thread_safety=yes
4884 if test "$enable_thread_safety" = yes; then
4886 cat >>confdefs.h <<\_ACEOF
4887 #define ENABLE_THREAD_SAFETY 1
4891 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4892 $as_echo "$enable_thread_safety" >&6; }
4896 # Optionally build Tcl modules (PL/Tcl)
4898 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4899 $as_echo_n "checking whether to build with Tcl... " >&6; }
4903 # Check whether --with-tcl was given.
4904 if test "${with_tcl+set}" = set; then
4914 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4915 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4916 { (exit 1); exit 1; }; }
4926 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
4927 $as_echo "$with_tcl" >&6; }
4930 # We see if the path to the Tcl/Tk configuration scripts is specified.
4931 # This will override the use of tclsh to find the paths to search.
4936 # Check whether --with-tclconfig was given.
4937 if test "${with_tclconfig+set}" = set; then
4938 withval=$with_tclconfig;
4941 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4942 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4943 { (exit 1); exit 1; }; }
4946 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4947 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4948 { (exit 1); exit 1; }; }
4960 # Optionally build Perl modules (PL/Perl)
4962 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4963 $as_echo_n "checking whether to build Perl modules... " >&6; }
4967 # Check whether --with-perl was given.
4968 if test "${with_perl+set}" = set; then
4978 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4979 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4980 { (exit 1); exit 1; }; }
4990 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
4991 $as_echo "$with_perl" >&6; }
4995 # Optionally build Python modules (PL/Python)
4997 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4998 $as_echo_n "checking whether to build Python modules... " >&6; }
5002 # Check whether --with-python was given.
5003 if test "${with_python+set}" = set; then
5004 withval=$with_python;
5013 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5014 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5015 { (exit 1); exit 1; }; }
5025 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5026 $as_echo "$with_python" >&6; }
5032 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5033 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5037 # Check whether --with-gssapi was given.
5038 if test "${with_gssapi+set}" = set; then
5039 withval=$with_gssapi;
5044 cat >>confdefs.h <<\_ACEOF
5045 #define ENABLE_GSS 1
5048 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5055 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5056 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5057 { (exit 1); exit 1; }; }
5067 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5068 $as_echo "$with_gssapi" >&6; }
5074 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5075 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5079 # Check whether --with-krb5 was given.
5080 if test "${with_krb5+set}" = set; then
5086 cat >>confdefs.h <<\_ACEOF
5090 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5097 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5098 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5099 { (exit 1); exit 1; }; }
5109 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5110 $as_echo "$with_krb5" >&6; }
5118 # Kerberos configuration parameters
5123 # Check whether --with-krb-srvnam was given.
5124 if test "${with_krb_srvnam+set}" = set; then
5125 withval=$with_krb_srvnam;
5128 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5129 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5130 { (exit 1); exit 1; }; }
5133 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5134 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5135 { (exit 1); exit 1; }; }
5143 with_krb_srvnam="postgres"
5148 cat >>confdefs.h <<_ACEOF
5149 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5157 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5158 $as_echo_n "checking whether to build with PAM support... " >&6; }
5162 # Check whether --with-pam was given.
5163 if test "${with_pam+set}" = set; then
5168 cat >>confdefs.h <<\_ACEOF
5177 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5178 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5179 { (exit 1); exit 1; }; }
5189 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5190 $as_echo "$with_pam" >&6; }
5197 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5198 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5202 # Check whether --with-ldap was given.
5203 if test "${with_ldap+set}" = set; then
5208 cat >>confdefs.h <<\_ACEOF
5217 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5218 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5219 { (exit 1); exit 1; }; }
5229 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5230 $as_echo "$with_ldap" >&6; }
5237 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5238 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5242 # Check whether --with-bonjour was given.
5243 if test "${with_bonjour+set}" = set; then
5244 withval=$with_bonjour;
5248 cat >>confdefs.h <<\_ACEOF
5249 #define USE_BONJOUR 1
5257 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5258 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5259 { (exit 1); exit 1; }; }
5269 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5270 $as_echo "$with_bonjour" >&6; }
5277 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5278 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5282 # Check whether --with-openssl was given.
5283 if test "${with_openssl+set}" = set; then
5284 withval=$with_openssl;
5288 cat >>confdefs.h <<\_ACEOF
5297 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5298 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5299 { (exit 1); exit 1; }; }
5309 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5310 $as_echo "$with_openssl" >&6; }
5320 # Check whether --with-readline was given.
5321 if test "${with_readline+set}" = set; then
5322 withval=$with_readline;
5331 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5332 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5333 { (exit 1); exit 1; }; }
5343 # readline on MinGW has problems with backslashes in psql and other bugs.
5344 # This is particularly a problem with non-US code pages.
5345 # Therefore disable its use until we understand the cause. 2004-07-20
5346 if test "$PORTNAME" = "win32"; then
5347 if test "$with_readline" = yes; then
5348 { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5349 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5361 # Check whether --with-libedit-preferred was given.
5362 if test "${with_libedit_preferred+set}" = set; then
5363 withval=$with_libedit_preferred;
5372 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5373 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5374 { (exit 1); exit 1; }; }
5379 with_libedit_preferred=no
5392 # Check whether --with-ossp-uuid was given.
5393 if test "${with_ossp_uuid+set}" = set; then
5394 withval=$with_ossp_uuid;
5403 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5404 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5405 { (exit 1); exit 1; }; }
5424 # Check whether --with-libxml was given.
5425 if test "${with_libxml+set}" = set; then
5426 withval=$with_libxml;
5430 cat >>confdefs.h <<\_ACEOF
5431 #define USE_LIBXML 1
5439 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5440 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5441 { (exit 1); exit 1; }; }
5452 if test "$with_libxml" = yes ; then
5453 for ac_prog in xml2-config
5455 # Extract the first word of "$ac_prog", so it can be a program name with args.
5456 set dummy $ac_prog; ac_word=$2
5457 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5458 $as_echo_n "checking for $ac_word... " >&6; }
5459 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5460 $as_echo_n "(cached) " >&6
5462 if test -n "$XML2_CONFIG"; then
5463 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469 test -z "$as_dir" && as_dir=.
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5472 ac_cv_prog_XML2_CONFIG="$ac_prog"
5473 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5482 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5483 if test -n "$XML2_CONFIG"; then
5484 { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5485 $as_echo "$XML2_CONFIG" >&6; }
5487 { $as_echo "$as_me:$LINENO: result: no" >&5
5488 $as_echo "no" >&6; }
5492 test -n "$XML2_CONFIG" && break
5495 if test -n "$XML2_CONFIG"; then
5496 for pgac_option in `$XML2_CONFIG --cflags`; do
5497 case $pgac_option in
5498 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5501 for pgac_option in `$XML2_CONFIG --libs`; do
5502 case $pgac_option in
5503 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5517 # Check whether --with-libxslt was given.
5518 if test "${with_libxslt+set}" = set; then
5519 withval=$with_libxslt;
5523 cat >>confdefs.h <<\_ACEOF
5524 #define USE_LIBXSLT 1
5532 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5533 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5534 { (exit 1); exit 1; }; }
5554 # Check whether --with-system-tzdata was given.
5555 if test "${with_system_tzdata+set}" = set; then
5556 withval=$with_system_tzdata;
5559 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5560 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5561 { (exit 1); exit 1; }; }
5564 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5565 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5566 { (exit 1); exit 1; }; }
5584 # Check whether --with-zlib was given.
5585 if test "${with_zlib+set}" = set; then
5595 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5596 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5597 { (exit 1); exit 1; }; }
5613 # Assume system is ELF if it predefines __ELF__ as 1,
5614 # otherwise believe host_os based default.
5616 freebsd1*|freebsd2*) elf=no;;
5617 freebsd3*|freebsd4*) elf=yes;;
5621 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5622 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5623 if test "${ac_cv_path_GREP+set}" = set; then
5624 $as_echo_n "(cached) " >&6
5626 if test -z "$GREP"; then
5627 ac_path_GREP_found=false
5628 # Loop through the user's path and test for each of PROGNAME-LIST
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5633 test -z "$as_dir" && as_dir=.
5634 for ac_prog in grep ggrep; do
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5637 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5638 # Check for GNU ac_path_GREP and select it if it is found.
5639 # Check for GNU $ac_path_GREP
5640 case `"$ac_path_GREP" --version 2>&1` in
5642 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5645 $as_echo_n 0123456789 >"conftest.in"
5648 cat "conftest.in" "conftest.in" >"conftest.tmp"
5649 mv "conftest.tmp" "conftest.in"
5650 cp "conftest.in" "conftest.nl"
5651 $as_echo 'GREP' >> "conftest.nl"
5652 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5654 ac_count=`expr $ac_count + 1`
5655 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5656 # Best one so far, save it but keep looking for a better one
5657 ac_cv_path_GREP="$ac_path_GREP"
5658 ac_path_GREP_max=$ac_count
5660 # 10*(2^10) chars as input seems more than enough
5661 test $ac_count -gt 10 && break
5663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5666 $ac_path_GREP_found && break 3
5671 if test -z "$ac_cv_path_GREP"; then
5672 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5673 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5674 { (exit 1); exit 1; }; }
5677 ac_cv_path_GREP=$GREP
5681 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5682 $as_echo "$ac_cv_path_GREP" >&6; }
5683 GREP="$ac_cv_path_GREP"
5686 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5687 $as_echo_n "checking for egrep... " >&6; }
5688 if test "${ac_cv_path_EGREP+set}" = set; then
5689 $as_echo_n "(cached) " >&6
5691 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5692 then ac_cv_path_EGREP="$GREP -E"
5694 if test -z "$EGREP"; then
5695 ac_path_EGREP_found=false
5696 # Loop through the user's path and test for each of PROGNAME-LIST
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5701 test -z "$as_dir" && as_dir=.
5702 for ac_prog in egrep; do
5703 for ac_exec_ext in '' $ac_executable_extensions; do
5704 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5705 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5706 # Check for GNU ac_path_EGREP and select it if it is found.
5707 # Check for GNU $ac_path_EGREP
5708 case `"$ac_path_EGREP" --version 2>&1` in
5710 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5713 $as_echo_n 0123456789 >"conftest.in"
5716 cat "conftest.in" "conftest.in" >"conftest.tmp"
5717 mv "conftest.tmp" "conftest.in"
5718 cp "conftest.in" "conftest.nl"
5719 $as_echo 'EGREP' >> "conftest.nl"
5720 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5721 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5722 ac_count=`expr $ac_count + 1`
5723 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5724 # Best one so far, save it but keep looking for a better one
5725 ac_cv_path_EGREP="$ac_path_EGREP"
5726 ac_path_EGREP_max=$ac_count
5728 # 10*(2^10) chars as input seems more than enough
5729 test $ac_count -gt 10 && break
5731 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5734 $ac_path_EGREP_found && break 3
5739 if test -z "$ac_cv_path_EGREP"; then
5740 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5741 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5742 { (exit 1); exit 1; }; }
5745 ac_cv_path_EGREP=$EGREP
5750 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5751 $as_echo "$ac_cv_path_EGREP" >&6; }
5752 EGREP="$ac_cv_path_EGREP"
5755 cat >conftest.$ac_ext <<_ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h. */
5766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5767 $EGREP "yes" >/dev/null 2>&1; then
5770 if test "X$elf" = "Xyes" ; then
5784 CPPFLAGS="$CPPFLAGS $INCLUDES"
5785 LDFLAGS="$LDFLAGS $LIBDIRS"
5790 # Check whether --with-gnu-ld was given.
5791 if test "${with_gnu_ld+set}" = set; then
5792 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5798 if test "$GCC" = yes; then
5799 # Check if gcc -print-prog-name=ld gives a path.
5800 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5801 $as_echo_n "checking for ld used by GCC... " >&6; }
5804 # gcc leaves a trailing carriage return which upsets mingw
5805 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5807 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5810 # Accept absolute paths.
5811 [\\/]* | [A-Za-z]:[\\/]*)
5812 re_direlt='/[^/][^/]*/\.\./'
5813 # Canonicalize the path of ld
5814 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5815 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5816 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5818 test -z "$LD" && LD="$ac_prog"
5821 # If it fails, then pretend we aren't using GCC.
5825 # If it is relative, then search for the first ld in PATH.
5829 elif test "$with_gnu_ld" = yes; then
5830 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5831 $as_echo_n "checking for GNU ld... " >&6; }
5833 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5834 $as_echo_n "checking for non-GNU ld... " >&6; }
5836 if test "${ac_cv_path_LD+set}" = set; then
5837 $as_echo_n "(cached) " >&6
5839 if test -z "$LD"; then
5840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5841 for ac_dir in $PATH; do
5842 test -z "$ac_dir" && ac_dir=.
5843 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5844 ac_cv_path_LD="$ac_dir/$ac_prog"
5845 # Check to see if the program is GNU ld. I'd rather use --version,
5846 # but apparently some GNU ld's only accept -v.
5847 # Break only if it was the GNU/non-GNU ld that we prefer.
5848 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5849 test "$with_gnu_ld" != no && break
5851 test "$with_gnu_ld" != yes && break
5857 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5862 if test -n "$LD"; then
5863 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5864 $as_echo "$LD" >&6; }
5866 { $as_echo "$as_me:$LINENO: result: no" >&5
5867 $as_echo "no" >&6; }
5869 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5870 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5871 { (exit 1); exit 1; }; }
5872 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5873 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5874 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5875 $as_echo_n "(cached) " >&6
5877 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5878 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5879 ac_cv_prog_gnu_ld=yes
5881 ac_cv_prog_gnu_ld=no
5884 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5885 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
5886 with_gnu_ld=$ac_cv_prog_gnu_ld
5891 case $host_os in sysv5*)
5892 { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
5893 $as_echo_n "checking whether ld -R works... " >&6; }
5894 if test "${pgac_cv_prog_ld_R+set}" = set; then
5895 $as_echo_n "(cached) " >&6
5898 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5899 cat >conftest.$ac_ext <<_ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5914 rm -f conftest.$ac_objext conftest$ac_exeext
5915 if { (ac_try="$ac_link"
5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918 *) ac_try_echo=$ac_try;;
5920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5921 $as_echo "$ac_try_echo") >&5
5922 (eval "$ac_link") 2>conftest.er1
5924 grep -v '^ *+' conftest.er1 >conftest.err
5926 cat conftest.err >&5
5927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } && {
5929 test -z "$ac_c_werror_flag" ||
5930 test ! -s conftest.err
5931 } && test -s conftest$ac_exeext && {
5932 test "$cross_compiling" = yes ||
5933 $as_test_x conftest$ac_exeext
5935 pgac_cv_prog_ld_R=yes
5937 $as_echo "$as_me: failed program was:" >&5
5938 sed 's/^/| /' conftest.$ac_ext >&5
5940 pgac_cv_prog_ld_R=no
5943 rm -rf conftest.dSYM
5944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5945 conftest$ac_exeext conftest.$ac_ext
5946 LDFLAGS=$pgac_save_LDFLAGS
5949 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5950 $as_echo "$pgac_cv_prog_ld_R" >&6; }
5951 ld_R_works=$pgac_cv_prog_ld_R
5954 if test -n "$ac_tool_prefix"; then
5955 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5956 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5957 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5958 $as_echo_n "checking for $ac_word... " >&6; }
5959 if test "${ac_cv_prog_RANLIB+set}" = set; then
5960 $as_echo_n "(cached) " >&6
5962 if test -n "$RANLIB"; then
5963 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5972 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5973 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5982 RANLIB=$ac_cv_prog_RANLIB
5983 if test -n "$RANLIB"; then
5984 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5985 $as_echo "$RANLIB" >&6; }
5987 { $as_echo "$as_me:$LINENO: result: no" >&5
5988 $as_echo "no" >&6; }
5993 if test -z "$ac_cv_prog_RANLIB"; then
5994 ac_ct_RANLIB=$RANLIB
5995 # Extract the first word of "ranlib", so it can be a program name with args.
5996 set dummy ranlib; ac_word=$2
5997 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5998 $as_echo_n "checking for $ac_word... " >&6; }
5999 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6000 $as_echo_n "(cached) " >&6
6002 if test -n "$ac_ct_RANLIB"; then
6003 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 test -z "$as_dir" && as_dir=.
6010 for ac_exec_ext in '' $ac_executable_extensions; do
6011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6012 ac_cv_prog_ac_ct_RANLIB="ranlib"
6013 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6023 if test -n "$ac_ct_RANLIB"; then
6024 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6025 $as_echo "$ac_ct_RANLIB" >&6; }
6027 { $as_echo "$as_me:$LINENO: result: no" >&5
6028 $as_echo "no" >&6; }
6031 if test "x$ac_ct_RANLIB" = x; then
6034 case $cross_compiling:$ac_tool_warned in
6036 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6038 ac_tool_warned=yes ;;
6040 RANLIB=$ac_ct_RANLIB
6043 RANLIB="$ac_cv_prog_RANLIB"
6047 if test -n "$ac_tool_prefix"; then
6048 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6049 set dummy ${ac_tool_prefix}strip; ac_word=$2
6050 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6051 $as_echo_n "checking for $ac_word... " >&6; }
6052 if test "${ac_cv_prog_STRIP+set}" = set; then
6053 $as_echo_n "(cached) " >&6
6055 if test -n "$STRIP"; then
6056 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6065 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6066 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6075 STRIP=$ac_cv_prog_STRIP
6076 if test -n "$STRIP"; then
6077 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6078 $as_echo "$STRIP" >&6; }
6080 { $as_echo "$as_me:$LINENO: result: no" >&5
6081 $as_echo "no" >&6; }
6086 if test -z "$ac_cv_prog_STRIP"; then
6088 # Extract the first word of "strip", so it can be a program name with args.
6089 set dummy strip; ac_word=$2
6090 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6091 $as_echo_n "checking for $ac_word... " >&6; }
6092 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6093 $as_echo_n "(cached) " >&6
6095 if test -n "$ac_ct_STRIP"; then
6096 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 test -z "$as_dir" && as_dir=.
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6105 ac_cv_prog_ac_ct_STRIP="strip"
6106 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6115 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6116 if test -n "$ac_ct_STRIP"; then
6117 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6118 $as_echo "$ac_ct_STRIP" >&6; }
6120 { $as_echo "$as_me:$LINENO: result: no" >&5
6121 $as_echo "no" >&6; }
6124 if test "x$ac_ct_STRIP" = x; then
6127 case $cross_compiling:$ac_tool_warned in
6129 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6131 ac_tool_warned=yes ;;
6136 STRIP="$ac_cv_prog_STRIP"
6140 { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6141 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6142 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6143 STRIP_STATIC_LIB="$STRIP -x"
6144 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6145 { $as_echo "$as_me:$LINENO: result: yes" >&5
6146 $as_echo "yes" >&6; }
6150 { $as_echo "$as_me:$LINENO: result: no" >&5
6151 $as_echo "no" >&6; }
6156 if test -n "$ac_tool_prefix"; then
6157 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6158 set dummy ${ac_tool_prefix}ar; ac_word=$2
6159 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6160 $as_echo_n "checking for $ac_word... " >&6; }
6161 if test "${ac_cv_prog_AR+set}" = set; then
6162 $as_echo_n "(cached) " >&6
6164 if test -n "$AR"; then
6165 ac_cv_prog_AR="$AR" # Let the user override the test.
6167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171 test -z "$as_dir" && as_dir=.
6172 for ac_exec_ext in '' $ac_executable_extensions; do
6173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6174 ac_cv_prog_AR="${ac_tool_prefix}ar"
6175 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6185 if test -n "$AR"; then
6186 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6187 $as_echo "$AR" >&6; }
6189 { $as_echo "$as_me:$LINENO: result: no" >&5
6190 $as_echo "no" >&6; }
6195 if test -z "$ac_cv_prog_AR"; then
6197 # Extract the first word of "ar", so it can be a program name with args.
6198 set dummy ar; ac_word=$2
6199 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6200 $as_echo_n "checking for $ac_word... " >&6; }
6201 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6202 $as_echo_n "(cached) " >&6
6204 if test -n "$ac_ct_AR"; then
6205 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 test -z "$as_dir" && as_dir=.
6212 for ac_exec_ext in '' $ac_executable_extensions; do
6213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6214 ac_cv_prog_ac_ct_AR="ar"
6215 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6224 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6225 if test -n "$ac_ct_AR"; then
6226 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6227 $as_echo "$ac_ct_AR" >&6; }
6229 { $as_echo "$as_me:$LINENO: result: no" >&5
6230 $as_echo "no" >&6; }
6233 if test "x$ac_ct_AR" = x; then
6236 case $cross_compiling:$ac_tool_warned in
6238 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6240 ac_tool_warned=yes ;;
6248 if test "$PORTNAME" = "win32"; then
6249 if test -n "$ac_tool_prefix"; then
6250 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6251 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6252 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6255 $as_echo_n "(cached) " >&6
6257 if test -n "$DLLTOOL"; then
6258 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6268 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 DLLTOOL=$ac_cv_prog_DLLTOOL
6278 if test -n "$DLLTOOL"; then
6279 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6280 $as_echo "$DLLTOOL" >&6; }
6282 { $as_echo "$as_me:$LINENO: result: no" >&5
6283 $as_echo "no" >&6; }
6288 if test -z "$ac_cv_prog_DLLTOOL"; then
6289 ac_ct_DLLTOOL=$DLLTOOL
6290 # Extract the first word of "dlltool", so it can be a program name with args.
6291 set dummy dlltool; ac_word=$2
6292 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6293 $as_echo_n "checking for $ac_word... " >&6; }
6294 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6295 $as_echo_n "(cached) " >&6
6297 if test -n "$ac_ct_DLLTOOL"; then
6298 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 test -z "$as_dir" && as_dir=.
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6307 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6308 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6318 if test -n "$ac_ct_DLLTOOL"; then
6319 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6320 $as_echo "$ac_ct_DLLTOOL" >&6; }
6322 { $as_echo "$as_me:$LINENO: result: no" >&5
6323 $as_echo "no" >&6; }
6326 if test "x$ac_ct_DLLTOOL" = x; then
6329 case $cross_compiling:$ac_tool_warned in
6331 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6333 ac_tool_warned=yes ;;
6335 DLLTOOL=$ac_ct_DLLTOOL
6338 DLLTOOL="$ac_cv_prog_DLLTOOL"
6341 if test -n "$ac_tool_prefix"; then
6342 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6343 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6344 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6345 $as_echo_n "checking for $ac_word... " >&6; }
6346 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6347 $as_echo_n "(cached) " >&6
6349 if test -n "$DLLWRAP"; then
6350 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 test -z "$as_dir" && as_dir=.
6357 for ac_exec_ext in '' $ac_executable_extensions; do
6358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6359 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6360 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6369 DLLWRAP=$ac_cv_prog_DLLWRAP
6370 if test -n "$DLLWRAP"; then
6371 { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6372 $as_echo "$DLLWRAP" >&6; }
6374 { $as_echo "$as_me:$LINENO: result: no" >&5
6375 $as_echo "no" >&6; }
6380 if test -z "$ac_cv_prog_DLLWRAP"; then
6381 ac_ct_DLLWRAP=$DLLWRAP
6382 # Extract the first word of "dllwrap", so it can be a program name with args.
6383 set dummy dllwrap; ac_word=$2
6384 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6385 $as_echo_n "checking for $ac_word... " >&6; }
6386 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6387 $as_echo_n "(cached) " >&6
6389 if test -n "$ac_ct_DLLWRAP"; then
6390 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 test -z "$as_dir" && as_dir=.
6397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6399 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6400 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6409 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6410 if test -n "$ac_ct_DLLWRAP"; then
6411 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6412 $as_echo "$ac_ct_DLLWRAP" >&6; }
6414 { $as_echo "$as_me:$LINENO: result: no" >&5
6415 $as_echo "no" >&6; }
6418 if test "x$ac_ct_DLLWRAP" = x; then
6421 case $cross_compiling:$ac_tool_warned in
6423 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6425 ac_tool_warned=yes ;;
6427 DLLWRAP=$ac_ct_DLLWRAP
6430 DLLWRAP="$ac_cv_prog_DLLWRAP"
6433 if test -n "$ac_tool_prefix"; then
6434 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6435 set dummy ${ac_tool_prefix}windres; ac_word=$2
6436 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6437 $as_echo_n "checking for $ac_word... " >&6; }
6438 if test "${ac_cv_prog_WINDRES+set}" = set; then
6439 $as_echo_n "(cached) " >&6
6441 if test -n "$WINDRES"; then
6442 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 test -z "$as_dir" && as_dir=.
6449 for ac_exec_ext in '' $ac_executable_extensions; do
6450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6451 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6452 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 WINDRES=$ac_cv_prog_WINDRES
6462 if test -n "$WINDRES"; then
6463 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6464 $as_echo "$WINDRES" >&6; }
6466 { $as_echo "$as_me:$LINENO: result: no" >&5
6467 $as_echo "no" >&6; }
6472 if test -z "$ac_cv_prog_WINDRES"; then
6473 ac_ct_WINDRES=$WINDRES
6474 # Extract the first word of "windres", so it can be a program name with args.
6475 set dummy windres; ac_word=$2
6476 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6479 $as_echo_n "(cached) " >&6
6481 if test -n "$ac_ct_WINDRES"; then
6482 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6491 ac_cv_prog_ac_ct_WINDRES="windres"
6492 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6502 if test -n "$ac_ct_WINDRES"; then
6503 { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6504 $as_echo "$ac_ct_WINDRES" >&6; }
6506 { $as_echo "$as_me:$LINENO: result: no" >&5
6507 $as_echo "no" >&6; }
6510 if test "x$ac_ct_WINDRES" = x; then
6513 case $cross_compiling:$ac_tool_warned in
6515 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6517 ac_tool_warned=yes ;;
6519 WINDRES=$ac_ct_WINDRES
6522 WINDRES="$ac_cv_prog_WINDRES"
6527 # Extract the first word of "tar", so it can be a program name with args.
6528 set dummy tar; ac_word=$2
6529 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6530 $as_echo_n "checking for $ac_word... " >&6; }
6531 if test "${ac_cv_path_TAR+set}" = set; then
6532 $as_echo_n "(cached) " >&6
6536 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6546 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6547 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 if test -n "$TAR"; then
6559 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6560 $as_echo "$TAR" >&6; }
6562 { $as_echo "$as_me:$LINENO: result: no" >&5
6563 $as_echo "no" >&6; }
6567 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6568 $as_echo_n "checking whether ln -s works... " >&6; }
6570 if test "$LN_S" = "ln -s"; then
6571 { $as_echo "$as_me:$LINENO: result: yes" >&5
6572 $as_echo "yes" >&6; }
6574 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6575 $as_echo "no, using $LN_S" >&6; }
6578 for ac_prog in gawk mawk nawk awk
6580 # Extract the first word of "$ac_prog", so it can be a program name with args.
6581 set dummy $ac_prog; ac_word=$2
6582 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6583 $as_echo_n "checking for $ac_word... " >&6; }
6584 if test "${ac_cv_prog_AWK+set}" = set; then
6585 $as_echo_n "(cached) " >&6
6587 if test -n "$AWK"; then
6588 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597 ac_cv_prog_AWK="$ac_prog"
6598 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 if test -n "$AWK"; then
6609 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6610 $as_echo "$AWK" >&6; }
6612 { $as_echo "$as_me:$LINENO: result: no" >&5
6613 $as_echo "no" >&6; }
6617 test -n "$AWK" && break
6620 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6621 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6622 if test -z "$MKDIR_P"; then
6623 if test "${ac_cv_path_mkdir+set}" = set; then
6624 $as_echo_n "(cached) " >&6
6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6630 test -z "$as_dir" && as_dir=.
6631 for ac_prog in mkdir gmkdir; do
6632 for ac_exec_ext in '' $ac_executable_extensions; do
6633 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6634 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6635 'mkdir (GNU coreutils) '* | \
6636 'mkdir (coreutils) '* | \
6637 'mkdir (fileutils) '4.1*)
6638 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6648 if test "${ac_cv_path_mkdir+set}" = set; then
6649 MKDIR_P="$ac_cv_path_mkdir -p"
6651 # As a last resort, use the slow shell script. Don't cache a
6652 # value for MKDIR_P within a source directory, because that will
6653 # break other packages using the cache if that directory is
6654 # removed, or if the value is a relative name.
6655 test -d ./--version && rmdir ./--version
6656 MKDIR_P="$ac_install_sh -d"
6659 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
6660 $as_echo "$MKDIR_P" >&6; }
6662 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
6663 # a relative path to it in each makefile where it subsitutes it. This clashes
6664 # with our Makefile.global concept. This workaround helps.
6666 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
6669 # Let the user override the search
6670 if test -z "$BISON"; then
6671 for ac_prog in bison
6673 # Extract the first word of "$ac_prog", so it can be a program name with args.
6674 set dummy $ac_prog; ac_word=$2
6675 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if test "${ac_cv_path_BISON+set}" = set; then
6678 $as_echo_n "(cached) " >&6
6682 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 test -z "$as_dir" && as_dir=.
6690 for ac_exec_ext in '' $ac_executable_extensions; do
6691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6692 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6693 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6703 BISON=$ac_cv_path_BISON
6704 if test -n "$BISON"; then
6705 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6706 $as_echo "$BISON" >&6; }
6708 { $as_echo "$as_me:$LINENO: result: no" >&5
6709 $as_echo "no" >&6; }
6713 test -n "$BISON" && break
6718 if test "$BISON"; then
6719 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6720 { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6721 $as_echo "$as_me: using $pgac_bison_version" >&6;}
6722 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6724 { $as_echo "$as_me:$LINENO: WARNING:
6725 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6726 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
6727 $as_echo "$as_me: WARNING:
6728 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6729 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
6734 if test -z "$BISON"; then
6735 { $as_echo "$as_me:$LINENO: WARNING:
6736 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6737 *** change any of the parser definition files. You can obtain Bison from
6738 *** a GNU mirror site. (If you are using the official distribution of
6739 *** PostgreSQL then you do not need to worry about this, because the Bison
6740 *** output is pre-generated.)" >&5
6741 $as_echo "$as_me: WARNING:
6742 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6743 *** change any of the parser definition files. You can obtain Bison from
6744 *** a GNU mirror site. (If you are using the official distribution of
6745 *** PostgreSQL then you do not need to worry about this, because the Bison
6746 *** output is pre-generated.)" >&2;}
6748 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6751 { $as_echo "$as_me:$LINENO: checking for flex" >&5
6752 $as_echo_n "checking for flex... " >&6; }
6753 if test "${pgac_cv_path_flex+set}" = set; then
6754 $as_echo_n "(cached) " >&6
6756 # Let the user override the test
6757 if test -n "$FLEX"; then
6758 pgac_cv_path_flex=$FLEX
6762 for pgac_dir in $PATH; do
6764 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6767 for pgac_prog in flex lex; do
6768 pgac_candidate="$pgac_dir/$pgac_prog"
6769 if test -f "$pgac_candidate" \
6770 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6772 echo '%%' > conftest.l
6773 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6774 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
6775 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
6777 pgac_cv_path_flex=$pgac_candidate
6780 { $as_echo "$as_me:$LINENO: WARNING:
6781 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6782 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
6783 $as_echo "$as_me: WARNING:
6784 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6785 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
6791 rm -f conftest.l lex.yy.c
6792 : ${pgac_cv_path_flex=no}
6796 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6797 $as_echo "$pgac_cv_path_flex" >&6; }
6798 if test x"$pgac_cv_path_flex" = x"no"; then
6799 { $as_echo "$as_me:$LINENO: WARNING:
6800 *** Without Flex you will not be able to build PostgreSQL from CVS nor
6801 *** change any of the scanner definition files. You can obtain Flex from
6802 *** a GNU mirror site. (If you are using the official distribution of
6803 *** PostgreSQL then you do not need to worry about this because the Flex
6804 *** output is pre-generated.)" >&5
6805 $as_echo "$as_me: WARNING:
6806 *** Without Flex you will not be able to build PostgreSQL from CVS nor
6807 *** change any of the scanner definition files. You can obtain Flex from
6808 *** a GNU mirror site. (If you are using the official distribution of
6809 *** PostgreSQL then you do not need to worry about this because the Flex
6810 *** output is pre-generated.)" >&2;}
6814 FLEX=$pgac_cv_path_flex
6815 pgac_flex_version=`$FLEX --version 2>/dev/null`
6816 { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6817 $as_echo "$as_me: using $pgac_flex_version" >&6;}
6824 # Let the user override the search
6825 if test -z "$PERL"; then
6826 # Extract the first word of "perl", so it can be a program name with args.
6827 set dummy perl; ac_word=$2
6828 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6829 $as_echo_n "checking for $ac_word... " >&6; }
6830 if test "${ac_cv_path_PERL+set}" = set; then
6831 $as_echo_n "(cached) " >&6
6835 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 test -z "$as_dir" && as_dir=.
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6845 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6846 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6856 PERL=$ac_cv_path_PERL
6857 if test -n "$PERL"; then
6858 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
6859 $as_echo "$PERL" >&6; }
6861 { $as_echo "$as_me:$LINENO: result: no" >&5
6862 $as_echo "no" >&6; }
6868 if test "$PERL"; then
6869 pgac_perl_version=`$PERL -v 2>/dev/null | sed -n 's/This is perl.*v[a-z ]*\([0-9]\.[0-9][0-9.]*\).*$/\1/p'`
6870 { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
6871 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
6872 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
6873 $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
6875 { $as_echo "$as_me:$LINENO: WARNING:
6876 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
6877 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
6878 $as_echo "$as_me: WARNING:
6879 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
6880 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
6885 if test -z "$PERL"; then
6886 { $as_echo "$as_me:$LINENO: WARNING:
6887 *** Without Perl you will not be able to build PostgreSQL from CVS.
6888 *** You can obtain Perl from any CPAN mirror site.
6889 *** (If you are using the official distribution of PostgreSQL then you do not
6890 *** need to worry about this, because the Perl output is pre-generated.)" >&5
6891 $as_echo "$as_me: WARNING:
6892 *** Without Perl you will not be able to build PostgreSQL from CVS.
6893 *** You can obtain Perl from any CPAN mirror site.
6894 *** (If you are using the official distribution of PostgreSQL then you do not
6895 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
6898 if test "$with_perl" = yes; then
6899 if test -z "$PERL"; then
6900 { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
6901 $as_echo "$as_me: error: Perl not found" >&2;}
6902 { (exit 1); exit 1; }; }
6905 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6906 $as_echo_n "checking for Perl archlibexp... " >&6; }
6907 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6908 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6909 $as_echo "$perl_archlibexp" >&6; }
6910 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6911 $as_echo_n "checking for Perl privlibexp... " >&6; }
6912 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6913 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6914 $as_echo "$perl_privlibexp" >&6; }
6915 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6916 $as_echo_n "checking for Perl useshrplib... " >&6; }
6917 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6918 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6919 $as_echo "$perl_useshrplib" >&6; }
6921 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6922 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
6923 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6924 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6925 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
6926 if test -z "$perl_embed_ldflags" ; then
6927 { $as_echo "$as_me:$LINENO: result: no" >&5
6928 $as_echo "no" >&6; }
6929 { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6930 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6932 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
6933 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6935 { (exit 1); exit 1; }; }
6937 { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6938 $as_echo "$perl_embed_ldflags" >&6; }
6943 if test "$with_python" = yes; then
6944 # Extract the first word of "python", so it can be a program name with args.
6945 set dummy python; ac_word=$2
6946 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6947 $as_echo_n "checking for $ac_word... " >&6; }
6948 if test "${ac_cv_path_PYTHON+set}" = set; then
6949 $as_echo_n "(cached) " >&6
6953 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 test -z "$as_dir" && as_dir=.
6961 for ac_exec_ext in '' $ac_executable_extensions; do
6962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6963 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6964 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 PYTHON=$ac_cv_path_PYTHON
6975 if test -n "$PYTHON"; then
6976 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
6977 $as_echo "$PYTHON" >&6; }
6979 { $as_echo "$as_me:$LINENO: result: no" >&5
6980 $as_echo "no" >&6; }
6984 if test x"$PYTHON" = x""; then
6985 { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
6986 $as_echo "$as_me: error: Python not found" >&2;}
6987 { (exit 1); exit 1; }; }
6991 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
6992 $as_echo_n "checking for Python distutils module... " >&6; }
6993 if "${PYTHON}" -c 'import distutils' 2>&5
6995 { $as_echo "$as_me:$LINENO: result: yes" >&5
6996 $as_echo "yes" >&6; }
6998 { $as_echo "$as_me:$LINENO: result: no" >&5
6999 $as_echo "no" >&6; }
7000 { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7001 $as_echo "$as_me: error: distutils module not found" >&2;}
7002 { (exit 1); exit 1; }; }
7004 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7005 $as_echo_n "checking Python configuration directory... " >&6; }
7006 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7007 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7008 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'))"`
7009 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7011 # This should be enough of a message.
7012 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7013 $as_echo "$python_configdir" >&6; }
7016 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7017 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7019 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7020 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7021 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7022 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7024 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7026 # New way: use the official shared library
7027 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7028 python_libspec="-L${python_libdir} -l${ldlibrary}"
7030 # Old way: use libpython from python_configdir
7031 python_libdir="${python_configdir}"
7032 python_libspec="-L${python_libdir} -lpython${python_version}"
7035 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7037 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7038 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7041 # threaded python is not supported on bsd's
7042 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7043 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7044 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7045 if test "$pythreads" = "1"; then
7046 { $as_echo "$as_me:$LINENO: result: yes" >&5
7047 $as_echo "yes" >&6; }
7050 { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7051 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7052 { (exit 1); exit 1; }; }
7056 { $as_echo "$as_me:$LINENO: result: no" >&5
7057 $as_echo "no" >&6; }
7063 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7064 # Extract the first word of "zic", so it can be a program name with args.
7065 set dummy zic; ac_word=$2
7066 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if test "${ac_cv_path_ZIC+set}" = set; then
7069 $as_echo_n "(cached) " >&6
7073 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7084 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 if test -n "$ZIC"; then
7096 { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7097 $as_echo "$ZIC" >&6; }
7099 { $as_echo "$as_me:$LINENO: result: no" >&5
7100 $as_echo "no" >&6; }
7104 if test -z "$ZIC"; then
7105 { { $as_echo "$as_me:$LINENO: error:
7106 When cross-compiling, either use the option --with-system-tzdata to use
7107 existing time-zone data, or set the environment variable ZIC to a zic
7108 program to use during the build." >&5
7109 $as_echo "$as_me: error:
7110 When cross-compiling, either use the option --with-system-tzdata to use
7111 existing time-zone data, or set the environment variable ZIC to a zic
7112 program to use during the build." >&2;}
7113 { (exit 1); exit 1; }; }
7121 ## Most libraries are included only if they demonstrably provide a function
7122 ## we need, but libm is an exception: always include it, because there are
7123 ## too many compilers that play cute optimization games that will break
7124 ## probes for standard functions such as pow().
7128 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7129 $as_echo_n "checking for main in -lm... " >&6; }
7130 if test "${ac_cv_lib_m_main+set}" = set; then
7131 $as_echo_n "(cached) " >&6
7133 ac_check_lib_save_LIBS=$LIBS
7135 cat >conftest.$ac_ext <<_ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h. */
7151 rm -f conftest.$ac_objext conftest$ac_exeext
7152 if { (ac_try="$ac_link"
7154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7155 *) ac_try_echo=$ac_try;;
7157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7158 $as_echo "$ac_try_echo") >&5
7159 (eval "$ac_link") 2>conftest.er1
7161 grep -v '^ *+' conftest.er1 >conftest.err
7163 cat conftest.err >&5
7164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } && {
7166 test -z "$ac_c_werror_flag" ||
7167 test ! -s conftest.err
7168 } && test -s conftest$ac_exeext && {
7169 test "$cross_compiling" = yes ||
7170 $as_test_x conftest$ac_exeext
7172 ac_cv_lib_m_main=yes
7174 $as_echo "$as_me: failed program was:" >&5
7175 sed 's/^/| /' conftest.$ac_ext >&5
7180 rm -rf conftest.dSYM
7181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7182 conftest$ac_exeext conftest.$ac_ext
7183 LIBS=$ac_check_lib_save_LIBS
7185 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7186 $as_echo "$ac_cv_lib_m_main" >&6; }
7187 if test "x$ac_cv_lib_m_main" = x""yes; then
7188 cat >>confdefs.h <<_ACEOF
7196 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7197 $as_echo_n "checking for library containing setproctitle... " >&6; }
7198 if test "${ac_cv_search_setproctitle+set}" = set; then
7199 $as_echo_n "(cached) " >&6
7201 ac_func_search_save_LIBS=$LIBS
7202 cat >conftest.$ac_ext <<_ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h. */
7209 /* Override any GCC internal prototype to avoid an error.
7210 Use char because int might match the return type of a GCC
7211 builtin and then its argument prototype would still apply. */
7215 char setproctitle ();
7219 return setproctitle ();
7224 for ac_lib in '' util; do
7225 if test -z "$ac_lib"; then
7226 ac_res="none required"
7229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7231 rm -f conftest.$ac_objext conftest$ac_exeext
7232 if { (ac_try="$ac_link"
7234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7235 *) ac_try_echo=$ac_try;;
7237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7238 $as_echo "$ac_try_echo") >&5
7239 (eval "$ac_link") 2>conftest.er1
7241 grep -v '^ *+' conftest.er1 >conftest.err
7243 cat conftest.err >&5
7244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); } && {
7246 test -z "$ac_c_werror_flag" ||
7247 test ! -s conftest.err
7248 } && test -s conftest$ac_exeext && {
7249 test "$cross_compiling" = yes ||
7250 $as_test_x conftest$ac_exeext
7252 ac_cv_search_setproctitle=$ac_res
7254 $as_echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.$ac_ext >&5
7260 rm -rf conftest.dSYM
7261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7263 if test "${ac_cv_search_setproctitle+set}" = set; then
7267 if test "${ac_cv_search_setproctitle+set}" = set; then
7270 ac_cv_search_setproctitle=no
7273 LIBS=$ac_func_search_save_LIBS
7275 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7276 $as_echo "$ac_cv_search_setproctitle" >&6; }
7277 ac_res=$ac_cv_search_setproctitle
7278 if test "$ac_res" != no; then
7279 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7283 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7284 $as_echo_n "checking for library containing dlopen... " >&6; }
7285 if test "${ac_cv_search_dlopen+set}" = set; then
7286 $as_echo_n "(cached) " >&6
7288 ac_func_search_save_LIBS=$LIBS
7289 cat >conftest.$ac_ext <<_ACEOF
7292 cat confdefs.h >>conftest.$ac_ext
7293 cat >>conftest.$ac_ext <<_ACEOF
7294 /* end confdefs.h. */
7296 /* Override any GCC internal prototype to avoid an error.
7297 Use char because int might match the return type of a GCC
7298 builtin and then its argument prototype would still apply. */
7311 for ac_lib in '' dl; do
7312 if test -z "$ac_lib"; then
7313 ac_res="none required"
7316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7318 rm -f conftest.$ac_objext conftest$ac_exeext
7319 if { (ac_try="$ac_link"
7321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7322 *) ac_try_echo=$ac_try;;
7324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7325 $as_echo "$ac_try_echo") >&5
7326 (eval "$ac_link") 2>conftest.er1
7328 grep -v '^ *+' conftest.er1 >conftest.err
7330 cat conftest.err >&5
7331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); } && {
7333 test -z "$ac_c_werror_flag" ||
7334 test ! -s conftest.err
7335 } && test -s conftest$ac_exeext && {
7336 test "$cross_compiling" = yes ||
7337 $as_test_x conftest$ac_exeext
7339 ac_cv_search_dlopen=$ac_res
7341 $as_echo "$as_me: failed program was:" >&5
7342 sed 's/^/| /' conftest.$ac_ext >&5
7347 rm -rf conftest.dSYM
7348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7350 if test "${ac_cv_search_dlopen+set}" = set; then
7354 if test "${ac_cv_search_dlopen+set}" = set; then
7357 ac_cv_search_dlopen=no
7360 LIBS=$ac_func_search_save_LIBS
7362 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7363 $as_echo "$ac_cv_search_dlopen" >&6; }
7364 ac_res=$ac_cv_search_dlopen
7365 if test "$ac_res" != no; then
7366 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7370 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7371 $as_echo_n "checking for library containing socket... " >&6; }
7372 if test "${ac_cv_search_socket+set}" = set; then
7373 $as_echo_n "(cached) " >&6
7375 ac_func_search_save_LIBS=$LIBS
7376 cat >conftest.$ac_ext <<_ACEOF
7379 cat confdefs.h >>conftest.$ac_ext
7380 cat >>conftest.$ac_ext <<_ACEOF
7381 /* end confdefs.h. */
7383 /* Override any GCC internal prototype to avoid an error.
7384 Use char because int might match the return type of a GCC
7385 builtin and then its argument prototype would still apply. */
7398 for ac_lib in '' socket wsock32; do
7399 if test -z "$ac_lib"; then
7400 ac_res="none required"
7403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7405 rm -f conftest.$ac_objext conftest$ac_exeext
7406 if { (ac_try="$ac_link"
7408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7409 *) ac_try_echo=$ac_try;;
7411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7412 $as_echo "$ac_try_echo") >&5
7413 (eval "$ac_link") 2>conftest.er1
7415 grep -v '^ *+' conftest.er1 >conftest.err
7417 cat conftest.err >&5
7418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } && {
7420 test -z "$ac_c_werror_flag" ||
7421 test ! -s conftest.err
7422 } && test -s conftest$ac_exeext && {
7423 test "$cross_compiling" = yes ||
7424 $as_test_x conftest$ac_exeext
7426 ac_cv_search_socket=$ac_res
7428 $as_echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7434 rm -rf conftest.dSYM
7435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7437 if test "${ac_cv_search_socket+set}" = set; then
7441 if test "${ac_cv_search_socket+set}" = set; then
7444 ac_cv_search_socket=no
7447 LIBS=$ac_func_search_save_LIBS
7449 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7450 $as_echo "$ac_cv_search_socket" >&6; }
7451 ac_res=$ac_cv_search_socket
7452 if test "$ac_res" != no; then
7453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7457 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7458 $as_echo_n "checking for library containing shl_load... " >&6; }
7459 if test "${ac_cv_search_shl_load+set}" = set; then
7460 $as_echo_n "(cached) " >&6
7462 ac_func_search_save_LIBS=$LIBS
7463 cat >conftest.$ac_ext <<_ACEOF
7466 cat confdefs.h >>conftest.$ac_ext
7467 cat >>conftest.$ac_ext <<_ACEOF
7468 /* end confdefs.h. */
7470 /* Override any GCC internal prototype to avoid an error.
7471 Use char because int might match the return type of a GCC
7472 builtin and then its argument prototype would still apply. */
7485 for ac_lib in '' dld; do
7486 if test -z "$ac_lib"; then
7487 ac_res="none required"
7490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7492 rm -f conftest.$ac_objext conftest$ac_exeext
7493 if { (ac_try="$ac_link"
7495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7496 *) ac_try_echo=$ac_try;;
7498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7499 $as_echo "$ac_try_echo") >&5
7500 (eval "$ac_link") 2>conftest.er1
7502 grep -v '^ *+' conftest.er1 >conftest.err
7504 cat conftest.err >&5
7505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); } && {
7507 test -z "$ac_c_werror_flag" ||
7508 test ! -s conftest.err
7509 } && test -s conftest$ac_exeext && {
7510 test "$cross_compiling" = yes ||
7511 $as_test_x conftest$ac_exeext
7513 ac_cv_search_shl_load=$ac_res
7515 $as_echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.$ac_ext >&5
7521 rm -rf conftest.dSYM
7522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7524 if test "${ac_cv_search_shl_load+set}" = set; then
7528 if test "${ac_cv_search_shl_load+set}" = set; then
7531 ac_cv_search_shl_load=no
7534 LIBS=$ac_func_search_save_LIBS
7536 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7537 $as_echo "$ac_cv_search_shl_load" >&6; }
7538 ac_res=$ac_cv_search_shl_load
7539 if test "$ac_res" != no; then
7540 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7544 # We only use libld in port/dynloader/aix.c
7547 { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7548 $as_echo_n "checking for library containing ldopen... " >&6; }
7549 if test "${ac_cv_search_ldopen+set}" = set; then
7550 $as_echo_n "(cached) " >&6
7552 ac_func_search_save_LIBS=$LIBS
7553 cat >conftest.$ac_ext <<_ACEOF
7556 cat confdefs.h >>conftest.$ac_ext
7557 cat >>conftest.$ac_ext <<_ACEOF
7558 /* end confdefs.h. */
7560 /* Override any GCC internal prototype to avoid an error.
7561 Use char because int might match the return type of a GCC
7562 builtin and then its argument prototype would still apply. */
7575 for ac_lib in '' ld; do
7576 if test -z "$ac_lib"; then
7577 ac_res="none required"
7580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7582 rm -f conftest.$ac_objext conftest$ac_exeext
7583 if { (ac_try="$ac_link"
7585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7586 *) ac_try_echo=$ac_try;;
7588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7589 $as_echo "$ac_try_echo") >&5
7590 (eval "$ac_link") 2>conftest.er1
7592 grep -v '^ *+' conftest.er1 >conftest.err
7594 cat conftest.err >&5
7595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } && {
7597 test -z "$ac_c_werror_flag" ||
7598 test ! -s conftest.err
7599 } && test -s conftest$ac_exeext && {
7600 test "$cross_compiling" = yes ||
7601 $as_test_x conftest$ac_exeext
7603 ac_cv_search_ldopen=$ac_res
7605 $as_echo "$as_me: failed program was:" >&5
7606 sed 's/^/| /' conftest.$ac_ext >&5
7611 rm -rf conftest.dSYM
7612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7614 if test "${ac_cv_search_ldopen+set}" = set; then
7618 if test "${ac_cv_search_ldopen+set}" = set; then
7621 ac_cv_search_ldopen=no
7624 LIBS=$ac_func_search_save_LIBS
7626 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7627 $as_echo "$ac_cv_search_ldopen" >&6; }
7628 ac_res=$ac_cv_search_ldopen
7629 if test "$ac_res" != no; then
7630 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7636 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7637 $as_echo_n "checking for library containing getopt_long... " >&6; }
7638 if test "${ac_cv_search_getopt_long+set}" = set; then
7639 $as_echo_n "(cached) " >&6
7641 ac_func_search_save_LIBS=$LIBS
7642 cat >conftest.$ac_ext <<_ACEOF
7645 cat confdefs.h >>conftest.$ac_ext
7646 cat >>conftest.$ac_ext <<_ACEOF
7647 /* end confdefs.h. */
7649 /* Override any GCC internal prototype to avoid an error.
7650 Use char because int might match the return type of a GCC
7651 builtin and then its argument prototype would still apply. */
7655 char getopt_long ();
7659 return getopt_long ();
7664 for ac_lib in '' getopt gnugetopt; do
7665 if test -z "$ac_lib"; then
7666 ac_res="none required"
7669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7671 rm -f conftest.$ac_objext conftest$ac_exeext
7672 if { (ac_try="$ac_link"
7674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7675 *) ac_try_echo=$ac_try;;
7677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7678 $as_echo "$ac_try_echo") >&5
7679 (eval "$ac_link") 2>conftest.er1
7681 grep -v '^ *+' conftest.er1 >conftest.err
7683 cat conftest.err >&5
7684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); } && {
7686 test -z "$ac_c_werror_flag" ||
7687 test ! -s conftest.err
7688 } && test -s conftest$ac_exeext && {
7689 test "$cross_compiling" = yes ||
7690 $as_test_x conftest$ac_exeext
7692 ac_cv_search_getopt_long=$ac_res
7694 $as_echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7700 rm -rf conftest.dSYM
7701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7703 if test "${ac_cv_search_getopt_long+set}" = set; then
7707 if test "${ac_cv_search_getopt_long+set}" = set; then
7710 ac_cv_search_getopt_long=no
7713 LIBS=$ac_func_search_save_LIBS
7715 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7716 $as_echo "$ac_cv_search_getopt_long" >&6; }
7717 ac_res=$ac_cv_search_getopt_long
7718 if test "$ac_res" != no; then
7719 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7723 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
7724 $as_echo_n "checking for library containing crypt... " >&6; }
7725 if test "${ac_cv_search_crypt+set}" = set; then
7726 $as_echo_n "(cached) " >&6
7728 ac_func_search_save_LIBS=$LIBS
7729 cat >conftest.$ac_ext <<_ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h. */
7736 /* Override any GCC internal prototype to avoid an error.
7737 Use char because int might match the return type of a GCC
7738 builtin and then its argument prototype would still apply. */
7751 for ac_lib in '' crypt; do
7752 if test -z "$ac_lib"; then
7753 ac_res="none required"
7756 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7758 rm -f conftest.$ac_objext conftest$ac_exeext
7759 if { (ac_try="$ac_link"
7761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7762 *) ac_try_echo=$ac_try;;
7764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7765 $as_echo "$ac_try_echo") >&5
7766 (eval "$ac_link") 2>conftest.er1
7768 grep -v '^ *+' conftest.er1 >conftest.err
7770 cat conftest.err >&5
7771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } && {
7773 test -z "$ac_c_werror_flag" ||
7774 test ! -s conftest.err
7775 } && test -s conftest$ac_exeext && {
7776 test "$cross_compiling" = yes ||
7777 $as_test_x conftest$ac_exeext
7779 ac_cv_search_crypt=$ac_res
7781 $as_echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.$ac_ext >&5
7787 rm -rf conftest.dSYM
7788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7790 if test "${ac_cv_search_crypt+set}" = set; then
7794 if test "${ac_cv_search_crypt+set}" = set; then
7797 ac_cv_search_crypt=no
7800 LIBS=$ac_func_search_save_LIBS
7802 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7803 $as_echo "$ac_cv_search_crypt" >&6; }
7804 ac_res=$ac_cv_search_crypt
7805 if test "$ac_res" != no; then
7806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7811 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7812 $as_echo_n "checking for library containing fdatasync... " >&6; }
7813 if test "${ac_cv_search_fdatasync+set}" = set; then
7814 $as_echo_n "(cached) " >&6
7816 ac_func_search_save_LIBS=$LIBS
7817 cat >conftest.$ac_ext <<_ACEOF
7820 cat confdefs.h >>conftest.$ac_ext
7821 cat >>conftest.$ac_ext <<_ACEOF
7822 /* end confdefs.h. */
7824 /* Override any GCC internal prototype to avoid an error.
7825 Use char because int might match the return type of a GCC
7826 builtin and then its argument prototype would still apply. */
7834 return fdatasync ();
7839 for ac_lib in '' rt posix4; do
7840 if test -z "$ac_lib"; then
7841 ac_res="none required"
7844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7846 rm -f conftest.$ac_objext conftest$ac_exeext
7847 if { (ac_try="$ac_link"
7849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7850 *) ac_try_echo=$ac_try;;
7852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7853 $as_echo "$ac_try_echo") >&5
7854 (eval "$ac_link") 2>conftest.er1
7856 grep -v '^ *+' conftest.er1 >conftest.err
7858 cat conftest.err >&5
7859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } && {
7861 test -z "$ac_c_werror_flag" ||
7862 test ! -s conftest.err
7863 } && test -s conftest$ac_exeext && {
7864 test "$cross_compiling" = yes ||
7865 $as_test_x conftest$ac_exeext
7867 ac_cv_search_fdatasync=$ac_res
7869 $as_echo "$as_me: failed program was:" >&5
7870 sed 's/^/| /' conftest.$ac_ext >&5
7875 rm -rf conftest.dSYM
7876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7878 if test "${ac_cv_search_fdatasync+set}" = set; then
7882 if test "${ac_cv_search_fdatasync+set}" = set; then
7885 ac_cv_search_fdatasync=no
7888 LIBS=$ac_func_search_save_LIBS
7890 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7891 $as_echo "$ac_cv_search_fdatasync" >&6; }
7892 ac_res=$ac_cv_search_fdatasync
7893 if test "$ac_res" != no; then
7894 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7898 # Required for thread_test.c on Solaris 2.5:
7899 # Other ports use it too (HP-UX) so test unconditionally
7900 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
7901 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
7902 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7903 $as_echo_n "(cached) " >&6
7905 ac_func_search_save_LIBS=$LIBS
7906 cat >conftest.$ac_ext <<_ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7913 /* Override any GCC internal prototype to avoid an error.
7914 Use char because int might match the return type of a GCC
7915 builtin and then its argument prototype would still apply. */
7919 char gethostbyname_r ();
7923 return gethostbyname_r ();
7928 for ac_lib in '' nsl; do
7929 if test -z "$ac_lib"; then
7930 ac_res="none required"
7933 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7935 rm -f conftest.$ac_objext conftest$ac_exeext
7936 if { (ac_try="$ac_link"
7938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939 *) ac_try_echo=$ac_try;;
7941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7942 $as_echo "$ac_try_echo") >&5
7943 (eval "$ac_link") 2>conftest.er1
7945 grep -v '^ *+' conftest.er1 >conftest.err
7947 cat conftest.err >&5
7948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } && {
7950 test -z "$ac_c_werror_flag" ||
7951 test ! -s conftest.err
7952 } && test -s conftest$ac_exeext && {
7953 test "$cross_compiling" = yes ||
7954 $as_test_x conftest$ac_exeext
7956 ac_cv_search_gethostbyname_r=$ac_res
7958 $as_echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.$ac_ext >&5
7964 rm -rf conftest.dSYM
7965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7967 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7971 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7974 ac_cv_search_gethostbyname_r=no
7977 LIBS=$ac_func_search_save_LIBS
7979 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
7980 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
7981 ac_res=$ac_cv_search_gethostbyname_r
7982 if test "$ac_res" != no; then
7983 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7988 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
7989 $as_echo_n "checking for library containing shmget... " >&6; }
7990 if test "${ac_cv_search_shmget+set}" = set; then
7991 $as_echo_n "(cached) " >&6
7993 ac_func_search_save_LIBS=$LIBS
7994 cat >conftest.$ac_ext <<_ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8001 /* Override any GCC internal prototype to avoid an error.
8002 Use char because int might match the return type of a GCC
8003 builtin and then its argument prototype would still apply. */
8016 for ac_lib in '' cygipc; do
8017 if test -z "$ac_lib"; then
8018 ac_res="none required"
8021 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8023 rm -f conftest.$ac_objext conftest$ac_exeext
8024 if { (ac_try="$ac_link"
8026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027 *) ac_try_echo=$ac_try;;
8029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8030 $as_echo "$ac_try_echo") >&5
8031 (eval "$ac_link") 2>conftest.er1
8033 grep -v '^ *+' conftest.er1 >conftest.err
8035 cat conftest.err >&5
8036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } && {
8038 test -z "$ac_c_werror_flag" ||
8039 test ! -s conftest.err
8040 } && test -s conftest$ac_exeext && {
8041 test "$cross_compiling" = yes ||
8042 $as_test_x conftest$ac_exeext
8044 ac_cv_search_shmget=$ac_res
8046 $as_echo "$as_me: failed program was:" >&5
8047 sed 's/^/| /' conftest.$ac_ext >&5
8052 rm -rf conftest.dSYM
8053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8055 if test "${ac_cv_search_shmget+set}" = set; then
8059 if test "${ac_cv_search_shmget+set}" = set; then
8062 ac_cv_search_shmget=no
8065 LIBS=$ac_func_search_save_LIBS
8067 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8068 $as_echo "$ac_cv_search_shmget" >&6; }
8069 ac_res=$ac_cv_search_shmget
8070 if test "$ac_res" != no; then
8071 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8076 if test "$with_readline" = yes; then
8079 if test "${pgac_cv_check_readline+set}" = set; then
8080 $as_echo_n "(cached) " >&6
8082 pgac_cv_check_readline=no
8083 pgac_save_LIBS=$LIBS
8084 if test x"$with_libedit_preferred" != x"yes"
8085 then READLINE_ORDER="-lreadline -ledit"
8086 else READLINE_ORDER="-ledit -lreadline"
8088 for pgac_rllib in $READLINE_ORDER ; do
8089 { $as_echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
8090 $as_echo_n "checking for ${pgac_rllib}... " >&6; }
8091 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8092 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8093 cat >conftest.$ac_ext <<_ACEOF
8096 cat confdefs.h >>conftest.$ac_ext
8097 cat >>conftest.$ac_ext <<_ACEOF
8098 /* end confdefs.h. */
8100 /* Override any GCC internal prototype to avoid an error.
8101 Use char because int might match the return type of a GCC
8102 builtin and then its argument prototype would still apply. */
8115 rm -f conftest.$ac_objext conftest$ac_exeext
8116 if { (ac_try="$ac_link"
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8122 $as_echo "$ac_try_echo") >&5
8123 (eval "$ac_link") 2>conftest.er1
8125 grep -v '^ *+' conftest.er1 >conftest.err
8127 cat conftest.err >&5
8128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); } && {
8130 test -z "$ac_c_werror_flag" ||
8131 test ! -s conftest.err
8132 } && test -s conftest$ac_exeext && {
8133 test "$cross_compiling" = yes ||
8134 $as_test_x conftest$ac_exeext
8137 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8138 # recognize dependent libraries; assume curses is needed if we didn't
8139 # find any dependency.
8141 netbsd* | openbsd* | irix*)
8142 if test x"$pgac_lib" = x"" ; then
8143 pgac_lib=" -lcurses"
8147 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8151 $as_echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.$ac_ext >&5
8157 rm -rf conftest.dSYM
8158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8159 conftest$ac_exeext conftest.$ac_ext
8161 if test "$pgac_cv_check_readline" != no ; then
8162 { $as_echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
8163 $as_echo "yes ($pgac_cv_check_readline)" >&6; }
8166 { $as_echo "$as_me:$LINENO: result: no" >&5
8167 $as_echo "no" >&6; }
8170 LIBS=$pgac_save_LIBS
8174 if test "$pgac_cv_check_readline" != no ; then
8175 LIBS="$pgac_cv_check_readline $LIBS"
8177 cat >>confdefs.h <<\_ACEOF
8178 #define HAVE_LIBREADLINE 1
8184 if test x"$pgac_cv_check_readline" = x"no"; then
8185 { { $as_echo "$as_me:$LINENO: error: readline library not found
8186 If you have readline already installed, see config.log for details on the
8187 failure. It is possible the compiler isn't looking in the proper directory.
8188 Use --without-readline to disable readline support." >&5
8189 $as_echo "$as_me: error: readline library not found
8190 If you have readline already installed, see config.log for details on the
8191 failure. It is possible the compiler isn't looking in the proper directory.
8192 Use --without-readline to disable readline support." >&2;}
8193 { (exit 1); exit 1; }; }
8197 if test "$with_zlib" = yes; then
8199 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8200 $as_echo_n "checking for inflate in -lz... " >&6; }
8201 if test "${ac_cv_lib_z_inflate+set}" = set; then
8202 $as_echo_n "(cached) " >&6
8204 ac_check_lib_save_LIBS=$LIBS
8206 cat >conftest.$ac_ext <<_ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h. */
8213 /* Override any GCC internal prototype to avoid an error.
8214 Use char because int might match the return type of a GCC
8215 builtin and then its argument prototype would still apply. */
8228 rm -f conftest.$ac_objext conftest$ac_exeext
8229 if { (ac_try="$ac_link"
8231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8235 $as_echo "$ac_try_echo") >&5
8236 (eval "$ac_link") 2>conftest.er1
8238 grep -v '^ *+' conftest.er1 >conftest.err
8240 cat conftest.err >&5
8241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } && {
8243 test -z "$ac_c_werror_flag" ||
8244 test ! -s conftest.err
8245 } && test -s conftest$ac_exeext && {
8246 test "$cross_compiling" = yes ||
8247 $as_test_x conftest$ac_exeext
8249 ac_cv_lib_z_inflate=yes
8251 $as_echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8254 ac_cv_lib_z_inflate=no
8257 rm -rf conftest.dSYM
8258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8259 conftest$ac_exeext conftest.$ac_ext
8260 LIBS=$ac_check_lib_save_LIBS
8262 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8263 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8264 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8265 cat >>confdefs.h <<_ACEOF
8272 { { $as_echo "$as_me:$LINENO: error: zlib library not found
8273 If you have zlib already installed, see config.log for details on the
8274 failure. It is possible the compiler isn't looking in the proper directory.
8275 Use --without-zlib to disable zlib support." >&5
8276 $as_echo "$as_me: error: zlib library not found
8277 If you have zlib already installed, see config.log for details on the
8278 failure. It is possible the compiler isn't looking in the proper directory.
8279 Use --without-zlib to disable zlib support." >&2;}
8280 { (exit 1); exit 1; }; }
8285 if test "$enable_spinlocks" = yes; then
8287 cat >>confdefs.h <<\_ACEOF
8288 #define HAVE_SPINLOCKS 1
8292 { $as_echo "$as_me:$LINENO: WARNING:
8293 *** Not using spinlocks will cause poor performance." >&5
8294 $as_echo "$as_me: WARNING:
8295 *** Not using spinlocks will cause poor performance." >&2;}
8298 if test "$with_gssapi" = yes ; then
8299 if test "$PORTNAME" != "win32"; then
8300 { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8301 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8302 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8303 $as_echo_n "(cached) " >&6
8305 ac_func_search_save_LIBS=$LIBS
8306 cat >conftest.$ac_ext <<_ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h. */
8313 /* Override any GCC internal prototype to avoid an error.
8314 Use char because int might match the return type of a GCC
8315 builtin and then its argument prototype would still apply. */
8319 char gss_init_sec_context ();
8323 return gss_init_sec_context ();
8328 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8329 if test -z "$ac_lib"; then
8330 ac_res="none required"
8333 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8335 rm -f conftest.$ac_objext conftest$ac_exeext
8336 if { (ac_try="$ac_link"
8338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339 *) ac_try_echo=$ac_try;;
8341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8342 $as_echo "$ac_try_echo") >&5
8343 (eval "$ac_link") 2>conftest.er1
8345 grep -v '^ *+' conftest.er1 >conftest.err
8347 cat conftest.err >&5
8348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } && {
8350 test -z "$ac_c_werror_flag" ||
8351 test ! -s conftest.err
8352 } && test -s conftest$ac_exeext && {
8353 test "$cross_compiling" = yes ||
8354 $as_test_x conftest$ac_exeext
8356 ac_cv_search_gss_init_sec_context=$ac_res
8358 $as_echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8364 rm -rf conftest.dSYM
8365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8367 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8371 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8374 ac_cv_search_gss_init_sec_context=no
8377 LIBS=$ac_func_search_save_LIBS
8379 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8380 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8381 ac_res=$ac_cv_search_gss_init_sec_context
8382 if test "$ac_res" != no; then
8383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8386 { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8387 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8388 { (exit 1); exit 1; }; }
8392 LIBS="$LIBS -lgssapi32"
8396 if test "$with_krb5" = yes ; then
8397 if test "$PORTNAME" != "win32"; then
8398 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8399 $as_echo_n "checking for library containing com_err... " >&6; }
8400 if test "${ac_cv_search_com_err+set}" = set; then
8401 $as_echo_n "(cached) " >&6
8403 ac_func_search_save_LIBS=$LIBS
8404 cat >conftest.$ac_ext <<_ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8411 /* Override any GCC internal prototype to avoid an error.
8412 Use char because int might match the return type of a GCC
8413 builtin and then its argument prototype would still apply. */
8426 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8427 if test -z "$ac_lib"; then
8428 ac_res="none required"
8431 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8433 rm -f conftest.$ac_objext conftest$ac_exeext
8434 if { (ac_try="$ac_link"
8436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437 *) ac_try_echo=$ac_try;;
8439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8440 $as_echo "$ac_try_echo") >&5
8441 (eval "$ac_link") 2>conftest.er1
8443 grep -v '^ *+' conftest.er1 >conftest.err
8445 cat conftest.err >&5
8446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } && {
8448 test -z "$ac_c_werror_flag" ||
8449 test ! -s conftest.err
8450 } && test -s conftest$ac_exeext && {
8451 test "$cross_compiling" = yes ||
8452 $as_test_x conftest$ac_exeext
8454 ac_cv_search_com_err=$ac_res
8456 $as_echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8462 rm -rf conftest.dSYM
8463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8465 if test "${ac_cv_search_com_err+set}" = set; then
8469 if test "${ac_cv_search_com_err+set}" = set; then
8472 ac_cv_search_com_err=no
8475 LIBS=$ac_func_search_save_LIBS
8477 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8478 $as_echo "$ac_cv_search_com_err" >&6; }
8479 ac_res=$ac_cv_search_com_err
8480 if test "$ac_res" != no; then
8481 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8484 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8485 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8486 { (exit 1); exit 1; }; }
8489 { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8490 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8491 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8492 $as_echo_n "(cached) " >&6
8494 ac_func_search_save_LIBS=$LIBS
8495 cat >conftest.$ac_ext <<_ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h. */
8502 /* Override any GCC internal prototype to avoid an error.
8503 Use char because int might match the return type of a GCC
8504 builtin and then its argument prototype would still apply. */
8508 char krb5_sendauth ();
8512 return krb5_sendauth ();
8517 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8518 if test -z "$ac_lib"; then
8519 ac_res="none required"
8522 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8524 rm -f conftest.$ac_objext conftest$ac_exeext
8525 if { (ac_try="$ac_link"
8527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8531 $as_echo "$ac_try_echo") >&5
8532 (eval "$ac_link") 2>conftest.er1
8534 grep -v '^ *+' conftest.er1 >conftest.err
8536 cat conftest.err >&5
8537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } && {
8539 test -z "$ac_c_werror_flag" ||
8540 test ! -s conftest.err
8541 } && test -s conftest$ac_exeext && {
8542 test "$cross_compiling" = yes ||
8543 $as_test_x conftest$ac_exeext
8545 ac_cv_search_krb5_sendauth=$ac_res
8547 $as_echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8553 rm -rf conftest.dSYM
8554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8556 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8560 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8563 ac_cv_search_krb5_sendauth=no
8566 LIBS=$ac_func_search_save_LIBS
8568 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8569 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8570 ac_res=$ac_cv_search_krb5_sendauth
8571 if test "$ac_res" != no; then
8572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8575 { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8576 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8577 { (exit 1); exit 1; }; }
8581 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8582 $as_echo_n "checking for library containing com_err... " >&6; }
8583 if test "${ac_cv_search_com_err+set}" = set; then
8584 $as_echo_n "(cached) " >&6
8586 ac_func_search_save_LIBS=$LIBS
8587 cat >conftest.$ac_ext <<_ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h. */
8594 /* Override any GCC internal prototype to avoid an error.
8595 Use char because int might match the return type of a GCC
8596 builtin and then its argument prototype would still apply. */
8609 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8610 if test -z "$ac_lib"; then
8611 ac_res="none required"
8614 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8616 rm -f conftest.$ac_objext conftest$ac_exeext
8617 if { (ac_try="$ac_link"
8619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620 *) ac_try_echo=$ac_try;;
8622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8623 $as_echo "$ac_try_echo") >&5
8624 (eval "$ac_link") 2>conftest.er1
8626 grep -v '^ *+' conftest.er1 >conftest.err
8628 cat conftest.err >&5
8629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); } && {
8631 test -z "$ac_c_werror_flag" ||
8632 test ! -s conftest.err
8633 } && test -s conftest$ac_exeext && {
8634 test "$cross_compiling" = yes ||
8635 $as_test_x conftest$ac_exeext
8637 ac_cv_search_com_err=$ac_res
8639 $as_echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.$ac_ext >&5
8645 rm -rf conftest.dSYM
8646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8648 if test "${ac_cv_search_com_err+set}" = set; then
8652 if test "${ac_cv_search_com_err+set}" = set; then
8655 ac_cv_search_com_err=no
8658 LIBS=$ac_func_search_save_LIBS
8660 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8661 $as_echo "$ac_cv_search_com_err" >&6; }
8662 ac_res=$ac_cv_search_com_err
8663 if test "$ac_res" != no; then
8664 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8667 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8668 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8669 { (exit 1); exit 1; }; }
8675 if test "$with_openssl" = yes ; then
8676 if test "$PORTNAME" != "win32"; then
8678 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8679 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8680 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8681 $as_echo_n "(cached) " >&6
8683 ac_check_lib_save_LIBS=$LIBS
8684 LIBS="-lcrypto $LIBS"
8685 cat >conftest.$ac_ext <<_ACEOF
8688 cat confdefs.h >>conftest.$ac_ext
8689 cat >>conftest.$ac_ext <<_ACEOF
8690 /* end confdefs.h. */
8692 /* Override any GCC internal prototype to avoid an error.
8693 Use char because int might match the return type of a GCC
8694 builtin and then its argument prototype would still apply. */
8698 char CRYPTO_new_ex_data ();
8702 return CRYPTO_new_ex_data ();
8707 rm -f conftest.$ac_objext conftest$ac_exeext
8708 if { (ac_try="$ac_link"
8710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8711 *) ac_try_echo=$ac_try;;
8713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8714 $as_echo "$ac_try_echo") >&5
8715 (eval "$ac_link") 2>conftest.er1
8717 grep -v '^ *+' conftest.er1 >conftest.err
8719 cat conftest.err >&5
8720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } && {
8722 test -z "$ac_c_werror_flag" ||
8723 test ! -s conftest.err
8724 } && test -s conftest$ac_exeext && {
8725 test "$cross_compiling" = yes ||
8726 $as_test_x conftest$ac_exeext
8728 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8730 $as_echo "$as_me: failed program was:" >&5
8731 sed 's/^/| /' conftest.$ac_ext >&5
8733 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8736 rm -rf conftest.dSYM
8737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8738 conftest$ac_exeext conftest.$ac_ext
8739 LIBS=$ac_check_lib_save_LIBS
8741 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8742 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8743 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
8744 cat >>confdefs.h <<_ACEOF
8745 #define HAVE_LIBCRYPTO 1
8748 LIBS="-lcrypto $LIBS"
8751 { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8752 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8753 { (exit 1); exit 1; }; }
8757 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8758 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8759 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8760 $as_echo_n "(cached) " >&6
8762 ac_check_lib_save_LIBS=$LIBS
8764 cat >conftest.$ac_ext <<_ACEOF
8767 cat confdefs.h >>conftest.$ac_ext
8768 cat >>conftest.$ac_ext <<_ACEOF
8769 /* end confdefs.h. */
8771 /* Override any GCC internal prototype to avoid an error.
8772 Use char because int might match the return type of a GCC
8773 builtin and then its argument prototype would still apply. */
8777 char SSL_library_init ();
8781 return SSL_library_init ();
8786 rm -f conftest.$ac_objext conftest$ac_exeext
8787 if { (ac_try="$ac_link"
8789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8790 *) ac_try_echo=$ac_try;;
8792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8793 $as_echo "$ac_try_echo") >&5
8794 (eval "$ac_link") 2>conftest.er1
8796 grep -v '^ *+' conftest.er1 >conftest.err
8798 cat conftest.err >&5
8799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); } && {
8801 test -z "$ac_c_werror_flag" ||
8802 test ! -s conftest.err
8803 } && test -s conftest$ac_exeext && {
8804 test "$cross_compiling" = yes ||
8805 $as_test_x conftest$ac_exeext
8807 ac_cv_lib_ssl_SSL_library_init=yes
8809 $as_echo "$as_me: failed program was:" >&5
8810 sed 's/^/| /' conftest.$ac_ext >&5
8812 ac_cv_lib_ssl_SSL_library_init=no
8815 rm -rf conftest.dSYM
8816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8817 conftest$ac_exeext conftest.$ac_ext
8818 LIBS=$ac_check_lib_save_LIBS
8820 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8821 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
8822 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
8823 cat >>confdefs.h <<_ACEOF
8824 #define HAVE_LIBSSL 1
8830 { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8831 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8832 { (exit 1); exit 1; }; }
8837 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8838 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
8839 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8840 $as_echo_n "(cached) " >&6
8842 ac_check_lib_save_LIBS=$LIBS
8843 LIBS="-leay32 $LIBS"
8844 cat >conftest.$ac_ext <<_ACEOF
8847 cat confdefs.h >>conftest.$ac_ext
8848 cat >>conftest.$ac_ext <<_ACEOF
8849 /* end confdefs.h. */
8851 /* Override any GCC internal prototype to avoid an error.
8852 Use char because int might match the return type of a GCC
8853 builtin and then its argument prototype would still apply. */
8857 char CRYPTO_new_ex_data ();
8861 return CRYPTO_new_ex_data ();
8866 rm -f conftest.$ac_objext conftest$ac_exeext
8867 if { (ac_try="$ac_link"
8869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8870 *) ac_try_echo=$ac_try;;
8872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8873 $as_echo "$ac_try_echo") >&5
8874 (eval "$ac_link") 2>conftest.er1
8876 grep -v '^ *+' conftest.er1 >conftest.err
8878 cat conftest.err >&5
8879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); } && {
8881 test -z "$ac_c_werror_flag" ||
8882 test ! -s conftest.err
8883 } && test -s conftest$ac_exeext && {
8884 test "$cross_compiling" = yes ||
8885 $as_test_x conftest$ac_exeext
8887 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8889 $as_echo "$as_me: failed program was:" >&5
8890 sed 's/^/| /' conftest.$ac_ext >&5
8892 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8895 rm -rf conftest.dSYM
8896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8897 conftest$ac_exeext conftest.$ac_ext
8898 LIBS=$ac_check_lib_save_LIBS
8900 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8901 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8902 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
8903 cat >>confdefs.h <<_ACEOF
8904 #define HAVE_LIBEAY32 1
8907 LIBS="-leay32 $LIBS"
8910 { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8911 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8912 { (exit 1); exit 1; }; }
8916 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8917 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
8918 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8919 $as_echo_n "(cached) " >&6
8921 ac_check_lib_save_LIBS=$LIBS
8922 LIBS="-lssleay32 $LIBS"
8923 cat >conftest.$ac_ext <<_ACEOF
8926 cat confdefs.h >>conftest.$ac_ext
8927 cat >>conftest.$ac_ext <<_ACEOF
8928 /* end confdefs.h. */
8930 /* Override any GCC internal prototype to avoid an error.
8931 Use char because int might match the return type of a GCC
8932 builtin and then its argument prototype would still apply. */
8936 char SSL_library_init ();
8940 return SSL_library_init ();
8945 rm -f conftest.$ac_objext conftest$ac_exeext
8946 if { (ac_try="$ac_link"
8948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8949 *) ac_try_echo=$ac_try;;
8951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8952 $as_echo "$ac_try_echo") >&5
8953 (eval "$ac_link") 2>conftest.er1
8955 grep -v '^ *+' conftest.er1 >conftest.err
8957 cat conftest.err >&5
8958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); } && {
8960 test -z "$ac_c_werror_flag" ||
8961 test ! -s conftest.err
8962 } && test -s conftest$ac_exeext && {
8963 test "$cross_compiling" = yes ||
8964 $as_test_x conftest$ac_exeext
8966 ac_cv_lib_ssleay32_SSL_library_init=yes
8968 $as_echo "$as_me: failed program was:" >&5
8969 sed 's/^/| /' conftest.$ac_ext >&5
8971 ac_cv_lib_ssleay32_SSL_library_init=no
8974 rm -rf conftest.dSYM
8975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8976 conftest$ac_exeext conftest.$ac_ext
8977 LIBS=$ac_check_lib_save_LIBS
8979 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8980 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8981 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
8982 cat >>confdefs.h <<_ACEOF
8983 #define HAVE_LIBSSLEAY32 1
8986 LIBS="-lssleay32 $LIBS"
8989 { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8990 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8991 { (exit 1); exit 1; }; }
8997 if test "$with_pam" = yes ; then
8999 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9000 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9001 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9002 $as_echo_n "(cached) " >&6
9004 ac_check_lib_save_LIBS=$LIBS
9006 cat >conftest.$ac_ext <<_ACEOF
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h. */
9013 /* Override any GCC internal prototype to avoid an error.
9014 Use char because int might match the return type of a GCC
9015 builtin and then its argument prototype would still apply. */
9023 return pam_start ();
9028 rm -f conftest.$ac_objext conftest$ac_exeext
9029 if { (ac_try="$ac_link"
9031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9032 *) ac_try_echo=$ac_try;;
9034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9035 $as_echo "$ac_try_echo") >&5
9036 (eval "$ac_link") 2>conftest.er1
9038 grep -v '^ *+' conftest.er1 >conftest.err
9040 cat conftest.err >&5
9041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); } && {
9043 test -z "$ac_c_werror_flag" ||
9044 test ! -s conftest.err
9045 } && test -s conftest$ac_exeext && {
9046 test "$cross_compiling" = yes ||
9047 $as_test_x conftest$ac_exeext
9049 ac_cv_lib_pam_pam_start=yes
9051 $as_echo "$as_me: failed program was:" >&5
9052 sed 's/^/| /' conftest.$ac_ext >&5
9054 ac_cv_lib_pam_pam_start=no
9057 rm -rf conftest.dSYM
9058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9059 conftest$ac_exeext conftest.$ac_ext
9060 LIBS=$ac_check_lib_save_LIBS
9062 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9063 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9064 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9065 cat >>confdefs.h <<_ACEOF
9066 #define HAVE_LIBPAM 1
9072 { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9073 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9074 { (exit 1); exit 1; }; }
9079 if test "$with_libxml" = yes ; then
9081 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9082 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9083 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9084 $as_echo_n "(cached) " >&6
9086 ac_check_lib_save_LIBS=$LIBS
9088 cat >conftest.$ac_ext <<_ACEOF
9091 cat confdefs.h >>conftest.$ac_ext
9092 cat >>conftest.$ac_ext <<_ACEOF
9093 /* end confdefs.h. */
9095 /* Override any GCC internal prototype to avoid an error.
9096 Use char because int might match the return type of a GCC
9097 builtin and then its argument prototype would still apply. */
9101 char xmlSaveToBuffer ();
9105 return xmlSaveToBuffer ();
9110 rm -f conftest.$ac_objext conftest$ac_exeext
9111 if { (ac_try="$ac_link"
9113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114 *) ac_try_echo=$ac_try;;
9116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9117 $as_echo "$ac_try_echo") >&5
9118 (eval "$ac_link") 2>conftest.er1
9120 grep -v '^ *+' conftest.er1 >conftest.err
9122 cat conftest.err >&5
9123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } && {
9125 test -z "$ac_c_werror_flag" ||
9126 test ! -s conftest.err
9127 } && test -s conftest$ac_exeext && {
9128 test "$cross_compiling" = yes ||
9129 $as_test_x conftest$ac_exeext
9131 ac_cv_lib_xml2_xmlSaveToBuffer=yes
9133 $as_echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9136 ac_cv_lib_xml2_xmlSaveToBuffer=no
9139 rm -rf conftest.dSYM
9140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9141 conftest$ac_exeext conftest.$ac_ext
9142 LIBS=$ac_check_lib_save_LIBS
9144 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9145 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9146 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9147 cat >>confdefs.h <<_ACEOF
9148 #define HAVE_LIBXML2 1
9154 { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9155 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9156 { (exit 1); exit 1; }; }
9161 if test "$with_libxslt" = yes ; then
9163 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9164 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9165 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9166 $as_echo_n "(cached) " >&6
9168 ac_check_lib_save_LIBS=$LIBS
9170 cat >conftest.$ac_ext <<_ACEOF
9173 cat confdefs.h >>conftest.$ac_ext
9174 cat >>conftest.$ac_ext <<_ACEOF
9175 /* end confdefs.h. */
9177 /* Override any GCC internal prototype to avoid an error.
9178 Use char because int might match the return type of a GCC
9179 builtin and then its argument prototype would still apply. */
9183 char xsltCleanupGlobals ();
9187 return xsltCleanupGlobals ();
9192 rm -f conftest.$ac_objext conftest$ac_exeext
9193 if { (ac_try="$ac_link"
9195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9196 *) ac_try_echo=$ac_try;;
9198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9199 $as_echo "$ac_try_echo") >&5
9200 (eval "$ac_link") 2>conftest.er1
9202 grep -v '^ *+' conftest.er1 >conftest.err
9204 cat conftest.err >&5
9205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } && {
9207 test -z "$ac_c_werror_flag" ||
9208 test ! -s conftest.err
9209 } && test -s conftest$ac_exeext && {
9210 test "$cross_compiling" = yes ||
9211 $as_test_x conftest$ac_exeext
9213 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9215 $as_echo "$as_me: failed program was:" >&5
9216 sed 's/^/| /' conftest.$ac_ext >&5
9218 ac_cv_lib_xslt_xsltCleanupGlobals=no
9221 rm -rf conftest.dSYM
9222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9223 conftest$ac_exeext conftest.$ac_ext
9224 LIBS=$ac_check_lib_save_LIBS
9226 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9227 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9228 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9229 cat >>confdefs.h <<_ACEOF
9230 #define HAVE_LIBXSLT 1
9236 { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9237 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9238 { (exit 1); exit 1; }; }
9243 # for contrib/uuid-ossp
9244 if test "$with_ossp_uuid" = yes ; then
9245 { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9246 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9247 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9248 $as_echo_n "(cached) " >&6
9250 ac_check_lib_save_LIBS=$LIBS
9251 LIBS="-lossp-uuid $LIBS"
9252 cat >conftest.$ac_ext <<_ACEOF
9255 cat confdefs.h >>conftest.$ac_ext
9256 cat >>conftest.$ac_ext <<_ACEOF
9257 /* end confdefs.h. */
9259 /* Override any GCC internal prototype to avoid an error.
9260 Use char because int might match the return type of a GCC
9261 builtin and then its argument prototype would still apply. */
9265 char uuid_export ();
9269 return uuid_export ();
9274 rm -f conftest.$ac_objext conftest$ac_exeext
9275 if { (ac_try="$ac_link"
9277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9278 *) ac_try_echo=$ac_try;;
9280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9281 $as_echo "$ac_try_echo") >&5
9282 (eval "$ac_link") 2>conftest.er1
9284 grep -v '^ *+' conftest.er1 >conftest.err
9286 cat conftest.err >&5
9287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } && {
9289 test -z "$ac_c_werror_flag" ||
9290 test ! -s conftest.err
9291 } && test -s conftest$ac_exeext && {
9292 test "$cross_compiling" = yes ||
9293 $as_test_x conftest$ac_exeext
9295 ac_cv_lib_ossp_uuid_uuid_export=yes
9297 $as_echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9300 ac_cv_lib_ossp_uuid_uuid_export=no
9303 rm -rf conftest.dSYM
9304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9305 conftest$ac_exeext conftest.$ac_ext
9306 LIBS=$ac_check_lib_save_LIBS
9308 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9309 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9310 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9311 OSSP_UUID_LIBS="-lossp-uuid"
9313 { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9314 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9315 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9316 $as_echo_n "(cached) " >&6
9318 ac_check_lib_save_LIBS=$LIBS
9320 cat >conftest.$ac_ext <<_ACEOF
9323 cat confdefs.h >>conftest.$ac_ext
9324 cat >>conftest.$ac_ext <<_ACEOF
9325 /* end confdefs.h. */
9327 /* Override any GCC internal prototype to avoid an error.
9328 Use char because int might match the return type of a GCC
9329 builtin and then its argument prototype would still apply. */
9333 char uuid_export ();
9337 return uuid_export ();
9342 rm -f conftest.$ac_objext conftest$ac_exeext
9343 if { (ac_try="$ac_link"
9345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9346 *) ac_try_echo=$ac_try;;
9348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9349 $as_echo "$ac_try_echo") >&5
9350 (eval "$ac_link") 2>conftest.er1
9352 grep -v '^ *+' conftest.er1 >conftest.err
9354 cat conftest.err >&5
9355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); } && {
9357 test -z "$ac_c_werror_flag" ||
9358 test ! -s conftest.err
9359 } && test -s conftest$ac_exeext && {
9360 test "$cross_compiling" = yes ||
9361 $as_test_x conftest$ac_exeext
9363 ac_cv_lib_uuid_uuid_export=yes
9365 $as_echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.$ac_ext >&5
9368 ac_cv_lib_uuid_uuid_export=no
9371 rm -rf conftest.dSYM
9372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9373 conftest$ac_exeext conftest.$ac_ext
9374 LIBS=$ac_check_lib_save_LIBS
9376 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9377 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9378 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9379 OSSP_UUID_LIBS="-luuid"
9381 { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9382 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9383 { (exit 1); exit 1; }; }
9396 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9397 $as_echo_n "checking for ANSI C header files... " >&6; }
9398 if test "${ac_cv_header_stdc+set}" = set; then
9399 $as_echo_n "(cached) " >&6
9401 cat >conftest.$ac_ext <<_ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9420 rm -f conftest.$ac_objext
9421 if { (ac_try="$ac_compile"
9423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9424 *) ac_try_echo=$ac_try;;
9426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9427 $as_echo "$ac_try_echo") >&5
9428 (eval "$ac_compile") 2>conftest.er1
9430 grep -v '^ *+' conftest.er1 >conftest.err
9432 cat conftest.err >&5
9433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); } && {
9435 test -z "$ac_c_werror_flag" ||
9436 test ! -s conftest.err
9437 } && test -s conftest.$ac_objext; then
9438 ac_cv_header_stdc=yes
9440 $as_echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9443 ac_cv_header_stdc=no
9446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9448 if test $ac_cv_header_stdc = yes; then
9449 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9450 cat >conftest.$ac_ext <<_ACEOF
9453 cat confdefs.h >>conftest.$ac_ext
9454 cat >>conftest.$ac_ext <<_ACEOF
9455 /* end confdefs.h. */
9459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9460 $EGREP "memchr" >/dev/null 2>&1; then
9463 ac_cv_header_stdc=no
9469 if test $ac_cv_header_stdc = yes; then
9470 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9471 cat >conftest.$ac_ext <<_ACEOF
9474 cat confdefs.h >>conftest.$ac_ext
9475 cat >>conftest.$ac_ext <<_ACEOF
9476 /* end confdefs.h. */
9480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9481 $EGREP "free" >/dev/null 2>&1; then
9484 ac_cv_header_stdc=no
9490 if test $ac_cv_header_stdc = yes; then
9491 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9492 if test "$cross_compiling" = yes; then
9495 cat >conftest.$ac_ext <<_ACEOF
9498 cat confdefs.h >>conftest.$ac_ext
9499 cat >>conftest.$ac_ext <<_ACEOF
9500 /* end confdefs.h. */
9503 #if ((' ' & 0x0FF) == 0x020)
9504 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9505 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9507 # define ISLOWER(c) \
9508 (('a' <= (c) && (c) <= 'i') \
9509 || ('j' <= (c) && (c) <= 'r') \
9510 || ('s' <= (c) && (c) <= 'z'))
9511 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9514 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9519 for (i = 0; i < 256; i++)
9520 if (XOR (islower (i), ISLOWER (i))
9521 || toupper (i) != TOUPPER (i))
9526 rm -f conftest$ac_exeext
9527 if { (ac_try="$ac_link"
9529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530 *) ac_try_echo=$ac_try;;
9532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9533 $as_echo "$ac_try_echo") >&5
9534 (eval "$ac_link") 2>&5
9536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9538 { (case "(($ac_try" in
9539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9540 *) ac_try_echo=$ac_try;;
9542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9543 $as_echo "$ac_try_echo") >&5
9544 (eval "$ac_try") 2>&5
9546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; }; then
9550 $as_echo "$as_me: program exited with status $ac_status" >&5
9551 $as_echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9555 ac_cv_header_stdc=no
9557 rm -rf conftest.dSYM
9558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9564 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9565 $as_echo "$ac_cv_header_stdc" >&6; }
9566 if test $ac_cv_header_stdc = yes; then
9568 cat >>confdefs.h <<\_ACEOF
9569 #define STDC_HEADERS 1
9574 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9584 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9585 inttypes.h stdint.h unistd.h
9587 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9588 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9589 $as_echo_n "checking for $ac_header... " >&6; }
9590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9591 $as_echo_n "(cached) " >&6
9593 cat >conftest.$ac_ext <<_ACEOF
9596 cat confdefs.h >>conftest.$ac_ext
9597 cat >>conftest.$ac_ext <<_ACEOF
9598 /* end confdefs.h. */
9599 $ac_includes_default
9601 #include <$ac_header>
9603 rm -f conftest.$ac_objext
9604 if { (ac_try="$ac_compile"
9606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9607 *) ac_try_echo=$ac_try;;
9609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9610 $as_echo "$ac_try_echo") >&5
9611 (eval "$ac_compile") 2>conftest.er1
9613 grep -v '^ *+' conftest.er1 >conftest.err
9615 cat conftest.err >&5
9616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); } && {
9618 test -z "$ac_c_werror_flag" ||
9619 test ! -s conftest.err
9620 } && test -s conftest.$ac_objext; then
9621 eval "$as_ac_Header=yes"
9623 $as_echo "$as_me: failed program was:" >&5
9624 sed 's/^/| /' conftest.$ac_ext >&5
9626 eval "$as_ac_Header=no"
9629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9631 ac_res=`eval 'as_val=${'$as_ac_Header'}
9632 $as_echo "$as_val"'`
9633 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9634 $as_echo "$ac_res" >&6; }
9635 as_val=`eval 'as_val=${'$as_ac_Header'}
9636 $as_echo "$as_val"'`
9637 if test "x$as_val" = x""yes; then
9638 cat >>confdefs.h <<_ACEOF
9639 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9677 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
9679 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9681 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9682 $as_echo_n "checking for $ac_header... " >&6; }
9683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9684 $as_echo_n "(cached) " >&6
9686 ac_res=`eval 'as_val=${'$as_ac_Header'}
9687 $as_echo "$as_val"'`
9688 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9689 $as_echo "$ac_res" >&6; }
9691 # Is the header compilable?
9692 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9693 $as_echo_n "checking $ac_header usability... " >&6; }
9694 cat >conftest.$ac_ext <<_ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h. */
9700 $ac_includes_default
9701 #include <$ac_header>
9703 rm -f conftest.$ac_objext
9704 if { (ac_try="$ac_compile"
9706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707 *) ac_try_echo=$ac_try;;
9709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9710 $as_echo "$ac_try_echo") >&5
9711 (eval "$ac_compile") 2>conftest.er1
9713 grep -v '^ *+' conftest.er1 >conftest.err
9715 cat conftest.err >&5
9716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); } && {
9718 test -z "$ac_c_werror_flag" ||
9719 test ! -s conftest.err
9720 } && test -s conftest.$ac_objext; then
9721 ac_header_compiler=yes
9723 $as_echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9726 ac_header_compiler=no
9729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9730 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9731 $as_echo "$ac_header_compiler" >&6; }
9733 # Is the header present?
9734 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9735 $as_echo_n "checking $ac_header presence... " >&6; }
9736 cat >conftest.$ac_ext <<_ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9742 #include <$ac_header>
9744 if { (ac_try="$ac_cpp conftest.$ac_ext"
9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747 *) ac_try_echo=$ac_try;;
9749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9750 $as_echo "$ac_try_echo") >&5
9751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9753 grep -v '^ *+' conftest.er1 >conftest.err
9755 cat conftest.err >&5
9756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } >/dev/null && {
9758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9759 test ! -s conftest.err
9761 ac_header_preproc=yes
9763 $as_echo "$as_me: failed program was:" >&5
9764 sed 's/^/| /' conftest.$ac_ext >&5
9766 ac_header_preproc=no
9769 rm -f conftest.err conftest.$ac_ext
9770 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9771 $as_echo "$ac_header_preproc" >&6; }
9773 # So? What about this header?
9774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9777 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9779 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9780 ac_header_preproc=yes
9783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9784 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9786 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9788 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9790 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9792 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9794 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9796 ## ---------------------------------------- ##
9797 ## Report this to pgsql-bugs@postgresql.org ##
9798 ## ---------------------------------------- ##
9800 ) | sed "s/^/$as_me: WARNING: /" >&2
9803 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9804 $as_echo_n "checking for $ac_header... " >&6; }
9805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9806 $as_echo_n "(cached) " >&6
9808 eval "$as_ac_Header=\$ac_header_preproc"
9810 ac_res=`eval 'as_val=${'$as_ac_Header'}
9811 $as_echo "$as_val"'`
9812 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9813 $as_echo "$ac_res" >&6; }
9816 as_val=`eval 'as_val=${'$as_ac_Header'}
9817 $as_echo "$as_val"'`
9818 if test "x$as_val" = x""yes; then
9819 cat >>confdefs.h <<_ACEOF
9820 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9828 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
9829 # is included first.
9831 for ac_header in net/if.h
9833 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9834 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9835 $as_echo_n "checking for $ac_header... " >&6; }
9836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9837 $as_echo_n "(cached) " >&6
9839 cat >conftest.$ac_ext <<_ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h. */
9845 $ac_includes_default
9846 #ifdef HAVE_SYS_SOCKET_H
9847 #include <sys/socket.h>
9851 #include <$ac_header>
9853 rm -f conftest.$ac_objext
9854 if { (ac_try="$ac_compile"
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9860 $as_echo "$ac_try_echo") >&5
9861 (eval "$ac_compile") 2>conftest.er1
9863 grep -v '^ *+' conftest.er1 >conftest.err
9865 cat conftest.err >&5
9866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } && {
9868 test -z "$ac_c_werror_flag" ||
9869 test ! -s conftest.err
9870 } && test -s conftest.$ac_objext; then
9871 eval "$as_ac_Header=yes"
9873 $as_echo "$as_me: failed program was:" >&5
9874 sed 's/^/| /' conftest.$ac_ext >&5
9876 eval "$as_ac_Header=no"
9879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9881 ac_res=`eval 'as_val=${'$as_ac_Header'}
9882 $as_echo "$as_val"'`
9883 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9884 $as_echo "$ac_res" >&6; }
9885 as_val=`eval 'as_val=${'$as_ac_Header'}
9886 $as_echo "$as_val"'`
9887 if test "x$as_val" = x""yes; then
9888 cat >>confdefs.h <<_ACEOF
9889 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9897 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9898 # netinet/in.h is included first.
9900 for ac_header in netinet/in.h
9902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9904 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9905 $as_echo_n "checking for $ac_header... " >&6; }
9906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9907 $as_echo_n "(cached) " >&6
9909 ac_res=`eval 'as_val=${'$as_ac_Header'}
9910 $as_echo "$as_val"'`
9911 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9912 $as_echo "$ac_res" >&6; }
9914 # Is the header compilable?
9915 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9916 $as_echo_n "checking $ac_header usability... " >&6; }
9917 cat >conftest.$ac_ext <<_ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h. */
9923 $ac_includes_default
9924 #include <$ac_header>
9926 rm -f conftest.$ac_objext
9927 if { (ac_try="$ac_compile"
9929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930 *) ac_try_echo=$ac_try;;
9932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9933 $as_echo "$ac_try_echo") >&5
9934 (eval "$ac_compile") 2>conftest.er1
9936 grep -v '^ *+' conftest.er1 >conftest.err
9938 cat conftest.err >&5
9939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } && {
9941 test -z "$ac_c_werror_flag" ||
9942 test ! -s conftest.err
9943 } && test -s conftest.$ac_objext; then
9944 ac_header_compiler=yes
9946 $as_echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9949 ac_header_compiler=no
9952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9953 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9954 $as_echo "$ac_header_compiler" >&6; }
9956 # Is the header present?
9957 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9958 $as_echo_n "checking $ac_header presence... " >&6; }
9959 cat >conftest.$ac_ext <<_ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h. */
9965 #include <$ac_header>
9967 if { (ac_try="$ac_cpp conftest.$ac_ext"
9969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9970 *) ac_try_echo=$ac_try;;
9972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9973 $as_echo "$ac_try_echo") >&5
9974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9976 grep -v '^ *+' conftest.er1 >conftest.err
9978 cat conftest.err >&5
9979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); } >/dev/null && {
9981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9982 test ! -s conftest.err
9984 ac_header_preproc=yes
9986 $as_echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.$ac_ext >&5
9989 ac_header_preproc=no
9992 rm -f conftest.err conftest.$ac_ext
9993 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9994 $as_echo "$ac_header_preproc" >&6; }
9996 # So? What about this header?
9997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10000 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10002 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10003 ac_header_preproc=yes
10006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10007 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10009 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10011 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10013 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10015 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10017 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10019 ## ---------------------------------------- ##
10020 ## Report this to pgsql-bugs@postgresql.org ##
10021 ## ---------------------------------------- ##
10023 ) | sed "s/^/$as_me: WARNING: /" >&2
10026 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10027 $as_echo_n "checking for $ac_header... " >&6; }
10028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10029 $as_echo_n "(cached) " >&6
10031 eval "$as_ac_Header=\$ac_header_preproc"
10033 ac_res=`eval 'as_val=${'$as_ac_Header'}
10034 $as_echo "$as_val"'`
10035 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10036 $as_echo "$ac_res" >&6; }
10039 as_val=`eval 'as_val=${'$as_ac_Header'}
10040 $as_echo "$as_val"'`
10041 if test "x$as_val" = x""yes; then
10042 cat >>confdefs.h <<_ACEOF
10043 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10051 for ac_header in netinet/tcp.h
10053 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10054 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10055 $as_echo_n "checking for $ac_header... " >&6; }
10056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10057 $as_echo_n "(cached) " >&6
10059 cat >conftest.$ac_ext <<_ACEOF
10062 cat confdefs.h >>conftest.$ac_ext
10063 cat >>conftest.$ac_ext <<_ACEOF
10064 /* end confdefs.h. */
10065 $ac_includes_default
10066 #ifdef HAVE_NETINET_IN_H
10067 #include <netinet/in.h>
10071 #include <$ac_header>
10073 rm -f conftest.$ac_objext
10074 if { (ac_try="$ac_compile"
10075 case "(($ac_try" in
10076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10077 *) ac_try_echo=$ac_try;;
10079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10080 $as_echo "$ac_try_echo") >&5
10081 (eval "$ac_compile") 2>conftest.er1
10083 grep -v '^ *+' conftest.er1 >conftest.err
10085 cat conftest.err >&5
10086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } && {
10088 test -z "$ac_c_werror_flag" ||
10089 test ! -s conftest.err
10090 } && test -s conftest.$ac_objext; then
10091 eval "$as_ac_Header=yes"
10093 $as_echo "$as_me: failed program was:" >&5
10094 sed 's/^/| /' conftest.$ac_ext >&5
10096 eval "$as_ac_Header=no"
10099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10101 ac_res=`eval 'as_val=${'$as_ac_Header'}
10102 $as_echo "$as_val"'`
10103 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10104 $as_echo "$ac_res" >&6; }
10105 as_val=`eval 'as_val=${'$as_ac_Header'}
10106 $as_echo "$as_val"'`
10107 if test "x$as_val" = x""yes; then
10108 cat >>confdefs.h <<_ACEOF
10109 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10117 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10119 for ac_header in readline/readline.h
10121 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10123 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10124 $as_echo_n "checking for $ac_header... " >&6; }
10125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10126 $as_echo_n "(cached) " >&6
10128 ac_res=`eval 'as_val=${'$as_ac_Header'}
10129 $as_echo "$as_val"'`
10130 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10131 $as_echo "$ac_res" >&6; }
10133 # Is the header compilable?
10134 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10135 $as_echo_n "checking $ac_header usability... " >&6; }
10136 cat >conftest.$ac_ext <<_ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10142 $ac_includes_default
10143 #include <$ac_header>
10145 rm -f conftest.$ac_objext
10146 if { (ac_try="$ac_compile"
10147 case "(($ac_try" in
10148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149 *) ac_try_echo=$ac_try;;
10151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10152 $as_echo "$ac_try_echo") >&5
10153 (eval "$ac_compile") 2>conftest.er1
10155 grep -v '^ *+' conftest.er1 >conftest.err
10157 cat conftest.err >&5
10158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); } && {
10160 test -z "$ac_c_werror_flag" ||
10161 test ! -s conftest.err
10162 } && test -s conftest.$ac_objext; then
10163 ac_header_compiler=yes
10165 $as_echo "$as_me: failed program was:" >&5
10166 sed 's/^/| /' conftest.$ac_ext >&5
10168 ac_header_compiler=no
10171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10172 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10173 $as_echo "$ac_header_compiler" >&6; }
10175 # Is the header present?
10176 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10177 $as_echo_n "checking $ac_header presence... " >&6; }
10178 cat >conftest.$ac_ext <<_ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10184 #include <$ac_header>
10186 if { (ac_try="$ac_cpp conftest.$ac_ext"
10187 case "(($ac_try" in
10188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189 *) ac_try_echo=$ac_try;;
10191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10192 $as_echo "$ac_try_echo") >&5
10193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10195 grep -v '^ *+' conftest.er1 >conftest.err
10197 cat conftest.err >&5
10198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } >/dev/null && {
10200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10201 test ! -s conftest.err
10203 ac_header_preproc=yes
10205 $as_echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10208 ac_header_preproc=no
10211 rm -f conftest.err conftest.$ac_ext
10212 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10213 $as_echo "$ac_header_preproc" >&6; }
10215 # So? What about this header?
10216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10219 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10221 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10222 ac_header_preproc=yes
10225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10226 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10227 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10228 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10230 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10232 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10234 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10236 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10238 ## ---------------------------------------- ##
10239 ## Report this to pgsql-bugs@postgresql.org ##
10240 ## ---------------------------------------- ##
10242 ) | sed "s/^/$as_me: WARNING: /" >&2
10245 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10246 $as_echo_n "checking for $ac_header... " >&6; }
10247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10248 $as_echo_n "(cached) " >&6
10250 eval "$as_ac_Header=\$ac_header_preproc"
10252 ac_res=`eval 'as_val=${'$as_ac_Header'}
10253 $as_echo "$as_val"'`
10254 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10255 $as_echo "$ac_res" >&6; }
10258 as_val=`eval 'as_val=${'$as_ac_Header'}
10259 $as_echo "$as_val"'`
10260 if test "x$as_val" = x""yes; then
10261 cat >>confdefs.h <<_ACEOF
10262 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10267 for ac_header in readline.h
10269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10271 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10272 $as_echo_n "checking for $ac_header... " >&6; }
10273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10274 $as_echo_n "(cached) " >&6
10276 ac_res=`eval 'as_val=${'$as_ac_Header'}
10277 $as_echo "$as_val"'`
10278 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10279 $as_echo "$ac_res" >&6; }
10281 # Is the header compilable?
10282 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10283 $as_echo_n "checking $ac_header usability... " >&6; }
10284 cat >conftest.$ac_ext <<_ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h. */
10290 $ac_includes_default
10291 #include <$ac_header>
10293 rm -f conftest.$ac_objext
10294 if { (ac_try="$ac_compile"
10295 case "(($ac_try" in
10296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10297 *) ac_try_echo=$ac_try;;
10299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10300 $as_echo "$ac_try_echo") >&5
10301 (eval "$ac_compile") 2>conftest.er1
10303 grep -v '^ *+' conftest.er1 >conftest.err
10305 cat conftest.err >&5
10306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); } && {
10308 test -z "$ac_c_werror_flag" ||
10309 test ! -s conftest.err
10310 } && test -s conftest.$ac_objext; then
10311 ac_header_compiler=yes
10313 $as_echo "$as_me: failed program was:" >&5
10314 sed 's/^/| /' conftest.$ac_ext >&5
10316 ac_header_compiler=no
10319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10320 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10321 $as_echo "$ac_header_compiler" >&6; }
10323 # Is the header present?
10324 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10325 $as_echo_n "checking $ac_header presence... " >&6; }
10326 cat >conftest.$ac_ext <<_ACEOF
10329 cat confdefs.h >>conftest.$ac_ext
10330 cat >>conftest.$ac_ext <<_ACEOF
10331 /* end confdefs.h. */
10332 #include <$ac_header>
10334 if { (ac_try="$ac_cpp conftest.$ac_ext"
10335 case "(($ac_try" in
10336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10337 *) ac_try_echo=$ac_try;;
10339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10340 $as_echo "$ac_try_echo") >&5
10341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10343 grep -v '^ *+' conftest.er1 >conftest.err
10345 cat conftest.err >&5
10346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } >/dev/null && {
10348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10349 test ! -s conftest.err
10351 ac_header_preproc=yes
10353 $as_echo "$as_me: failed program was:" >&5
10354 sed 's/^/| /' conftest.$ac_ext >&5
10356 ac_header_preproc=no
10359 rm -f conftest.err conftest.$ac_ext
10360 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10361 $as_echo "$ac_header_preproc" >&6; }
10363 # So? What about this header?
10364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10367 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10369 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10370 ac_header_preproc=yes
10373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10374 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10376 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10378 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10380 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10382 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10384 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10386 ## ---------------------------------------- ##
10387 ## Report this to pgsql-bugs@postgresql.org ##
10388 ## ---------------------------------------- ##
10390 ) | sed "s/^/$as_me: WARNING: /" >&2
10393 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10394 $as_echo_n "checking for $ac_header... " >&6; }
10395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10396 $as_echo_n "(cached) " >&6
10398 eval "$as_ac_Header=\$ac_header_preproc"
10400 ac_res=`eval 'as_val=${'$as_ac_Header'}
10401 $as_echo "$as_val"'`
10402 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10403 $as_echo "$ac_res" >&6; }
10406 as_val=`eval 'as_val=${'$as_ac_Header'}
10407 $as_echo "$as_val"'`
10408 if test "x$as_val" = x""yes; then
10409 cat >>confdefs.h <<_ACEOF
10410 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10414 { { $as_echo "$as_me:$LINENO: error: readline header not found
10415 If you have readline already installed, see config.log for details on the
10416 failure. It is possible the compiler isn't looking in the proper directory.
10417 Use --without-readline to disable readline support." >&5
10418 $as_echo "$as_me: error: readline header not found
10419 If you have readline already installed, see config.log for details on the
10420 failure. It is possible the compiler isn't looking in the proper directory.
10421 Use --without-readline to disable readline support." >&2;}
10422 { (exit 1); exit 1; }; }
10432 for ac_header in readline/history.h
10434 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10436 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10437 $as_echo_n "checking for $ac_header... " >&6; }
10438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10439 $as_echo_n "(cached) " >&6
10441 ac_res=`eval 'as_val=${'$as_ac_Header'}
10442 $as_echo "$as_val"'`
10443 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10444 $as_echo "$ac_res" >&6; }
10446 # Is the header compilable?
10447 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10448 $as_echo_n "checking $ac_header usability... " >&6; }
10449 cat >conftest.$ac_ext <<_ACEOF
10452 cat confdefs.h >>conftest.$ac_ext
10453 cat >>conftest.$ac_ext <<_ACEOF
10454 /* end confdefs.h. */
10455 $ac_includes_default
10456 #include <$ac_header>
10458 rm -f conftest.$ac_objext
10459 if { (ac_try="$ac_compile"
10460 case "(($ac_try" in
10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462 *) ac_try_echo=$ac_try;;
10464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10465 $as_echo "$ac_try_echo") >&5
10466 (eval "$ac_compile") 2>conftest.er1
10468 grep -v '^ *+' conftest.er1 >conftest.err
10470 cat conftest.err >&5
10471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } && {
10473 test -z "$ac_c_werror_flag" ||
10474 test ! -s conftest.err
10475 } && test -s conftest.$ac_objext; then
10476 ac_header_compiler=yes
10478 $as_echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10481 ac_header_compiler=no
10484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10485 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10486 $as_echo "$ac_header_compiler" >&6; }
10488 # Is the header present?
10489 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10490 $as_echo_n "checking $ac_header presence... " >&6; }
10491 cat >conftest.$ac_ext <<_ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h. */
10497 #include <$ac_header>
10499 if { (ac_try="$ac_cpp conftest.$ac_ext"
10500 case "(($ac_try" in
10501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10502 *) ac_try_echo=$ac_try;;
10504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10505 $as_echo "$ac_try_echo") >&5
10506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10508 grep -v '^ *+' conftest.er1 >conftest.err
10510 cat conftest.err >&5
10511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); } >/dev/null && {
10513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10514 test ! -s conftest.err
10516 ac_header_preproc=yes
10518 $as_echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.$ac_ext >&5
10521 ac_header_preproc=no
10524 rm -f conftest.err conftest.$ac_ext
10525 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10526 $as_echo "$ac_header_preproc" >&6; }
10528 # So? What about this header?
10529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10532 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10534 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10535 ac_header_preproc=yes
10538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10539 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10541 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10543 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10545 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10547 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10549 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10551 ## ---------------------------------------- ##
10552 ## Report this to pgsql-bugs@postgresql.org ##
10553 ## ---------------------------------------- ##
10555 ) | sed "s/^/$as_me: WARNING: /" >&2
10558 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10559 $as_echo_n "checking for $ac_header... " >&6; }
10560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10561 $as_echo_n "(cached) " >&6
10563 eval "$as_ac_Header=\$ac_header_preproc"
10565 ac_res=`eval 'as_val=${'$as_ac_Header'}
10566 $as_echo "$as_val"'`
10567 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10568 $as_echo "$ac_res" >&6; }
10571 as_val=`eval 'as_val=${'$as_ac_Header'}
10572 $as_echo "$as_val"'`
10573 if test "x$as_val" = x""yes; then
10574 cat >>confdefs.h <<_ACEOF
10575 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10580 for ac_header in history.h
10582 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10584 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10585 $as_echo_n "checking for $ac_header... " >&6; }
10586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10587 $as_echo_n "(cached) " >&6
10589 ac_res=`eval 'as_val=${'$as_ac_Header'}
10590 $as_echo "$as_val"'`
10591 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10592 $as_echo "$ac_res" >&6; }
10594 # Is the header compilable?
10595 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10596 $as_echo_n "checking $ac_header usability... " >&6; }
10597 cat >conftest.$ac_ext <<_ACEOF
10600 cat confdefs.h >>conftest.$ac_ext
10601 cat >>conftest.$ac_ext <<_ACEOF
10602 /* end confdefs.h. */
10603 $ac_includes_default
10604 #include <$ac_header>
10606 rm -f conftest.$ac_objext
10607 if { (ac_try="$ac_compile"
10608 case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10613 $as_echo "$ac_try_echo") >&5
10614 (eval "$ac_compile") 2>conftest.er1
10616 grep -v '^ *+' conftest.er1 >conftest.err
10618 cat conftest.err >&5
10619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } && {
10621 test -z "$ac_c_werror_flag" ||
10622 test ! -s conftest.err
10623 } && test -s conftest.$ac_objext; then
10624 ac_header_compiler=yes
10626 $as_echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10629 ac_header_compiler=no
10632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10633 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10634 $as_echo "$ac_header_compiler" >&6; }
10636 # Is the header present?
10637 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10638 $as_echo_n "checking $ac_header presence... " >&6; }
10639 cat >conftest.$ac_ext <<_ACEOF
10642 cat confdefs.h >>conftest.$ac_ext
10643 cat >>conftest.$ac_ext <<_ACEOF
10644 /* end confdefs.h. */
10645 #include <$ac_header>
10647 if { (ac_try="$ac_cpp conftest.$ac_ext"
10648 case "(($ac_try" in
10649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10650 *) ac_try_echo=$ac_try;;
10652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10653 $as_echo "$ac_try_echo") >&5
10654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10656 grep -v '^ *+' conftest.er1 >conftest.err
10658 cat conftest.err >&5
10659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); } >/dev/null && {
10661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10662 test ! -s conftest.err
10664 ac_header_preproc=yes
10666 $as_echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10669 ac_header_preproc=no
10672 rm -f conftest.err conftest.$ac_ext
10673 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10674 $as_echo "$ac_header_preproc" >&6; }
10676 # So? What about this header?
10677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10680 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10682 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10683 ac_header_preproc=yes
10686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10687 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10689 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10691 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10693 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10695 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10697 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10699 ## ---------------------------------------- ##
10700 ## Report this to pgsql-bugs@postgresql.org ##
10701 ## ---------------------------------------- ##
10703 ) | sed "s/^/$as_me: WARNING: /" >&2
10706 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10707 $as_echo_n "checking for $ac_header... " >&6; }
10708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10709 $as_echo_n "(cached) " >&6
10711 eval "$as_ac_Header=\$ac_header_preproc"
10713 ac_res=`eval 'as_val=${'$as_ac_Header'}
10714 $as_echo "$as_val"'`
10715 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10716 $as_echo "$ac_res" >&6; }
10719 as_val=`eval 'as_val=${'$as_ac_Header'}
10720 $as_echo "$as_val"'`
10721 if test "x$as_val" = x""yes; then
10722 cat >>confdefs.h <<_ACEOF
10723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10727 { { $as_echo "$as_me:$LINENO: error: history header not found
10728 If you have readline already installed, see config.log for details on the
10729 failure. It is possible the compiler isn't looking in the proper directory.
10730 Use --without-readline to disable readline support." >&5
10731 $as_echo "$as_me: error: history header not found
10732 If you have readline already installed, see config.log for details on the
10733 failure. It is possible the compiler isn't looking in the proper directory.
10734 Use --without-readline to disable readline support." >&2;}
10735 { (exit 1); exit 1; }; }
10746 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10747 # Some installations of libedit usurp /usr/include/readline/, which seems
10748 # bad practice, since in combined installations readline will have its headers
10749 # there. We might have to resort to AC_EGREP checks to make sure we found
10750 # the proper header...
10752 for ac_header in editline/readline.h
10754 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10756 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10757 $as_echo_n "checking for $ac_header... " >&6; }
10758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10759 $as_echo_n "(cached) " >&6
10761 ac_res=`eval 'as_val=${'$as_ac_Header'}
10762 $as_echo "$as_val"'`
10763 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10764 $as_echo "$ac_res" >&6; }
10766 # Is the header compilable?
10767 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10768 $as_echo_n "checking $ac_header usability... " >&6; }
10769 cat >conftest.$ac_ext <<_ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h. */
10775 $ac_includes_default
10776 #include <$ac_header>
10778 rm -f conftest.$ac_objext
10779 if { (ac_try="$ac_compile"
10780 case "(($ac_try" in
10781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10782 *) ac_try_echo=$ac_try;;
10784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10785 $as_echo "$ac_try_echo") >&5
10786 (eval "$ac_compile") 2>conftest.er1
10788 grep -v '^ *+' conftest.er1 >conftest.err
10790 cat conftest.err >&5
10791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } && {
10793 test -z "$ac_c_werror_flag" ||
10794 test ! -s conftest.err
10795 } && test -s conftest.$ac_objext; then
10796 ac_header_compiler=yes
10798 $as_echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10801 ac_header_compiler=no
10804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10805 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10806 $as_echo "$ac_header_compiler" >&6; }
10808 # Is the header present?
10809 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10810 $as_echo_n "checking $ac_header presence... " >&6; }
10811 cat >conftest.$ac_ext <<_ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h. */
10817 #include <$ac_header>
10819 if { (ac_try="$ac_cpp conftest.$ac_ext"
10820 case "(($ac_try" in
10821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822 *) ac_try_echo=$ac_try;;
10824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10825 $as_echo "$ac_try_echo") >&5
10826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10828 grep -v '^ *+' conftest.er1 >conftest.err
10830 cat conftest.err >&5
10831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } >/dev/null && {
10833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10834 test ! -s conftest.err
10836 ac_header_preproc=yes
10838 $as_echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.$ac_ext >&5
10841 ac_header_preproc=no
10844 rm -f conftest.err conftest.$ac_ext
10845 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10846 $as_echo "$ac_header_preproc" >&6; }
10848 # So? What about this header?
10849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10852 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10854 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10855 ac_header_preproc=yes
10858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10859 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10861 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10863 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10865 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10867 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10869 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10871 ## ---------------------------------------- ##
10872 ## Report this to pgsql-bugs@postgresql.org ##
10873 ## ---------------------------------------- ##
10875 ) | sed "s/^/$as_me: WARNING: /" >&2
10878 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10879 $as_echo_n "checking for $ac_header... " >&6; }
10880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10881 $as_echo_n "(cached) " >&6
10883 eval "$as_ac_Header=\$ac_header_preproc"
10885 ac_res=`eval 'as_val=${'$as_ac_Header'}
10886 $as_echo "$as_val"'`
10887 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10888 $as_echo "$ac_res" >&6; }
10891 as_val=`eval 'as_val=${'$as_ac_Header'}
10892 $as_echo "$as_val"'`
10893 if test "x$as_val" = x""yes; then
10894 cat >>confdefs.h <<_ACEOF
10895 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10900 for ac_header in readline.h
10902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10904 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10905 $as_echo_n "checking for $ac_header... " >&6; }
10906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10907 $as_echo_n "(cached) " >&6
10909 ac_res=`eval 'as_val=${'$as_ac_Header'}
10910 $as_echo "$as_val"'`
10911 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10912 $as_echo "$ac_res" >&6; }
10914 # Is the header compilable?
10915 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10916 $as_echo_n "checking $ac_header usability... " >&6; }
10917 cat >conftest.$ac_ext <<_ACEOF
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h. */
10923 $ac_includes_default
10924 #include <$ac_header>
10926 rm -f conftest.$ac_objext
10927 if { (ac_try="$ac_compile"
10928 case "(($ac_try" in
10929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10930 *) ac_try_echo=$ac_try;;
10932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10933 $as_echo "$ac_try_echo") >&5
10934 (eval "$ac_compile") 2>conftest.er1
10936 grep -v '^ *+' conftest.er1 >conftest.err
10938 cat conftest.err >&5
10939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } && {
10941 test -z "$ac_c_werror_flag" ||
10942 test ! -s conftest.err
10943 } && test -s conftest.$ac_objext; then
10944 ac_header_compiler=yes
10946 $as_echo "$as_me: failed program was:" >&5
10947 sed 's/^/| /' conftest.$ac_ext >&5
10949 ac_header_compiler=no
10952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10953 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10954 $as_echo "$ac_header_compiler" >&6; }
10956 # Is the header present?
10957 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10958 $as_echo_n "checking $ac_header presence... " >&6; }
10959 cat >conftest.$ac_ext <<_ACEOF
10962 cat confdefs.h >>conftest.$ac_ext
10963 cat >>conftest.$ac_ext <<_ACEOF
10964 /* end confdefs.h. */
10965 #include <$ac_header>
10967 if { (ac_try="$ac_cpp conftest.$ac_ext"
10968 case "(($ac_try" in
10969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970 *) ac_try_echo=$ac_try;;
10972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10973 $as_echo "$ac_try_echo") >&5
10974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10976 grep -v '^ *+' conftest.er1 >conftest.err
10978 cat conftest.err >&5
10979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); } >/dev/null && {
10981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10982 test ! -s conftest.err
10984 ac_header_preproc=yes
10986 $as_echo "$as_me: failed program was:" >&5
10987 sed 's/^/| /' conftest.$ac_ext >&5
10989 ac_header_preproc=no
10992 rm -f conftest.err conftest.$ac_ext
10993 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10994 $as_echo "$ac_header_preproc" >&6; }
10996 # So? What about this header?
10997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11000 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11002 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11003 ac_header_preproc=yes
11006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11007 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11009 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11011 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11013 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11015 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11017 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11019 ## ---------------------------------------- ##
11020 ## Report this to pgsql-bugs@postgresql.org ##
11021 ## ---------------------------------------- ##
11023 ) | sed "s/^/$as_me: WARNING: /" >&2
11026 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11027 $as_echo_n "checking for $ac_header... " >&6; }
11028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11029 $as_echo_n "(cached) " >&6
11031 eval "$as_ac_Header=\$ac_header_preproc"
11033 ac_res=`eval 'as_val=${'$as_ac_Header'}
11034 $as_echo "$as_val"'`
11035 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11036 $as_echo "$ac_res" >&6; }
11039 as_val=`eval 'as_val=${'$as_ac_Header'}
11040 $as_echo "$as_val"'`
11041 if test "x$as_val" = x""yes; then
11042 cat >>confdefs.h <<_ACEOF
11043 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11048 for ac_header in readline/readline.h
11050 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11052 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11053 $as_echo_n "checking for $ac_header... " >&6; }
11054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11055 $as_echo_n "(cached) " >&6
11057 ac_res=`eval 'as_val=${'$as_ac_Header'}
11058 $as_echo "$as_val"'`
11059 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11060 $as_echo "$ac_res" >&6; }
11062 # Is the header compilable?
11063 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11064 $as_echo_n "checking $ac_header usability... " >&6; }
11065 cat >conftest.$ac_ext <<_ACEOF
11068 cat confdefs.h >>conftest.$ac_ext
11069 cat >>conftest.$ac_ext <<_ACEOF
11070 /* end confdefs.h. */
11071 $ac_includes_default
11072 #include <$ac_header>
11074 rm -f conftest.$ac_objext
11075 if { (ac_try="$ac_compile"
11076 case "(($ac_try" in
11077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078 *) ac_try_echo=$ac_try;;
11080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11081 $as_echo "$ac_try_echo") >&5
11082 (eval "$ac_compile") 2>conftest.er1
11084 grep -v '^ *+' conftest.er1 >conftest.err
11086 cat conftest.err >&5
11087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); } && {
11089 test -z "$ac_c_werror_flag" ||
11090 test ! -s conftest.err
11091 } && test -s conftest.$ac_objext; then
11092 ac_header_compiler=yes
11094 $as_echo "$as_me: failed program was:" >&5
11095 sed 's/^/| /' conftest.$ac_ext >&5
11097 ac_header_compiler=no
11100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11101 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11102 $as_echo "$ac_header_compiler" >&6; }
11104 # Is the header present?
11105 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11106 $as_echo_n "checking $ac_header presence... " >&6; }
11107 cat >conftest.$ac_ext <<_ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h. */
11113 #include <$ac_header>
11115 if { (ac_try="$ac_cpp conftest.$ac_ext"
11116 case "(($ac_try" in
11117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118 *) ac_try_echo=$ac_try;;
11120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11121 $as_echo "$ac_try_echo") >&5
11122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11124 grep -v '^ *+' conftest.er1 >conftest.err
11126 cat conftest.err >&5
11127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); } >/dev/null && {
11129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11130 test ! -s conftest.err
11132 ac_header_preproc=yes
11134 $as_echo "$as_me: failed program was:" >&5
11135 sed 's/^/| /' conftest.$ac_ext >&5
11137 ac_header_preproc=no
11140 rm -f conftest.err conftest.$ac_ext
11141 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11142 $as_echo "$ac_header_preproc" >&6; }
11144 # So? What about this header?
11145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11148 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11150 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11151 ac_header_preproc=yes
11154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11155 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11156 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11157 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11159 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11161 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11163 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11165 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11167 ## ---------------------------------------- ##
11168 ## Report this to pgsql-bugs@postgresql.org ##
11169 ## ---------------------------------------- ##
11171 ) | sed "s/^/$as_me: WARNING: /" >&2
11174 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11175 $as_echo_n "checking for $ac_header... " >&6; }
11176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11177 $as_echo_n "(cached) " >&6
11179 eval "$as_ac_Header=\$ac_header_preproc"
11181 ac_res=`eval 'as_val=${'$as_ac_Header'}
11182 $as_echo "$as_val"'`
11183 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11184 $as_echo "$ac_res" >&6; }
11187 as_val=`eval 'as_val=${'$as_ac_Header'}
11188 $as_echo "$as_val"'`
11189 if test "x$as_val" = x""yes; then
11190 cat >>confdefs.h <<_ACEOF
11191 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11195 { { $as_echo "$as_me:$LINENO: error: readline header not found
11196 If you have libedit already installed, see config.log for details on the
11197 failure. It is possible the compiler isn't looking in the proper directory.
11198 Use --without-readline to disable libedit support." >&5
11199 $as_echo "$as_me: error: readline header not found
11200 If you have libedit already installed, see config.log for details on the
11201 failure. It is possible the compiler isn't looking in the proper directory.
11202 Use --without-readline to disable libedit support." >&2;}
11203 { (exit 1); exit 1; }; }
11216 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11217 # not be there at all. Hence, don't complain if not found. We must check
11218 # though, since in yet other versions it is an independent header.
11220 for ac_header in editline/history.h
11222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11224 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11225 $as_echo_n "checking for $ac_header... " >&6; }
11226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11227 $as_echo_n "(cached) " >&6
11229 ac_res=`eval 'as_val=${'$as_ac_Header'}
11230 $as_echo "$as_val"'`
11231 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11232 $as_echo "$ac_res" >&6; }
11234 # Is the header compilable?
11235 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11236 $as_echo_n "checking $ac_header usability... " >&6; }
11237 cat >conftest.$ac_ext <<_ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h. */
11243 $ac_includes_default
11244 #include <$ac_header>
11246 rm -f conftest.$ac_objext
11247 if { (ac_try="$ac_compile"
11248 case "(($ac_try" in
11249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11250 *) ac_try_echo=$ac_try;;
11252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11253 $as_echo "$ac_try_echo") >&5
11254 (eval "$ac_compile") 2>conftest.er1
11256 grep -v '^ *+' conftest.er1 >conftest.err
11258 cat conftest.err >&5
11259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); } && {
11261 test -z "$ac_c_werror_flag" ||
11262 test ! -s conftest.err
11263 } && test -s conftest.$ac_objext; then
11264 ac_header_compiler=yes
11266 $as_echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11269 ac_header_compiler=no
11272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11273 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11274 $as_echo "$ac_header_compiler" >&6; }
11276 # Is the header present?
11277 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11278 $as_echo_n "checking $ac_header presence... " >&6; }
11279 cat >conftest.$ac_ext <<_ACEOF
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h. */
11285 #include <$ac_header>
11287 if { (ac_try="$ac_cpp conftest.$ac_ext"
11288 case "(($ac_try" in
11289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290 *) ac_try_echo=$ac_try;;
11292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11293 $as_echo "$ac_try_echo") >&5
11294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11296 grep -v '^ *+' conftest.er1 >conftest.err
11298 cat conftest.err >&5
11299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); } >/dev/null && {
11301 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11302 test ! -s conftest.err
11304 ac_header_preproc=yes
11306 $as_echo "$as_me: failed program was:" >&5
11307 sed 's/^/| /' conftest.$ac_ext >&5
11309 ac_header_preproc=no
11312 rm -f conftest.err conftest.$ac_ext
11313 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11314 $as_echo "$ac_header_preproc" >&6; }
11316 # So? What about this header?
11317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11320 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11322 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11323 ac_header_preproc=yes
11326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11327 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11329 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11331 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11333 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11335 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11337 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11339 ## ---------------------------------------- ##
11340 ## Report this to pgsql-bugs@postgresql.org ##
11341 ## ---------------------------------------- ##
11343 ) | sed "s/^/$as_me: WARNING: /" >&2
11346 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11347 $as_echo_n "checking for $ac_header... " >&6; }
11348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11349 $as_echo_n "(cached) " >&6
11351 eval "$as_ac_Header=\$ac_header_preproc"
11353 ac_res=`eval 'as_val=${'$as_ac_Header'}
11354 $as_echo "$as_val"'`
11355 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11356 $as_echo "$ac_res" >&6; }
11359 as_val=`eval 'as_val=${'$as_ac_Header'}
11360 $as_echo "$as_val"'`
11361 if test "x$as_val" = x""yes; then
11362 cat >>confdefs.h <<_ACEOF
11363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11368 for ac_header in history.h
11370 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11372 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11373 $as_echo_n "checking for $ac_header... " >&6; }
11374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11375 $as_echo_n "(cached) " >&6
11377 ac_res=`eval 'as_val=${'$as_ac_Header'}
11378 $as_echo "$as_val"'`
11379 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11380 $as_echo "$ac_res" >&6; }
11382 # Is the header compilable?
11383 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11384 $as_echo_n "checking $ac_header usability... " >&6; }
11385 cat >conftest.$ac_ext <<_ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h. */
11391 $ac_includes_default
11392 #include <$ac_header>
11394 rm -f conftest.$ac_objext
11395 if { (ac_try="$ac_compile"
11396 case "(($ac_try" in
11397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398 *) ac_try_echo=$ac_try;;
11400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11401 $as_echo "$ac_try_echo") >&5
11402 (eval "$ac_compile") 2>conftest.er1
11404 grep -v '^ *+' conftest.er1 >conftest.err
11406 cat conftest.err >&5
11407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } && {
11409 test -z "$ac_c_werror_flag" ||
11410 test ! -s conftest.err
11411 } && test -s conftest.$ac_objext; then
11412 ac_header_compiler=yes
11414 $as_echo "$as_me: failed program was:" >&5
11415 sed 's/^/| /' conftest.$ac_ext >&5
11417 ac_header_compiler=no
11420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11421 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11422 $as_echo "$ac_header_compiler" >&6; }
11424 # Is the header present?
11425 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11426 $as_echo_n "checking $ac_header presence... " >&6; }
11427 cat >conftest.$ac_ext <<_ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h. */
11433 #include <$ac_header>
11435 if { (ac_try="$ac_cpp conftest.$ac_ext"
11436 case "(($ac_try" in
11437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438 *) ac_try_echo=$ac_try;;
11440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11441 $as_echo "$ac_try_echo") >&5
11442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11444 grep -v '^ *+' conftest.er1 >conftest.err
11446 cat conftest.err >&5
11447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } >/dev/null && {
11449 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11450 test ! -s conftest.err
11452 ac_header_preproc=yes
11454 $as_echo "$as_me: failed program was:" >&5
11455 sed 's/^/| /' conftest.$ac_ext >&5
11457 ac_header_preproc=no
11460 rm -f conftest.err conftest.$ac_ext
11461 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11462 $as_echo "$ac_header_preproc" >&6; }
11464 # So? What about this header?
11465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11467 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11468 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11470 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11471 ac_header_preproc=yes
11474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11475 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11477 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11479 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11481 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11482 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11483 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11484 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11485 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11487 ## ---------------------------------------- ##
11488 ## Report this to pgsql-bugs@postgresql.org ##
11489 ## ---------------------------------------- ##
11491 ) | sed "s/^/$as_me: WARNING: /" >&2
11494 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11495 $as_echo_n "checking for $ac_header... " >&6; }
11496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11497 $as_echo_n "(cached) " >&6
11499 eval "$as_ac_Header=\$ac_header_preproc"
11501 ac_res=`eval 'as_val=${'$as_ac_Header'}
11502 $as_echo "$as_val"'`
11503 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11504 $as_echo "$ac_res" >&6; }
11507 as_val=`eval 'as_val=${'$as_ac_Header'}
11508 $as_echo "$as_val"'`
11509 if test "x$as_val" = x""yes; then
11510 cat >>confdefs.h <<_ACEOF
11511 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11516 for ac_header in readline/history.h
11518 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11520 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11521 $as_echo_n "checking for $ac_header... " >&6; }
11522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11523 $as_echo_n "(cached) " >&6
11525 ac_res=`eval 'as_val=${'$as_ac_Header'}
11526 $as_echo "$as_val"'`
11527 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11528 $as_echo "$ac_res" >&6; }
11530 # Is the header compilable?
11531 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11532 $as_echo_n "checking $ac_header usability... " >&6; }
11533 cat >conftest.$ac_ext <<_ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11539 $ac_includes_default
11540 #include <$ac_header>
11542 rm -f conftest.$ac_objext
11543 if { (ac_try="$ac_compile"
11544 case "(($ac_try" in
11545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11546 *) ac_try_echo=$ac_try;;
11548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11549 $as_echo "$ac_try_echo") >&5
11550 (eval "$ac_compile") 2>conftest.er1
11552 grep -v '^ *+' conftest.er1 >conftest.err
11554 cat conftest.err >&5
11555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); } && {
11557 test -z "$ac_c_werror_flag" ||
11558 test ! -s conftest.err
11559 } && test -s conftest.$ac_objext; then
11560 ac_header_compiler=yes
11562 $as_echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11565 ac_header_compiler=no
11568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11569 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11570 $as_echo "$ac_header_compiler" >&6; }
11572 # Is the header present?
11573 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11574 $as_echo_n "checking $ac_header presence... " >&6; }
11575 cat >conftest.$ac_ext <<_ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h. */
11581 #include <$ac_header>
11583 if { (ac_try="$ac_cpp conftest.$ac_ext"
11584 case "(($ac_try" in
11585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586 *) ac_try_echo=$ac_try;;
11588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11589 $as_echo "$ac_try_echo") >&5
11590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11592 grep -v '^ *+' conftest.er1 >conftest.err
11594 cat conftest.err >&5
11595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); } >/dev/null && {
11597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11598 test ! -s conftest.err
11600 ac_header_preproc=yes
11602 $as_echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.$ac_ext >&5
11605 ac_header_preproc=no
11608 rm -f conftest.err conftest.$ac_ext
11609 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11610 $as_echo "$ac_header_preproc" >&6; }
11612 # So? What about this header?
11613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11616 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11618 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11619 ac_header_preproc=yes
11622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11623 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11625 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11627 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11629 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11631 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11633 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11635 ## ---------------------------------------- ##
11636 ## Report this to pgsql-bugs@postgresql.org ##
11637 ## ---------------------------------------- ##
11639 ) | sed "s/^/$as_me: WARNING: /" >&2
11642 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11643 $as_echo_n "checking for $ac_header... " >&6; }
11644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11645 $as_echo_n "(cached) " >&6
11647 eval "$as_ac_Header=\$ac_header_preproc"
11649 ac_res=`eval 'as_val=${'$as_ac_Header'}
11650 $as_echo "$as_val"'`
11651 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11652 $as_echo "$ac_res" >&6; }
11655 as_val=`eval 'as_val=${'$as_ac_Header'}
11656 $as_echo "$as_val"'`
11657 if test "x$as_val" = x""yes; then
11658 cat >>confdefs.h <<_ACEOF
11659 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11676 if test "$with_zlib" = yes; then
11677 if test "${ac_cv_header_zlib_h+set}" = set; then
11678 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11679 $as_echo_n "checking for zlib.h... " >&6; }
11680 if test "${ac_cv_header_zlib_h+set}" = set; then
11681 $as_echo_n "(cached) " >&6
11683 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11684 $as_echo "$ac_cv_header_zlib_h" >&6; }
11686 # Is the header compilable?
11687 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
11688 $as_echo_n "checking zlib.h usability... " >&6; }
11689 cat >conftest.$ac_ext <<_ACEOF
11692 cat confdefs.h >>conftest.$ac_ext
11693 cat >>conftest.$ac_ext <<_ACEOF
11694 /* end confdefs.h. */
11695 $ac_includes_default
11698 rm -f conftest.$ac_objext
11699 if { (ac_try="$ac_compile"
11700 case "(($ac_try" in
11701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702 *) ac_try_echo=$ac_try;;
11704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11705 $as_echo "$ac_try_echo") >&5
11706 (eval "$ac_compile") 2>conftest.er1
11708 grep -v '^ *+' conftest.er1 >conftest.err
11710 cat conftest.err >&5
11711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } && {
11713 test -z "$ac_c_werror_flag" ||
11714 test ! -s conftest.err
11715 } && test -s conftest.$ac_objext; then
11716 ac_header_compiler=yes
11718 $as_echo "$as_me: failed program was:" >&5
11719 sed 's/^/| /' conftest.$ac_ext >&5
11721 ac_header_compiler=no
11724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11725 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11726 $as_echo "$ac_header_compiler" >&6; }
11728 # Is the header present?
11729 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
11730 $as_echo_n "checking zlib.h presence... " >&6; }
11731 cat >conftest.$ac_ext <<_ACEOF
11734 cat confdefs.h >>conftest.$ac_ext
11735 cat >>conftest.$ac_ext <<_ACEOF
11736 /* end confdefs.h. */
11739 if { (ac_try="$ac_cpp conftest.$ac_ext"
11740 case "(($ac_try" in
11741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11742 *) ac_try_echo=$ac_try;;
11744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11745 $as_echo "$ac_try_echo") >&5
11746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11748 grep -v '^ *+' conftest.er1 >conftest.err
11750 cat conftest.err >&5
11751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); } >/dev/null && {
11753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11754 test ! -s conftest.err
11756 ac_header_preproc=yes
11758 $as_echo "$as_me: failed program was:" >&5
11759 sed 's/^/| /' conftest.$ac_ext >&5
11761 ac_header_preproc=no
11764 rm -f conftest.err conftest.$ac_ext
11765 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11766 $as_echo "$ac_header_preproc" >&6; }
11768 # So? What about this header?
11769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11771 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11772 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11773 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11774 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11775 ac_header_preproc=yes
11778 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11779 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11780 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11781 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11782 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11783 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11784 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
11785 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11786 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11787 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11788 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11789 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11791 ## ---------------------------------------- ##
11792 ## Report this to pgsql-bugs@postgresql.org ##
11793 ## ---------------------------------------- ##
11795 ) | sed "s/^/$as_me: WARNING: /" >&2
11798 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11799 $as_echo_n "checking for zlib.h... " >&6; }
11800 if test "${ac_cv_header_zlib_h+set}" = set; then
11801 $as_echo_n "(cached) " >&6
11803 ac_cv_header_zlib_h=$ac_header_preproc
11805 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11806 $as_echo "$ac_cv_header_zlib_h" >&6; }
11809 if test "x$ac_cv_header_zlib_h" = x""yes; then
11812 { { $as_echo "$as_me:$LINENO: error: zlib header not found
11813 If you have zlib already installed, see config.log for details on the
11814 failure. It is possible the compiler isn't looking in the proper directory.
11815 Use --without-zlib to disable zlib support." >&5
11816 $as_echo "$as_me: error: zlib header not found
11817 If you have zlib already installed, see config.log for details on the
11818 failure. It is possible the compiler isn't looking in the proper directory.
11819 Use --without-zlib to disable zlib support." >&2;}
11820 { (exit 1); exit 1; }; }
11826 if test "$with_gssapi" = yes ; then
11828 for ac_header in gssapi/gssapi.h
11830 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11832 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11833 $as_echo_n "checking for $ac_header... " >&6; }
11834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11835 $as_echo_n "(cached) " >&6
11837 ac_res=`eval 'as_val=${'$as_ac_Header'}
11838 $as_echo "$as_val"'`
11839 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11840 $as_echo "$ac_res" >&6; }
11842 # Is the header compilable?
11843 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11844 $as_echo_n "checking $ac_header usability... " >&6; }
11845 cat >conftest.$ac_ext <<_ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h. */
11851 $ac_includes_default
11852 #include <$ac_header>
11854 rm -f conftest.$ac_objext
11855 if { (ac_try="$ac_compile"
11856 case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11861 $as_echo "$ac_try_echo") >&5
11862 (eval "$ac_compile") 2>conftest.er1
11864 grep -v '^ *+' conftest.er1 >conftest.err
11866 cat conftest.err >&5
11867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } && {
11869 test -z "$ac_c_werror_flag" ||
11870 test ! -s conftest.err
11871 } && test -s conftest.$ac_objext; then
11872 ac_header_compiler=yes
11874 $as_echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11877 ac_header_compiler=no
11880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11881 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11882 $as_echo "$ac_header_compiler" >&6; }
11884 # Is the header present?
11885 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11886 $as_echo_n "checking $ac_header presence... " >&6; }
11887 cat >conftest.$ac_ext <<_ACEOF
11890 cat confdefs.h >>conftest.$ac_ext
11891 cat >>conftest.$ac_ext <<_ACEOF
11892 /* end confdefs.h. */
11893 #include <$ac_header>
11895 if { (ac_try="$ac_cpp conftest.$ac_ext"
11896 case "(($ac_try" in
11897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11898 *) ac_try_echo=$ac_try;;
11900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11901 $as_echo "$ac_try_echo") >&5
11902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11904 grep -v '^ *+' conftest.er1 >conftest.err
11906 cat conftest.err >&5
11907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } >/dev/null && {
11909 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11910 test ! -s conftest.err
11912 ac_header_preproc=yes
11914 $as_echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.$ac_ext >&5
11917 ac_header_preproc=no
11920 rm -f conftest.err conftest.$ac_ext
11921 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11922 $as_echo "$ac_header_preproc" >&6; }
11924 # So? What about this header?
11925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11928 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11930 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11931 ac_header_preproc=yes
11934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11935 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11937 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11939 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11941 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11943 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11945 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11947 ## ---------------------------------------- ##
11948 ## Report this to pgsql-bugs@postgresql.org ##
11949 ## ---------------------------------------- ##
11951 ) | sed "s/^/$as_me: WARNING: /" >&2
11954 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11955 $as_echo_n "checking for $ac_header... " >&6; }
11956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11957 $as_echo_n "(cached) " >&6
11959 eval "$as_ac_Header=\$ac_header_preproc"
11961 ac_res=`eval 'as_val=${'$as_ac_Header'}
11962 $as_echo "$as_val"'`
11963 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11964 $as_echo "$ac_res" >&6; }
11967 as_val=`eval 'as_val=${'$as_ac_Header'}
11968 $as_echo "$as_val"'`
11969 if test "x$as_val" = x""yes; then
11970 cat >>confdefs.h <<_ACEOF
11971 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11976 for ac_header in gssapi.h
11978 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11980 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11981 $as_echo_n "checking for $ac_header... " >&6; }
11982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11983 $as_echo_n "(cached) " >&6
11985 ac_res=`eval 'as_val=${'$as_ac_Header'}
11986 $as_echo "$as_val"'`
11987 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11988 $as_echo "$ac_res" >&6; }
11990 # Is the header compilable?
11991 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11992 $as_echo_n "checking $ac_header usability... " >&6; }
11993 cat >conftest.$ac_ext <<_ACEOF
11996 cat confdefs.h >>conftest.$ac_ext
11997 cat >>conftest.$ac_ext <<_ACEOF
11998 /* end confdefs.h. */
11999 $ac_includes_default
12000 #include <$ac_header>
12002 rm -f conftest.$ac_objext
12003 if { (ac_try="$ac_compile"
12004 case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12009 $as_echo "$ac_try_echo") >&5
12010 (eval "$ac_compile") 2>conftest.er1
12012 grep -v '^ *+' conftest.er1 >conftest.err
12014 cat conftest.err >&5
12015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } && {
12017 test -z "$ac_c_werror_flag" ||
12018 test ! -s conftest.err
12019 } && test -s conftest.$ac_objext; then
12020 ac_header_compiler=yes
12022 $as_echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12025 ac_header_compiler=no
12028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12029 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12030 $as_echo "$ac_header_compiler" >&6; }
12032 # Is the header present?
12033 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12034 $as_echo_n "checking $ac_header presence... " >&6; }
12035 cat >conftest.$ac_ext <<_ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h. */
12041 #include <$ac_header>
12043 if { (ac_try="$ac_cpp conftest.$ac_ext"
12044 case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12049 $as_echo "$ac_try_echo") >&5
12050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12052 grep -v '^ *+' conftest.er1 >conftest.err
12054 cat conftest.err >&5
12055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } >/dev/null && {
12057 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12058 test ! -s conftest.err
12060 ac_header_preproc=yes
12062 $as_echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12065 ac_header_preproc=no
12068 rm -f conftest.err conftest.$ac_ext
12069 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12070 $as_echo "$ac_header_preproc" >&6; }
12072 # So? What about this header?
12073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12076 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12078 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12079 ac_header_preproc=yes
12082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12083 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12085 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12087 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12089 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12091 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12093 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12095 ## ---------------------------------------- ##
12096 ## Report this to pgsql-bugs@postgresql.org ##
12097 ## ---------------------------------------- ##
12099 ) | sed "s/^/$as_me: WARNING: /" >&2
12102 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12103 $as_echo_n "checking for $ac_header... " >&6; }
12104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12105 $as_echo_n "(cached) " >&6
12107 eval "$as_ac_Header=\$ac_header_preproc"
12109 ac_res=`eval 'as_val=${'$as_ac_Header'}
12110 $as_echo "$as_val"'`
12111 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12112 $as_echo "$ac_res" >&6; }
12115 as_val=`eval 'as_val=${'$as_ac_Header'}
12116 $as_echo "$as_val"'`
12117 if test "x$as_val" = x""yes; then
12118 cat >>confdefs.h <<_ACEOF
12119 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12123 { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12124 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12125 { (exit 1); exit 1; }; }
12136 if test "$with_krb5" = yes ; then
12137 if test "${ac_cv_header_krb5_h+set}" = set; then
12138 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12139 $as_echo_n "checking for krb5.h... " >&6; }
12140 if test "${ac_cv_header_krb5_h+set}" = set; then
12141 $as_echo_n "(cached) " >&6
12143 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12144 $as_echo "$ac_cv_header_krb5_h" >&6; }
12146 # Is the header compilable?
12147 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12148 $as_echo_n "checking krb5.h usability... " >&6; }
12149 cat >conftest.$ac_ext <<_ACEOF
12152 cat confdefs.h >>conftest.$ac_ext
12153 cat >>conftest.$ac_ext <<_ACEOF
12154 /* end confdefs.h. */
12155 $ac_includes_default
12158 rm -f conftest.$ac_objext
12159 if { (ac_try="$ac_compile"
12160 case "(($ac_try" in
12161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162 *) ac_try_echo=$ac_try;;
12164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12165 $as_echo "$ac_try_echo") >&5
12166 (eval "$ac_compile") 2>conftest.er1
12168 grep -v '^ *+' conftest.er1 >conftest.err
12170 cat conftest.err >&5
12171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); } && {
12173 test -z "$ac_c_werror_flag" ||
12174 test ! -s conftest.err
12175 } && test -s conftest.$ac_objext; then
12176 ac_header_compiler=yes
12178 $as_echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.$ac_ext >&5
12181 ac_header_compiler=no
12184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12185 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12186 $as_echo "$ac_header_compiler" >&6; }
12188 # Is the header present?
12189 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12190 $as_echo_n "checking krb5.h presence... " >&6; }
12191 cat >conftest.$ac_ext <<_ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12199 if { (ac_try="$ac_cpp conftest.$ac_ext"
12200 case "(($ac_try" in
12201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202 *) ac_try_echo=$ac_try;;
12204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12205 $as_echo "$ac_try_echo") >&5
12206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12208 grep -v '^ *+' conftest.er1 >conftest.err
12210 cat conftest.err >&5
12211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } >/dev/null && {
12213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12214 test ! -s conftest.err
12216 ac_header_preproc=yes
12218 $as_echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.$ac_ext >&5
12221 ac_header_preproc=no
12224 rm -f conftest.err conftest.$ac_ext
12225 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12226 $as_echo "$ac_header_preproc" >&6; }
12228 # So? What about this header?
12229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12231 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12232 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12233 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12234 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12235 ac_header_preproc=yes
12238 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12239 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12240 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
12241 $as_echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
12242 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12243 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12244 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
12245 $as_echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
12246 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12247 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12248 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12249 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12251 ## ---------------------------------------- ##
12252 ## Report this to pgsql-bugs@postgresql.org ##
12253 ## ---------------------------------------- ##
12255 ) | sed "s/^/$as_me: WARNING: /" >&2
12258 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12259 $as_echo_n "checking for krb5.h... " >&6; }
12260 if test "${ac_cv_header_krb5_h+set}" = set; then
12261 $as_echo_n "(cached) " >&6
12263 ac_cv_header_krb5_h=$ac_header_preproc
12265 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12266 $as_echo "$ac_cv_header_krb5_h" >&6; }
12269 if test "x$ac_cv_header_krb5_h" = x""yes; then
12272 { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12273 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12274 { (exit 1); exit 1; }; }
12280 if test "$with_openssl" = yes ; then
12281 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12282 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12283 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12284 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12285 $as_echo_n "(cached) " >&6
12287 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12288 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12290 # Is the header compilable?
12291 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12292 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12293 cat >conftest.$ac_ext <<_ACEOF
12296 cat confdefs.h >>conftest.$ac_ext
12297 cat >>conftest.$ac_ext <<_ACEOF
12298 /* end confdefs.h. */
12299 $ac_includes_default
12300 #include <openssl/ssl.h>
12302 rm -f conftest.$ac_objext
12303 if { (ac_try="$ac_compile"
12304 case "(($ac_try" in
12305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306 *) ac_try_echo=$ac_try;;
12308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12309 $as_echo "$ac_try_echo") >&5
12310 (eval "$ac_compile") 2>conftest.er1
12312 grep -v '^ *+' conftest.er1 >conftest.err
12314 cat conftest.err >&5
12315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); } && {
12317 test -z "$ac_c_werror_flag" ||
12318 test ! -s conftest.err
12319 } && test -s conftest.$ac_objext; then
12320 ac_header_compiler=yes
12322 $as_echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12325 ac_header_compiler=no
12328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12329 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12330 $as_echo "$ac_header_compiler" >&6; }
12332 # Is the header present?
12333 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12334 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12335 cat >conftest.$ac_ext <<_ACEOF
12338 cat confdefs.h >>conftest.$ac_ext
12339 cat >>conftest.$ac_ext <<_ACEOF
12340 /* end confdefs.h. */
12341 #include <openssl/ssl.h>
12343 if { (ac_try="$ac_cpp conftest.$ac_ext"
12344 case "(($ac_try" in
12345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346 *) ac_try_echo=$ac_try;;
12348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12349 $as_echo "$ac_try_echo") >&5
12350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12352 grep -v '^ *+' conftest.er1 >conftest.err
12354 cat conftest.err >&5
12355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } >/dev/null && {
12357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12358 test ! -s conftest.err
12360 ac_header_preproc=yes
12362 $as_echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12365 ac_header_preproc=no
12368 rm -f conftest.err conftest.$ac_ext
12369 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12370 $as_echo "$ac_header_preproc" >&6; }
12372 # So? What about this header?
12373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12375 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12376 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12377 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12378 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12379 ac_header_preproc=yes
12382 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12383 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12384 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12385 $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12386 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12387 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12388 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12389 $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12390 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12391 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12392 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12393 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12395 ## ---------------------------------------- ##
12396 ## Report this to pgsql-bugs@postgresql.org ##
12397 ## ---------------------------------------- ##
12399 ) | sed "s/^/$as_me: WARNING: /" >&2
12402 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12403 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12404 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12405 $as_echo_n "(cached) " >&6
12407 ac_cv_header_openssl_ssl_h=$ac_header_preproc
12409 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12410 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12413 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12416 { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12417 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12418 { (exit 1); exit 1; }; }
12422 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12423 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12424 $as_echo_n "checking for openssl/err.h... " >&6; }
12425 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12426 $as_echo_n "(cached) " >&6
12428 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12429 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12431 # Is the header compilable?
12432 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12433 $as_echo_n "checking openssl/err.h usability... " >&6; }
12434 cat >conftest.$ac_ext <<_ACEOF
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h. */
12440 $ac_includes_default
12441 #include <openssl/err.h>
12443 rm -f conftest.$ac_objext
12444 if { (ac_try="$ac_compile"
12445 case "(($ac_try" in
12446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447 *) ac_try_echo=$ac_try;;
12449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12450 $as_echo "$ac_try_echo") >&5
12451 (eval "$ac_compile") 2>conftest.er1
12453 grep -v '^ *+' conftest.er1 >conftest.err
12455 cat conftest.err >&5
12456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); } && {
12458 test -z "$ac_c_werror_flag" ||
12459 test ! -s conftest.err
12460 } && test -s conftest.$ac_objext; then
12461 ac_header_compiler=yes
12463 $as_echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.$ac_ext >&5
12466 ac_header_compiler=no
12469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12470 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12471 $as_echo "$ac_header_compiler" >&6; }
12473 # Is the header present?
12474 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12475 $as_echo_n "checking openssl/err.h presence... " >&6; }
12476 cat >conftest.$ac_ext <<_ACEOF
12479 cat confdefs.h >>conftest.$ac_ext
12480 cat >>conftest.$ac_ext <<_ACEOF
12481 /* end confdefs.h. */
12482 #include <openssl/err.h>
12484 if { (ac_try="$ac_cpp conftest.$ac_ext"
12485 case "(($ac_try" in
12486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12487 *) ac_try_echo=$ac_try;;
12489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12490 $as_echo "$ac_try_echo") >&5
12491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12493 grep -v '^ *+' conftest.er1 >conftest.err
12495 cat conftest.err >&5
12496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); } >/dev/null && {
12498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12499 test ! -s conftest.err
12501 ac_header_preproc=yes
12503 $as_echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.$ac_ext >&5
12506 ac_header_preproc=no
12509 rm -f conftest.err conftest.$ac_ext
12510 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12511 $as_echo "$ac_header_preproc" >&6; }
12513 # So? What about this header?
12514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12516 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12517 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12518 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12519 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12520 ac_header_preproc=yes
12523 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12524 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12525 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12526 $as_echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12527 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12528 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12529 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12530 $as_echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12531 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12532 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12533 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12534 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12536 ## ---------------------------------------- ##
12537 ## Report this to pgsql-bugs@postgresql.org ##
12538 ## ---------------------------------------- ##
12540 ) | sed "s/^/$as_me: WARNING: /" >&2
12543 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12544 $as_echo_n "checking for openssl/err.h... " >&6; }
12545 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12546 $as_echo_n "(cached) " >&6
12548 ac_cv_header_openssl_err_h=$ac_header_preproc
12550 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12551 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12554 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12557 { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12558 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12559 { (exit 1); exit 1; }; }
12564 for ac_func in ERR_set_mark
12566 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12567 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12568 $as_echo_n "checking for $ac_func... " >&6; }
12569 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12570 $as_echo_n "(cached) " >&6
12572 cat >conftest.$ac_ext <<_ACEOF
12575 cat confdefs.h >>conftest.$ac_ext
12576 cat >>conftest.$ac_ext <<_ACEOF
12577 /* end confdefs.h. */
12578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12580 #define $ac_func innocuous_$ac_func
12582 /* System header to define __stub macros and hopefully few prototypes,
12583 which can conflict with char $ac_func (); below.
12584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12585 <limits.h> exists even on freestanding compilers. */
12588 # include <limits.h>
12590 # include <assert.h>
12595 /* Override any GCC internal prototype to avoid an error.
12596 Use char because int might match the return type of a GCC
12597 builtin and then its argument prototype would still apply. */
12602 /* The GNU C library defines this for functions which it implements
12603 to always fail with ENOSYS. Some functions are actually named
12604 something starting with __ and the normal name is an alias. */
12605 #if defined __stub_$ac_func || defined __stub___$ac_func
12612 return $ac_func ();
12617 rm -f conftest.$ac_objext conftest$ac_exeext
12618 if { (ac_try="$ac_link"
12619 case "(($ac_try" in
12620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12621 *) ac_try_echo=$ac_try;;
12623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12624 $as_echo "$ac_try_echo") >&5
12625 (eval "$ac_link") 2>conftest.er1
12627 grep -v '^ *+' conftest.er1 >conftest.err
12629 cat conftest.err >&5
12630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); } && {
12632 test -z "$ac_c_werror_flag" ||
12633 test ! -s conftest.err
12634 } && test -s conftest$ac_exeext && {
12635 test "$cross_compiling" = yes ||
12636 $as_test_x conftest$ac_exeext
12638 eval "$as_ac_var=yes"
12640 $as_echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12643 eval "$as_ac_var=no"
12646 rm -rf conftest.dSYM
12647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12648 conftest$ac_exeext conftest.$ac_ext
12650 ac_res=`eval 'as_val=${'$as_ac_var'}
12651 $as_echo "$as_val"'`
12652 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12653 $as_echo "$ac_res" >&6; }
12654 as_val=`eval 'as_val=${'$as_ac_var'}
12655 $as_echo "$as_val"'`
12656 if test "x$as_val" = x""yes; then
12657 cat >>confdefs.h <<_ACEOF
12658 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12666 if test "$with_pam" = yes ; then
12668 for ac_header in security/pam_appl.h
12670 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12672 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12673 $as_echo_n "checking for $ac_header... " >&6; }
12674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12675 $as_echo_n "(cached) " >&6
12677 ac_res=`eval 'as_val=${'$as_ac_Header'}
12678 $as_echo "$as_val"'`
12679 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12680 $as_echo "$ac_res" >&6; }
12682 # Is the header compilable?
12683 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12684 $as_echo_n "checking $ac_header usability... " >&6; }
12685 cat >conftest.$ac_ext <<_ACEOF
12688 cat confdefs.h >>conftest.$ac_ext
12689 cat >>conftest.$ac_ext <<_ACEOF
12690 /* end confdefs.h. */
12691 $ac_includes_default
12692 #include <$ac_header>
12694 rm -f conftest.$ac_objext
12695 if { (ac_try="$ac_compile"
12696 case "(($ac_try" in
12697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12698 *) ac_try_echo=$ac_try;;
12700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12701 $as_echo "$ac_try_echo") >&5
12702 (eval "$ac_compile") 2>conftest.er1
12704 grep -v '^ *+' conftest.er1 >conftest.err
12706 cat conftest.err >&5
12707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); } && {
12709 test -z "$ac_c_werror_flag" ||
12710 test ! -s conftest.err
12711 } && test -s conftest.$ac_objext; then
12712 ac_header_compiler=yes
12714 $as_echo "$as_me: failed program was:" >&5
12715 sed 's/^/| /' conftest.$ac_ext >&5
12717 ac_header_compiler=no
12720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12721 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12722 $as_echo "$ac_header_compiler" >&6; }
12724 # Is the header present?
12725 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12726 $as_echo_n "checking $ac_header presence... " >&6; }
12727 cat >conftest.$ac_ext <<_ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h. */
12733 #include <$ac_header>
12735 if { (ac_try="$ac_cpp conftest.$ac_ext"
12736 case "(($ac_try" in
12737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738 *) ac_try_echo=$ac_try;;
12740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12741 $as_echo "$ac_try_echo") >&5
12742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12744 grep -v '^ *+' conftest.er1 >conftest.err
12746 cat conftest.err >&5
12747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); } >/dev/null && {
12749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12750 test ! -s conftest.err
12752 ac_header_preproc=yes
12754 $as_echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.$ac_ext >&5
12757 ac_header_preproc=no
12760 rm -f conftest.err conftest.$ac_ext
12761 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12762 $as_echo "$ac_header_preproc" >&6; }
12764 # So? What about this header?
12765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12768 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12770 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12771 ac_header_preproc=yes
12774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12775 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12777 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12779 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12781 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12783 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12785 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12787 ## ---------------------------------------- ##
12788 ## Report this to pgsql-bugs@postgresql.org ##
12789 ## ---------------------------------------- ##
12791 ) | sed "s/^/$as_me: WARNING: /" >&2
12794 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12795 $as_echo_n "checking for $ac_header... " >&6; }
12796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12797 $as_echo_n "(cached) " >&6
12799 eval "$as_ac_Header=\$ac_header_preproc"
12801 ac_res=`eval 'as_val=${'$as_ac_Header'}
12802 $as_echo "$as_val"'`
12803 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12804 $as_echo "$ac_res" >&6; }
12807 as_val=`eval 'as_val=${'$as_ac_Header'}
12808 $as_echo "$as_val"'`
12809 if test "x$as_val" = x""yes; then
12810 cat >>confdefs.h <<_ACEOF
12811 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12816 for ac_header in pam/pam_appl.h
12818 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12820 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12821 $as_echo_n "checking for $ac_header... " >&6; }
12822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12823 $as_echo_n "(cached) " >&6
12825 ac_res=`eval 'as_val=${'$as_ac_Header'}
12826 $as_echo "$as_val"'`
12827 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12828 $as_echo "$ac_res" >&6; }
12830 # Is the header compilable?
12831 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12832 $as_echo_n "checking $ac_header usability... " >&6; }
12833 cat >conftest.$ac_ext <<_ACEOF
12836 cat confdefs.h >>conftest.$ac_ext
12837 cat >>conftest.$ac_ext <<_ACEOF
12838 /* end confdefs.h. */
12839 $ac_includes_default
12840 #include <$ac_header>
12842 rm -f conftest.$ac_objext
12843 if { (ac_try="$ac_compile"
12844 case "(($ac_try" in
12845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846 *) ac_try_echo=$ac_try;;
12848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12849 $as_echo "$ac_try_echo") >&5
12850 (eval "$ac_compile") 2>conftest.er1
12852 grep -v '^ *+' conftest.er1 >conftest.err
12854 cat conftest.err >&5
12855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } && {
12857 test -z "$ac_c_werror_flag" ||
12858 test ! -s conftest.err
12859 } && test -s conftest.$ac_objext; then
12860 ac_header_compiler=yes
12862 $as_echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12865 ac_header_compiler=no
12868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12869 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12870 $as_echo "$ac_header_compiler" >&6; }
12872 # Is the header present?
12873 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12874 $as_echo_n "checking $ac_header presence... " >&6; }
12875 cat >conftest.$ac_ext <<_ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h. */
12881 #include <$ac_header>
12883 if { (ac_try="$ac_cpp conftest.$ac_ext"
12884 case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12889 $as_echo "$ac_try_echo") >&5
12890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12892 grep -v '^ *+' conftest.er1 >conftest.err
12894 cat conftest.err >&5
12895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } >/dev/null && {
12897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12898 test ! -s conftest.err
12900 ac_header_preproc=yes
12902 $as_echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.$ac_ext >&5
12905 ac_header_preproc=no
12908 rm -f conftest.err conftest.$ac_ext
12909 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12910 $as_echo "$ac_header_preproc" >&6; }
12912 # So? What about this header?
12913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12916 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12917 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12918 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12919 ac_header_preproc=yes
12922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12923 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12925 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12927 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12929 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12931 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12933 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12935 ## ---------------------------------------- ##
12936 ## Report this to pgsql-bugs@postgresql.org ##
12937 ## ---------------------------------------- ##
12939 ) | sed "s/^/$as_me: WARNING: /" >&2
12942 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12943 $as_echo_n "checking for $ac_header... " >&6; }
12944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12945 $as_echo_n "(cached) " >&6
12947 eval "$as_ac_Header=\$ac_header_preproc"
12949 ac_res=`eval 'as_val=${'$as_ac_Header'}
12950 $as_echo "$as_val"'`
12951 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12952 $as_echo "$ac_res" >&6; }
12955 as_val=`eval 'as_val=${'$as_ac_Header'}
12956 $as_echo "$as_val"'`
12957 if test "x$as_val" = x""yes; then
12958 cat >>confdefs.h <<_ACEOF
12959 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12963 { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12964 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12965 { (exit 1); exit 1; }; }
12976 if test "$with_libxml" = yes ; then
12977 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12978 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12979 $as_echo_n "checking for libxml/parser.h... " >&6; }
12980 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12981 $as_echo_n "(cached) " >&6
12983 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12984 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
12986 # Is the header compilable?
12987 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12988 $as_echo_n "checking libxml/parser.h usability... " >&6; }
12989 cat >conftest.$ac_ext <<_ACEOF
12992 cat confdefs.h >>conftest.$ac_ext
12993 cat >>conftest.$ac_ext <<_ACEOF
12994 /* end confdefs.h. */
12995 $ac_includes_default
12996 #include <libxml/parser.h>
12998 rm -f conftest.$ac_objext
12999 if { (ac_try="$ac_compile"
13000 case "(($ac_try" in
13001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002 *) ac_try_echo=$ac_try;;
13004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13005 $as_echo "$ac_try_echo") >&5
13006 (eval "$ac_compile") 2>conftest.er1
13008 grep -v '^ *+' conftest.er1 >conftest.err
13010 cat conftest.err >&5
13011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); } && {
13013 test -z "$ac_c_werror_flag" ||
13014 test ! -s conftest.err
13015 } && test -s conftest.$ac_objext; then
13016 ac_header_compiler=yes
13018 $as_echo "$as_me: failed program was:" >&5
13019 sed 's/^/| /' conftest.$ac_ext >&5
13021 ac_header_compiler=no
13024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13025 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13026 $as_echo "$ac_header_compiler" >&6; }
13028 # Is the header present?
13029 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13030 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13031 cat >conftest.$ac_ext <<_ACEOF
13034 cat confdefs.h >>conftest.$ac_ext
13035 cat >>conftest.$ac_ext <<_ACEOF
13036 /* end confdefs.h. */
13037 #include <libxml/parser.h>
13039 if { (ac_try="$ac_cpp conftest.$ac_ext"
13040 case "(($ac_try" in
13041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13042 *) ac_try_echo=$ac_try;;
13044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13045 $as_echo "$ac_try_echo") >&5
13046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13048 grep -v '^ *+' conftest.er1 >conftest.err
13050 cat conftest.err >&5
13051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); } >/dev/null && {
13053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13054 test ! -s conftest.err
13056 ac_header_preproc=yes
13058 $as_echo "$as_me: failed program was:" >&5
13059 sed 's/^/| /' conftest.$ac_ext >&5
13061 ac_header_preproc=no
13064 rm -f conftest.err conftest.$ac_ext
13065 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13066 $as_echo "$ac_header_preproc" >&6; }
13068 # So? What about this header?
13069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13071 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13072 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13073 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13074 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13075 ac_header_preproc=yes
13078 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13079 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13080 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
13081 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
13082 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13083 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13084 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
13085 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
13086 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13087 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13088 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13089 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13091 ## ---------------------------------------- ##
13092 ## Report this to pgsql-bugs@postgresql.org ##
13093 ## ---------------------------------------- ##
13095 ) | sed "s/^/$as_me: WARNING: /" >&2
13098 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13099 $as_echo_n "checking for libxml/parser.h... " >&6; }
13100 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13101 $as_echo_n "(cached) " >&6
13103 ac_cv_header_libxml_parser_h=$ac_header_preproc
13105 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13106 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13109 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13112 { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13113 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13114 { (exit 1); exit 1; }; }
13120 if test "$with_libxslt" = yes ; then
13121 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13122 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13123 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13124 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13125 $as_echo_n "(cached) " >&6
13127 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13128 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13130 # Is the header compilable?
13131 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13132 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13133 cat >conftest.$ac_ext <<_ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h. */
13139 $ac_includes_default
13140 #include <libxslt/xslt.h>
13142 rm -f conftest.$ac_objext
13143 if { (ac_try="$ac_compile"
13144 case "(($ac_try" in
13145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13146 *) ac_try_echo=$ac_try;;
13148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13149 $as_echo "$ac_try_echo") >&5
13150 (eval "$ac_compile") 2>conftest.er1
13152 grep -v '^ *+' conftest.er1 >conftest.err
13154 cat conftest.err >&5
13155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } && {
13157 test -z "$ac_c_werror_flag" ||
13158 test ! -s conftest.err
13159 } && test -s conftest.$ac_objext; then
13160 ac_header_compiler=yes
13162 $as_echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13165 ac_header_compiler=no
13168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13169 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13170 $as_echo "$ac_header_compiler" >&6; }
13172 # Is the header present?
13173 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13174 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13175 cat >conftest.$ac_ext <<_ACEOF
13178 cat confdefs.h >>conftest.$ac_ext
13179 cat >>conftest.$ac_ext <<_ACEOF
13180 /* end confdefs.h. */
13181 #include <libxslt/xslt.h>
13183 if { (ac_try="$ac_cpp conftest.$ac_ext"
13184 case "(($ac_try" in
13185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186 *) ac_try_echo=$ac_try;;
13188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13189 $as_echo "$ac_try_echo") >&5
13190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13192 grep -v '^ *+' conftest.er1 >conftest.err
13194 cat conftest.err >&5
13195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); } >/dev/null && {
13197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13198 test ! -s conftest.err
13200 ac_header_preproc=yes
13202 $as_echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13205 ac_header_preproc=no
13208 rm -f conftest.err conftest.$ac_ext
13209 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13210 $as_echo "$ac_header_preproc" >&6; }
13212 # So? What about this header?
13213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13215 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13216 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13217 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13218 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13219 ac_header_preproc=yes
13222 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13223 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13224 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
13225 $as_echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
13226 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13227 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13228 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
13229 $as_echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
13230 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13231 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13232 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13233 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13235 ## ---------------------------------------- ##
13236 ## Report this to pgsql-bugs@postgresql.org ##
13237 ## ---------------------------------------- ##
13239 ) | sed "s/^/$as_me: WARNING: /" >&2
13242 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13243 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13244 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13245 $as_echo_n "(cached) " >&6
13247 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13249 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13250 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13253 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13256 { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13257 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13258 { (exit 1); exit 1; }; }
13264 if test "$with_ldap" = yes ; then
13265 if test "$PORTNAME" != "win32"; then
13267 for ac_header in ldap.h
13269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13271 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13272 $as_echo_n "checking for $ac_header... " >&6; }
13273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13274 $as_echo_n "(cached) " >&6
13276 ac_res=`eval 'as_val=${'$as_ac_Header'}
13277 $as_echo "$as_val"'`
13278 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13279 $as_echo "$ac_res" >&6; }
13281 # Is the header compilable?
13282 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13283 $as_echo_n "checking $ac_header usability... " >&6; }
13284 cat >conftest.$ac_ext <<_ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h. */
13290 $ac_includes_default
13291 #include <$ac_header>
13293 rm -f conftest.$ac_objext
13294 if { (ac_try="$ac_compile"
13295 case "(($ac_try" in
13296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297 *) ac_try_echo=$ac_try;;
13299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13300 $as_echo "$ac_try_echo") >&5
13301 (eval "$ac_compile") 2>conftest.er1
13303 grep -v '^ *+' conftest.er1 >conftest.err
13305 cat conftest.err >&5
13306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); } && {
13308 test -z "$ac_c_werror_flag" ||
13309 test ! -s conftest.err
13310 } && test -s conftest.$ac_objext; then
13311 ac_header_compiler=yes
13313 $as_echo "$as_me: failed program was:" >&5
13314 sed 's/^/| /' conftest.$ac_ext >&5
13316 ac_header_compiler=no
13319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13320 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13321 $as_echo "$ac_header_compiler" >&6; }
13323 # Is the header present?
13324 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13325 $as_echo_n "checking $ac_header presence... " >&6; }
13326 cat >conftest.$ac_ext <<_ACEOF
13329 cat confdefs.h >>conftest.$ac_ext
13330 cat >>conftest.$ac_ext <<_ACEOF
13331 /* end confdefs.h. */
13332 #include <$ac_header>
13334 if { (ac_try="$ac_cpp conftest.$ac_ext"
13335 case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13340 $as_echo "$ac_try_echo") >&5
13341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13343 grep -v '^ *+' conftest.er1 >conftest.err
13345 cat conftest.err >&5
13346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); } >/dev/null && {
13348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13349 test ! -s conftest.err
13351 ac_header_preproc=yes
13353 $as_echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13356 ac_header_preproc=no
13359 rm -f conftest.err conftest.$ac_ext
13360 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13361 $as_echo "$ac_header_preproc" >&6; }
13363 # So? What about this header?
13364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13367 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13369 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13370 ac_header_preproc=yes
13373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13374 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13376 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13378 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13380 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13382 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13384 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13386 ## ---------------------------------------- ##
13387 ## Report this to pgsql-bugs@postgresql.org ##
13388 ## ---------------------------------------- ##
13390 ) | sed "s/^/$as_me: WARNING: /" >&2
13393 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13394 $as_echo_n "checking for $ac_header... " >&6; }
13395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13396 $as_echo_n "(cached) " >&6
13398 eval "$as_ac_Header=\$ac_header_preproc"
13400 ac_res=`eval 'as_val=${'$as_ac_Header'}
13401 $as_echo "$as_val"'`
13402 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13403 $as_echo "$ac_res" >&6; }
13406 as_val=`eval 'as_val=${'$as_ac_Header'}
13407 $as_echo "$as_val"'`
13408 if test "x$as_val" = x""yes; then
13409 cat >>confdefs.h <<_ACEOF
13410 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13414 { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13415 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13416 { (exit 1); exit 1; }; }
13423 for ac_header in winldap.h
13425 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13426 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13427 $as_echo_n "checking for $ac_header... " >&6; }
13428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13429 $as_echo_n "(cached) " >&6
13431 cat >conftest.$ac_ext <<_ACEOF
13434 cat confdefs.h >>conftest.$ac_ext
13435 cat >>conftest.$ac_ext <<_ACEOF
13436 /* end confdefs.h. */
13437 $ac_includes_default
13438 #include <windows.h>
13441 #include <$ac_header>
13443 rm -f conftest.$ac_objext
13444 if { (ac_try="$ac_compile"
13445 case "(($ac_try" in
13446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13447 *) ac_try_echo=$ac_try;;
13449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13450 $as_echo "$ac_try_echo") >&5
13451 (eval "$ac_compile") 2>conftest.er1
13453 grep -v '^ *+' conftest.er1 >conftest.err
13455 cat conftest.err >&5
13456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); } && {
13458 test -z "$ac_c_werror_flag" ||
13459 test ! -s conftest.err
13460 } && test -s conftest.$ac_objext; then
13461 eval "$as_ac_Header=yes"
13463 $as_echo "$as_me: failed program was:" >&5
13464 sed 's/^/| /' conftest.$ac_ext >&5
13466 eval "$as_ac_Header=no"
13469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13471 ac_res=`eval 'as_val=${'$as_ac_Header'}
13472 $as_echo "$as_val"'`
13473 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13474 $as_echo "$ac_res" >&6; }
13475 as_val=`eval 'as_val=${'$as_ac_Header'}
13476 $as_echo "$as_val"'`
13477 if test "x$as_val" = x""yes; then
13478 cat >>confdefs.h <<_ACEOF
13479 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13483 { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13484 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13485 { (exit 1); exit 1; }; }
13493 if test "$with_bonjour" = yes ; then
13494 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13495 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13496 $as_echo_n "checking for dns_sd.h... " >&6; }
13497 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13498 $as_echo_n "(cached) " >&6
13500 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13501 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13503 # Is the header compilable?
13504 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13505 $as_echo_n "checking dns_sd.h usability... " >&6; }
13506 cat >conftest.$ac_ext <<_ACEOF
13509 cat confdefs.h >>conftest.$ac_ext
13510 cat >>conftest.$ac_ext <<_ACEOF
13511 /* end confdefs.h. */
13512 $ac_includes_default
13513 #include <dns_sd.h>
13515 rm -f conftest.$ac_objext
13516 if { (ac_try="$ac_compile"
13517 case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13522 $as_echo "$ac_try_echo") >&5
13523 (eval "$ac_compile") 2>conftest.er1
13525 grep -v '^ *+' conftest.er1 >conftest.err
13527 cat conftest.err >&5
13528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); } && {
13530 test -z "$ac_c_werror_flag" ||
13531 test ! -s conftest.err
13532 } && test -s conftest.$ac_objext; then
13533 ac_header_compiler=yes
13535 $as_echo "$as_me: failed program was:" >&5
13536 sed 's/^/| /' conftest.$ac_ext >&5
13538 ac_header_compiler=no
13541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13542 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13543 $as_echo "$ac_header_compiler" >&6; }
13545 # Is the header present?
13546 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13547 $as_echo_n "checking dns_sd.h presence... " >&6; }
13548 cat >conftest.$ac_ext <<_ACEOF
13551 cat confdefs.h >>conftest.$ac_ext
13552 cat >>conftest.$ac_ext <<_ACEOF
13553 /* end confdefs.h. */
13554 #include <dns_sd.h>
13556 if { (ac_try="$ac_cpp conftest.$ac_ext"
13557 case "(($ac_try" in
13558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13559 *) ac_try_echo=$ac_try;;
13561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13562 $as_echo "$ac_try_echo") >&5
13563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13565 grep -v '^ *+' conftest.er1 >conftest.err
13567 cat conftest.err >&5
13568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); } >/dev/null && {
13570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13571 test ! -s conftest.err
13573 ac_header_preproc=yes
13575 $as_echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13578 ac_header_preproc=no
13581 rm -f conftest.err conftest.$ac_ext
13582 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13583 $as_echo "$ac_header_preproc" >&6; }
13585 # So? What about this header?
13586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13588 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
13589 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13590 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
13591 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
13592 ac_header_preproc=yes
13595 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
13596 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
13597 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: check for missing prerequisite headers?" >&5
13598 $as_echo "$as_me: WARNING: dns_sd.h: check for missing prerequisite headers?" >&2;}
13599 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
13600 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
13601 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&5
13602 $as_echo "$as_me: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&2;}
13603 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
13604 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
13605 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
13606 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
13608 ## ---------------------------------------- ##
13609 ## Report this to pgsql-bugs@postgresql.org ##
13610 ## ---------------------------------------- ##
13612 ) | sed "s/^/$as_me: WARNING: /" >&2
13615 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13616 $as_echo_n "checking for dns_sd.h... " >&6; }
13617 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13618 $as_echo_n "(cached) " >&6
13620 ac_cv_header_dns_sd_h=$ac_header_preproc
13622 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13623 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13626 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
13629 { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
13630 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
13631 { (exit 1); exit 1; }; }
13637 # for contrib/uuid-ossp
13638 if test "$with_ossp_uuid" = yes ; then
13640 for ac_header in ossp/uuid.h
13642 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13644 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13645 $as_echo_n "checking for $ac_header... " >&6; }
13646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13647 $as_echo_n "(cached) " >&6
13649 ac_res=`eval 'as_val=${'$as_ac_Header'}
13650 $as_echo "$as_val"'`
13651 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13652 $as_echo "$ac_res" >&6; }
13654 # Is the header compilable?
13655 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13656 $as_echo_n "checking $ac_header usability... " >&6; }
13657 cat >conftest.$ac_ext <<_ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h. */
13663 $ac_includes_default
13664 #include <$ac_header>
13666 rm -f conftest.$ac_objext
13667 if { (ac_try="$ac_compile"
13668 case "(($ac_try" in
13669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670 *) ac_try_echo=$ac_try;;
13672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13673 $as_echo "$ac_try_echo") >&5
13674 (eval "$ac_compile") 2>conftest.er1
13676 grep -v '^ *+' conftest.er1 >conftest.err
13678 cat conftest.err >&5
13679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); } && {
13681 test -z "$ac_c_werror_flag" ||
13682 test ! -s conftest.err
13683 } && test -s conftest.$ac_objext; then
13684 ac_header_compiler=yes
13686 $as_echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13689 ac_header_compiler=no
13692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13693 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13694 $as_echo "$ac_header_compiler" >&6; }
13696 # Is the header present?
13697 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13698 $as_echo_n "checking $ac_header presence... " >&6; }
13699 cat >conftest.$ac_ext <<_ACEOF
13702 cat confdefs.h >>conftest.$ac_ext
13703 cat >>conftest.$ac_ext <<_ACEOF
13704 /* end confdefs.h. */
13705 #include <$ac_header>
13707 if { (ac_try="$ac_cpp conftest.$ac_ext"
13708 case "(($ac_try" in
13709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13710 *) ac_try_echo=$ac_try;;
13712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13713 $as_echo "$ac_try_echo") >&5
13714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13716 grep -v '^ *+' conftest.er1 >conftest.err
13718 cat conftest.err >&5
13719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); } >/dev/null && {
13721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13722 test ! -s conftest.err
13724 ac_header_preproc=yes
13726 $as_echo "$as_me: failed program was:" >&5
13727 sed 's/^/| /' conftest.$ac_ext >&5
13729 ac_header_preproc=no
13732 rm -f conftest.err conftest.$ac_ext
13733 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13734 $as_echo "$ac_header_preproc" >&6; }
13736 # So? What about this header?
13737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13740 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13742 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13743 ac_header_preproc=yes
13746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13747 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13749 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13751 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13753 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13755 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13757 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13759 ## ---------------------------------------- ##
13760 ## Report this to pgsql-bugs@postgresql.org ##
13761 ## ---------------------------------------- ##
13763 ) | sed "s/^/$as_me: WARNING: /" >&2
13766 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13767 $as_echo_n "checking for $ac_header... " >&6; }
13768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13769 $as_echo_n "(cached) " >&6
13771 eval "$as_ac_Header=\$ac_header_preproc"
13773 ac_res=`eval 'as_val=${'$as_ac_Header'}
13774 $as_echo "$as_val"'`
13775 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13776 $as_echo "$ac_res" >&6; }
13779 as_val=`eval 'as_val=${'$as_ac_Header'}
13780 $as_echo "$as_val"'`
13781 if test "x$as_val" = x""yes; then
13782 cat >>confdefs.h <<_ACEOF
13783 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13789 for ac_header in uuid.h
13791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13793 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13794 $as_echo_n "checking for $ac_header... " >&6; }
13795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13796 $as_echo_n "(cached) " >&6
13798 ac_res=`eval 'as_val=${'$as_ac_Header'}
13799 $as_echo "$as_val"'`
13800 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13801 $as_echo "$ac_res" >&6; }
13803 # Is the header compilable?
13804 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13805 $as_echo_n "checking $ac_header usability... " >&6; }
13806 cat >conftest.$ac_ext <<_ACEOF
13809 cat confdefs.h >>conftest.$ac_ext
13810 cat >>conftest.$ac_ext <<_ACEOF
13811 /* end confdefs.h. */
13812 $ac_includes_default
13813 #include <$ac_header>
13815 rm -f conftest.$ac_objext
13816 if { (ac_try="$ac_compile"
13817 case "(($ac_try" in
13818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13819 *) ac_try_echo=$ac_try;;
13821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13822 $as_echo "$ac_try_echo") >&5
13823 (eval "$ac_compile") 2>conftest.er1
13825 grep -v '^ *+' conftest.er1 >conftest.err
13827 cat conftest.err >&5
13828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); } && {
13830 test -z "$ac_c_werror_flag" ||
13831 test ! -s conftest.err
13832 } && test -s conftest.$ac_objext; then
13833 ac_header_compiler=yes
13835 $as_echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.$ac_ext >&5
13838 ac_header_compiler=no
13841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13842 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13843 $as_echo "$ac_header_compiler" >&6; }
13845 # Is the header present?
13846 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13847 $as_echo_n "checking $ac_header presence... " >&6; }
13848 cat >conftest.$ac_ext <<_ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13854 #include <$ac_header>
13856 if { (ac_try="$ac_cpp conftest.$ac_ext"
13857 case "(($ac_try" in
13858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13859 *) ac_try_echo=$ac_try;;
13861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13862 $as_echo "$ac_try_echo") >&5
13863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13865 grep -v '^ *+' conftest.er1 >conftest.err
13867 cat conftest.err >&5
13868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); } >/dev/null && {
13870 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13871 test ! -s conftest.err
13873 ac_header_preproc=yes
13875 $as_echo "$as_me: failed program was:" >&5
13876 sed 's/^/| /' conftest.$ac_ext >&5
13878 ac_header_preproc=no
13881 rm -f conftest.err conftest.$ac_ext
13882 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13883 $as_echo "$ac_header_preproc" >&6; }
13885 # So? What about this header?
13886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13889 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13891 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13892 ac_header_preproc=yes
13895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13896 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13898 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13900 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13902 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13904 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13906 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13908 ## ---------------------------------------- ##
13909 ## Report this to pgsql-bugs@postgresql.org ##
13910 ## ---------------------------------------- ##
13912 ) | sed "s/^/$as_me: WARNING: /" >&2
13915 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13916 $as_echo_n "checking for $ac_header... " >&6; }
13917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13918 $as_echo_n "(cached) " >&6
13920 eval "$as_ac_Header=\$ac_header_preproc"
13922 ac_res=`eval 'as_val=${'$as_ac_Header'}
13923 $as_echo "$as_val"'`
13924 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13925 $as_echo "$ac_res" >&6; }
13928 as_val=`eval 'as_val=${'$as_ac_Header'}
13929 $as_echo "$as_val"'`
13930 if test "x$as_val" = x""yes; then
13931 cat >>confdefs.h <<_ACEOF
13932 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13936 { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13937 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13938 { (exit 1); exit 1; }; }
13951 ## Types, structures, compiler characteristics
13955 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13956 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13957 if test "${ac_cv_c_bigendian+set}" = set; then
13958 $as_echo_n "(cached) " >&6
13960 ac_cv_c_bigendian=unknown
13961 # See if we're dealing with a universal compiler.
13962 cat >conftest.$ac_ext <<_ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h. */
13968 #ifndef __APPLE_CC__
13969 not a universal capable compiler
13974 rm -f conftest.$ac_objext
13975 if { (ac_try="$ac_compile"
13976 case "(($ac_try" in
13977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978 *) ac_try_echo=$ac_try;;
13980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13981 $as_echo "$ac_try_echo") >&5
13982 (eval "$ac_compile") 2>conftest.er1
13984 grep -v '^ *+' conftest.er1 >conftest.err
13986 cat conftest.err >&5
13987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); } && {
13989 test -z "$ac_c_werror_flag" ||
13990 test ! -s conftest.err
13991 } && test -s conftest.$ac_objext; then
13993 # Check for potential -arch flags. It is not universal unless
13994 # there are some -arch flags. Note that *ppc* also matches
13995 # ppc64. This check is also rather less than ideal.
13996 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
13997 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14000 $as_echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14007 if test $ac_cv_c_bigendian = unknown; then
14008 # See if sys/param.h defines the BYTE_ORDER macro.
14009 cat >conftest.$ac_ext <<_ACEOF
14012 cat confdefs.h >>conftest.$ac_ext
14013 cat >>conftest.$ac_ext <<_ACEOF
14014 /* end confdefs.h. */
14015 #include <sys/types.h>
14016 #include <sys/param.h>
14021 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14022 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14024 bogus endian macros
14031 rm -f conftest.$ac_objext
14032 if { (ac_try="$ac_compile"
14033 case "(($ac_try" in
14034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14035 *) ac_try_echo=$ac_try;;
14037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14038 $as_echo "$ac_try_echo") >&5
14039 (eval "$ac_compile") 2>conftest.er1
14041 grep -v '^ *+' conftest.er1 >conftest.err
14043 cat conftest.err >&5
14044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } && {
14046 test -z "$ac_c_werror_flag" ||
14047 test ! -s conftest.err
14048 } && test -s conftest.$ac_objext; then
14049 # It does; now see whether it defined to BIG_ENDIAN or not.
14050 cat >conftest.$ac_ext <<_ACEOF
14053 cat confdefs.h >>conftest.$ac_ext
14054 cat >>conftest.$ac_ext <<_ACEOF
14055 /* end confdefs.h. */
14056 #include <sys/types.h>
14057 #include <sys/param.h>
14062 #if BYTE_ORDER != BIG_ENDIAN
14070 rm -f conftest.$ac_objext
14071 if { (ac_try="$ac_compile"
14072 case "(($ac_try" in
14073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14074 *) ac_try_echo=$ac_try;;
14076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14077 $as_echo "$ac_try_echo") >&5
14078 (eval "$ac_compile") 2>conftest.er1
14080 grep -v '^ *+' conftest.er1 >conftest.err
14082 cat conftest.err >&5
14083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); } && {
14085 test -z "$ac_c_werror_flag" ||
14086 test ! -s conftest.err
14087 } && test -s conftest.$ac_objext; then
14088 ac_cv_c_bigendian=yes
14090 $as_echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14093 ac_cv_c_bigendian=no
14096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14098 $as_echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14106 if test $ac_cv_c_bigendian = unknown; then
14107 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14108 cat >conftest.$ac_ext <<_ACEOF
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h. */
14114 #include <limits.h>
14119 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14120 bogus endian macros
14127 rm -f conftest.$ac_objext
14128 if { (ac_try="$ac_compile"
14129 case "(($ac_try" in
14130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131 *) ac_try_echo=$ac_try;;
14133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14134 $as_echo "$ac_try_echo") >&5
14135 (eval "$ac_compile") 2>conftest.er1
14137 grep -v '^ *+' conftest.er1 >conftest.err
14139 cat conftest.err >&5
14140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } && {
14142 test -z "$ac_c_werror_flag" ||
14143 test ! -s conftest.err
14144 } && test -s conftest.$ac_objext; then
14145 # It does; now see whether it defined to _BIG_ENDIAN or not.
14146 cat >conftest.$ac_ext <<_ACEOF
14149 cat confdefs.h >>conftest.$ac_ext
14150 cat >>conftest.$ac_ext <<_ACEOF
14151 /* end confdefs.h. */
14152 #include <limits.h>
14157 #ifndef _BIG_ENDIAN
14165 rm -f conftest.$ac_objext
14166 if { (ac_try="$ac_compile"
14167 case "(($ac_try" in
14168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169 *) ac_try_echo=$ac_try;;
14171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14172 $as_echo "$ac_try_echo") >&5
14173 (eval "$ac_compile") 2>conftest.er1
14175 grep -v '^ *+' conftest.er1 >conftest.err
14177 cat conftest.err >&5
14178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } && {
14180 test -z "$ac_c_werror_flag" ||
14181 test ! -s conftest.err
14182 } && test -s conftest.$ac_objext; then
14183 ac_cv_c_bigendian=yes
14185 $as_echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14188 ac_cv_c_bigendian=no
14191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14193 $as_echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.$ac_ext >&5
14199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14201 if test $ac_cv_c_bigendian = unknown; then
14202 # Compile a test program.
14203 if test "$cross_compiling" = yes; then
14204 # Try to guess by grepping values from an object file.
14205 cat >conftest.$ac_ext <<_ACEOF
14208 cat confdefs.h >>conftest.$ac_ext
14209 cat >>conftest.$ac_ext <<_ACEOF
14210 /* end confdefs.h. */
14211 short int ascii_mm[] =
14212 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14213 short int ascii_ii[] =
14214 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14215 int use_ascii (int i) {
14216 return ascii_mm[i] + ascii_ii[i];
14218 short int ebcdic_ii[] =
14219 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14220 short int ebcdic_mm[] =
14221 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14222 int use_ebcdic (int i) {
14223 return ebcdic_mm[i] + ebcdic_ii[i];
14230 return use_ascii (foo) == use_ebcdic (foo);
14235 rm -f conftest.$ac_objext
14236 if { (ac_try="$ac_compile"
14237 case "(($ac_try" in
14238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239 *) ac_try_echo=$ac_try;;
14241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14242 $as_echo "$ac_try_echo") >&5
14243 (eval "$ac_compile") 2>conftest.er1
14245 grep -v '^ *+' conftest.er1 >conftest.err
14247 cat conftest.err >&5
14248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); } && {
14250 test -z "$ac_c_werror_flag" ||
14251 test ! -s conftest.err
14252 } && test -s conftest.$ac_objext; then
14253 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14254 ac_cv_c_bigendian=yes
14256 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14257 if test "$ac_cv_c_bigendian" = unknown; then
14258 ac_cv_c_bigendian=no
14260 # finding both strings is unlikely to happen, but who knows?
14261 ac_cv_c_bigendian=unknown
14265 $as_echo "$as_me: failed program was:" >&5
14266 sed 's/^/| /' conftest.$ac_ext >&5
14271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14273 cat >conftest.$ac_ext <<_ACEOF
14276 cat confdefs.h >>conftest.$ac_ext
14277 cat >>conftest.$ac_ext <<_ACEOF
14278 /* end confdefs.h. */
14279 $ac_includes_default
14284 /* Are we little or big endian? From Harbison&Steele. */
14288 char c[sizeof (long int)];
14291 return u.c[sizeof (long int) - 1] == 1;
14297 rm -f conftest$ac_exeext
14298 if { (ac_try="$ac_link"
14299 case "(($ac_try" in
14300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14301 *) ac_try_echo=$ac_try;;
14303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14304 $as_echo "$ac_try_echo") >&5
14305 (eval "$ac_link") 2>&5
14307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14309 { (case "(($ac_try" in
14310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14311 *) ac_try_echo=$ac_try;;
14313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14314 $as_echo "$ac_try_echo") >&5
14315 (eval "$ac_try") 2>&5
14317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); }; }; then
14319 ac_cv_c_bigendian=no
14321 $as_echo "$as_me: program exited with status $ac_status" >&5
14322 $as_echo "$as_me: failed program was:" >&5
14323 sed 's/^/| /' conftest.$ac_ext >&5
14325 ( exit $ac_status )
14326 ac_cv_c_bigendian=yes
14328 rm -rf conftest.dSYM
14329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14335 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14336 $as_echo "$ac_cv_c_bigendian" >&6; }
14337 case $ac_cv_c_bigendian in #(
14339 cat >>confdefs.h <<\_ACEOF
14340 #define WORDS_BIGENDIAN 1
14347 cat >>confdefs.h <<\_ACEOF
14348 #define AC_APPLE_UNIVERSAL_BUILD 1
14353 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14354 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14355 $as_echo "$as_me: error: unknown endianness
14356 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14357 { (exit 1); exit 1; }; } ;;
14360 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14361 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14362 if test "${ac_cv_c_const+set}" = set; then
14363 $as_echo_n "(cached) " >&6
14365 cat >conftest.$ac_ext <<_ACEOF
14368 cat confdefs.h >>conftest.$ac_ext
14369 cat >>conftest.$ac_ext <<_ACEOF
14370 /* end confdefs.h. */
14375 /* FIXME: Include the comments suggested by Paul. */
14376 #ifndef __cplusplus
14377 /* Ultrix mips cc rejects this. */
14378 typedef int charset[2];
14380 /* SunOS 4.1.1 cc rejects this. */
14381 char const *const *pcpcc;
14383 /* NEC SVR4.0.2 mips cc rejects this. */
14384 struct point {int x, y;};
14385 static struct point const zero = {0,0};
14386 /* AIX XL C 1.02.0.0 rejects this.
14387 It does not let you subtract one const X* pointer from another in
14388 an arm of an if-expression whose if-part is not a constant
14390 const char *g = "string";
14391 pcpcc = &g + (g ? g-g : 0);
14392 /* HPUX 7.0 cc rejects these. */
14394 ppc = (char**) pcpcc;
14395 pcpcc = (char const *const *) ppc;
14396 { /* SCO 3.2v4 cc rejects this. */
14398 char const *s = 0 ? (char *) 0 : (char const *) 0;
14403 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14404 int x[] = {25, 17};
14405 const int *foo = &x[0];
14408 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14409 typedef const int *iptr;
14413 { /* AIX XL C 1.02.0.0 rejects this saying
14414 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14415 struct s { int j; const int *ap[3]; };
14416 struct s *b; b->j = 5;
14418 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14419 const int foo = 10;
14420 if (!foo) return 0;
14422 return !cs[0] && !zero.x;
14429 rm -f conftest.$ac_objext
14430 if { (ac_try="$ac_compile"
14431 case "(($ac_try" in
14432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14433 *) ac_try_echo=$ac_try;;
14435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14436 $as_echo "$ac_try_echo") >&5
14437 (eval "$ac_compile") 2>conftest.er1
14439 grep -v '^ *+' conftest.er1 >conftest.err
14441 cat conftest.err >&5
14442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); } && {
14444 test -z "$ac_c_werror_flag" ||
14445 test ! -s conftest.err
14446 } && test -s conftest.$ac_objext; then
14449 $as_echo "$as_me: failed program was:" >&5
14450 sed 's/^/| /' conftest.$ac_ext >&5
14455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14457 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14458 $as_echo "$ac_cv_c_const" >&6; }
14459 if test $ac_cv_c_const = no; then
14461 cat >>confdefs.h <<\_ACEOF
14467 { $as_echo "$as_me:$LINENO: checking for inline" >&5
14468 $as_echo_n "checking for inline... " >&6; }
14469 if test "${ac_cv_c_inline+set}" = set; then
14470 $as_echo_n "(cached) " >&6
14473 for ac_kw in inline __inline__ __inline; do
14474 cat >conftest.$ac_ext <<_ACEOF
14477 cat confdefs.h >>conftest.$ac_ext
14478 cat >>conftest.$ac_ext <<_ACEOF
14479 /* end confdefs.h. */
14480 #ifndef __cplusplus
14482 static $ac_kw foo_t static_foo () {return 0; }
14483 $ac_kw foo_t foo () {return 0; }
14487 rm -f conftest.$ac_objext
14488 if { (ac_try="$ac_compile"
14489 case "(($ac_try" in
14490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14491 *) ac_try_echo=$ac_try;;
14493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14494 $as_echo "$ac_try_echo") >&5
14495 (eval "$ac_compile") 2>conftest.er1
14497 grep -v '^ *+' conftest.er1 >conftest.err
14499 cat conftest.err >&5
14500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); } && {
14502 test -z "$ac_c_werror_flag" ||
14503 test ! -s conftest.err
14504 } && test -s conftest.$ac_objext; then
14505 ac_cv_c_inline=$ac_kw
14507 $as_echo "$as_me: failed program was:" >&5
14508 sed 's/^/| /' conftest.$ac_ext >&5
14513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14514 test "$ac_cv_c_inline" != no && break
14518 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14519 $as_echo "$ac_cv_c_inline" >&6; }
14522 case $ac_cv_c_inline in
14525 case $ac_cv_c_inline in
14527 *) ac_val=$ac_cv_c_inline;;
14529 cat >>confdefs.h <<_ACEOF
14530 #ifndef __cplusplus
14531 #define inline $ac_val
14537 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
14538 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
14539 if test "${pgac_cv_c_inline_quietly+set}" = set; then
14540 $as_echo_n "(cached) " >&6
14542 pgac_cv_c_inline_quietly=no
14543 if test "$ac_cv_c_inline" != no; then
14544 pgac_c_inline_save_werror=$ac_c_werror_flag
14545 ac_c_werror_flag=yes
14546 cat >conftest.$ac_ext <<_ACEOF
14549 cat confdefs.h >>conftest.$ac_ext
14550 cat >>conftest.$ac_ext <<_ACEOF
14551 /* end confdefs.h. */
14552 static inline int fun () {return 0;}
14561 rm -f conftest.$ac_objext conftest$ac_exeext
14562 if { (ac_try="$ac_link"
14563 case "(($ac_try" in
14564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565 *) ac_try_echo=$ac_try;;
14567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14568 $as_echo "$ac_try_echo") >&5
14569 (eval "$ac_link") 2>conftest.er1
14571 grep -v '^ *+' conftest.er1 >conftest.err
14573 cat conftest.err >&5
14574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); } && {
14576 test -z "$ac_c_werror_flag" ||
14577 test ! -s conftest.err
14578 } && test -s conftest$ac_exeext && {
14579 test "$cross_compiling" = yes ||
14580 $as_test_x conftest$ac_exeext
14582 pgac_cv_c_inline_quietly=yes
14584 $as_echo "$as_me: failed program was:" >&5
14585 sed 's/^/| /' conftest.$ac_ext >&5
14590 rm -rf conftest.dSYM
14591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14592 conftest$ac_exeext conftest.$ac_ext
14593 ac_c_werror_flag=$pgac_c_inline_save_werror
14596 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
14597 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
14598 if test "$pgac_cv_c_inline_quietly" != no; then
14600 cat >>confdefs.h <<_ACEOF
14601 #define USE_INLINE 1
14606 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14607 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
14608 if test "${ac_cv_c_stringize+set}" = set; then
14609 $as_echo_n "(cached) " >&6
14611 cat >conftest.$ac_ext <<_ACEOF
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h. */
14619 char *s = x(teststring);
14621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14622 $EGREP "#teststring" >/dev/null 2>&1; then
14623 ac_cv_c_stringize=no
14625 ac_cv_c_stringize=yes
14630 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
14631 $as_echo "$ac_cv_c_stringize" >&6; }
14632 if test $ac_cv_c_stringize = yes; then
14634 cat >>confdefs.h <<\_ACEOF
14635 #define HAVE_STRINGIZE 1
14640 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
14641 $as_echo_n "checking for signed types... " >&6; }
14642 if test "${pgac_cv_c_signed+set}" = set; then
14643 $as_echo_n "(cached) " >&6
14645 cat >conftest.$ac_ext <<_ACEOF
14648 cat confdefs.h >>conftest.$ac_ext
14649 cat >>conftest.$ac_ext <<_ACEOF
14650 /* end confdefs.h. */
14655 signed char c; signed short s; signed int i;
14660 rm -f conftest.$ac_objext
14661 if { (ac_try="$ac_compile"
14662 case "(($ac_try" in
14663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14664 *) ac_try_echo=$ac_try;;
14666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14667 $as_echo "$ac_try_echo") >&5
14668 (eval "$ac_compile") 2>conftest.er1
14670 grep -v '^ *+' conftest.er1 >conftest.err
14672 cat conftest.err >&5
14673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); } && {
14675 test -z "$ac_c_werror_flag" ||
14676 test ! -s conftest.err
14677 } && test -s conftest.$ac_objext; then
14678 pgac_cv_c_signed=yes
14680 $as_echo "$as_me: failed program was:" >&5
14681 sed 's/^/| /' conftest.$ac_ext >&5
14683 pgac_cv_c_signed=no
14686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14688 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14689 $as_echo "$pgac_cv_c_signed" >&6; }
14690 if test x"$pgac_cv_c_signed" = xno ; then
14692 cat >>confdefs.h <<\_ACEOF
14693 #define signed /**/
14697 { $as_echo "$as_me:$LINENO: checking for long long type" >&5
14698 $as_echo_n "checking for long long type... " >&6; }
14699 if test "${pgac_cv_c_long_long+set}" = set; then
14700 $as_echo_n "(cached) " >&6
14702 cat >conftest.$ac_ext <<_ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h. */
14717 rm -f conftest.$ac_objext
14718 if { (ac_try="$ac_compile"
14719 case "(($ac_try" in
14720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14721 *) ac_try_echo=$ac_try;;
14723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14724 $as_echo "$ac_try_echo") >&5
14725 (eval "$ac_compile") 2>conftest.er1
14727 grep -v '^ *+' conftest.er1 >conftest.err
14729 cat conftest.err >&5
14730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } && {
14732 test -z "$ac_c_werror_flag" ||
14733 test ! -s conftest.err
14734 } && test -s conftest.$ac_objext; then
14735 pgac_cv_c_long_long=yes
14737 $as_echo "$as_me: failed program was:" >&5
14738 sed 's/^/| /' conftest.$ac_ext >&5
14740 pgac_cv_c_long_long=no
14743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14745 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_long_long" >&5
14746 $as_echo "$pgac_cv_c_long_long" >&6; }
14747 if test x"$pgac_cv_c_long_long" = xyes ; then
14749 cat >>confdefs.h <<\_ACEOF
14750 #define HAVE_LONG_LONG 1
14754 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
14755 $as_echo_n "checking for working volatile... " >&6; }
14756 if test "${ac_cv_c_volatile+set}" = set; then
14757 $as_echo_n "(cached) " >&6
14759 cat >conftest.$ac_ext <<_ACEOF
14762 cat confdefs.h >>conftest.$ac_ext
14763 cat >>conftest.$ac_ext <<_ACEOF
14764 /* end confdefs.h. */
14771 int * volatile y = (int *) 0;
14777 rm -f conftest.$ac_objext
14778 if { (ac_try="$ac_compile"
14779 case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14784 $as_echo "$ac_try_echo") >&5
14785 (eval "$ac_compile") 2>conftest.er1
14787 grep -v '^ *+' conftest.er1 >conftest.err
14789 cat conftest.err >&5
14790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); } && {
14792 test -z "$ac_c_werror_flag" ||
14793 test ! -s conftest.err
14794 } && test -s conftest.$ac_objext; then
14795 ac_cv_c_volatile=yes
14797 $as_echo "$as_me: failed program was:" >&5
14798 sed 's/^/| /' conftest.$ac_ext >&5
14800 ac_cv_c_volatile=no
14803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14805 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14806 $as_echo "$ac_cv_c_volatile" >&6; }
14807 if test $ac_cv_c_volatile = no; then
14809 cat >>confdefs.h <<\_ACEOF
14810 #define volatile /**/
14815 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
14816 $as_echo_n "checking for __func__... " >&6; }
14817 if test "${pgac_cv_funcname_func_support+set}" = set; then
14818 $as_echo_n "(cached) " >&6
14820 cat >conftest.$ac_ext <<_ACEOF
14823 cat confdefs.h >>conftest.$ac_ext
14824 cat >>conftest.$ac_ext <<_ACEOF
14825 /* end confdefs.h. */
14830 printf("%s\n", __func__);
14835 rm -f conftest.$ac_objext
14836 if { (ac_try="$ac_compile"
14837 case "(($ac_try" in
14838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14839 *) ac_try_echo=$ac_try;;
14841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14842 $as_echo "$ac_try_echo") >&5
14843 (eval "$ac_compile") 2>conftest.er1
14845 grep -v '^ *+' conftest.er1 >conftest.err
14847 cat conftest.err >&5
14848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); } && {
14850 test -z "$ac_c_werror_flag" ||
14851 test ! -s conftest.err
14852 } && test -s conftest.$ac_objext; then
14853 pgac_cv_funcname_func_support=yes
14855 $as_echo "$as_me: failed program was:" >&5
14856 sed 's/^/| /' conftest.$ac_ext >&5
14858 pgac_cv_funcname_func_support=no
14861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14863 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14864 $as_echo "$pgac_cv_funcname_func_support" >&6; }
14865 if test x"$pgac_cv_funcname_func_support" = xyes ; then
14867 cat >>confdefs.h <<\_ACEOF
14868 #define HAVE_FUNCNAME__FUNC 1
14872 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14873 $as_echo_n "checking for __FUNCTION__... " >&6; }
14874 if test "${pgac_cv_funcname_function_support+set}" = set; then
14875 $as_echo_n "(cached) " >&6
14877 cat >conftest.$ac_ext <<_ACEOF
14880 cat confdefs.h >>conftest.$ac_ext
14881 cat >>conftest.$ac_ext <<_ACEOF
14882 /* end confdefs.h. */
14887 printf("%s\n", __FUNCTION__);
14892 rm -f conftest.$ac_objext
14893 if { (ac_try="$ac_compile"
14894 case "(($ac_try" in
14895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14896 *) ac_try_echo=$ac_try;;
14898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14899 $as_echo "$ac_try_echo") >&5
14900 (eval "$ac_compile") 2>conftest.er1
14902 grep -v '^ *+' conftest.er1 >conftest.err
14904 cat conftest.err >&5
14905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); } && {
14907 test -z "$ac_c_werror_flag" ||
14908 test ! -s conftest.err
14909 } && test -s conftest.$ac_objext; then
14910 pgac_cv_funcname_function_support=yes
14912 $as_echo "$as_me: failed program was:" >&5
14913 sed 's/^/| /' conftest.$ac_ext >&5
14915 pgac_cv_funcname_function_support=no
14918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14920 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14921 $as_echo "$pgac_cv_funcname_function_support" >&6; }
14922 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14924 cat >>confdefs.h <<\_ACEOF
14925 #define HAVE_FUNCNAME__FUNCTION 1
14930 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14931 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14932 if test "${ac_cv_struct_tm+set}" = set; then
14933 $as_echo_n "(cached) " >&6
14935 cat >conftest.$ac_ext <<_ACEOF
14938 cat confdefs.h >>conftest.$ac_ext
14939 cat >>conftest.$ac_ext <<_ACEOF
14940 /* end confdefs.h. */
14941 #include <sys/types.h>
14948 int *p = &tm.tm_sec;
14954 rm -f conftest.$ac_objext
14955 if { (ac_try="$ac_compile"
14956 case "(($ac_try" in
14957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14958 *) ac_try_echo=$ac_try;;
14960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14961 $as_echo "$ac_try_echo") >&5
14962 (eval "$ac_compile") 2>conftest.er1
14964 grep -v '^ *+' conftest.er1 >conftest.err
14966 cat conftest.err >&5
14967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); } && {
14969 test -z "$ac_c_werror_flag" ||
14970 test ! -s conftest.err
14971 } && test -s conftest.$ac_objext; then
14972 ac_cv_struct_tm=time.h
14974 $as_echo "$as_me: failed program was:" >&5
14975 sed 's/^/| /' conftest.$ac_ext >&5
14977 ac_cv_struct_tm=sys/time.h
14980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14982 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14983 $as_echo "$ac_cv_struct_tm" >&6; }
14984 if test $ac_cv_struct_tm = sys/time.h; then
14986 cat >>confdefs.h <<\_ACEOF
14987 #define TM_IN_SYS_TIME 1
14992 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14993 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
14994 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14995 $as_echo_n "(cached) " >&6
14997 cat >conftest.$ac_ext <<_ACEOF
15000 cat confdefs.h >>conftest.$ac_ext
15001 cat >>conftest.$ac_ext <<_ACEOF
15002 /* end confdefs.h. */
15003 #include <sys/types.h>
15004 #include <$ac_cv_struct_tm>
15010 static struct tm ac_aggr;
15011 if (ac_aggr.tm_zone)
15017 rm -f conftest.$ac_objext
15018 if { (ac_try="$ac_compile"
15019 case "(($ac_try" in
15020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15021 *) ac_try_echo=$ac_try;;
15023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15024 $as_echo "$ac_try_echo") >&5
15025 (eval "$ac_compile") 2>conftest.er1
15027 grep -v '^ *+' conftest.er1 >conftest.err
15029 cat conftest.err >&5
15030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); } && {
15032 test -z "$ac_c_werror_flag" ||
15033 test ! -s conftest.err
15034 } && test -s conftest.$ac_objext; then
15035 ac_cv_member_struct_tm_tm_zone=yes
15037 $as_echo "$as_me: failed program was:" >&5
15038 sed 's/^/| /' conftest.$ac_ext >&5
15040 cat >conftest.$ac_ext <<_ACEOF
15043 cat confdefs.h >>conftest.$ac_ext
15044 cat >>conftest.$ac_ext <<_ACEOF
15045 /* end confdefs.h. */
15046 #include <sys/types.h>
15047 #include <$ac_cv_struct_tm>
15053 static struct tm ac_aggr;
15054 if (sizeof ac_aggr.tm_zone)
15060 rm -f conftest.$ac_objext
15061 if { (ac_try="$ac_compile"
15062 case "(($ac_try" in
15063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064 *) ac_try_echo=$ac_try;;
15066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15067 $as_echo "$ac_try_echo") >&5
15068 (eval "$ac_compile") 2>conftest.er1
15070 grep -v '^ *+' conftest.er1 >conftest.err
15072 cat conftest.err >&5
15073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); } && {
15075 test -z "$ac_c_werror_flag" ||
15076 test ! -s conftest.err
15077 } && test -s conftest.$ac_objext; then
15078 ac_cv_member_struct_tm_tm_zone=yes
15080 $as_echo "$as_me: failed program was:" >&5
15081 sed 's/^/| /' conftest.$ac_ext >&5
15083 ac_cv_member_struct_tm_tm_zone=no
15086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15091 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15092 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15093 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15095 cat >>confdefs.h <<_ACEOF
15096 #define HAVE_STRUCT_TM_TM_ZONE 1
15102 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15104 cat >>confdefs.h <<\_ACEOF
15105 #define HAVE_TM_ZONE 1
15109 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15110 $as_echo_n "checking for tzname... " >&6; }
15111 if test "${ac_cv_var_tzname+set}" = set; then
15112 $as_echo_n "(cached) " >&6
15114 cat >conftest.$ac_ext <<_ACEOF
15117 cat confdefs.h >>conftest.$ac_ext
15118 cat >>conftest.$ac_ext <<_ACEOF
15119 /* end confdefs.h. */
15121 #ifndef tzname /* For SGI. */
15122 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
15133 rm -f conftest.$ac_objext conftest$ac_exeext
15134 if { (ac_try="$ac_link"
15135 case "(($ac_try" in
15136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137 *) ac_try_echo=$ac_try;;
15139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15140 $as_echo "$ac_try_echo") >&5
15141 (eval "$ac_link") 2>conftest.er1
15143 grep -v '^ *+' conftest.er1 >conftest.err
15145 cat conftest.err >&5
15146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } && {
15148 test -z "$ac_c_werror_flag" ||
15149 test ! -s conftest.err
15150 } && test -s conftest$ac_exeext && {
15151 test "$cross_compiling" = yes ||
15152 $as_test_x conftest$ac_exeext
15154 ac_cv_var_tzname=yes
15156 $as_echo "$as_me: failed program was:" >&5
15157 sed 's/^/| /' conftest.$ac_ext >&5
15159 ac_cv_var_tzname=no
15162 rm -rf conftest.dSYM
15163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15164 conftest$ac_exeext conftest.$ac_ext
15166 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15167 $as_echo "$ac_cv_var_tzname" >&6; }
15168 if test $ac_cv_var_tzname = yes; then
15170 cat >>confdefs.h <<\_ACEOF
15171 #define HAVE_TZNAME 1
15176 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15177 $as_echo_n "checking for union semun... " >&6; }
15178 if test "${ac_cv_type_union_semun+set}" = set; then
15179 $as_echo_n "(cached) " >&6
15181 ac_cv_type_union_semun=no
15182 cat >conftest.$ac_ext <<_ACEOF
15185 cat confdefs.h >>conftest.$ac_ext
15186 cat >>conftest.$ac_ext <<_ACEOF
15187 /* end confdefs.h. */
15188 #include <sys/types.h>
15189 #include <sys/ipc.h>
15190 #include <sys/sem.h>
15195 if (sizeof (union semun))
15201 rm -f conftest.$ac_objext
15202 if { (ac_try="$ac_compile"
15203 case "(($ac_try" in
15204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15205 *) ac_try_echo=$ac_try;;
15207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15208 $as_echo "$ac_try_echo") >&5
15209 (eval "$ac_compile") 2>conftest.er1
15211 grep -v '^ *+' conftest.er1 >conftest.err
15213 cat conftest.err >&5
15214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); } && {
15216 test -z "$ac_c_werror_flag" ||
15217 test ! -s conftest.err
15218 } && test -s conftest.$ac_objext; then
15219 cat >conftest.$ac_ext <<_ACEOF
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h. */
15225 #include <sys/types.h>
15226 #include <sys/ipc.h>
15227 #include <sys/sem.h>
15232 if (sizeof ((union semun)))
15238 rm -f conftest.$ac_objext
15239 if { (ac_try="$ac_compile"
15240 case "(($ac_try" in
15241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242 *) ac_try_echo=$ac_try;;
15244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15245 $as_echo "$ac_try_echo") >&5
15246 (eval "$ac_compile") 2>conftest.er1
15248 grep -v '^ *+' conftest.er1 >conftest.err
15250 cat conftest.err >&5
15251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); } && {
15253 test -z "$ac_c_werror_flag" ||
15254 test ! -s conftest.err
15255 } && test -s conftest.$ac_objext; then
15258 $as_echo "$as_me: failed program was:" >&5
15259 sed 's/^/| /' conftest.$ac_ext >&5
15261 ac_cv_type_union_semun=yes
15264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15266 $as_echo "$as_me: failed program was:" >&5
15267 sed 's/^/| /' conftest.$ac_ext >&5
15272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15274 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15275 $as_echo "$ac_cv_type_union_semun" >&6; }
15276 if test "x$ac_cv_type_union_semun" = x""yes; then
15278 cat >>confdefs.h <<_ACEOF
15279 #define HAVE_UNION_SEMUN 1
15285 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15286 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15287 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15288 $as_echo_n "(cached) " >&6
15290 ac_cv_type_struct_sockaddr_un=no
15291 cat >conftest.$ac_ext <<_ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h. */
15297 #include <sys/types.h>
15298 #ifdef HAVE_SYS_UN_H
15299 #include <sys/un.h>
15306 if (sizeof (struct sockaddr_un))
15312 rm -f conftest.$ac_objext
15313 if { (ac_try="$ac_compile"
15314 case "(($ac_try" in
15315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15316 *) ac_try_echo=$ac_try;;
15318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15319 $as_echo "$ac_try_echo") >&5
15320 (eval "$ac_compile") 2>conftest.er1
15322 grep -v '^ *+' conftest.er1 >conftest.err
15324 cat conftest.err >&5
15325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); } && {
15327 test -z "$ac_c_werror_flag" ||
15328 test ! -s conftest.err
15329 } && test -s conftest.$ac_objext; then
15330 cat >conftest.$ac_ext <<_ACEOF
15333 cat confdefs.h >>conftest.$ac_ext
15334 cat >>conftest.$ac_ext <<_ACEOF
15335 /* end confdefs.h. */
15336 #include <sys/types.h>
15337 #ifdef HAVE_SYS_UN_H
15338 #include <sys/un.h>
15345 if (sizeof ((struct sockaddr_un)))
15351 rm -f conftest.$ac_objext
15352 if { (ac_try="$ac_compile"
15353 case "(($ac_try" in
15354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355 *) ac_try_echo=$ac_try;;
15357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15358 $as_echo "$ac_try_echo") >&5
15359 (eval "$ac_compile") 2>conftest.er1
15361 grep -v '^ *+' conftest.er1 >conftest.err
15363 cat conftest.err >&5
15364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } && {
15366 test -z "$ac_c_werror_flag" ||
15367 test ! -s conftest.err
15368 } && test -s conftest.$ac_objext; then
15371 $as_echo "$as_me: failed program was:" >&5
15372 sed 's/^/| /' conftest.$ac_ext >&5
15374 ac_cv_type_struct_sockaddr_un=yes
15377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15379 $as_echo "$as_me: failed program was:" >&5
15380 sed 's/^/| /' conftest.$ac_ext >&5
15385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15387 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15388 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15389 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
15391 cat >>confdefs.h <<_ACEOF
15392 #define HAVE_STRUCT_SOCKADDR_UN 1
15396 cat >>confdefs.h <<\_ACEOF
15397 #define HAVE_UNIX_SOCKETS 1
15402 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
15403 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15404 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
15405 $as_echo_n "(cached) " >&6
15407 ac_cv_type_struct_sockaddr_storage=no
15408 cat >conftest.$ac_ext <<_ACEOF
15411 cat confdefs.h >>conftest.$ac_ext
15412 cat >>conftest.$ac_ext <<_ACEOF
15413 /* end confdefs.h. */
15414 #include <sys/types.h>
15415 #ifdef HAVE_SYS_SOCKET_H
15416 #include <sys/socket.h>
15423 if (sizeof (struct sockaddr_storage))
15429 rm -f conftest.$ac_objext
15430 if { (ac_try="$ac_compile"
15431 case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15436 $as_echo "$ac_try_echo") >&5
15437 (eval "$ac_compile") 2>conftest.er1
15439 grep -v '^ *+' conftest.er1 >conftest.err
15441 cat conftest.err >&5
15442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } && {
15444 test -z "$ac_c_werror_flag" ||
15445 test ! -s conftest.err
15446 } && test -s conftest.$ac_objext; then
15447 cat >conftest.$ac_ext <<_ACEOF
15450 cat confdefs.h >>conftest.$ac_ext
15451 cat >>conftest.$ac_ext <<_ACEOF
15452 /* end confdefs.h. */
15453 #include <sys/types.h>
15454 #ifdef HAVE_SYS_SOCKET_H
15455 #include <sys/socket.h>
15462 if (sizeof ((struct sockaddr_storage)))
15468 rm -f conftest.$ac_objext
15469 if { (ac_try="$ac_compile"
15470 case "(($ac_try" in
15471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15472 *) ac_try_echo=$ac_try;;
15474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15475 $as_echo "$ac_try_echo") >&5
15476 (eval "$ac_compile") 2>conftest.er1
15478 grep -v '^ *+' conftest.er1 >conftest.err
15480 cat conftest.err >&5
15481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } && {
15483 test -z "$ac_c_werror_flag" ||
15484 test ! -s conftest.err
15485 } && test -s conftest.$ac_objext; then
15488 $as_echo "$as_me: failed program was:" >&5
15489 sed 's/^/| /' conftest.$ac_ext >&5
15491 ac_cv_type_struct_sockaddr_storage=yes
15494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15496 $as_echo "$as_me: failed program was:" >&5
15497 sed 's/^/| /' conftest.$ac_ext >&5
15502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15504 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
15505 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
15506 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
15508 cat >>confdefs.h <<_ACEOF
15509 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15515 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
15516 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
15517 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
15518 $as_echo_n "(cached) " >&6
15520 cat >conftest.$ac_ext <<_ACEOF
15523 cat confdefs.h >>conftest.$ac_ext
15524 cat >>conftest.$ac_ext <<_ACEOF
15525 /* end confdefs.h. */
15526 #include <sys/types.h>
15527 #ifdef HAVE_SYS_SOCKET_H
15528 #include <sys/socket.h>
15535 static struct sockaddr_storage ac_aggr;
15536 if (ac_aggr.ss_family)
15542 rm -f conftest.$ac_objext
15543 if { (ac_try="$ac_compile"
15544 case "(($ac_try" in
15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546 *) ac_try_echo=$ac_try;;
15548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15549 $as_echo "$ac_try_echo") >&5
15550 (eval "$ac_compile") 2>conftest.er1
15552 grep -v '^ *+' conftest.er1 >conftest.err
15554 cat conftest.err >&5
15555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } && {
15557 test -z "$ac_c_werror_flag" ||
15558 test ! -s conftest.err
15559 } && test -s conftest.$ac_objext; then
15560 ac_cv_member_struct_sockaddr_storage_ss_family=yes
15562 $as_echo "$as_me: failed program was:" >&5
15563 sed 's/^/| /' conftest.$ac_ext >&5
15565 cat >conftest.$ac_ext <<_ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h. */
15571 #include <sys/types.h>
15572 #ifdef HAVE_SYS_SOCKET_H
15573 #include <sys/socket.h>
15580 static struct sockaddr_storage ac_aggr;
15581 if (sizeof ac_aggr.ss_family)
15587 rm -f conftest.$ac_objext
15588 if { (ac_try="$ac_compile"
15589 case "(($ac_try" in
15590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591 *) ac_try_echo=$ac_try;;
15593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15594 $as_echo "$ac_try_echo") >&5
15595 (eval "$ac_compile") 2>conftest.er1
15597 grep -v '^ *+' conftest.er1 >conftest.err
15599 cat conftest.err >&5
15600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); } && {
15602 test -z "$ac_c_werror_flag" ||
15603 test ! -s conftest.err
15604 } && test -s conftest.$ac_objext; then
15605 ac_cv_member_struct_sockaddr_storage_ss_family=yes
15607 $as_echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15610 ac_cv_member_struct_sockaddr_storage_ss_family=no
15613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15618 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
15619 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
15620 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
15622 cat >>confdefs.h <<_ACEOF
15623 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15628 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
15629 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
15630 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
15631 $as_echo_n "(cached) " >&6
15633 cat >conftest.$ac_ext <<_ACEOF
15636 cat confdefs.h >>conftest.$ac_ext
15637 cat >>conftest.$ac_ext <<_ACEOF
15638 /* end confdefs.h. */
15639 #include <sys/types.h>
15640 #ifdef HAVE_SYS_SOCKET_H
15641 #include <sys/socket.h>
15648 static struct sockaddr_storage ac_aggr;
15649 if (ac_aggr.__ss_family)
15655 rm -f conftest.$ac_objext
15656 if { (ac_try="$ac_compile"
15657 case "(($ac_try" in
15658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15659 *) ac_try_echo=$ac_try;;
15661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15662 $as_echo "$ac_try_echo") >&5
15663 (eval "$ac_compile") 2>conftest.er1
15665 grep -v '^ *+' conftest.er1 >conftest.err
15667 cat conftest.err >&5
15668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } && {
15670 test -z "$ac_c_werror_flag" ||
15671 test ! -s conftest.err
15672 } && test -s conftest.$ac_objext; then
15673 ac_cv_member_struct_sockaddr_storage___ss_family=yes
15675 $as_echo "$as_me: failed program was:" >&5
15676 sed 's/^/| /' conftest.$ac_ext >&5
15678 cat >conftest.$ac_ext <<_ACEOF
15681 cat confdefs.h >>conftest.$ac_ext
15682 cat >>conftest.$ac_ext <<_ACEOF
15683 /* end confdefs.h. */
15684 #include <sys/types.h>
15685 #ifdef HAVE_SYS_SOCKET_H
15686 #include <sys/socket.h>
15693 static struct sockaddr_storage ac_aggr;
15694 if (sizeof ac_aggr.__ss_family)
15700 rm -f conftest.$ac_objext
15701 if { (ac_try="$ac_compile"
15702 case "(($ac_try" in
15703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15704 *) ac_try_echo=$ac_try;;
15706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15707 $as_echo "$ac_try_echo") >&5
15708 (eval "$ac_compile") 2>conftest.er1
15710 grep -v '^ *+' conftest.er1 >conftest.err
15712 cat conftest.err >&5
15713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); } && {
15715 test -z "$ac_c_werror_flag" ||
15716 test ! -s conftest.err
15717 } && test -s conftest.$ac_objext; then
15718 ac_cv_member_struct_sockaddr_storage___ss_family=yes
15720 $as_echo "$as_me: failed program was:" >&5
15721 sed 's/^/| /' conftest.$ac_ext >&5
15723 ac_cv_member_struct_sockaddr_storage___ss_family=no
15726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15731 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
15732 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
15733 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
15735 cat >>confdefs.h <<_ACEOF
15736 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15741 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
15742 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
15743 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
15744 $as_echo_n "(cached) " >&6
15746 cat >conftest.$ac_ext <<_ACEOF
15749 cat confdefs.h >>conftest.$ac_ext
15750 cat >>conftest.$ac_ext <<_ACEOF
15751 /* end confdefs.h. */
15752 #include <sys/types.h>
15753 #ifdef HAVE_SYS_SOCKET_H
15754 #include <sys/socket.h>
15761 static struct sockaddr_storage ac_aggr;
15762 if (ac_aggr.ss_len)
15768 rm -f conftest.$ac_objext
15769 if { (ac_try="$ac_compile"
15770 case "(($ac_try" in
15771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15772 *) ac_try_echo=$ac_try;;
15774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15775 $as_echo "$ac_try_echo") >&5
15776 (eval "$ac_compile") 2>conftest.er1
15778 grep -v '^ *+' conftest.er1 >conftest.err
15780 cat conftest.err >&5
15781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); } && {
15783 test -z "$ac_c_werror_flag" ||
15784 test ! -s conftest.err
15785 } && test -s conftest.$ac_objext; then
15786 ac_cv_member_struct_sockaddr_storage_ss_len=yes
15788 $as_echo "$as_me: failed program was:" >&5
15789 sed 's/^/| /' conftest.$ac_ext >&5
15791 cat >conftest.$ac_ext <<_ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h. */
15797 #include <sys/types.h>
15798 #ifdef HAVE_SYS_SOCKET_H
15799 #include <sys/socket.h>
15806 static struct sockaddr_storage ac_aggr;
15807 if (sizeof ac_aggr.ss_len)
15813 rm -f conftest.$ac_objext
15814 if { (ac_try="$ac_compile"
15815 case "(($ac_try" in
15816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15817 *) ac_try_echo=$ac_try;;
15819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15820 $as_echo "$ac_try_echo") >&5
15821 (eval "$ac_compile") 2>conftest.er1
15823 grep -v '^ *+' conftest.er1 >conftest.err
15825 cat conftest.err >&5
15826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); } && {
15828 test -z "$ac_c_werror_flag" ||
15829 test ! -s conftest.err
15830 } && test -s conftest.$ac_objext; then
15831 ac_cv_member_struct_sockaddr_storage_ss_len=yes
15833 $as_echo "$as_me: failed program was:" >&5
15834 sed 's/^/| /' conftest.$ac_ext >&5
15836 ac_cv_member_struct_sockaddr_storage_ss_len=no
15839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15844 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
15845 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
15846 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
15848 cat >>confdefs.h <<_ACEOF
15849 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
15854 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
15855 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
15856 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
15857 $as_echo_n "(cached) " >&6
15859 cat >conftest.$ac_ext <<_ACEOF
15862 cat confdefs.h >>conftest.$ac_ext
15863 cat >>conftest.$ac_ext <<_ACEOF
15864 /* end confdefs.h. */
15865 #include <sys/types.h>
15866 #ifdef HAVE_SYS_SOCKET_H
15867 #include <sys/socket.h>
15874 static struct sockaddr_storage ac_aggr;
15875 if (ac_aggr.__ss_len)
15881 rm -f conftest.$ac_objext
15882 if { (ac_try="$ac_compile"
15883 case "(($ac_try" in
15884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15885 *) ac_try_echo=$ac_try;;
15887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15888 $as_echo "$ac_try_echo") >&5
15889 (eval "$ac_compile") 2>conftest.er1
15891 grep -v '^ *+' conftest.er1 >conftest.err
15893 cat conftest.err >&5
15894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); } && {
15896 test -z "$ac_c_werror_flag" ||
15897 test ! -s conftest.err
15898 } && test -s conftest.$ac_objext; then
15899 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15901 $as_echo "$as_me: failed program was:" >&5
15902 sed 's/^/| /' conftest.$ac_ext >&5
15904 cat >conftest.$ac_ext <<_ACEOF
15907 cat confdefs.h >>conftest.$ac_ext
15908 cat >>conftest.$ac_ext <<_ACEOF
15909 /* end confdefs.h. */
15910 #include <sys/types.h>
15911 #ifdef HAVE_SYS_SOCKET_H
15912 #include <sys/socket.h>
15919 static struct sockaddr_storage ac_aggr;
15920 if (sizeof ac_aggr.__ss_len)
15926 rm -f conftest.$ac_objext
15927 if { (ac_try="$ac_compile"
15928 case "(($ac_try" in
15929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930 *) ac_try_echo=$ac_try;;
15932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15933 $as_echo "$ac_try_echo") >&5
15934 (eval "$ac_compile") 2>conftest.er1
15936 grep -v '^ *+' conftest.er1 >conftest.err
15938 cat conftest.err >&5
15939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } && {
15941 test -z "$ac_c_werror_flag" ||
15942 test ! -s conftest.err
15943 } && test -s conftest.$ac_objext; then
15944 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15946 $as_echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15949 ac_cv_member_struct_sockaddr_storage___ss_len=no
15952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15957 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
15958 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
15959 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
15961 cat >>confdefs.h <<_ACEOF
15962 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
15967 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15968 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
15969 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15970 $as_echo_n "(cached) " >&6
15972 cat >conftest.$ac_ext <<_ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h. */
15978 #include <sys/types.h>
15979 #ifdef HAVE_SYS_SOCKET_H
15980 #include <sys/socket.h>
15987 static struct sockaddr ac_aggr;
15988 if (ac_aggr.sa_len)
15994 rm -f conftest.$ac_objext
15995 if { (ac_try="$ac_compile"
15996 case "(($ac_try" in
15997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15998 *) ac_try_echo=$ac_try;;
16000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16001 $as_echo "$ac_try_echo") >&5
16002 (eval "$ac_compile") 2>conftest.er1
16004 grep -v '^ *+' conftest.er1 >conftest.err
16006 cat conftest.err >&5
16007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); } && {
16009 test -z "$ac_c_werror_flag" ||
16010 test ! -s conftest.err
16011 } && test -s conftest.$ac_objext; then
16012 ac_cv_member_struct_sockaddr_sa_len=yes
16014 $as_echo "$as_me: failed program was:" >&5
16015 sed 's/^/| /' conftest.$ac_ext >&5
16017 cat >conftest.$ac_ext <<_ACEOF
16020 cat confdefs.h >>conftest.$ac_ext
16021 cat >>conftest.$ac_ext <<_ACEOF
16022 /* end confdefs.h. */
16023 #include <sys/types.h>
16024 #ifdef HAVE_SYS_SOCKET_H
16025 #include <sys/socket.h>
16032 static struct sockaddr ac_aggr;
16033 if (sizeof ac_aggr.sa_len)
16039 rm -f conftest.$ac_objext
16040 if { (ac_try="$ac_compile"
16041 case "(($ac_try" in
16042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16043 *) ac_try_echo=$ac_try;;
16045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16046 $as_echo "$ac_try_echo") >&5
16047 (eval "$ac_compile") 2>conftest.er1
16049 grep -v '^ *+' conftest.er1 >conftest.err
16051 cat conftest.err >&5
16052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); } && {
16054 test -z "$ac_c_werror_flag" ||
16055 test ! -s conftest.err
16056 } && test -s conftest.$ac_objext; then
16057 ac_cv_member_struct_sockaddr_sa_len=yes
16059 $as_echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16062 ac_cv_member_struct_sockaddr_sa_len=no
16065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16070 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16071 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16072 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16074 cat >>confdefs.h <<_ACEOF
16075 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16081 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16082 $as_echo_n "checking for struct addrinfo... " >&6; }
16083 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16084 $as_echo_n "(cached) " >&6
16086 ac_cv_type_struct_addrinfo=no
16087 cat >conftest.$ac_ext <<_ACEOF
16090 cat confdefs.h >>conftest.$ac_ext
16091 cat >>conftest.$ac_ext <<_ACEOF
16092 /* end confdefs.h. */
16093 #include <sys/types.h>
16094 #include <sys/socket.h>
16101 if (sizeof (struct addrinfo))
16107 rm -f conftest.$ac_objext
16108 if { (ac_try="$ac_compile"
16109 case "(($ac_try" in
16110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111 *) ac_try_echo=$ac_try;;
16113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16114 $as_echo "$ac_try_echo") >&5
16115 (eval "$ac_compile") 2>conftest.er1
16117 grep -v '^ *+' conftest.er1 >conftest.err
16119 cat conftest.err >&5
16120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); } && {
16122 test -z "$ac_c_werror_flag" ||
16123 test ! -s conftest.err
16124 } && test -s conftest.$ac_objext; then
16125 cat >conftest.$ac_ext <<_ACEOF
16128 cat confdefs.h >>conftest.$ac_ext
16129 cat >>conftest.$ac_ext <<_ACEOF
16130 /* end confdefs.h. */
16131 #include <sys/types.h>
16132 #include <sys/socket.h>
16139 if (sizeof ((struct addrinfo)))
16145 rm -f conftest.$ac_objext
16146 if { (ac_try="$ac_compile"
16147 case "(($ac_try" in
16148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16149 *) ac_try_echo=$ac_try;;
16151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16152 $as_echo "$ac_try_echo") >&5
16153 (eval "$ac_compile") 2>conftest.er1
16155 grep -v '^ *+' conftest.er1 >conftest.err
16157 cat conftest.err >&5
16158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); } && {
16160 test -z "$ac_c_werror_flag" ||
16161 test ! -s conftest.err
16162 } && test -s conftest.$ac_objext; then
16165 $as_echo "$as_me: failed program was:" >&5
16166 sed 's/^/| /' conftest.$ac_ext >&5
16168 ac_cv_type_struct_addrinfo=yes
16171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16173 $as_echo "$as_me: failed program was:" >&5
16174 sed 's/^/| /' conftest.$ac_ext >&5
16179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16181 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16182 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16183 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16185 cat >>confdefs.h <<_ACEOF
16186 #define HAVE_STRUCT_ADDRINFO 1
16193 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16194 $as_echo_n "checking for intptr_t... " >&6; }
16195 if test "${ac_cv_type_intptr_t+set}" = set; then
16196 $as_echo_n "(cached) " >&6
16198 ac_cv_type_intptr_t=no
16199 cat >conftest.$ac_ext <<_ACEOF
16202 cat confdefs.h >>conftest.$ac_ext
16203 cat >>conftest.$ac_ext <<_ACEOF
16204 /* end confdefs.h. */
16205 $ac_includes_default
16209 if (sizeof (intptr_t))
16215 rm -f conftest.$ac_objext
16216 if { (ac_try="$ac_compile"
16217 case "(($ac_try" in
16218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219 *) ac_try_echo=$ac_try;;
16221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16222 $as_echo "$ac_try_echo") >&5
16223 (eval "$ac_compile") 2>conftest.er1
16225 grep -v '^ *+' conftest.er1 >conftest.err
16227 cat conftest.err >&5
16228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } && {
16230 test -z "$ac_c_werror_flag" ||
16231 test ! -s conftest.err
16232 } && test -s conftest.$ac_objext; then
16233 cat >conftest.$ac_ext <<_ACEOF
16236 cat confdefs.h >>conftest.$ac_ext
16237 cat >>conftest.$ac_ext <<_ACEOF
16238 /* end confdefs.h. */
16239 $ac_includes_default
16243 if (sizeof ((intptr_t)))
16249 rm -f conftest.$ac_objext
16250 if { (ac_try="$ac_compile"
16251 case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16256 $as_echo "$ac_try_echo") >&5
16257 (eval "$ac_compile") 2>conftest.er1
16259 grep -v '^ *+' conftest.er1 >conftest.err
16261 cat conftest.err >&5
16262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); } && {
16264 test -z "$ac_c_werror_flag" ||
16265 test ! -s conftest.err
16266 } && test -s conftest.$ac_objext; then
16269 $as_echo "$as_me: failed program was:" >&5
16270 sed 's/^/| /' conftest.$ac_ext >&5
16272 ac_cv_type_intptr_t=yes
16275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16277 $as_echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.$ac_ext >&5
16283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16285 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16286 $as_echo "$ac_cv_type_intptr_t" >&6; }
16287 if test "x$ac_cv_type_intptr_t" = x""yes; then
16289 cat >>confdefs.h <<\_ACEOF
16290 #define HAVE_INTPTR_T 1
16294 for ac_type in 'int' 'long int' 'long long int'; do
16295 cat >conftest.$ac_ext <<_ACEOF
16298 cat confdefs.h >>conftest.$ac_ext
16299 cat >>conftest.$ac_ext <<_ACEOF
16300 /* end confdefs.h. */
16301 $ac_includes_default
16305 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16312 rm -f conftest.$ac_objext
16313 if { (ac_try="$ac_compile"
16314 case "(($ac_try" in
16315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16316 *) ac_try_echo=$ac_try;;
16318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16319 $as_echo "$ac_try_echo") >&5
16320 (eval "$ac_compile") 2>conftest.er1
16322 grep -v '^ *+' conftest.er1 >conftest.err
16324 cat conftest.err >&5
16325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); } && {
16327 test -z "$ac_c_werror_flag" ||
16328 test ! -s conftest.err
16329 } && test -s conftest.$ac_objext; then
16331 cat >>confdefs.h <<_ACEOF
16332 #define intptr_t $ac_type
16337 $as_echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16344 test -z "$ac_type" && break
16350 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16351 $as_echo_n "checking for uintptr_t... " >&6; }
16352 if test "${ac_cv_type_uintptr_t+set}" = set; then
16353 $as_echo_n "(cached) " >&6
16355 ac_cv_type_uintptr_t=no
16356 cat >conftest.$ac_ext <<_ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h. */
16362 $ac_includes_default
16366 if (sizeof (uintptr_t))
16372 rm -f conftest.$ac_objext
16373 if { (ac_try="$ac_compile"
16374 case "(($ac_try" in
16375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16376 *) ac_try_echo=$ac_try;;
16378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16379 $as_echo "$ac_try_echo") >&5
16380 (eval "$ac_compile") 2>conftest.er1
16382 grep -v '^ *+' conftest.er1 >conftest.err
16384 cat conftest.err >&5
16385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); } && {
16387 test -z "$ac_c_werror_flag" ||
16388 test ! -s conftest.err
16389 } && test -s conftest.$ac_objext; then
16390 cat >conftest.$ac_ext <<_ACEOF
16393 cat confdefs.h >>conftest.$ac_ext
16394 cat >>conftest.$ac_ext <<_ACEOF
16395 /* end confdefs.h. */
16396 $ac_includes_default
16400 if (sizeof ((uintptr_t)))
16406 rm -f conftest.$ac_objext
16407 if { (ac_try="$ac_compile"
16408 case "(($ac_try" in
16409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410 *) ac_try_echo=$ac_try;;
16412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16413 $as_echo "$ac_try_echo") >&5
16414 (eval "$ac_compile") 2>conftest.er1
16416 grep -v '^ *+' conftest.er1 >conftest.err
16418 cat conftest.err >&5
16419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); } && {
16421 test -z "$ac_c_werror_flag" ||
16422 test ! -s conftest.err
16423 } && test -s conftest.$ac_objext; then
16426 $as_echo "$as_me: failed program was:" >&5
16427 sed 's/^/| /' conftest.$ac_ext >&5
16429 ac_cv_type_uintptr_t=yes
16432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16434 $as_echo "$as_me: failed program was:" >&5
16435 sed 's/^/| /' conftest.$ac_ext >&5
16440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16442 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16443 $as_echo "$ac_cv_type_uintptr_t" >&6; }
16444 if test "x$ac_cv_type_uintptr_t" = x""yes; then
16446 cat >>confdefs.h <<\_ACEOF
16447 #define HAVE_UINTPTR_T 1
16451 for ac_type in 'unsigned int' 'unsigned long int' \
16452 'unsigned long long int'; do
16453 cat >conftest.$ac_ext <<_ACEOF
16456 cat confdefs.h >>conftest.$ac_ext
16457 cat >>conftest.$ac_ext <<_ACEOF
16458 /* end confdefs.h. */
16459 $ac_includes_default
16463 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16470 rm -f conftest.$ac_objext
16471 if { (ac_try="$ac_compile"
16472 case "(($ac_try" in
16473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474 *) ac_try_echo=$ac_try;;
16476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16477 $as_echo "$ac_try_echo") >&5
16478 (eval "$ac_compile") 2>conftest.er1
16480 grep -v '^ *+' conftest.er1 >conftest.err
16482 cat conftest.err >&5
16483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); } && {
16485 test -z "$ac_c_werror_flag" ||
16486 test ! -s conftest.err
16487 } && test -s conftest.$ac_objext; then
16489 cat >>confdefs.h <<_ACEOF
16490 #define uintptr_t $ac_type
16495 $as_echo "$as_me: failed program was:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16502 test -z "$ac_type" && break
16508 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
16509 $as_echo_n "checking for struct cmsgcred... " >&6; }
16510 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
16511 $as_echo_n "(cached) " >&6
16513 ac_cv_type_struct_cmsgcred=no
16514 cat >conftest.$ac_ext <<_ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h. */
16520 #include <sys/param.h>
16521 #include <sys/types.h>
16522 #include <sys/socket.h>
16523 #include <sys/ucred.h>
16528 if (sizeof (struct cmsgcred))
16534 rm -f conftest.$ac_objext
16535 if { (ac_try="$ac_compile"
16536 case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16541 $as_echo "$ac_try_echo") >&5
16542 (eval "$ac_compile") 2>conftest.er1
16544 grep -v '^ *+' conftest.er1 >conftest.err
16546 cat conftest.err >&5
16547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); } && {
16549 test -z "$ac_c_werror_flag" ||
16550 test ! -s conftest.err
16551 } && test -s conftest.$ac_objext; then
16552 cat >conftest.$ac_ext <<_ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h. */
16558 #include <sys/param.h>
16559 #include <sys/types.h>
16560 #include <sys/socket.h>
16561 #include <sys/ucred.h>
16566 if (sizeof ((struct cmsgcred)))
16572 rm -f conftest.$ac_objext
16573 if { (ac_try="$ac_compile"
16574 case "(($ac_try" in
16575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576 *) ac_try_echo=$ac_try;;
16578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16579 $as_echo "$ac_try_echo") >&5
16580 (eval "$ac_compile") 2>conftest.er1
16582 grep -v '^ *+' conftest.er1 >conftest.err
16584 cat conftest.err >&5
16585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); } && {
16587 test -z "$ac_c_werror_flag" ||
16588 test ! -s conftest.err
16589 } && test -s conftest.$ac_objext; then
16592 $as_echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16595 ac_cv_type_struct_cmsgcred=yes
16598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16600 $as_echo "$as_me: failed program was:" >&5
16601 sed 's/^/| /' conftest.$ac_ext >&5
16606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16608 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
16609 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
16610 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
16612 cat >>confdefs.h <<_ACEOF
16613 #define HAVE_STRUCT_CMSGCRED 1
16618 { $as_echo "$as_me:$LINENO: checking for struct fcred" >&5
16619 $as_echo_n "checking for struct fcred... " >&6; }
16620 if test "${ac_cv_type_struct_fcred+set}" = set; then
16621 $as_echo_n "(cached) " >&6
16623 ac_cv_type_struct_fcred=no
16624 cat >conftest.$ac_ext <<_ACEOF
16627 cat confdefs.h >>conftest.$ac_ext
16628 cat >>conftest.$ac_ext <<_ACEOF
16629 /* end confdefs.h. */
16630 #include <sys/param.h>
16631 #include <sys/types.h>
16632 #include <sys/socket.h>
16633 #include <sys/ucred.h>
16638 if (sizeof (struct fcred))
16644 rm -f conftest.$ac_objext
16645 if { (ac_try="$ac_compile"
16646 case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16651 $as_echo "$ac_try_echo") >&5
16652 (eval "$ac_compile") 2>conftest.er1
16654 grep -v '^ *+' conftest.er1 >conftest.err
16656 cat conftest.err >&5
16657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); } && {
16659 test -z "$ac_c_werror_flag" ||
16660 test ! -s conftest.err
16661 } && test -s conftest.$ac_objext; then
16662 cat >conftest.$ac_ext <<_ACEOF
16665 cat confdefs.h >>conftest.$ac_ext
16666 cat >>conftest.$ac_ext <<_ACEOF
16667 /* end confdefs.h. */
16668 #include <sys/param.h>
16669 #include <sys/types.h>
16670 #include <sys/socket.h>
16671 #include <sys/ucred.h>
16676 if (sizeof ((struct fcred)))
16682 rm -f conftest.$ac_objext
16683 if { (ac_try="$ac_compile"
16684 case "(($ac_try" in
16685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16686 *) ac_try_echo=$ac_try;;
16688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16689 $as_echo "$ac_try_echo") >&5
16690 (eval "$ac_compile") 2>conftest.er1
16692 grep -v '^ *+' conftest.er1 >conftest.err
16694 cat conftest.err >&5
16695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); } && {
16697 test -z "$ac_c_werror_flag" ||
16698 test ! -s conftest.err
16699 } && test -s conftest.$ac_objext; then
16702 $as_echo "$as_me: failed program was:" >&5
16703 sed 's/^/| /' conftest.$ac_ext >&5
16705 ac_cv_type_struct_fcred=yes
16708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16710 $as_echo "$as_me: failed program was:" >&5
16711 sed 's/^/| /' conftest.$ac_ext >&5
16716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16718 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
16719 $as_echo "$ac_cv_type_struct_fcred" >&6; }
16720 if test "x$ac_cv_type_struct_fcred" = x""yes; then
16722 cat >>confdefs.h <<_ACEOF
16723 #define HAVE_STRUCT_FCRED 1
16728 { $as_echo "$as_me:$LINENO: checking for struct sockcred" >&5
16729 $as_echo_n "checking for struct sockcred... " >&6; }
16730 if test "${ac_cv_type_struct_sockcred+set}" = set; then
16731 $as_echo_n "(cached) " >&6
16733 ac_cv_type_struct_sockcred=no
16734 cat >conftest.$ac_ext <<_ACEOF
16737 cat confdefs.h >>conftest.$ac_ext
16738 cat >>conftest.$ac_ext <<_ACEOF
16739 /* end confdefs.h. */
16740 #include <sys/param.h>
16741 #include <sys/types.h>
16742 #include <sys/socket.h>
16743 #include <sys/ucred.h>
16748 if (sizeof (struct sockcred))
16754 rm -f conftest.$ac_objext
16755 if { (ac_try="$ac_compile"
16756 case "(($ac_try" in
16757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16758 *) ac_try_echo=$ac_try;;
16760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16761 $as_echo "$ac_try_echo") >&5
16762 (eval "$ac_compile") 2>conftest.er1
16764 grep -v '^ *+' conftest.er1 >conftest.err
16766 cat conftest.err >&5
16767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); } && {
16769 test -z "$ac_c_werror_flag" ||
16770 test ! -s conftest.err
16771 } && test -s conftest.$ac_objext; then
16772 cat >conftest.$ac_ext <<_ACEOF
16775 cat confdefs.h >>conftest.$ac_ext
16776 cat >>conftest.$ac_ext <<_ACEOF
16777 /* end confdefs.h. */
16778 #include <sys/param.h>
16779 #include <sys/types.h>
16780 #include <sys/socket.h>
16781 #include <sys/ucred.h>
16786 if (sizeof ((struct sockcred)))
16792 rm -f conftest.$ac_objext
16793 if { (ac_try="$ac_compile"
16794 case "(($ac_try" in
16795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16796 *) ac_try_echo=$ac_try;;
16798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16799 $as_echo "$ac_try_echo") >&5
16800 (eval "$ac_compile") 2>conftest.er1
16802 grep -v '^ *+' conftest.er1 >conftest.err
16804 cat conftest.err >&5
16805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); } && {
16807 test -z "$ac_c_werror_flag" ||
16808 test ! -s conftest.err
16809 } && test -s conftest.$ac_objext; then
16812 $as_echo "$as_me: failed program was:" >&5
16813 sed 's/^/| /' conftest.$ac_ext >&5
16815 ac_cv_type_struct_sockcred=yes
16818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16820 $as_echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.$ac_ext >&5
16826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16828 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
16829 $as_echo "$ac_cv_type_struct_sockcred" >&6; }
16830 if test "x$ac_cv_type_struct_sockcred" = x""yes; then
16832 cat >>confdefs.h <<_ACEOF
16833 #define HAVE_STRUCT_SOCKCRED 1
16840 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
16841 $as_echo_n "checking for struct option... " >&6; }
16842 if test "${ac_cv_type_struct_option+set}" = set; then
16843 $as_echo_n "(cached) " >&6
16845 ac_cv_type_struct_option=no
16846 cat >conftest.$ac_ext <<_ACEOF
16849 cat confdefs.h >>conftest.$ac_ext
16850 cat >>conftest.$ac_ext <<_ACEOF
16851 /* end confdefs.h. */
16852 #ifdef HAVE_GETOPT_H
16853 #include <getopt.h>
16859 if (sizeof (struct option))
16865 rm -f conftest.$ac_objext
16866 if { (ac_try="$ac_compile"
16867 case "(($ac_try" in
16868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869 *) ac_try_echo=$ac_try;;
16871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16872 $as_echo "$ac_try_echo") >&5
16873 (eval "$ac_compile") 2>conftest.er1
16875 grep -v '^ *+' conftest.er1 >conftest.err
16877 cat conftest.err >&5
16878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); } && {
16880 test -z "$ac_c_werror_flag" ||
16881 test ! -s conftest.err
16882 } && test -s conftest.$ac_objext; then
16883 cat >conftest.$ac_ext <<_ACEOF
16886 cat confdefs.h >>conftest.$ac_ext
16887 cat >>conftest.$ac_ext <<_ACEOF
16888 /* end confdefs.h. */
16889 #ifdef HAVE_GETOPT_H
16890 #include <getopt.h>
16896 if (sizeof ((struct option)))
16902 rm -f conftest.$ac_objext
16903 if { (ac_try="$ac_compile"
16904 case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16909 $as_echo "$ac_try_echo") >&5
16910 (eval "$ac_compile") 2>conftest.er1
16912 grep -v '^ *+' conftest.er1 >conftest.err
16914 cat conftest.err >&5
16915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); } && {
16917 test -z "$ac_c_werror_flag" ||
16918 test ! -s conftest.err
16919 } && test -s conftest.$ac_objext; then
16922 $as_echo "$as_me: failed program was:" >&5
16923 sed 's/^/| /' conftest.$ac_ext >&5
16925 ac_cv_type_struct_option=yes
16928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16930 $as_echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16938 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
16939 $as_echo "$ac_cv_type_struct_option" >&6; }
16940 if test "x$ac_cv_type_struct_option" = x""yes; then
16942 cat >>confdefs.h <<_ACEOF
16943 #define HAVE_STRUCT_OPTION 1
16950 if test "$with_zlib" = yes; then
16951 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
16952 # did not). While we could work around the lack of z_streamp, it
16953 # seems unwise to encourage people to use such old zlib versions...
16954 { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
16955 $as_echo_n "checking for z_streamp... " >&6; }
16956 if test "${ac_cv_type_z_streamp+set}" = set; then
16957 $as_echo_n "(cached) " >&6
16959 ac_cv_type_z_streamp=no
16960 cat >conftest.$ac_ext <<_ACEOF
16963 cat confdefs.h >>conftest.$ac_ext
16964 cat >>conftest.$ac_ext <<_ACEOF
16965 /* end confdefs.h. */
16971 if (sizeof (z_streamp))
16977 rm -f conftest.$ac_objext
16978 if { (ac_try="$ac_compile"
16979 case "(($ac_try" in
16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981 *) ac_try_echo=$ac_try;;
16983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16984 $as_echo "$ac_try_echo") >&5
16985 (eval "$ac_compile") 2>conftest.er1
16987 grep -v '^ *+' conftest.er1 >conftest.err
16989 cat conftest.err >&5
16990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); } && {
16992 test -z "$ac_c_werror_flag" ||
16993 test ! -s conftest.err
16994 } && test -s conftest.$ac_objext; then
16995 cat >conftest.$ac_ext <<_ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h. */
17006 if (sizeof ((z_streamp)))
17012 rm -f conftest.$ac_objext
17013 if { (ac_try="$ac_compile"
17014 case "(($ac_try" in
17015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016 *) ac_try_echo=$ac_try;;
17018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17019 $as_echo "$ac_try_echo") >&5
17020 (eval "$ac_compile") 2>conftest.er1
17022 grep -v '^ *+' conftest.er1 >conftest.err
17024 cat conftest.err >&5
17025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); } && {
17027 test -z "$ac_c_werror_flag" ||
17028 test ! -s conftest.err
17029 } && test -s conftest.$ac_objext; then
17032 $as_echo "$as_me: failed program was:" >&5
17033 sed 's/^/| /' conftest.$ac_ext >&5
17035 ac_cv_type_z_streamp=yes
17038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17040 $as_echo "$as_me: failed program was:" >&5
17041 sed 's/^/| /' conftest.$ac_ext >&5
17046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17048 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17049 $as_echo "$ac_cv_type_z_streamp" >&6; }
17050 if test "x$ac_cv_type_z_streamp" = x""yes; then
17053 { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17054 Use --without-zlib to disable zlib support." >&5
17055 $as_echo "$as_me: error: zlib version is too old
17056 Use --without-zlib to disable zlib support." >&2;}
17057 { (exit 1); exit 1; }; }
17062 if test "$with_krb5" = yes; then
17063 # Check for differences between MIT and Heimdal (KTH) releases
17064 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17065 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17066 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17067 $as_echo_n "(cached) " >&6
17069 cat >conftest.$ac_ext <<_ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17080 static krb5_ticket ac_aggr;
17081 if (ac_aggr.enc_part2)
17087 rm -f conftest.$ac_objext
17088 if { (ac_try="$ac_compile"
17089 case "(($ac_try" in
17090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091 *) ac_try_echo=$ac_try;;
17093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17094 $as_echo "$ac_try_echo") >&5
17095 (eval "$ac_compile") 2>conftest.er1
17097 grep -v '^ *+' conftest.er1 >conftest.err
17099 cat conftest.err >&5
17100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); } && {
17102 test -z "$ac_c_werror_flag" ||
17103 test ! -s conftest.err
17104 } && test -s conftest.$ac_objext; then
17105 ac_cv_member_krb5_ticket_enc_part2=yes
17107 $as_echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.$ac_ext >&5
17110 cat >conftest.$ac_ext <<_ACEOF
17113 cat confdefs.h >>conftest.$ac_ext
17114 cat >>conftest.$ac_ext <<_ACEOF
17115 /* end confdefs.h. */
17121 static krb5_ticket ac_aggr;
17122 if (sizeof ac_aggr.enc_part2)
17128 rm -f conftest.$ac_objext
17129 if { (ac_try="$ac_compile"
17130 case "(($ac_try" in
17131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17132 *) ac_try_echo=$ac_try;;
17134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17135 $as_echo "$ac_try_echo") >&5
17136 (eval "$ac_compile") 2>conftest.er1
17138 grep -v '^ *+' conftest.er1 >conftest.err
17140 cat conftest.err >&5
17141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); } && {
17143 test -z "$ac_c_werror_flag" ||
17144 test ! -s conftest.err
17145 } && test -s conftest.$ac_objext; then
17146 ac_cv_member_krb5_ticket_enc_part2=yes
17148 $as_echo "$as_me: failed program was:" >&5
17149 sed 's/^/| /' conftest.$ac_ext >&5
17151 ac_cv_member_krb5_ticket_enc_part2=no
17154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17159 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17160 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17161 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17163 cat >>confdefs.h <<_ACEOF
17164 #define HAVE_KRB5_TICKET_ENC_PART2 1
17169 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17170 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17171 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17172 $as_echo_n "(cached) " >&6
17174 cat >conftest.$ac_ext <<_ACEOF
17177 cat confdefs.h >>conftest.$ac_ext
17178 cat >>conftest.$ac_ext <<_ACEOF
17179 /* end confdefs.h. */
17185 static krb5_ticket ac_aggr;
17186 if (ac_aggr.client)
17192 rm -f conftest.$ac_objext
17193 if { (ac_try="$ac_compile"
17194 case "(($ac_try" in
17195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196 *) ac_try_echo=$ac_try;;
17198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17199 $as_echo "$ac_try_echo") >&5
17200 (eval "$ac_compile") 2>conftest.er1
17202 grep -v '^ *+' conftest.er1 >conftest.err
17204 cat conftest.err >&5
17205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); } && {
17207 test -z "$ac_c_werror_flag" ||
17208 test ! -s conftest.err
17209 } && test -s conftest.$ac_objext; then
17210 ac_cv_member_krb5_ticket_client=yes
17212 $as_echo "$as_me: failed program was:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17215 cat >conftest.$ac_ext <<_ACEOF
17218 cat confdefs.h >>conftest.$ac_ext
17219 cat >>conftest.$ac_ext <<_ACEOF
17220 /* end confdefs.h. */
17226 static krb5_ticket ac_aggr;
17227 if (sizeof ac_aggr.client)
17233 rm -f conftest.$ac_objext
17234 if { (ac_try="$ac_compile"
17235 case "(($ac_try" in
17236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237 *) ac_try_echo=$ac_try;;
17239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17240 $as_echo "$ac_try_echo") >&5
17241 (eval "$ac_compile") 2>conftest.er1
17243 grep -v '^ *+' conftest.er1 >conftest.err
17245 cat conftest.err >&5
17246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); } && {
17248 test -z "$ac_c_werror_flag" ||
17249 test ! -s conftest.err
17250 } && test -s conftest.$ac_objext; then
17251 ac_cv_member_krb5_ticket_client=yes
17253 $as_echo "$as_me: failed program was:" >&5
17254 sed 's/^/| /' conftest.$ac_ext >&5
17256 ac_cv_member_krb5_ticket_client=no
17259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17264 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
17265 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17266 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17268 cat >>confdefs.h <<_ACEOF
17269 #define HAVE_KRB5_TICKET_CLIENT 1
17274 { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17275 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17276 { (exit 1); exit 1; }; }
17281 { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17282 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17283 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17284 $as_echo_n "(cached) " >&6
17286 cat >conftest.$ac_ext <<_ACEOF
17289 cat confdefs.h >>conftest.$ac_ext
17290 cat >>conftest.$ac_ext <<_ACEOF
17291 /* end confdefs.h. */
17297 static krb5_error ac_aggr;
17298 if (ac_aggr.text.data)
17304 rm -f conftest.$ac_objext
17305 if { (ac_try="$ac_compile"
17306 case "(($ac_try" in
17307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308 *) ac_try_echo=$ac_try;;
17310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17311 $as_echo "$ac_try_echo") >&5
17312 (eval "$ac_compile") 2>conftest.er1
17314 grep -v '^ *+' conftest.er1 >conftest.err
17316 cat conftest.err >&5
17317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); } && {
17319 test -z "$ac_c_werror_flag" ||
17320 test ! -s conftest.err
17321 } && test -s conftest.$ac_objext; then
17322 ac_cv_member_krb5_error_text_data=yes
17324 $as_echo "$as_me: failed program was:" >&5
17325 sed 's/^/| /' conftest.$ac_ext >&5
17327 cat >conftest.$ac_ext <<_ACEOF
17330 cat confdefs.h >>conftest.$ac_ext
17331 cat >>conftest.$ac_ext <<_ACEOF
17332 /* end confdefs.h. */
17338 static krb5_error ac_aggr;
17339 if (sizeof ac_aggr.text.data)
17345 rm -f conftest.$ac_objext
17346 if { (ac_try="$ac_compile"
17347 case "(($ac_try" in
17348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17349 *) ac_try_echo=$ac_try;;
17351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17352 $as_echo "$ac_try_echo") >&5
17353 (eval "$ac_compile") 2>conftest.er1
17355 grep -v '^ *+' conftest.er1 >conftest.err
17357 cat conftest.err >&5
17358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); } && {
17360 test -z "$ac_c_werror_flag" ||
17361 test ! -s conftest.err
17362 } && test -s conftest.$ac_objext; then
17363 ac_cv_member_krb5_error_text_data=yes
17365 $as_echo "$as_me: failed program was:" >&5
17366 sed 's/^/| /' conftest.$ac_ext >&5
17368 ac_cv_member_krb5_error_text_data=no
17371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17376 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
17377 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
17378 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
17380 cat >>confdefs.h <<_ACEOF
17381 #define HAVE_KRB5_ERROR_TEXT_DATA 1
17386 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
17387 $as_echo_n "checking for krb5_error.e_data... " >&6; }
17388 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
17389 $as_echo_n "(cached) " >&6
17391 cat >conftest.$ac_ext <<_ACEOF
17394 cat confdefs.h >>conftest.$ac_ext
17395 cat >>conftest.$ac_ext <<_ACEOF
17396 /* end confdefs.h. */
17402 static krb5_error ac_aggr;
17403 if (ac_aggr.e_data)
17409 rm -f conftest.$ac_objext
17410 if { (ac_try="$ac_compile"
17411 case "(($ac_try" in
17412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17413 *) ac_try_echo=$ac_try;;
17415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17416 $as_echo "$ac_try_echo") >&5
17417 (eval "$ac_compile") 2>conftest.er1
17419 grep -v '^ *+' conftest.er1 >conftest.err
17421 cat conftest.err >&5
17422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); } && {
17424 test -z "$ac_c_werror_flag" ||
17425 test ! -s conftest.err
17426 } && test -s conftest.$ac_objext; then
17427 ac_cv_member_krb5_error_e_data=yes
17429 $as_echo "$as_me: failed program was:" >&5
17430 sed 's/^/| /' conftest.$ac_ext >&5
17432 cat >conftest.$ac_ext <<_ACEOF
17435 cat confdefs.h >>conftest.$ac_ext
17436 cat >>conftest.$ac_ext <<_ACEOF
17437 /* end confdefs.h. */
17443 static krb5_error ac_aggr;
17444 if (sizeof ac_aggr.e_data)
17450 rm -f conftest.$ac_objext
17451 if { (ac_try="$ac_compile"
17452 case "(($ac_try" in
17453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17454 *) ac_try_echo=$ac_try;;
17456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17457 $as_echo "$ac_try_echo") >&5
17458 (eval "$ac_compile") 2>conftest.er1
17460 grep -v '^ *+' conftest.er1 >conftest.err
17462 cat conftest.err >&5
17463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); } && {
17465 test -z "$ac_c_werror_flag" ||
17466 test ! -s conftest.err
17467 } && test -s conftest.$ac_objext; then
17468 ac_cv_member_krb5_error_e_data=yes
17470 $as_echo "$as_me: failed program was:" >&5
17471 sed 's/^/| /' conftest.$ac_ext >&5
17473 ac_cv_member_krb5_error_e_data=no
17476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17481 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
17482 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
17483 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
17485 cat >>confdefs.h <<_ACEOF
17486 #define HAVE_KRB5_ERROR_E_DATA 1
17491 { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
17492 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
17493 { (exit 1); exit 1; }; }
17499 # Win32 requires headers to be loaded for __stdcall, so can't use
17500 # AC_CHECK_FUNCS here.
17501 { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
17502 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
17503 cat >conftest.$ac_ext <<_ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h. */
17513 krb5_free_unparsed_name(NULL,NULL);
17518 rm -f conftest.$ac_objext conftest$ac_exeext
17519 if { (ac_try="$ac_link"
17520 case "(($ac_try" in
17521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522 *) ac_try_echo=$ac_try;;
17524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17525 $as_echo "$ac_try_echo") >&5
17526 (eval "$ac_link") 2>conftest.er1
17528 grep -v '^ *+' conftest.er1 >conftest.err
17530 cat conftest.err >&5
17531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); } && {
17533 test -z "$ac_c_werror_flag" ||
17534 test ! -s conftest.err
17535 } && test -s conftest$ac_exeext && {
17536 test "$cross_compiling" = yes ||
17537 $as_test_x conftest$ac_exeext
17540 cat >>confdefs.h <<\_ACEOF
17541 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
17544 { $as_echo "$as_me:$LINENO: result: yes" >&5
17545 $as_echo "yes" >&6; }
17547 $as_echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17550 { $as_echo "$as_me:$LINENO: result: no" >&5
17551 $as_echo "no" >&6; }
17554 rm -rf conftest.dSYM
17555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17556 conftest$ac_exeext conftest.$ac_ext
17559 # Check largefile support. You might think this is a system service not a
17560 # compiler characteristic, but you'd be wrong. We must check this before
17561 # probing existence of related functions such as fseeko, since the largefile
17562 # defines can affect what is generated for that.
17563 # Check whether --enable-largefile was given.
17564 if test "${enable_largefile+set}" = set; then
17565 enableval=$enable_largefile;
17568 if test "$enable_largefile" != no; then
17570 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
17571 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17572 if test "${ac_cv_sys_largefile_CC+set}" = set; then
17573 $as_echo_n "(cached) " >&6
17575 ac_cv_sys_largefile_CC=no
17576 if test "$GCC" != yes; then
17579 # IRIX 6.2 and later do not support large files by default,
17580 # so use the C compiler's -n32 option if that helps.
17581 cat >conftest.$ac_ext <<_ACEOF
17584 cat confdefs.h >>conftest.$ac_ext
17585 cat >>conftest.$ac_ext <<_ACEOF
17586 /* end confdefs.h. */
17587 #include <sys/types.h>
17588 /* Check that off_t can represent 2**63 - 1 correctly.
17589 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17590 since some C++ compilers masquerading as C compilers
17591 incorrectly reject 9223372036854775807. */
17592 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17593 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17594 && LARGE_OFF_T % 2147483647 == 1)
17604 rm -f conftest.$ac_objext
17605 if { (ac_try="$ac_compile"
17606 case "(($ac_try" in
17607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608 *) ac_try_echo=$ac_try;;
17610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17611 $as_echo "$ac_try_echo") >&5
17612 (eval "$ac_compile") 2>conftest.er1
17614 grep -v '^ *+' conftest.er1 >conftest.err
17616 cat conftest.err >&5
17617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); } && {
17619 test -z "$ac_c_werror_flag" ||
17620 test ! -s conftest.err
17621 } && test -s conftest.$ac_objext; then
17624 $as_echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17630 rm -f core conftest.err conftest.$ac_objext
17632 rm -f conftest.$ac_objext
17633 if { (ac_try="$ac_compile"
17634 case "(($ac_try" in
17635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636 *) ac_try_echo=$ac_try;;
17638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17639 $as_echo "$ac_try_echo") >&5
17640 (eval "$ac_compile") 2>conftest.er1
17642 grep -v '^ *+' conftest.er1 >conftest.err
17644 cat conftest.err >&5
17645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); } && {
17647 test -z "$ac_c_werror_flag" ||
17648 test ! -s conftest.err
17649 } && test -s conftest.$ac_objext; then
17650 ac_cv_sys_largefile_CC=' -n32'; break
17652 $as_echo "$as_me: failed program was:" >&5
17653 sed 's/^/| /' conftest.$ac_ext >&5
17658 rm -f core conftest.err conftest.$ac_objext
17662 rm -f conftest.$ac_ext
17665 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
17666 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17667 if test "$ac_cv_sys_largefile_CC" != no; then
17668 CC=$CC$ac_cv_sys_largefile_CC
17671 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17672 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17673 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17674 $as_echo_n "(cached) " >&6
17677 cat >conftest.$ac_ext <<_ACEOF
17680 cat confdefs.h >>conftest.$ac_ext
17681 cat >>conftest.$ac_ext <<_ACEOF
17682 /* end confdefs.h. */
17683 #include <sys/types.h>
17684 /* Check that off_t can represent 2**63 - 1 correctly.
17685 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17686 since some C++ compilers masquerading as C compilers
17687 incorrectly reject 9223372036854775807. */
17688 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17689 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17690 && LARGE_OFF_T % 2147483647 == 1)
17700 rm -f conftest.$ac_objext
17701 if { (ac_try="$ac_compile"
17702 case "(($ac_try" in
17703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17704 *) ac_try_echo=$ac_try;;
17706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17707 $as_echo "$ac_try_echo") >&5
17708 (eval "$ac_compile") 2>conftest.er1
17710 grep -v '^ *+' conftest.er1 >conftest.err
17712 cat conftest.err >&5
17713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } && {
17715 test -z "$ac_c_werror_flag" ||
17716 test ! -s conftest.err
17717 } && test -s conftest.$ac_objext; then
17718 ac_cv_sys_file_offset_bits=no; break
17720 $as_echo "$as_me: failed program was:" >&5
17721 sed 's/^/| /' conftest.$ac_ext >&5
17726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17727 cat >conftest.$ac_ext <<_ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h. */
17733 #define _FILE_OFFSET_BITS 64
17734 #include <sys/types.h>
17735 /* Check that off_t can represent 2**63 - 1 correctly.
17736 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17737 since some C++ compilers masquerading as C compilers
17738 incorrectly reject 9223372036854775807. */
17739 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17740 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17741 && LARGE_OFF_T % 2147483647 == 1)
17751 rm -f conftest.$ac_objext
17752 if { (ac_try="$ac_compile"
17753 case "(($ac_try" in
17754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755 *) ac_try_echo=$ac_try;;
17757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17758 $as_echo "$ac_try_echo") >&5
17759 (eval "$ac_compile") 2>conftest.er1
17761 grep -v '^ *+' conftest.er1 >conftest.err
17763 cat conftest.err >&5
17764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); } && {
17766 test -z "$ac_c_werror_flag" ||
17767 test ! -s conftest.err
17768 } && test -s conftest.$ac_objext; then
17769 ac_cv_sys_file_offset_bits=64; break
17771 $as_echo "$as_me: failed program was:" >&5
17772 sed 's/^/| /' conftest.$ac_ext >&5
17777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17778 ac_cv_sys_file_offset_bits=unknown
17782 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17783 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17784 case $ac_cv_sys_file_offset_bits in #(
17787 cat >>confdefs.h <<_ACEOF
17788 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17793 if test $ac_cv_sys_file_offset_bits = unknown; then
17794 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17795 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17796 if test "${ac_cv_sys_large_files+set}" = set; then
17797 $as_echo_n "(cached) " >&6
17800 cat >conftest.$ac_ext <<_ACEOF
17803 cat confdefs.h >>conftest.$ac_ext
17804 cat >>conftest.$ac_ext <<_ACEOF
17805 /* end confdefs.h. */
17806 #include <sys/types.h>
17807 /* Check that off_t can represent 2**63 - 1 correctly.
17808 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17809 since some C++ compilers masquerading as C compilers
17810 incorrectly reject 9223372036854775807. */
17811 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17812 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17813 && LARGE_OFF_T % 2147483647 == 1)
17823 rm -f conftest.$ac_objext
17824 if { (ac_try="$ac_compile"
17825 case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17830 $as_echo "$ac_try_echo") >&5
17831 (eval "$ac_compile") 2>conftest.er1
17833 grep -v '^ *+' conftest.er1 >conftest.err
17835 cat conftest.err >&5
17836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); } && {
17838 test -z "$ac_c_werror_flag" ||
17839 test ! -s conftest.err
17840 } && test -s conftest.$ac_objext; then
17841 ac_cv_sys_large_files=no; break
17843 $as_echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17850 cat >conftest.$ac_ext <<_ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h. */
17856 #define _LARGE_FILES 1
17857 #include <sys/types.h>
17858 /* Check that off_t can represent 2**63 - 1 correctly.
17859 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17860 since some C++ compilers masquerading as C compilers
17861 incorrectly reject 9223372036854775807. */
17862 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17863 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17864 && LARGE_OFF_T % 2147483647 == 1)
17874 rm -f conftest.$ac_objext
17875 if { (ac_try="$ac_compile"
17876 case "(($ac_try" in
17877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17878 *) ac_try_echo=$ac_try;;
17880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17881 $as_echo "$ac_try_echo") >&5
17882 (eval "$ac_compile") 2>conftest.er1
17884 grep -v '^ *+' conftest.er1 >conftest.err
17886 cat conftest.err >&5
17887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); } && {
17889 test -z "$ac_c_werror_flag" ||
17890 test ! -s conftest.err
17891 } && test -s conftest.$ac_objext; then
17892 ac_cv_sys_large_files=1; break
17894 $as_echo "$as_me: failed program was:" >&5
17895 sed 's/^/| /' conftest.$ac_ext >&5
17900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17901 ac_cv_sys_large_files=unknown
17905 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17906 $as_echo "$ac_cv_sys_large_files" >&6; }
17907 case $ac_cv_sys_large_files in #(
17910 cat >>confdefs.h <<_ACEOF
17911 #define _LARGE_FILES $ac_cv_sys_large_files
17920 # Check for largefile support (must be after AC_SYS_LARGEFILE)
17921 # The cast to long int works around a bug in the HP C Compiler
17922 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17923 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17924 # This bug is HP SR number 8606223364.
17925 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
17926 $as_echo_n "checking size of off_t... " >&6; }
17927 if test "${ac_cv_sizeof_off_t+set}" = set; then
17928 $as_echo_n "(cached) " >&6
17930 if test "$cross_compiling" = yes; then
17931 # Depending upon the size, compute the lo and hi bounds.
17932 cat >conftest.$ac_ext <<_ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h. */
17938 $ac_includes_default
17942 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
17949 rm -f conftest.$ac_objext
17950 if { (ac_try="$ac_compile"
17951 case "(($ac_try" in
17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953 *) ac_try_echo=$ac_try;;
17955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17956 $as_echo "$ac_try_echo") >&5
17957 (eval "$ac_compile") 2>conftest.er1
17959 grep -v '^ *+' conftest.er1 >conftest.err
17961 cat conftest.err >&5
17962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); } && {
17964 test -z "$ac_c_werror_flag" ||
17965 test ! -s conftest.err
17966 } && test -s conftest.$ac_objext; then
17969 cat >conftest.$ac_ext <<_ACEOF
17972 cat confdefs.h >>conftest.$ac_ext
17973 cat >>conftest.$ac_ext <<_ACEOF
17974 /* end confdefs.h. */
17975 $ac_includes_default
17979 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
17986 rm -f conftest.$ac_objext
17987 if { (ac_try="$ac_compile"
17988 case "(($ac_try" in
17989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17990 *) ac_try_echo=$ac_try;;
17992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17993 $as_echo "$ac_try_echo") >&5
17994 (eval "$ac_compile") 2>conftest.er1
17996 grep -v '^ *+' conftest.er1 >conftest.err
17998 cat conftest.err >&5
17999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } && {
18001 test -z "$ac_c_werror_flag" ||
18002 test ! -s conftest.err
18003 } && test -s conftest.$ac_objext; then
18004 ac_hi=$ac_mid; break
18006 $as_echo "$as_me: failed program was:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18009 ac_lo=`expr $ac_mid + 1`
18010 if test $ac_lo -le $ac_mid; then
18014 ac_mid=`expr 2 '*' $ac_mid + 1`
18017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18020 $as_echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18023 cat >conftest.$ac_ext <<_ACEOF
18026 cat confdefs.h >>conftest.$ac_ext
18027 cat >>conftest.$ac_ext <<_ACEOF
18028 /* end confdefs.h. */
18029 $ac_includes_default
18033 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18040 rm -f conftest.$ac_objext
18041 if { (ac_try="$ac_compile"
18042 case "(($ac_try" in
18043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044 *) ac_try_echo=$ac_try;;
18046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18047 $as_echo "$ac_try_echo") >&5
18048 (eval "$ac_compile") 2>conftest.er1
18050 grep -v '^ *+' conftest.er1 >conftest.err
18052 cat conftest.err >&5
18053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); } && {
18055 test -z "$ac_c_werror_flag" ||
18056 test ! -s conftest.err
18057 } && test -s conftest.$ac_objext; then
18060 cat >conftest.$ac_ext <<_ACEOF
18063 cat confdefs.h >>conftest.$ac_ext
18064 cat >>conftest.$ac_ext <<_ACEOF
18065 /* end confdefs.h. */
18066 $ac_includes_default
18070 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18077 rm -f conftest.$ac_objext
18078 if { (ac_try="$ac_compile"
18079 case "(($ac_try" in
18080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18081 *) ac_try_echo=$ac_try;;
18083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18084 $as_echo "$ac_try_echo") >&5
18085 (eval "$ac_compile") 2>conftest.er1
18087 grep -v '^ *+' conftest.er1 >conftest.err
18089 cat conftest.err >&5
18090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091 (exit $ac_status); } && {
18092 test -z "$ac_c_werror_flag" ||
18093 test ! -s conftest.err
18094 } && test -s conftest.$ac_objext; then
18095 ac_lo=$ac_mid; break
18097 $as_echo "$as_me: failed program was:" >&5
18098 sed 's/^/| /' conftest.$ac_ext >&5
18100 ac_hi=`expr '(' $ac_mid ')' - 1`
18101 if test $ac_mid -le $ac_hi; then
18105 ac_mid=`expr 2 '*' $ac_mid`
18108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18111 $as_echo "$as_me: failed program was:" >&5
18112 sed 's/^/| /' conftest.$ac_ext >&5
18117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18121 # Binary search between lo and hi bounds.
18122 while test "x$ac_lo" != "x$ac_hi"; do
18123 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18124 cat >conftest.$ac_ext <<_ACEOF
18127 cat confdefs.h >>conftest.$ac_ext
18128 cat >>conftest.$ac_ext <<_ACEOF
18129 /* end confdefs.h. */
18130 $ac_includes_default
18134 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18141 rm -f conftest.$ac_objext
18142 if { (ac_try="$ac_compile"
18143 case "(($ac_try" in
18144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145 *) ac_try_echo=$ac_try;;
18147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18148 $as_echo "$ac_try_echo") >&5
18149 (eval "$ac_compile") 2>conftest.er1
18151 grep -v '^ *+' conftest.er1 >conftest.err
18153 cat conftest.err >&5
18154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } && {
18156 test -z "$ac_c_werror_flag" ||
18157 test ! -s conftest.err
18158 } && test -s conftest.$ac_objext; then
18161 $as_echo "$as_me: failed program was:" >&5
18162 sed 's/^/| /' conftest.$ac_ext >&5
18164 ac_lo=`expr '(' $ac_mid ')' + 1`
18167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18170 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18171 '') if test "$ac_cv_type_off_t" = yes; then
18172 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18174 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18175 See \`config.log' for more details." >&5
18176 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18177 See \`config.log' for more details." >&2;}
18178 { (exit 77); exit 77; }; }; }
18180 ac_cv_sizeof_off_t=0
18184 cat >conftest.$ac_ext <<_ACEOF
18187 cat confdefs.h >>conftest.$ac_ext
18188 cat >>conftest.$ac_ext <<_ACEOF
18189 /* end confdefs.h. */
18190 $ac_includes_default
18191 static long int longval () { return (long int) (sizeof (off_t)); }
18192 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
18194 #include <stdlib.h>
18199 FILE *f = fopen ("conftest.val", "w");
18202 if (((long int) (sizeof (off_t))) < 0)
18204 long int i = longval ();
18205 if (i != ((long int) (sizeof (off_t))))
18207 fprintf (f, "%ld", i);
18211 unsigned long int i = ulongval ();
18212 if (i != ((long int) (sizeof (off_t))))
18214 fprintf (f, "%lu", i);
18216 /* Do not output a trailing newline, as this causes \r\n confusion
18217 on some platforms. */
18218 return ferror (f) || fclose (f) != 0;
18224 rm -f conftest$ac_exeext
18225 if { (ac_try="$ac_link"
18226 case "(($ac_try" in
18227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18228 *) ac_try_echo=$ac_try;;
18230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18231 $as_echo "$ac_try_echo") >&5
18232 (eval "$ac_link") 2>&5
18234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18236 { (case "(($ac_try" in
18237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18238 *) ac_try_echo=$ac_try;;
18240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18241 $as_echo "$ac_try_echo") >&5
18242 (eval "$ac_try") 2>&5
18244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }; }; then
18246 ac_cv_sizeof_off_t=`cat conftest.val`
18248 $as_echo "$as_me: program exited with status $ac_status" >&5
18249 $as_echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18252 ( exit $ac_status )
18253 if test "$ac_cv_type_off_t" = yes; then
18254 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18256 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18257 See \`config.log' for more details." >&5
18258 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18259 See \`config.log' for more details." >&2;}
18260 { (exit 77); exit 77; }; }; }
18262 ac_cv_sizeof_off_t=0
18265 rm -rf conftest.dSYM
18266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18270 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
18271 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18275 cat >>confdefs.h <<_ACEOF
18276 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18281 # If we don't have largefile support, can't handle segsize >= 2GB.
18282 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
18283 { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
18284 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
18285 { (exit 1); exit 1; }; }
18290 ## Functions, global variables
18293 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
18294 $as_echo_n "checking for int timezone... " >&6; }
18295 if test "${pgac_cv_var_int_timezone+set}" = set; then
18296 $as_echo_n "(cached) " >&6
18298 cat >conftest.$ac_ext <<_ACEOF
18301 cat confdefs.h >>conftest.$ac_ext
18302 cat >>conftest.$ac_ext <<_ACEOF
18303 /* end confdefs.h. */
18310 res = timezone / 60;
18312 res = _timezone / 60;
18318 rm -f conftest.$ac_objext conftest$ac_exeext
18319 if { (ac_try="$ac_link"
18320 case "(($ac_try" in
18321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322 *) ac_try_echo=$ac_try;;
18324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18325 $as_echo "$ac_try_echo") >&5
18326 (eval "$ac_link") 2>conftest.er1
18328 grep -v '^ *+' conftest.er1 >conftest.err
18330 cat conftest.err >&5
18331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332 (exit $ac_status); } && {
18333 test -z "$ac_c_werror_flag" ||
18334 test ! -s conftest.err
18335 } && test -s conftest$ac_exeext && {
18336 test "$cross_compiling" = yes ||
18337 $as_test_x conftest$ac_exeext
18339 pgac_cv_var_int_timezone=yes
18341 $as_echo "$as_me: failed program was:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18344 pgac_cv_var_int_timezone=no
18347 rm -rf conftest.dSYM
18348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18349 conftest$ac_exeext conftest.$ac_ext
18351 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
18352 $as_echo "$pgac_cv_var_int_timezone" >&6; }
18353 if test x"$pgac_cv_var_int_timezone" = xyes ; then
18355 cat >>confdefs.h <<\_ACEOF
18356 #define HAVE_INT_TIMEZONE /**/
18360 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
18361 $as_echo_n "checking types of arguments for accept()... " >&6; }
18362 if test "${ac_cv_func_accept_return+set}" = set; then
18363 $as_echo_n "(cached) " >&6
18365 if test "${ac_cv_func_accept_arg1+set}" = set; then
18366 $as_echo_n "(cached) " >&6
18368 if test "${ac_cv_func_accept_arg2+set}" = set; then
18369 $as_echo_n "(cached) " >&6
18371 if test "${ac_cv_func_accept_arg3+set}" = set; then
18372 $as_echo_n "(cached) " >&6
18374 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
18375 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
18376 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
18377 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
18378 cat >conftest.$ac_ext <<_ACEOF
18381 cat confdefs.h >>conftest.$ac_ext
18382 cat >>conftest.$ac_ext <<_ACEOF
18383 /* end confdefs.h. */
18384 #ifdef HAVE_SYS_TYPES_H
18385 #include <sys/types.h>
18387 #ifdef HAVE_SYS_SOCKET_H
18388 #include <sys/socket.h>
18390 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
18399 rm -f conftest.$ac_objext
18400 if { (ac_try="$ac_compile"
18401 case "(($ac_try" in
18402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18403 *) ac_try_echo=$ac_try;;
18405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18406 $as_echo "$ac_try_echo") >&5
18407 (eval "$ac_compile") 2>conftest.er1
18409 grep -v '^ *+' conftest.er1 >conftest.err
18411 cat conftest.err >&5
18412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); } && {
18414 test -z "$ac_c_werror_flag" ||
18415 test ! -s conftest.err
18416 } && test -s conftest.$ac_objext; then
18417 ac_not_found=no; break 4
18419 $as_echo "$as_me: failed program was:" >&5
18420 sed 's/^/| /' conftest.$ac_ext >&5
18425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18430 if test "$ac_not_found" = yes; then
18431 { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
18432 $as_echo "$as_me: error: could not determine argument types" >&2;}
18433 { (exit 1); exit 1; }; }
18435 if test "$ac_cv_func_accept_arg3" = "void"; then
18436 ac_cv_func_accept_arg3=int
18446 { $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
18447 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
18449 cat >>confdefs.h <<_ACEOF
18450 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
18454 cat >>confdefs.h <<_ACEOF
18455 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
18459 cat >>confdefs.h <<_ACEOF
18460 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
18464 cat >>confdefs.h <<_ACEOF
18465 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
18469 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
18470 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
18471 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
18472 $as_echo_n "(cached) " >&6
18474 cat >conftest.$ac_ext <<_ACEOF
18477 cat confdefs.h >>conftest.$ac_ext
18478 cat >>conftest.$ac_ext <<_ACEOF
18479 /* end confdefs.h. */
18480 #include <sys/time.h>
18484 struct timeval *tp;
18485 struct timezone *tzp;
18486 gettimeofday(tp,tzp);
18491 rm -f conftest.$ac_objext
18492 if { (ac_try="$ac_compile"
18493 case "(($ac_try" in
18494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18495 *) ac_try_echo=$ac_try;;
18497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18498 $as_echo "$ac_try_echo") >&5
18499 (eval "$ac_compile") 2>conftest.er1
18501 grep -v '^ *+' conftest.er1 >conftest.err
18503 cat conftest.err >&5
18504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); } && {
18506 test -z "$ac_c_werror_flag" ||
18507 test ! -s conftest.err
18508 } && test -s conftest.$ac_objext; then
18509 pgac_cv_func_gettimeofday_1arg=no
18511 $as_echo "$as_me: failed program was:" >&5
18512 sed 's/^/| /' conftest.$ac_ext >&5
18514 pgac_cv_func_gettimeofday_1arg=yes
18517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18519 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
18520 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
18521 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
18523 cat >>confdefs.h <<\_ACEOF
18524 #define GETTIMEOFDAY_1ARG /**/
18554 for ac_func in cbrt dlopen fcvt fdatasync getifaddrs getpeereid getpeerucred getrlimit memmove poll pstat readlink scandir setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
18556 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18557 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18558 $as_echo_n "checking for $ac_func... " >&6; }
18559 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18560 $as_echo_n "(cached) " >&6
18562 cat >conftest.$ac_ext <<_ACEOF
18565 cat confdefs.h >>conftest.$ac_ext
18566 cat >>conftest.$ac_ext <<_ACEOF
18567 /* end confdefs.h. */
18568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18570 #define $ac_func innocuous_$ac_func
18572 /* System header to define __stub macros and hopefully few prototypes,
18573 which can conflict with char $ac_func (); below.
18574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18575 <limits.h> exists even on freestanding compilers. */
18578 # include <limits.h>
18580 # include <assert.h>
18585 /* Override any GCC internal prototype to avoid an error.
18586 Use char because int might match the return type of a GCC
18587 builtin and then its argument prototype would still apply. */
18592 /* The GNU C library defines this for functions which it implements
18593 to always fail with ENOSYS. Some functions are actually named
18594 something starting with __ and the normal name is an alias. */
18595 #if defined __stub_$ac_func || defined __stub___$ac_func
18602 return $ac_func ();
18607 rm -f conftest.$ac_objext conftest$ac_exeext
18608 if { (ac_try="$ac_link"
18609 case "(($ac_try" in
18610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18611 *) ac_try_echo=$ac_try;;
18613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18614 $as_echo "$ac_try_echo") >&5
18615 (eval "$ac_link") 2>conftest.er1
18617 grep -v '^ *+' conftest.er1 >conftest.err
18619 cat conftest.err >&5
18620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } && {
18622 test -z "$ac_c_werror_flag" ||
18623 test ! -s conftest.err
18624 } && test -s conftest$ac_exeext && {
18625 test "$cross_compiling" = yes ||
18626 $as_test_x conftest$ac_exeext
18628 eval "$as_ac_var=yes"
18630 $as_echo "$as_me: failed program was:" >&5
18631 sed 's/^/| /' conftest.$ac_ext >&5
18633 eval "$as_ac_var=no"
18636 rm -rf conftest.dSYM
18637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18638 conftest$ac_exeext conftest.$ac_ext
18640 ac_res=`eval 'as_val=${'$as_ac_var'}
18641 $as_echo "$as_val"'`
18642 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18643 $as_echo "$ac_res" >&6; }
18644 as_val=`eval 'as_val=${'$as_ac_var'}
18645 $as_echo "$as_val"'`
18646 if test "x$as_val" = x""yes; then
18647 cat >>confdefs.h <<_ACEOF
18648 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18656 for ac_func in fseeko
18658 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18659 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18660 $as_echo_n "checking for $ac_func... " >&6; }
18661 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18662 $as_echo_n "(cached) " >&6
18664 cat >conftest.$ac_ext <<_ACEOF
18667 cat confdefs.h >>conftest.$ac_ext
18668 cat >>conftest.$ac_ext <<_ACEOF
18669 /* end confdefs.h. */
18670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18672 #define $ac_func innocuous_$ac_func
18674 /* System header to define __stub macros and hopefully few prototypes,
18675 which can conflict with char $ac_func (); below.
18676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18677 <limits.h> exists even on freestanding compilers. */
18680 # include <limits.h>
18682 # include <assert.h>
18687 /* Override any GCC internal prototype to avoid an error.
18688 Use char because int might match the return type of a GCC
18689 builtin and then its argument prototype would still apply. */
18694 /* The GNU C library defines this for functions which it implements
18695 to always fail with ENOSYS. Some functions are actually named
18696 something starting with __ and the normal name is an alias. */
18697 #if defined __stub_$ac_func || defined __stub___$ac_func
18704 return $ac_func ();
18709 rm -f conftest.$ac_objext conftest$ac_exeext
18710 if { (ac_try="$ac_link"
18711 case "(($ac_try" in
18712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18713 *) ac_try_echo=$ac_try;;
18715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18716 $as_echo "$ac_try_echo") >&5
18717 (eval "$ac_link") 2>conftest.er1
18719 grep -v '^ *+' conftest.er1 >conftest.err
18721 cat conftest.err >&5
18722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); } && {
18724 test -z "$ac_c_werror_flag" ||
18725 test ! -s conftest.err
18726 } && test -s conftest$ac_exeext && {
18727 test "$cross_compiling" = yes ||
18728 $as_test_x conftest$ac_exeext
18730 eval "$as_ac_var=yes"
18732 $as_echo "$as_me: failed program was:" >&5
18733 sed 's/^/| /' conftest.$ac_ext >&5
18735 eval "$as_ac_var=no"
18738 rm -rf conftest.dSYM
18739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18740 conftest$ac_exeext conftest.$ac_ext
18742 ac_res=`eval 'as_val=${'$as_ac_var'}
18743 $as_echo "$as_val"'`
18744 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18745 $as_echo "$ac_res" >&6; }
18746 as_val=`eval 'as_val=${'$as_ac_var'}
18747 $as_echo "$as_val"'`
18748 if test "x$as_val" = x""yes; then
18749 cat >>confdefs.h <<_ACEOF
18750 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18754 case " $LIBOBJS " in
18755 *" $ac_func.$ac_objext "* ) ;;
18756 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18765 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18766 # Mingw uses macros to access Win32 API calls
18767 bsdi*|netbsd*|mingw*)
18769 cat >>confdefs.h <<\_ACEOF
18770 #define HAVE_FSEEKO 1
18773 ac_cv_func_fseeko=yes;;
18775 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18776 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
18777 if test "${ac_cv_sys_largefile_source+set}" = set; then
18778 $as_echo_n "(cached) " >&6
18781 cat >conftest.$ac_ext <<_ACEOF
18784 cat confdefs.h >>conftest.$ac_ext
18785 cat >>conftest.$ac_ext <<_ACEOF
18786 /* end confdefs.h. */
18787 #include <sys/types.h> /* for off_t */
18792 int (*fp) (FILE *, off_t, int) = fseeko;
18793 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18798 rm -f conftest.$ac_objext conftest$ac_exeext
18799 if { (ac_try="$ac_link"
18800 case "(($ac_try" in
18801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18802 *) ac_try_echo=$ac_try;;
18804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18805 $as_echo "$ac_try_echo") >&5
18806 (eval "$ac_link") 2>conftest.er1
18808 grep -v '^ *+' conftest.er1 >conftest.err
18810 cat conftest.err >&5
18811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); } && {
18813 test -z "$ac_c_werror_flag" ||
18814 test ! -s conftest.err
18815 } && test -s conftest$ac_exeext && {
18816 test "$cross_compiling" = yes ||
18817 $as_test_x conftest$ac_exeext
18819 ac_cv_sys_largefile_source=no; break
18821 $as_echo "$as_me: failed program was:" >&5
18822 sed 's/^/| /' conftest.$ac_ext >&5
18827 rm -rf conftest.dSYM
18828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18829 conftest$ac_exeext conftest.$ac_ext
18830 cat >conftest.$ac_ext <<_ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h. */
18836 #define _LARGEFILE_SOURCE 1
18837 #include <sys/types.h> /* for off_t */
18842 int (*fp) (FILE *, off_t, int) = fseeko;
18843 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18848 rm -f conftest.$ac_objext conftest$ac_exeext
18849 if { (ac_try="$ac_link"
18850 case "(($ac_try" in
18851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18852 *) ac_try_echo=$ac_try;;
18854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18855 $as_echo "$ac_try_echo") >&5
18856 (eval "$ac_link") 2>conftest.er1
18858 grep -v '^ *+' conftest.er1 >conftest.err
18860 cat conftest.err >&5
18861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); } && {
18863 test -z "$ac_c_werror_flag" ||
18864 test ! -s conftest.err
18865 } && test -s conftest$ac_exeext && {
18866 test "$cross_compiling" = yes ||
18867 $as_test_x conftest$ac_exeext
18869 ac_cv_sys_largefile_source=1; break
18871 $as_echo "$as_me: failed program was:" >&5
18872 sed 's/^/| /' conftest.$ac_ext >&5
18877 rm -rf conftest.dSYM
18878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18879 conftest$ac_exeext conftest.$ac_ext
18880 ac_cv_sys_largefile_source=unknown
18884 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18885 $as_echo "$ac_cv_sys_largefile_source" >&6; }
18886 case $ac_cv_sys_largefile_source in #(
18889 cat >>confdefs.h <<_ACEOF
18890 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18896 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18897 # in glibc 2.1.3, but that breaks too many other things.
18898 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18899 if test $ac_cv_sys_largefile_source != unknown; then
18901 cat >>confdefs.h <<\_ACEOF
18902 #define HAVE_FSEEKO 1
18909 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
18910 # by calling it, 2009-04-02
18911 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
18912 if test "$PORTNAME" != "solaris"; then
18914 for ac_func in posix_fadvise
18916 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18917 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18918 $as_echo_n "checking for $ac_func... " >&6; }
18919 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18920 $as_echo_n "(cached) " >&6
18922 cat >conftest.$ac_ext <<_ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h. */
18928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18930 #define $ac_func innocuous_$ac_func
18932 /* System header to define __stub macros and hopefully few prototypes,
18933 which can conflict with char $ac_func (); below.
18934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18935 <limits.h> exists even on freestanding compilers. */
18938 # include <limits.h>
18940 # include <assert.h>
18945 /* Override any GCC internal prototype to avoid an error.
18946 Use char because int might match the return type of a GCC
18947 builtin and then its argument prototype would still apply. */
18952 /* The GNU C library defines this for functions which it implements
18953 to always fail with ENOSYS. Some functions are actually named
18954 something starting with __ and the normal name is an alias. */
18955 #if defined __stub_$ac_func || defined __stub___$ac_func
18962 return $ac_func ();
18967 rm -f conftest.$ac_objext conftest$ac_exeext
18968 if { (ac_try="$ac_link"
18969 case "(($ac_try" in
18970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18971 *) ac_try_echo=$ac_try;;
18973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18974 $as_echo "$ac_try_echo") >&5
18975 (eval "$ac_link") 2>conftest.er1
18977 grep -v '^ *+' conftest.er1 >conftest.err
18979 cat conftest.err >&5
18980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); } && {
18982 test -z "$ac_c_werror_flag" ||
18983 test ! -s conftest.err
18984 } && test -s conftest$ac_exeext && {
18985 test "$cross_compiling" = yes ||
18986 $as_test_x conftest$ac_exeext
18988 eval "$as_ac_var=yes"
18990 $as_echo "$as_me: failed program was:" >&5
18991 sed 's/^/| /' conftest.$ac_ext >&5
18993 eval "$as_ac_var=no"
18996 rm -rf conftest.dSYM
18997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18998 conftest$ac_exeext conftest.$ac_ext
19000 ac_res=`eval 'as_val=${'$as_ac_var'}
19001 $as_echo "$as_val"'`
19002 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19003 $as_echo "$ac_res" >&6; }
19004 as_val=`eval 'as_val=${'$as_ac_var'}
19005 $as_echo "$as_val"'`
19006 if test "x$as_val" = x""yes; then
19007 cat >>confdefs.h <<_ACEOF
19008 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19014 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19015 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19016 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19017 $as_echo_n "(cached) " >&6
19019 cat >conftest.$ac_ext <<_ACEOF
19022 cat confdefs.h >>conftest.$ac_ext
19023 cat >>conftest.$ac_ext <<_ACEOF
19024 /* end confdefs.h. */
19030 #ifndef posix_fadvise
19031 (void) posix_fadvise;
19038 rm -f conftest.$ac_objext
19039 if { (ac_try="$ac_compile"
19040 case "(($ac_try" in
19041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042 *) ac_try_echo=$ac_try;;
19044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19045 $as_echo "$ac_try_echo") >&5
19046 (eval "$ac_compile") 2>conftest.er1
19048 grep -v '^ *+' conftest.er1 >conftest.err
19050 cat conftest.err >&5
19051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052 (exit $ac_status); } && {
19053 test -z "$ac_c_werror_flag" ||
19054 test ! -s conftest.err
19055 } && test -s conftest.$ac_objext; then
19056 ac_cv_have_decl_posix_fadvise=yes
19058 $as_echo "$as_me: failed program was:" >&5
19059 sed 's/^/| /' conftest.$ac_ext >&5
19061 ac_cv_have_decl_posix_fadvise=no
19064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19066 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19067 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19068 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19070 cat >>confdefs.h <<_ACEOF
19071 #define HAVE_DECL_POSIX_FADVISE 1
19076 cat >>confdefs.h <<_ACEOF
19077 #define HAVE_DECL_POSIX_FADVISE 0
19086 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19087 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19088 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19089 $as_echo_n "(cached) " >&6
19091 cat >conftest.$ac_ext <<_ACEOF
19094 cat confdefs.h >>conftest.$ac_ext
19095 cat >>conftest.$ac_ext <<_ACEOF
19096 /* end confdefs.h. */
19097 #include <unistd.h>
19110 rm -f conftest.$ac_objext
19111 if { (ac_try="$ac_compile"
19112 case "(($ac_try" in
19113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19114 *) ac_try_echo=$ac_try;;
19116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19117 $as_echo "$ac_try_echo") >&5
19118 (eval "$ac_compile") 2>conftest.er1
19120 grep -v '^ *+' conftest.er1 >conftest.err
19122 cat conftest.err >&5
19123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); } && {
19125 test -z "$ac_c_werror_flag" ||
19126 test ! -s conftest.err
19127 } && test -s conftest.$ac_objext; then
19128 ac_cv_have_decl_fdatasync=yes
19130 $as_echo "$as_me: failed program was:" >&5
19131 sed 's/^/| /' conftest.$ac_ext >&5
19133 ac_cv_have_decl_fdatasync=no
19136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19138 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19139 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19140 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19142 cat >>confdefs.h <<_ACEOF
19143 #define HAVE_DECL_FDATASYNC 1
19148 cat >>confdefs.h <<_ACEOF
19149 #define HAVE_DECL_FDATASYNC 0
19156 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19157 $as_echo_n "checking whether strlcat is declared... " >&6; }
19158 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19159 $as_echo_n "(cached) " >&6
19161 cat >conftest.$ac_ext <<_ACEOF
19164 cat confdefs.h >>conftest.$ac_ext
19165 cat >>conftest.$ac_ext <<_ACEOF
19166 /* end confdefs.h. */
19167 $ac_includes_default
19179 rm -f conftest.$ac_objext
19180 if { (ac_try="$ac_compile"
19181 case "(($ac_try" in
19182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183 *) ac_try_echo=$ac_try;;
19185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19186 $as_echo "$ac_try_echo") >&5
19187 (eval "$ac_compile") 2>conftest.er1
19189 grep -v '^ *+' conftest.er1 >conftest.err
19191 cat conftest.err >&5
19192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } && {
19194 test -z "$ac_c_werror_flag" ||
19195 test ! -s conftest.err
19196 } && test -s conftest.$ac_objext; then
19197 ac_cv_have_decl_strlcat=yes
19199 $as_echo "$as_me: failed program was:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19202 ac_cv_have_decl_strlcat=no
19205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19207 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
19208 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19209 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
19211 cat >>confdefs.h <<_ACEOF
19212 #define HAVE_DECL_STRLCAT 1
19217 cat >>confdefs.h <<_ACEOF
19218 #define HAVE_DECL_STRLCAT 0
19223 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
19224 $as_echo_n "checking whether strlcpy is declared... " >&6; }
19225 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19226 $as_echo_n "(cached) " >&6
19228 cat >conftest.$ac_ext <<_ACEOF
19231 cat confdefs.h >>conftest.$ac_ext
19232 cat >>conftest.$ac_ext <<_ACEOF
19233 /* end confdefs.h. */
19234 $ac_includes_default
19246 rm -f conftest.$ac_objext
19247 if { (ac_try="$ac_compile"
19248 case "(($ac_try" in
19249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19250 *) ac_try_echo=$ac_try;;
19252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19253 $as_echo "$ac_try_echo") >&5
19254 (eval "$ac_compile") 2>conftest.er1
19256 grep -v '^ *+' conftest.er1 >conftest.err
19258 cat conftest.err >&5
19259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); } && {
19261 test -z "$ac_c_werror_flag" ||
19262 test ! -s conftest.err
19263 } && test -s conftest.$ac_objext; then
19264 ac_cv_have_decl_strlcpy=yes
19266 $as_echo "$as_me: failed program was:" >&5
19267 sed 's/^/| /' conftest.$ac_ext >&5
19269 ac_cv_have_decl_strlcpy=no
19272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19274 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
19275 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19276 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
19278 cat >>confdefs.h <<_ACEOF
19279 #define HAVE_DECL_STRLCPY 1
19284 cat >>confdefs.h <<_ACEOF
19285 #define HAVE_DECL_STRLCPY 0
19292 # This is probably only present on Darwin, but may as well check always
19293 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
19294 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
19295 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
19296 $as_echo_n "(cached) " >&6
19298 cat >conftest.$ac_ext <<_ACEOF
19301 cat confdefs.h >>conftest.$ac_ext
19302 cat >>conftest.$ac_ext <<_ACEOF
19303 /* end confdefs.h. */
19309 #ifndef F_FULLFSYNC
19310 (void) F_FULLFSYNC;
19317 rm -f conftest.$ac_objext
19318 if { (ac_try="$ac_compile"
19319 case "(($ac_try" in
19320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19321 *) ac_try_echo=$ac_try;;
19323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19324 $as_echo "$ac_try_echo") >&5
19325 (eval "$ac_compile") 2>conftest.er1
19327 grep -v '^ *+' conftest.er1 >conftest.err
19329 cat conftest.err >&5
19330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); } && {
19332 test -z "$ac_c_werror_flag" ||
19333 test ! -s conftest.err
19334 } && test -s conftest.$ac_objext; then
19335 ac_cv_have_decl_F_FULLFSYNC=yes
19337 $as_echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19340 ac_cv_have_decl_F_FULLFSYNC=no
19343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19345 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
19346 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
19347 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
19349 cat >>confdefs.h <<_ACEOF
19350 #define HAVE_DECL_F_FULLFSYNC 1
19355 cat >>confdefs.h <<_ACEOF
19356 #define HAVE_DECL_F_FULLFSYNC 0
19365 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
19366 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
19367 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
19368 $as_echo_n "(cached) " >&6
19370 ac_cv_type_struct_sockaddr_in6=no
19371 cat >conftest.$ac_ext <<_ACEOF
19374 cat confdefs.h >>conftest.$ac_ext
19375 cat >>conftest.$ac_ext <<_ACEOF
19376 /* end confdefs.h. */
19377 $ac_includes_default
19378 #include <netinet/in.h>
19383 if (sizeof (struct sockaddr_in6))
19389 rm -f conftest.$ac_objext
19390 if { (ac_try="$ac_compile"
19391 case "(($ac_try" in
19392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19393 *) ac_try_echo=$ac_try;;
19395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19396 $as_echo "$ac_try_echo") >&5
19397 (eval "$ac_compile") 2>conftest.er1
19399 grep -v '^ *+' conftest.er1 >conftest.err
19401 cat conftest.err >&5
19402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); } && {
19404 test -z "$ac_c_werror_flag" ||
19405 test ! -s conftest.err
19406 } && test -s conftest.$ac_objext; then
19407 cat >conftest.$ac_ext <<_ACEOF
19410 cat confdefs.h >>conftest.$ac_ext
19411 cat >>conftest.$ac_ext <<_ACEOF
19412 /* end confdefs.h. */
19413 $ac_includes_default
19414 #include <netinet/in.h>
19419 if (sizeof ((struct sockaddr_in6)))
19425 rm -f conftest.$ac_objext
19426 if { (ac_try="$ac_compile"
19427 case "(($ac_try" in
19428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19429 *) ac_try_echo=$ac_try;;
19431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19432 $as_echo "$ac_try_echo") >&5
19433 (eval "$ac_compile") 2>conftest.er1
19435 grep -v '^ *+' conftest.er1 >conftest.err
19437 cat conftest.err >&5
19438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); } && {
19440 test -z "$ac_c_werror_flag" ||
19441 test ! -s conftest.err
19442 } && test -s conftest.$ac_objext; then
19445 $as_echo "$as_me: failed program was:" >&5
19446 sed 's/^/| /' conftest.$ac_ext >&5
19448 ac_cv_type_struct_sockaddr_in6=yes
19451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19453 $as_echo "$as_me: failed program was:" >&5
19454 sed 's/^/| /' conftest.$ac_ext >&5
19459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19461 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
19462 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
19463 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
19465 cat >>confdefs.h <<\_ACEOF
19466 #define HAVE_IPV6 1
19474 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
19475 $as_echo_n "checking for PS_STRINGS... " >&6; }
19476 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
19477 $as_echo_n "(cached) " >&6
19479 cat >conftest.$ac_ext <<_ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h. */
19485 #include <machine/vmparam.h>
19486 #include <sys/exec.h>
19491 PS_STRINGS->ps_nargvstr = 1;
19492 PS_STRINGS->ps_argvstr = "foo";
19497 rm -f conftest.$ac_objext conftest$ac_exeext
19498 if { (ac_try="$ac_link"
19499 case "(($ac_try" in
19500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19501 *) ac_try_echo=$ac_try;;
19503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19504 $as_echo "$ac_try_echo") >&5
19505 (eval "$ac_link") 2>conftest.er1
19507 grep -v '^ *+' conftest.er1 >conftest.err
19509 cat conftest.err >&5
19510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } && {
19512 test -z "$ac_c_werror_flag" ||
19513 test ! -s conftest.err
19514 } && test -s conftest$ac_exeext && {
19515 test "$cross_compiling" = yes ||
19516 $as_test_x conftest$ac_exeext
19518 pgac_cv_var_PS_STRINGS=yes
19520 $as_echo "$as_me: failed program was:" >&5
19521 sed 's/^/| /' conftest.$ac_ext >&5
19523 pgac_cv_var_PS_STRINGS=no
19526 rm -rf conftest.dSYM
19527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19528 conftest$ac_exeext conftest.$ac_ext
19530 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
19531 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
19532 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
19534 cat >>confdefs.h <<\_ACEOF
19535 #define HAVE_PS_STRINGS /**/
19541 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
19542 # is missing. Yes, there are machines that have only one. We may
19543 # also decide to use snprintf.c if snprintf() is present but does not
19544 # have all the features we need --- see below.
19546 if test "$PORTNAME" = "win32"; then
19547 # Win32 gets snprintf.c built unconditionally.
19549 # To properly translate all NLS languages strings, we must support the
19550 # *printf() %$ format, which allows *printf() arguments to be selected
19551 # by position in the translated string.
19553 # libintl versions < 0.13 use the native *printf() functions, and Win32
19554 # *printf() doesn't understand %$, so we must use our /port versions,
19555 # which do understand %$. libintl versions >= 0.13 include their own
19556 # *printf versions on Win32. The libintl 0.13 release note text is:
19558 # C format strings with positions, as they arise when a translator
19559 # needs to reorder a sentence, are now supported on all platforms.
19560 # On those few platforms (NetBSD and Woe32) for which the native
19561 # printf()/fprintf()/... functions don't support such format
19562 # strings, replacements are provided through <libintl.h>.
19564 # We could use libintl >= 0.13's *printf() if we were sure that we had
19565 # a litint >= 0.13 at runtime, but seeing that there is no clean way
19566 # to guarantee that, it is best to just use our own, so we are sure to
19567 # get %$ support. In include/port.h we disable the *printf() macros
19568 # that might have been defined by libintl.
19570 # We do this unconditionally whether NLS is used or not so we are sure
19571 # that all Win32 libraries and binaries behave the same.
19572 pgac_need_repl_snprintf=yes
19574 pgac_need_repl_snprintf=no
19576 for ac_func in snprintf
19578 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19579 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19580 $as_echo_n "checking for $ac_func... " >&6; }
19581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19582 $as_echo_n "(cached) " >&6
19584 cat >conftest.$ac_ext <<_ACEOF
19587 cat confdefs.h >>conftest.$ac_ext
19588 cat >>conftest.$ac_ext <<_ACEOF
19589 /* end confdefs.h. */
19590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19592 #define $ac_func innocuous_$ac_func
19594 /* System header to define __stub macros and hopefully few prototypes,
19595 which can conflict with char $ac_func (); below.
19596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19597 <limits.h> exists even on freestanding compilers. */
19600 # include <limits.h>
19602 # include <assert.h>
19607 /* Override any GCC internal prototype to avoid an error.
19608 Use char because int might match the return type of a GCC
19609 builtin and then its argument prototype would still apply. */
19614 /* The GNU C library defines this for functions which it implements
19615 to always fail with ENOSYS. Some functions are actually named
19616 something starting with __ and the normal name is an alias. */
19617 #if defined __stub_$ac_func || defined __stub___$ac_func
19624 return $ac_func ();
19629 rm -f conftest.$ac_objext conftest$ac_exeext
19630 if { (ac_try="$ac_link"
19631 case "(($ac_try" in
19632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633 *) ac_try_echo=$ac_try;;
19635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19636 $as_echo "$ac_try_echo") >&5
19637 (eval "$ac_link") 2>conftest.er1
19639 grep -v '^ *+' conftest.er1 >conftest.err
19641 cat conftest.err >&5
19642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); } && {
19644 test -z "$ac_c_werror_flag" ||
19645 test ! -s conftest.err
19646 } && test -s conftest$ac_exeext && {
19647 test "$cross_compiling" = yes ||
19648 $as_test_x conftest$ac_exeext
19650 eval "$as_ac_var=yes"
19652 $as_echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.$ac_ext >&5
19655 eval "$as_ac_var=no"
19658 rm -rf conftest.dSYM
19659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19660 conftest$ac_exeext conftest.$ac_ext
19662 ac_res=`eval 'as_val=${'$as_ac_var'}
19663 $as_echo "$as_val"'`
19664 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19665 $as_echo "$ac_res" >&6; }
19666 as_val=`eval 'as_val=${'$as_ac_var'}
19667 $as_echo "$as_val"'`
19668 if test "x$as_val" = x""yes; then
19669 cat >>confdefs.h <<_ACEOF
19670 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19674 pgac_need_repl_snprintf=yes
19679 for ac_func in vsnprintf
19681 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19682 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19683 $as_echo_n "checking for $ac_func... " >&6; }
19684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19685 $as_echo_n "(cached) " >&6
19687 cat >conftest.$ac_ext <<_ACEOF
19690 cat confdefs.h >>conftest.$ac_ext
19691 cat >>conftest.$ac_ext <<_ACEOF
19692 /* end confdefs.h. */
19693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19695 #define $ac_func innocuous_$ac_func
19697 /* System header to define __stub macros and hopefully few prototypes,
19698 which can conflict with char $ac_func (); below.
19699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19700 <limits.h> exists even on freestanding compilers. */
19703 # include <limits.h>
19705 # include <assert.h>
19710 /* Override any GCC internal prototype to avoid an error.
19711 Use char because int might match the return type of a GCC
19712 builtin and then its argument prototype would still apply. */
19717 /* The GNU C library defines this for functions which it implements
19718 to always fail with ENOSYS. Some functions are actually named
19719 something starting with __ and the normal name is an alias. */
19720 #if defined __stub_$ac_func || defined __stub___$ac_func
19727 return $ac_func ();
19732 rm -f conftest.$ac_objext conftest$ac_exeext
19733 if { (ac_try="$ac_link"
19734 case "(($ac_try" in
19735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736 *) ac_try_echo=$ac_try;;
19738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19739 $as_echo "$ac_try_echo") >&5
19740 (eval "$ac_link") 2>conftest.er1
19742 grep -v '^ *+' conftest.er1 >conftest.err
19744 cat conftest.err >&5
19745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); } && {
19747 test -z "$ac_c_werror_flag" ||
19748 test ! -s conftest.err
19749 } && test -s conftest$ac_exeext && {
19750 test "$cross_compiling" = yes ||
19751 $as_test_x conftest$ac_exeext
19753 eval "$as_ac_var=yes"
19755 $as_echo "$as_me: failed program was:" >&5
19756 sed 's/^/| /' conftest.$ac_ext >&5
19758 eval "$as_ac_var=no"
19761 rm -rf conftest.dSYM
19762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19763 conftest$ac_exeext conftest.$ac_ext
19765 ac_res=`eval 'as_val=${'$as_ac_var'}
19766 $as_echo "$as_val"'`
19767 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19768 $as_echo "$ac_res" >&6; }
19769 as_val=`eval 'as_val=${'$as_ac_var'}
19770 $as_echo "$as_val"'`
19771 if test "x$as_val" = x""yes; then
19772 cat >>confdefs.h <<_ACEOF
19773 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19777 pgac_need_repl_snprintf=yes
19784 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
19785 # include/c.h will provide declarations. Note this is a separate test
19786 # from whether the functions exist in the C library --- there are
19787 # systems that have the functions but don't bother to declare them :-(
19789 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
19790 $as_echo_n "checking whether snprintf is declared... " >&6; }
19791 if test "${ac_cv_have_decl_snprintf+set}" = set; then
19792 $as_echo_n "(cached) " >&6
19794 cat >conftest.$ac_ext <<_ACEOF
19797 cat confdefs.h >>conftest.$ac_ext
19798 cat >>conftest.$ac_ext <<_ACEOF
19799 /* end confdefs.h. */
19800 $ac_includes_default
19812 rm -f conftest.$ac_objext
19813 if { (ac_try="$ac_compile"
19814 case "(($ac_try" in
19815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816 *) ac_try_echo=$ac_try;;
19818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19819 $as_echo "$ac_try_echo") >&5
19820 (eval "$ac_compile") 2>conftest.er1
19822 grep -v '^ *+' conftest.er1 >conftest.err
19824 cat conftest.err >&5
19825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); } && {
19827 test -z "$ac_c_werror_flag" ||
19828 test ! -s conftest.err
19829 } && test -s conftest.$ac_objext; then
19830 ac_cv_have_decl_snprintf=yes
19832 $as_echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19835 ac_cv_have_decl_snprintf=no
19838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19840 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
19841 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
19842 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
19844 cat >>confdefs.h <<_ACEOF
19845 #define HAVE_DECL_SNPRINTF 1
19850 cat >>confdefs.h <<_ACEOF
19851 #define HAVE_DECL_SNPRINTF 0
19856 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
19857 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
19858 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
19859 $as_echo_n "(cached) " >&6
19861 cat >conftest.$ac_ext <<_ACEOF
19864 cat confdefs.h >>conftest.$ac_ext
19865 cat >>conftest.$ac_ext <<_ACEOF
19866 /* end confdefs.h. */
19867 $ac_includes_default
19879 rm -f conftest.$ac_objext
19880 if { (ac_try="$ac_compile"
19881 case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19886 $as_echo "$ac_try_echo") >&5
19887 (eval "$ac_compile") 2>conftest.er1
19889 grep -v '^ *+' conftest.er1 >conftest.err
19891 cat conftest.err >&5
19892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); } && {
19894 test -z "$ac_c_werror_flag" ||
19895 test ! -s conftest.err
19896 } && test -s conftest.$ac_objext; then
19897 ac_cv_have_decl_vsnprintf=yes
19899 $as_echo "$as_me: failed program was:" >&5
19900 sed 's/^/| /' conftest.$ac_ext >&5
19902 ac_cv_have_decl_vsnprintf=no
19905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19907 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
19908 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
19909 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
19911 cat >>confdefs.h <<_ACEOF
19912 #define HAVE_DECL_VSNPRINTF 1
19917 cat >>confdefs.h <<_ACEOF
19918 #define HAVE_DECL_VSNPRINTF 0
19927 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
19928 $as_echo_n "checking for isinf... " >&6; }
19929 if test "${ac_cv_func_isinf+set}" = set; then
19930 $as_echo_n "(cached) " >&6
19932 cat >conftest.$ac_ext <<_ACEOF
19935 cat confdefs.h >>conftest.$ac_ext
19936 cat >>conftest.$ac_ext <<_ACEOF
19937 /* end confdefs.h. */
19940 double glob_double;
19945 return isinf(glob_double) ? 0 : 1;
19950 rm -f conftest.$ac_objext conftest$ac_exeext
19951 if { (ac_try="$ac_link"
19952 case "(($ac_try" in
19953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19954 *) ac_try_echo=$ac_try;;
19956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19957 $as_echo "$ac_try_echo") >&5
19958 (eval "$ac_link") 2>conftest.er1
19960 grep -v '^ *+' conftest.er1 >conftest.err
19962 cat conftest.err >&5
19963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); } && {
19965 test -z "$ac_c_werror_flag" ||
19966 test ! -s conftest.err
19967 } && test -s conftest$ac_exeext && {
19968 test "$cross_compiling" = yes ||
19969 $as_test_x conftest$ac_exeext
19971 ac_cv_func_isinf=yes
19973 $as_echo "$as_me: failed program was:" >&5
19974 sed 's/^/| /' conftest.$ac_ext >&5
19976 ac_cv_func_isinf=no
19979 rm -rf conftest.dSYM
19980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19981 conftest$ac_exeext conftest.$ac_ext
19983 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
19984 $as_echo "$ac_cv_func_isinf" >&6; }
19986 if test $ac_cv_func_isinf = yes ; then
19988 cat >>confdefs.h <<\_ACEOF
19989 #define HAVE_ISINF 1
19993 case " $LIBOBJS " in
19994 *" isinf.$ac_objext "* ) ;;
19995 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
19999 # Look for a way to implement a substitute for isinf()
20004 for ac_func in fpclass fp_class fp_class_d class
20006 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20007 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20008 $as_echo_n "checking for $ac_func... " >&6; }
20009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20010 $as_echo_n "(cached) " >&6
20012 cat >conftest.$ac_ext <<_ACEOF
20015 cat confdefs.h >>conftest.$ac_ext
20016 cat >>conftest.$ac_ext <<_ACEOF
20017 /* end confdefs.h. */
20018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20020 #define $ac_func innocuous_$ac_func
20022 /* System header to define __stub macros and hopefully few prototypes,
20023 which can conflict with char $ac_func (); below.
20024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20025 <limits.h> exists even on freestanding compilers. */
20028 # include <limits.h>
20030 # include <assert.h>
20035 /* Override any GCC internal prototype to avoid an error.
20036 Use char because int might match the return type of a GCC
20037 builtin and then its argument prototype would still apply. */
20042 /* The GNU C library defines this for functions which it implements
20043 to always fail with ENOSYS. Some functions are actually named
20044 something starting with __ and the normal name is an alias. */
20045 #if defined __stub_$ac_func || defined __stub___$ac_func
20052 return $ac_func ();
20057 rm -f conftest.$ac_objext conftest$ac_exeext
20058 if { (ac_try="$ac_link"
20059 case "(($ac_try" in
20060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061 *) ac_try_echo=$ac_try;;
20063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20064 $as_echo "$ac_try_echo") >&5
20065 (eval "$ac_link") 2>conftest.er1
20067 grep -v '^ *+' conftest.er1 >conftest.err
20069 cat conftest.err >&5
20070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); } && {
20072 test -z "$ac_c_werror_flag" ||
20073 test ! -s conftest.err
20074 } && test -s conftest$ac_exeext && {
20075 test "$cross_compiling" = yes ||
20076 $as_test_x conftest$ac_exeext
20078 eval "$as_ac_var=yes"
20080 $as_echo "$as_me: failed program was:" >&5
20081 sed 's/^/| /' conftest.$ac_ext >&5
20083 eval "$as_ac_var=no"
20086 rm -rf conftest.dSYM
20087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20088 conftest$ac_exeext conftest.$ac_ext
20090 ac_res=`eval 'as_val=${'$as_ac_var'}
20091 $as_echo "$as_val"'`
20092 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20093 $as_echo "$ac_res" >&6; }
20094 as_val=`eval 'as_val=${'$as_ac_var'}
20095 $as_echo "$as_val"'`
20096 if test "x$as_val" = x""yes; then
20097 cat >>confdefs.h <<_ACEOF
20098 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20106 # Some versions of libedit contain strlcpy(); so disregard that library while
20107 # checking for these standard libc functions.
20108 pgac_save_LIBS="$LIBS"
20109 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20125 for ac_func in crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20127 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20128 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20129 $as_echo_n "checking for $ac_func... " >&6; }
20130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20131 $as_echo_n "(cached) " >&6
20133 cat >conftest.$ac_ext <<_ACEOF
20136 cat confdefs.h >>conftest.$ac_ext
20137 cat >>conftest.$ac_ext <<_ACEOF
20138 /* end confdefs.h. */
20139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20141 #define $ac_func innocuous_$ac_func
20143 /* System header to define __stub macros and hopefully few prototypes,
20144 which can conflict with char $ac_func (); below.
20145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20146 <limits.h> exists even on freestanding compilers. */
20149 # include <limits.h>
20151 # include <assert.h>
20156 /* Override any GCC internal prototype to avoid an error.
20157 Use char because int might match the return type of a GCC
20158 builtin and then its argument prototype would still apply. */
20163 /* The GNU C library defines this for functions which it implements
20164 to always fail with ENOSYS. Some functions are actually named
20165 something starting with __ and the normal name is an alias. */
20166 #if defined __stub_$ac_func || defined __stub___$ac_func
20173 return $ac_func ();
20178 rm -f conftest.$ac_objext conftest$ac_exeext
20179 if { (ac_try="$ac_link"
20180 case "(($ac_try" in
20181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20182 *) ac_try_echo=$ac_try;;
20184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20185 $as_echo "$ac_try_echo") >&5
20186 (eval "$ac_link") 2>conftest.er1
20188 grep -v '^ *+' conftest.er1 >conftest.err
20190 cat conftest.err >&5
20191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); } && {
20193 test -z "$ac_c_werror_flag" ||
20194 test ! -s conftest.err
20195 } && test -s conftest$ac_exeext && {
20196 test "$cross_compiling" = yes ||
20197 $as_test_x conftest$ac_exeext
20199 eval "$as_ac_var=yes"
20201 $as_echo "$as_me: failed program was:" >&5
20202 sed 's/^/| /' conftest.$ac_ext >&5
20204 eval "$as_ac_var=no"
20207 rm -rf conftest.dSYM
20208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20209 conftest$ac_exeext conftest.$ac_ext
20211 ac_res=`eval 'as_val=${'$as_ac_var'}
20212 $as_echo "$as_val"'`
20213 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20214 $as_echo "$ac_res" >&6; }
20215 as_val=`eval 'as_val=${'$as_ac_var'}
20216 $as_echo "$as_val"'`
20217 if test "x$as_val" = x""yes; then
20218 cat >>confdefs.h <<_ACEOF
20219 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20223 case " $LIBOBJS " in
20224 *" $ac_func.$ac_objext "* ) ;;
20225 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20236 # Windows uses a specialised env handler
20239 cat >>confdefs.h <<\_ACEOF
20240 #define HAVE_UNSETENV 1
20243 ac_cv_func_unsetenv=yes;;
20246 for ac_func in unsetenv
20248 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20249 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20250 $as_echo_n "checking for $ac_func... " >&6; }
20251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20252 $as_echo_n "(cached) " >&6
20254 cat >conftest.$ac_ext <<_ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h. */
20260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20262 #define $ac_func innocuous_$ac_func
20264 /* System header to define __stub macros and hopefully few prototypes,
20265 which can conflict with char $ac_func (); below.
20266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20267 <limits.h> exists even on freestanding compilers. */
20270 # include <limits.h>
20272 # include <assert.h>
20277 /* Override any GCC internal prototype to avoid an error.
20278 Use char because int might match the return type of a GCC
20279 builtin and then its argument prototype would still apply. */
20284 /* The GNU C library defines this for functions which it implements
20285 to always fail with ENOSYS. Some functions are actually named
20286 something starting with __ and the normal name is an alias. */
20287 #if defined __stub_$ac_func || defined __stub___$ac_func
20294 return $ac_func ();
20299 rm -f conftest.$ac_objext conftest$ac_exeext
20300 if { (ac_try="$ac_link"
20301 case "(($ac_try" in
20302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20303 *) ac_try_echo=$ac_try;;
20305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20306 $as_echo "$ac_try_echo") >&5
20307 (eval "$ac_link") 2>conftest.er1
20309 grep -v '^ *+' conftest.er1 >conftest.err
20311 cat conftest.err >&5
20312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); } && {
20314 test -z "$ac_c_werror_flag" ||
20315 test ! -s conftest.err
20316 } && test -s conftest$ac_exeext && {
20317 test "$cross_compiling" = yes ||
20318 $as_test_x conftest$ac_exeext
20320 eval "$as_ac_var=yes"
20322 $as_echo "$as_me: failed program was:" >&5
20323 sed 's/^/| /' conftest.$ac_ext >&5
20325 eval "$as_ac_var=no"
20328 rm -rf conftest.dSYM
20329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20330 conftest$ac_exeext conftest.$ac_ext
20332 ac_res=`eval 'as_val=${'$as_ac_var'}
20333 $as_echo "$as_val"'`
20334 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20335 $as_echo "$ac_res" >&6; }
20336 as_val=`eval 'as_val=${'$as_ac_var'}
20337 $as_echo "$as_val"'`
20338 if test "x$as_val" = x""yes; then
20339 cat >>confdefs.h <<_ACEOF
20340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20344 case " $LIBOBJS " in
20345 *" $ac_func.$ac_objext "* ) ;;
20346 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20358 LIBS="$pgac_save_LIBS"
20360 # System's version of getaddrinfo(), if any, may be used only if we found
20361 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
20362 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
20363 # versions of getaddrinfo don't follow normal C call protocol. This is OK
20364 # because we want to use our own getaddrinfo.c on Windows anyway.)
20365 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
20367 for ac_func in getaddrinfo
20369 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20370 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20371 $as_echo_n "checking for $ac_func... " >&6; }
20372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20373 $as_echo_n "(cached) " >&6
20375 cat >conftest.$ac_ext <<_ACEOF
20378 cat confdefs.h >>conftest.$ac_ext
20379 cat >>conftest.$ac_ext <<_ACEOF
20380 /* end confdefs.h. */
20381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20383 #define $ac_func innocuous_$ac_func
20385 /* System header to define __stub macros and hopefully few prototypes,
20386 which can conflict with char $ac_func (); below.
20387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20388 <limits.h> exists even on freestanding compilers. */
20391 # include <limits.h>
20393 # include <assert.h>
20398 /* Override any GCC internal prototype to avoid an error.
20399 Use char because int might match the return type of a GCC
20400 builtin and then its argument prototype would still apply. */
20405 /* The GNU C library defines this for functions which it implements
20406 to always fail with ENOSYS. Some functions are actually named
20407 something starting with __ and the normal name is an alias. */
20408 #if defined __stub_$ac_func || defined __stub___$ac_func
20415 return $ac_func ();
20420 rm -f conftest.$ac_objext conftest$ac_exeext
20421 if { (ac_try="$ac_link"
20422 case "(($ac_try" in
20423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20424 *) ac_try_echo=$ac_try;;
20426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20427 $as_echo "$ac_try_echo") >&5
20428 (eval "$ac_link") 2>conftest.er1
20430 grep -v '^ *+' conftest.er1 >conftest.err
20432 cat conftest.err >&5
20433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); } && {
20435 test -z "$ac_c_werror_flag" ||
20436 test ! -s conftest.err
20437 } && test -s conftest$ac_exeext && {
20438 test "$cross_compiling" = yes ||
20439 $as_test_x conftest$ac_exeext
20441 eval "$as_ac_var=yes"
20443 $as_echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20446 eval "$as_ac_var=no"
20449 rm -rf conftest.dSYM
20450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20451 conftest$ac_exeext conftest.$ac_ext
20453 ac_res=`eval 'as_val=${'$as_ac_var'}
20454 $as_echo "$as_val"'`
20455 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20456 $as_echo "$ac_res" >&6; }
20457 as_val=`eval 'as_val=${'$as_ac_var'}
20458 $as_echo "$as_val"'`
20459 if test "x$as_val" = x""yes; then
20460 cat >>confdefs.h <<_ACEOF
20461 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20465 case " $LIBOBJS " in
20466 *" $ac_func.$ac_objext "* ) ;;
20467 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20476 case " $LIBOBJS " in
20477 *" getaddrinfo.$ac_objext "* ) ;;
20478 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
20484 # Similarly, use system's getopt_long() only if system provides struct option.
20485 if test x"$ac_cv_type_struct_option" = xyes ; then
20487 for ac_func in getopt_long
20489 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20490 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20491 $as_echo_n "checking for $ac_func... " >&6; }
20492 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20493 $as_echo_n "(cached) " >&6
20495 cat >conftest.$ac_ext <<_ACEOF
20498 cat confdefs.h >>conftest.$ac_ext
20499 cat >>conftest.$ac_ext <<_ACEOF
20500 /* end confdefs.h. */
20501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20503 #define $ac_func innocuous_$ac_func
20505 /* System header to define __stub macros and hopefully few prototypes,
20506 which can conflict with char $ac_func (); below.
20507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20508 <limits.h> exists even on freestanding compilers. */
20511 # include <limits.h>
20513 # include <assert.h>
20518 /* Override any GCC internal prototype to avoid an error.
20519 Use char because int might match the return type of a GCC
20520 builtin and then its argument prototype would still apply. */
20525 /* The GNU C library defines this for functions which it implements
20526 to always fail with ENOSYS. Some functions are actually named
20527 something starting with __ and the normal name is an alias. */
20528 #if defined __stub_$ac_func || defined __stub___$ac_func
20535 return $ac_func ();
20540 rm -f conftest.$ac_objext conftest$ac_exeext
20541 if { (ac_try="$ac_link"
20542 case "(($ac_try" in
20543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20544 *) ac_try_echo=$ac_try;;
20546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20547 $as_echo "$ac_try_echo") >&5
20548 (eval "$ac_link") 2>conftest.er1
20550 grep -v '^ *+' conftest.er1 >conftest.err
20552 cat conftest.err >&5
20553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); } && {
20555 test -z "$ac_c_werror_flag" ||
20556 test ! -s conftest.err
20557 } && test -s conftest$ac_exeext && {
20558 test "$cross_compiling" = yes ||
20559 $as_test_x conftest$ac_exeext
20561 eval "$as_ac_var=yes"
20563 $as_echo "$as_me: failed program was:" >&5
20564 sed 's/^/| /' conftest.$ac_ext >&5
20566 eval "$as_ac_var=no"
20569 rm -rf conftest.dSYM
20570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20571 conftest$ac_exeext conftest.$ac_ext
20573 ac_res=`eval 'as_val=${'$as_ac_var'}
20574 $as_echo "$as_val"'`
20575 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20576 $as_echo "$ac_res" >&6; }
20577 as_val=`eval 'as_val=${'$as_ac_var'}
20578 $as_echo "$as_val"'`
20579 if test "x$as_val" = x""yes; then
20580 cat >>confdefs.h <<_ACEOF
20581 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20585 case " $LIBOBJS " in
20586 *" $ac_func.$ac_objext "* ) ;;
20587 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20596 case " $LIBOBJS " in
20597 *" getopt_long.$ac_objext "* ) ;;
20598 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
20604 # Solaris' getopt() doesn't do what we want for long options, so always use
20605 # our version on that platform.
20606 if test "$PORTNAME" = "solaris"; then
20607 case " $LIBOBJS " in
20608 *" getopt.$ac_objext "* ) ;;
20609 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
20615 # Cygwin's erand48() is broken (always returns zero) in some releases,
20616 # so force use of ours.
20617 if test "$PORTNAME" = "cygwin"; then
20618 case " $LIBOBJS " in
20619 *" erand48.$ac_objext "* ) ;;
20620 *) LIBOBJS="$LIBOBJS erand48.$ac_objext"
20627 if test "$PORTNAME" = "win32"; then
20629 for ac_func in gettimeofday
20631 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20632 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20633 $as_echo_n "checking for $ac_func... " >&6; }
20634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20635 $as_echo_n "(cached) " >&6
20637 cat >conftest.$ac_ext <<_ACEOF
20640 cat confdefs.h >>conftest.$ac_ext
20641 cat >>conftest.$ac_ext <<_ACEOF
20642 /* end confdefs.h. */
20643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20645 #define $ac_func innocuous_$ac_func
20647 /* System header to define __stub macros and hopefully few prototypes,
20648 which can conflict with char $ac_func (); below.
20649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20650 <limits.h> exists even on freestanding compilers. */
20653 # include <limits.h>
20655 # include <assert.h>
20660 /* Override any GCC internal prototype to avoid an error.
20661 Use char because int might match the return type of a GCC
20662 builtin and then its argument prototype would still apply. */
20667 /* The GNU C library defines this for functions which it implements
20668 to always fail with ENOSYS. Some functions are actually named
20669 something starting with __ and the normal name is an alias. */
20670 #if defined __stub_$ac_func || defined __stub___$ac_func
20677 return $ac_func ();
20682 rm -f conftest.$ac_objext conftest$ac_exeext
20683 if { (ac_try="$ac_link"
20684 case "(($ac_try" in
20685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20686 *) ac_try_echo=$ac_try;;
20688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20689 $as_echo "$ac_try_echo") >&5
20690 (eval "$ac_link") 2>conftest.er1
20692 grep -v '^ *+' conftest.er1 >conftest.err
20694 cat conftest.err >&5
20695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); } && {
20697 test -z "$ac_c_werror_flag" ||
20698 test ! -s conftest.err
20699 } && test -s conftest$ac_exeext && {
20700 test "$cross_compiling" = yes ||
20701 $as_test_x conftest$ac_exeext
20703 eval "$as_ac_var=yes"
20705 $as_echo "$as_me: failed program was:" >&5
20706 sed 's/^/| /' conftest.$ac_ext >&5
20708 eval "$as_ac_var=no"
20711 rm -rf conftest.dSYM
20712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20713 conftest$ac_exeext conftest.$ac_ext
20715 ac_res=`eval 'as_val=${'$as_ac_var'}
20716 $as_echo "$as_val"'`
20717 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20718 $as_echo "$ac_res" >&6; }
20719 as_val=`eval 'as_val=${'$as_ac_var'}
20720 $as_echo "$as_val"'`
20721 if test "x$as_val" = x""yes; then
20722 cat >>confdefs.h <<_ACEOF
20723 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20727 case " $LIBOBJS " in
20728 *" $ac_func.$ac_objext "* ) ;;
20729 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20737 case " $LIBOBJS " in
20738 *" kill.$ac_objext "* ) ;;
20739 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
20743 case " $LIBOBJS " in
20744 *" open.$ac_objext "* ) ;;
20745 *) LIBOBJS="$LIBOBJS open.$ac_objext"
20749 case " $LIBOBJS " in
20750 *" win32env.$ac_objext "* ) ;;
20751 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
20755 case " $LIBOBJS " in
20756 *" win32error.$ac_objext "* ) ;;
20757 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
20762 cat >>confdefs.h <<\_ACEOF
20763 #define HAVE_SYMLINK 1
20768 if test "$with_readline" = yes; then
20769 { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
20770 $as_echo_n "checking for rl_completion_append_character... " >&6; }
20771 cat >conftest.$ac_ext <<_ACEOF
20774 cat confdefs.h >>conftest.$ac_ext
20775 cat >>conftest.$ac_ext <<_ACEOF
20776 /* end confdefs.h. */
20778 #ifdef HAVE_READLINE_READLINE_H
20779 # include <readline/readline.h>
20780 #elif defined(HAVE_READLINE_H)
20781 # include <readline.h>
20787 rl_completion_append_character = 'x';
20792 rm -f conftest.$ac_objext conftest$ac_exeext
20793 if { (ac_try="$ac_link"
20794 case "(($ac_try" in
20795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796 *) ac_try_echo=$ac_try;;
20798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20799 $as_echo "$ac_try_echo") >&5
20800 (eval "$ac_link") 2>conftest.er1
20802 grep -v '^ *+' conftest.er1 >conftest.err
20804 cat conftest.err >&5
20805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); } && {
20807 test -z "$ac_c_werror_flag" ||
20808 test ! -s conftest.err
20809 } && test -s conftest$ac_exeext && {
20810 test "$cross_compiling" = yes ||
20811 $as_test_x conftest$ac_exeext
20813 { $as_echo "$as_me:$LINENO: result: yes" >&5
20814 $as_echo "yes" >&6; }
20816 cat >>confdefs.h <<\_ACEOF
20817 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20821 $as_echo "$as_me: failed program was:" >&5
20822 sed 's/^/| /' conftest.$ac_ext >&5
20824 { $as_echo "$as_me:$LINENO: result: no" >&5
20825 $as_echo "no" >&6; }
20828 rm -rf conftest.dSYM
20829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20830 conftest$ac_exeext conftest.$ac_ext
20833 for ac_func in rl_completion_matches rl_filename_completion_function
20835 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20836 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20837 $as_echo_n "checking for $ac_func... " >&6; }
20838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20839 $as_echo_n "(cached) " >&6
20841 cat >conftest.$ac_ext <<_ACEOF
20844 cat confdefs.h >>conftest.$ac_ext
20845 cat >>conftest.$ac_ext <<_ACEOF
20846 /* end confdefs.h. */
20847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20849 #define $ac_func innocuous_$ac_func
20851 /* System header to define __stub macros and hopefully few prototypes,
20852 which can conflict with char $ac_func (); below.
20853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20854 <limits.h> exists even on freestanding compilers. */
20857 # include <limits.h>
20859 # include <assert.h>
20864 /* Override any GCC internal prototype to avoid an error.
20865 Use char because int might match the return type of a GCC
20866 builtin and then its argument prototype would still apply. */
20871 /* The GNU C library defines this for functions which it implements
20872 to always fail with ENOSYS. Some functions are actually named
20873 something starting with __ and the normal name is an alias. */
20874 #if defined __stub_$ac_func || defined __stub___$ac_func
20881 return $ac_func ();
20886 rm -f conftest.$ac_objext conftest$ac_exeext
20887 if { (ac_try="$ac_link"
20888 case "(($ac_try" in
20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890 *) ac_try_echo=$ac_try;;
20892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20893 $as_echo "$ac_try_echo") >&5
20894 (eval "$ac_link") 2>conftest.er1
20896 grep -v '^ *+' conftest.er1 >conftest.err
20898 cat conftest.err >&5
20899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); } && {
20901 test -z "$ac_c_werror_flag" ||
20902 test ! -s conftest.err
20903 } && test -s conftest$ac_exeext && {
20904 test "$cross_compiling" = yes ||
20905 $as_test_x conftest$ac_exeext
20907 eval "$as_ac_var=yes"
20909 $as_echo "$as_me: failed program was:" >&5
20910 sed 's/^/| /' conftest.$ac_ext >&5
20912 eval "$as_ac_var=no"
20915 rm -rf conftest.dSYM
20916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20917 conftest$ac_exeext conftest.$ac_ext
20919 ac_res=`eval 'as_val=${'$as_ac_var'}
20920 $as_echo "$as_val"'`
20921 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20922 $as_echo "$ac_res" >&6; }
20923 as_val=`eval 'as_val=${'$as_ac_var'}
20924 $as_echo "$as_val"'`
20925 if test "x$as_val" = x""yes; then
20926 cat >>confdefs.h <<_ACEOF
20927 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20935 for ac_func in append_history history_truncate_file
20937 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20938 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20939 $as_echo_n "checking for $ac_func... " >&6; }
20940 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20941 $as_echo_n "(cached) " >&6
20943 cat >conftest.$ac_ext <<_ACEOF
20946 cat confdefs.h >>conftest.$ac_ext
20947 cat >>conftest.$ac_ext <<_ACEOF
20948 /* end confdefs.h. */
20949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20951 #define $ac_func innocuous_$ac_func
20953 /* System header to define __stub macros and hopefully few prototypes,
20954 which can conflict with char $ac_func (); below.
20955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20956 <limits.h> exists even on freestanding compilers. */
20959 # include <limits.h>
20961 # include <assert.h>
20966 /* Override any GCC internal prototype to avoid an error.
20967 Use char because int might match the return type of a GCC
20968 builtin and then its argument prototype would still apply. */
20973 /* The GNU C library defines this for functions which it implements
20974 to always fail with ENOSYS. Some functions are actually named
20975 something starting with __ and the normal name is an alias. */
20976 #if defined __stub_$ac_func || defined __stub___$ac_func
20983 return $ac_func ();
20988 rm -f conftest.$ac_objext conftest$ac_exeext
20989 if { (ac_try="$ac_link"
20990 case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20995 $as_echo "$ac_try_echo") >&5
20996 (eval "$ac_link") 2>conftest.er1
20998 grep -v '^ *+' conftest.er1 >conftest.err
21000 cat conftest.err >&5
21001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); } && {
21003 test -z "$ac_c_werror_flag" ||
21004 test ! -s conftest.err
21005 } && test -s conftest$ac_exeext && {
21006 test "$cross_compiling" = yes ||
21007 $as_test_x conftest$ac_exeext
21009 eval "$as_ac_var=yes"
21011 $as_echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21014 eval "$as_ac_var=no"
21017 rm -rf conftest.dSYM
21018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21019 conftest$ac_exeext conftest.$ac_ext
21021 ac_res=`eval 'as_val=${'$as_ac_var'}
21022 $as_echo "$as_val"'`
21023 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21024 $as_echo "$ac_res" >&6; }
21025 as_val=`eval 'as_val=${'$as_ac_var'}
21026 $as_echo "$as_val"'`
21027 if test "x$as_val" = x""yes; then
21028 cat >>confdefs.h <<_ACEOF
21029 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21038 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21039 $as_echo_n "checking for sigsetjmp... " >&6; }
21040 cat >conftest.$ac_ext <<_ACEOF
21043 cat confdefs.h >>conftest.$ac_ext
21044 cat >>conftest.$ac_ext <<_ACEOF
21045 /* end confdefs.h. */
21046 #include <setjmp.h>
21050 sigjmp_buf x; sigsetjmp(x, 1);
21055 rm -f conftest.$ac_objext conftest$ac_exeext
21056 if { (ac_try="$ac_link"
21057 case "(($ac_try" in
21058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21059 *) ac_try_echo=$ac_try;;
21061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21062 $as_echo "$ac_try_echo") >&5
21063 (eval "$ac_link") 2>conftest.er1
21065 grep -v '^ *+' conftest.er1 >conftest.err
21067 cat conftest.err >&5
21068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); } && {
21070 test -z "$ac_c_werror_flag" ||
21071 test ! -s conftest.err
21072 } && test -s conftest$ac_exeext && {
21073 test "$cross_compiling" = yes ||
21074 $as_test_x conftest$ac_exeext
21077 cat >>confdefs.h <<\_ACEOF
21078 #define HAVE_SIGSETJMP 1
21081 { $as_echo "$as_me:$LINENO: result: yes" >&5
21082 $as_echo "yes" >&6; }
21084 $as_echo "$as_me: failed program was:" >&5
21085 sed 's/^/| /' conftest.$ac_ext >&5
21087 { $as_echo "$as_me:$LINENO: result: no" >&5
21088 $as_echo "no" >&6; }
21091 rm -rf conftest.dSYM
21092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21093 conftest$ac_exeext conftest.$ac_ext
21095 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21096 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21097 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21098 $as_echo_n "(cached) " >&6
21100 cat >conftest.$ac_ext <<_ACEOF
21103 cat confdefs.h >>conftest.$ac_ext
21104 cat >>conftest.$ac_ext <<_ACEOF
21105 /* end confdefs.h. */
21106 #include <signal.h>
21107 /* NetBSD declares sys_siglist in unistd.h. */
21108 #ifdef HAVE_UNISTD_H
21109 # include <unistd.h>
21116 #ifndef sys_siglist
21117 (void) sys_siglist;
21124 rm -f conftest.$ac_objext
21125 if { (ac_try="$ac_compile"
21126 case "(($ac_try" in
21127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128 *) ac_try_echo=$ac_try;;
21130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21131 $as_echo "$ac_try_echo") >&5
21132 (eval "$ac_compile") 2>conftest.er1
21134 grep -v '^ *+' conftest.er1 >conftest.err
21136 cat conftest.err >&5
21137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); } && {
21139 test -z "$ac_c_werror_flag" ||
21140 test ! -s conftest.err
21141 } && test -s conftest.$ac_objext; then
21142 ac_cv_have_decl_sys_siglist=yes
21144 $as_echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.$ac_ext >&5
21147 ac_cv_have_decl_sys_siglist=no
21150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21152 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
21153 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21154 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
21156 cat >>confdefs.h <<_ACEOF
21157 #define HAVE_DECL_SYS_SIGLIST 1
21162 cat >>confdefs.h <<_ACEOF
21163 #define HAVE_DECL_SYS_SIGLIST 0
21172 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
21173 $as_echo_n "checking for syslog... " >&6; }
21174 if test "${ac_cv_func_syslog+set}" = set; then
21175 $as_echo_n "(cached) " >&6
21177 cat >conftest.$ac_ext <<_ACEOF
21180 cat confdefs.h >>conftest.$ac_ext
21181 cat >>conftest.$ac_ext <<_ACEOF
21182 /* end confdefs.h. */
21183 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
21184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21185 #define syslog innocuous_syslog
21187 /* System header to define __stub macros and hopefully few prototypes,
21188 which can conflict with char syslog (); below.
21189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21190 <limits.h> exists even on freestanding compilers. */
21193 # include <limits.h>
21195 # include <assert.h>
21200 /* Override any GCC internal prototype to avoid an error.
21201 Use char because int might match the return type of a GCC
21202 builtin and then its argument prototype would still apply. */
21207 /* The GNU C library defines this for functions which it implements
21208 to always fail with ENOSYS. Some functions are actually named
21209 something starting with __ and the normal name is an alias. */
21210 #if defined __stub_syslog || defined __stub___syslog
21222 rm -f conftest.$ac_objext conftest$ac_exeext
21223 if { (ac_try="$ac_link"
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_link") 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_exeext && {
21240 test "$cross_compiling" = yes ||
21241 $as_test_x conftest$ac_exeext
21243 ac_cv_func_syslog=yes
21245 $as_echo "$as_me: failed program was:" >&5
21246 sed 's/^/| /' conftest.$ac_ext >&5
21248 ac_cv_func_syslog=no
21251 rm -rf conftest.dSYM
21252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21253 conftest$ac_exeext conftest.$ac_ext
21255 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
21256 $as_echo "$ac_cv_func_syslog" >&6; }
21257 if test "x$ac_cv_func_syslog" = x""yes; then
21258 if test "${ac_cv_header_syslog_h+set}" = set; then
21259 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21260 $as_echo_n "checking for syslog.h... " >&6; }
21261 if test "${ac_cv_header_syslog_h+set}" = set; then
21262 $as_echo_n "(cached) " >&6
21264 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21265 $as_echo "$ac_cv_header_syslog_h" >&6; }
21267 # Is the header compilable?
21268 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
21269 $as_echo_n "checking syslog.h usability... " >&6; }
21270 cat >conftest.$ac_ext <<_ACEOF
21273 cat confdefs.h >>conftest.$ac_ext
21274 cat >>conftest.$ac_ext <<_ACEOF
21275 /* end confdefs.h. */
21276 $ac_includes_default
21277 #include <syslog.h>
21279 rm -f conftest.$ac_objext
21280 if { (ac_try="$ac_compile"
21281 case "(($ac_try" in
21282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21283 *) ac_try_echo=$ac_try;;
21285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21286 $as_echo "$ac_try_echo") >&5
21287 (eval "$ac_compile") 2>conftest.er1
21289 grep -v '^ *+' conftest.er1 >conftest.err
21291 cat conftest.err >&5
21292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); } && {
21294 test -z "$ac_c_werror_flag" ||
21295 test ! -s conftest.err
21296 } && test -s conftest.$ac_objext; then
21297 ac_header_compiler=yes
21299 $as_echo "$as_me: failed program was:" >&5
21300 sed 's/^/| /' conftest.$ac_ext >&5
21302 ac_header_compiler=no
21305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21306 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21307 $as_echo "$ac_header_compiler" >&6; }
21309 # Is the header present?
21310 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
21311 $as_echo_n "checking syslog.h presence... " >&6; }
21312 cat >conftest.$ac_ext <<_ACEOF
21315 cat confdefs.h >>conftest.$ac_ext
21316 cat >>conftest.$ac_ext <<_ACEOF
21317 /* end confdefs.h. */
21318 #include <syslog.h>
21320 if { (ac_try="$ac_cpp conftest.$ac_ext"
21321 case "(($ac_try" in
21322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21323 *) ac_try_echo=$ac_try;;
21325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21326 $as_echo "$ac_try_echo") >&5
21327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21329 grep -v '^ *+' conftest.er1 >conftest.err
21331 cat conftest.err >&5
21332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); } >/dev/null && {
21334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21335 test ! -s conftest.err
21337 ac_header_preproc=yes
21339 $as_echo "$as_me: failed program was:" >&5
21340 sed 's/^/| /' conftest.$ac_ext >&5
21342 ac_header_preproc=no
21345 rm -f conftest.err conftest.$ac_ext
21346 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21347 $as_echo "$ac_header_preproc" >&6; }
21349 # So? What about this header?
21350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21352 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
21353 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21354 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
21355 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
21356 ac_header_preproc=yes
21359 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
21360 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
21361 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
21362 $as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
21363 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
21364 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
21365 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
21366 $as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
21367 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
21368 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
21369 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
21370 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
21372 ## ---------------------------------------- ##
21373 ## Report this to pgsql-bugs@postgresql.org ##
21374 ## ---------------------------------------- ##
21376 ) | sed "s/^/$as_me: WARNING: /" >&2
21379 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
21380 $as_echo_n "checking for syslog.h... " >&6; }
21381 if test "${ac_cv_header_syslog_h+set}" = set; then
21382 $as_echo_n "(cached) " >&6
21384 ac_cv_header_syslog_h=$ac_header_preproc
21386 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
21387 $as_echo "$ac_cv_header_syslog_h" >&6; }
21390 if test "x$ac_cv_header_syslog_h" = x""yes; then
21392 cat >>confdefs.h <<\_ACEOF
21393 #define HAVE_SYSLOG 1
21402 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
21403 $as_echo_n "checking for opterr... " >&6; }
21404 if test "${pgac_cv_var_int_opterr+set}" = set; then
21405 $as_echo_n "(cached) " >&6
21407 cat >conftest.$ac_ext <<_ACEOF
21410 cat confdefs.h >>conftest.$ac_ext
21411 cat >>conftest.$ac_ext <<_ACEOF
21412 /* end confdefs.h. */
21413 #include <unistd.h>
21417 extern int opterr; opterr = 1;
21422 rm -f conftest.$ac_objext conftest$ac_exeext
21423 if { (ac_try="$ac_link"
21424 case "(($ac_try" in
21425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21426 *) ac_try_echo=$ac_try;;
21428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21429 $as_echo "$ac_try_echo") >&5
21430 (eval "$ac_link") 2>conftest.er1
21432 grep -v '^ *+' conftest.er1 >conftest.err
21434 cat conftest.err >&5
21435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); } && {
21437 test -z "$ac_c_werror_flag" ||
21438 test ! -s conftest.err
21439 } && test -s conftest$ac_exeext && {
21440 test "$cross_compiling" = yes ||
21441 $as_test_x conftest$ac_exeext
21443 pgac_cv_var_int_opterr=yes
21445 $as_echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21448 pgac_cv_var_int_opterr=no
21451 rm -rf conftest.dSYM
21452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21453 conftest$ac_exeext conftest.$ac_ext
21455 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
21456 $as_echo "$pgac_cv_var_int_opterr" >&6; }
21457 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
21459 cat >>confdefs.h <<\_ACEOF
21460 #define HAVE_INT_OPTERR 1
21465 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
21466 $as_echo_n "checking for optreset... " >&6; }
21467 if test "${pgac_cv_var_int_optreset+set}" = set; then
21468 $as_echo_n "(cached) " >&6
21470 cat >conftest.$ac_ext <<_ACEOF
21473 cat confdefs.h >>conftest.$ac_ext
21474 cat >>conftest.$ac_ext <<_ACEOF
21475 /* end confdefs.h. */
21476 #include <unistd.h>
21480 extern int optreset; optreset = 1;
21485 rm -f conftest.$ac_objext conftest$ac_exeext
21486 if { (ac_try="$ac_link"
21487 case "(($ac_try" in
21488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21489 *) ac_try_echo=$ac_try;;
21491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21492 $as_echo "$ac_try_echo") >&5
21493 (eval "$ac_link") 2>conftest.er1
21495 grep -v '^ *+' conftest.er1 >conftest.err
21497 cat conftest.err >&5
21498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); } && {
21500 test -z "$ac_c_werror_flag" ||
21501 test ! -s conftest.err
21502 } && test -s conftest$ac_exeext && {
21503 test "$cross_compiling" = yes ||
21504 $as_test_x conftest$ac_exeext
21506 pgac_cv_var_int_optreset=yes
21508 $as_echo "$as_me: failed program was:" >&5
21509 sed 's/^/| /' conftest.$ac_ext >&5
21511 pgac_cv_var_int_optreset=no
21514 rm -rf conftest.dSYM
21515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21516 conftest$ac_exeext conftest.$ac_ext
21518 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
21519 $as_echo "$pgac_cv_var_int_optreset" >&6; }
21520 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
21522 cat >>confdefs.h <<\_ACEOF
21523 #define HAVE_INT_OPTRESET 1
21530 for ac_func in strtoll strtoq
21532 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21533 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21534 $as_echo_n "checking for $ac_func... " >&6; }
21535 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21536 $as_echo_n "(cached) " >&6
21538 cat >conftest.$ac_ext <<_ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h. */
21544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21546 #define $ac_func innocuous_$ac_func
21548 /* System header to define __stub macros and hopefully few prototypes,
21549 which can conflict with char $ac_func (); below.
21550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21551 <limits.h> exists even on freestanding compilers. */
21554 # include <limits.h>
21556 # include <assert.h>
21561 /* Override any GCC internal prototype to avoid an error.
21562 Use char because int might match the return type of a GCC
21563 builtin and then its argument prototype would still apply. */
21568 /* The GNU C library defines this for functions which it implements
21569 to always fail with ENOSYS. Some functions are actually named
21570 something starting with __ and the normal name is an alias. */
21571 #if defined __stub_$ac_func || defined __stub___$ac_func
21578 return $ac_func ();
21583 rm -f conftest.$ac_objext conftest$ac_exeext
21584 if { (ac_try="$ac_link"
21585 case "(($ac_try" in
21586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21587 *) ac_try_echo=$ac_try;;
21589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21590 $as_echo "$ac_try_echo") >&5
21591 (eval "$ac_link") 2>conftest.er1
21593 grep -v '^ *+' conftest.er1 >conftest.err
21595 cat conftest.err >&5
21596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); } && {
21598 test -z "$ac_c_werror_flag" ||
21599 test ! -s conftest.err
21600 } && test -s conftest$ac_exeext && {
21601 test "$cross_compiling" = yes ||
21602 $as_test_x conftest$ac_exeext
21604 eval "$as_ac_var=yes"
21606 $as_echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.$ac_ext >&5
21609 eval "$as_ac_var=no"
21612 rm -rf conftest.dSYM
21613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21614 conftest$ac_exeext conftest.$ac_ext
21616 ac_res=`eval 'as_val=${'$as_ac_var'}
21617 $as_echo "$as_val"'`
21618 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21619 $as_echo "$ac_res" >&6; }
21620 as_val=`eval 'as_val=${'$as_ac_var'}
21621 $as_echo "$as_val"'`
21622 if test "x$as_val" = x""yes; then
21623 cat >>confdefs.h <<_ACEOF
21624 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21632 for ac_func in strtoull strtouq
21634 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21635 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21636 $as_echo_n "checking for $ac_func... " >&6; }
21637 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21638 $as_echo_n "(cached) " >&6
21640 cat >conftest.$ac_ext <<_ACEOF
21643 cat confdefs.h >>conftest.$ac_ext
21644 cat >>conftest.$ac_ext <<_ACEOF
21645 /* end confdefs.h. */
21646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21648 #define $ac_func innocuous_$ac_func
21650 /* System header to define __stub macros and hopefully few prototypes,
21651 which can conflict with char $ac_func (); below.
21652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21653 <limits.h> exists even on freestanding compilers. */
21656 # include <limits.h>
21658 # include <assert.h>
21663 /* Override any GCC internal prototype to avoid an error.
21664 Use char because int might match the return type of a GCC
21665 builtin and then its argument prototype would still apply. */
21670 /* The GNU C library defines this for functions which it implements
21671 to always fail with ENOSYS. Some functions are actually named
21672 something starting with __ and the normal name is an alias. */
21673 #if defined __stub_$ac_func || defined __stub___$ac_func
21680 return $ac_func ();
21685 rm -f conftest.$ac_objext conftest$ac_exeext
21686 if { (ac_try="$ac_link"
21687 case "(($ac_try" in
21688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21689 *) ac_try_echo=$ac_try;;
21691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21692 $as_echo "$ac_try_echo") >&5
21693 (eval "$ac_link") 2>conftest.er1
21695 grep -v '^ *+' conftest.er1 >conftest.err
21697 cat conftest.err >&5
21698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); } && {
21700 test -z "$ac_c_werror_flag" ||
21701 test ! -s conftest.err
21702 } && test -s conftest$ac_exeext && {
21703 test "$cross_compiling" = yes ||
21704 $as_test_x conftest$ac_exeext
21706 eval "$as_ac_var=yes"
21708 $as_echo "$as_me: failed program was:" >&5
21709 sed 's/^/| /' conftest.$ac_ext >&5
21711 eval "$as_ac_var=no"
21714 rm -rf conftest.dSYM
21715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21716 conftest$ac_exeext conftest.$ac_ext
21718 ac_res=`eval 'as_val=${'$as_ac_var'}
21719 $as_echo "$as_val"'`
21720 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21721 $as_echo "$ac_res" >&6; }
21722 as_val=`eval 'as_val=${'$as_ac_var'}
21723 $as_echo "$as_val"'`
21724 if test "x$as_val" = x""yes; then
21725 cat >>confdefs.h <<_ACEOF
21726 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21733 # Check for one of atexit() or on_exit()
21735 for ac_func in atexit
21737 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21738 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21739 $as_echo_n "checking for $ac_func... " >&6; }
21740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21741 $as_echo_n "(cached) " >&6
21743 cat >conftest.$ac_ext <<_ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h. */
21749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21751 #define $ac_func innocuous_$ac_func
21753 /* System header to define __stub macros and hopefully few prototypes,
21754 which can conflict with char $ac_func (); below.
21755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21756 <limits.h> exists even on freestanding compilers. */
21759 # include <limits.h>
21761 # include <assert.h>
21766 /* Override any GCC internal prototype to avoid an error.
21767 Use char because int might match the return type of a GCC
21768 builtin and then its argument prototype would still apply. */
21773 /* The GNU C library defines this for functions which it implements
21774 to always fail with ENOSYS. Some functions are actually named
21775 something starting with __ and the normal name is an alias. */
21776 #if defined __stub_$ac_func || defined __stub___$ac_func
21783 return $ac_func ();
21788 rm -f conftest.$ac_objext conftest$ac_exeext
21789 if { (ac_try="$ac_link"
21790 case "(($ac_try" in
21791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21792 *) ac_try_echo=$ac_try;;
21794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21795 $as_echo "$ac_try_echo") >&5
21796 (eval "$ac_link") 2>conftest.er1
21798 grep -v '^ *+' conftest.er1 >conftest.err
21800 cat conftest.err >&5
21801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); } && {
21803 test -z "$ac_c_werror_flag" ||
21804 test ! -s conftest.err
21805 } && test -s conftest$ac_exeext && {
21806 test "$cross_compiling" = yes ||
21807 $as_test_x conftest$ac_exeext
21809 eval "$as_ac_var=yes"
21811 $as_echo "$as_me: failed program was:" >&5
21812 sed 's/^/| /' conftest.$ac_ext >&5
21814 eval "$as_ac_var=no"
21817 rm -rf conftest.dSYM
21818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21819 conftest$ac_exeext conftest.$ac_ext
21821 ac_res=`eval 'as_val=${'$as_ac_var'}
21822 $as_echo "$as_val"'`
21823 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21824 $as_echo "$ac_res" >&6; }
21825 as_val=`eval 'as_val=${'$as_ac_var'}
21826 $as_echo "$as_val"'`
21827 if test "x$as_val" = x""yes; then
21828 cat >>confdefs.h <<_ACEOF
21829 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21834 for ac_func in on_exit
21836 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21837 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21838 $as_echo_n "checking for $ac_func... " >&6; }
21839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21840 $as_echo_n "(cached) " >&6
21842 cat >conftest.$ac_ext <<_ACEOF
21845 cat confdefs.h >>conftest.$ac_ext
21846 cat >>conftest.$ac_ext <<_ACEOF
21847 /* end confdefs.h. */
21848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21850 #define $ac_func innocuous_$ac_func
21852 /* System header to define __stub macros and hopefully few prototypes,
21853 which can conflict with char $ac_func (); below.
21854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21855 <limits.h> exists even on freestanding compilers. */
21858 # include <limits.h>
21860 # include <assert.h>
21865 /* Override any GCC internal prototype to avoid an error.
21866 Use char because int might match the return type of a GCC
21867 builtin and then its argument prototype would still apply. */
21872 /* The GNU C library defines this for functions which it implements
21873 to always fail with ENOSYS. Some functions are actually named
21874 something starting with __ and the normal name is an alias. */
21875 #if defined __stub_$ac_func || defined __stub___$ac_func
21882 return $ac_func ();
21887 rm -f conftest.$ac_objext conftest$ac_exeext
21888 if { (ac_try="$ac_link"
21889 case "(($ac_try" in
21890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21891 *) ac_try_echo=$ac_try;;
21893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21894 $as_echo "$ac_try_echo") >&5
21895 (eval "$ac_link") 2>conftest.er1
21897 grep -v '^ *+' conftest.er1 >conftest.err
21899 cat conftest.err >&5
21900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); } && {
21902 test -z "$ac_c_werror_flag" ||
21903 test ! -s conftest.err
21904 } && test -s conftest$ac_exeext && {
21905 test "$cross_compiling" = yes ||
21906 $as_test_x conftest$ac_exeext
21908 eval "$as_ac_var=yes"
21910 $as_echo "$as_me: failed program was:" >&5
21911 sed 's/^/| /' conftest.$ac_ext >&5
21913 eval "$as_ac_var=no"
21916 rm -rf conftest.dSYM
21917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21918 conftest$ac_exeext conftest.$ac_ext
21920 ac_res=`eval 'as_val=${'$as_ac_var'}
21921 $as_echo "$as_val"'`
21922 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21923 $as_echo "$ac_res" >&6; }
21924 as_val=`eval 'as_val=${'$as_ac_var'}
21925 $as_echo "$as_val"'`
21926 if test "x$as_val" = x""yes; then
21927 cat >>confdefs.h <<_ACEOF
21928 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21932 { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
21933 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
21934 { (exit 1); exit 1; }; }
21946 # For each platform, we need to know about any special compile and link
21947 # libraries, and whether the normal C function names are thread-safe.
21948 # See the comment at the top of src/port/thread.c for more information.
21949 # WIN32 doesn't need the pthread tests; it always uses threads
21950 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
21955 ac_cpp='$CPP $CPPFLAGS'
21956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21962 # We used to check for pthread.h first, but this fails if pthread.h
21963 # requires special compiler flags (e.g. on True64 or Sequent).
21964 # It gets checked for in the link test anyway.
21966 # First of all, check if the user has set any of the PTHREAD_LIBS,
21967 # etcetera environment variables, and if threads linking works using
21969 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21970 save_CFLAGS="$CFLAGS"
21971 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21973 LIBS="$PTHREAD_LIBS $LIBS"
21974 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
21975 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
21976 cat >conftest.$ac_ext <<_ACEOF
21979 cat confdefs.h >>conftest.$ac_ext
21980 cat >>conftest.$ac_ext <<_ACEOF
21981 /* end confdefs.h. */
21983 /* Override any GCC internal prototype to avoid an error.
21984 Use char because int might match the return type of a GCC
21985 builtin and then its argument prototype would still apply. */
21989 char pthread_join ();
21993 return pthread_join ();
21998 rm -f conftest.$ac_objext conftest$ac_exeext
21999 if { (ac_try="$ac_link"
22000 case "(($ac_try" in
22001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22002 *) ac_try_echo=$ac_try;;
22004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22005 $as_echo "$ac_try_echo") >&5
22006 (eval "$ac_link") 2>conftest.er1
22008 grep -v '^ *+' conftest.er1 >conftest.err
22010 cat conftest.err >&5
22011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); } && {
22013 test -z "$ac_c_werror_flag" ||
22014 test ! -s conftest.err
22015 } && test -s conftest$ac_exeext && {
22016 test "$cross_compiling" = yes ||
22017 $as_test_x conftest$ac_exeext
22021 $as_echo "$as_me: failed program was:" >&5
22022 sed 's/^/| /' conftest.$ac_ext >&5
22027 rm -rf conftest.dSYM
22028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22029 conftest$ac_exeext conftest.$ac_ext
22030 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22031 $as_echo "$acx_pthread_ok" >&6; }
22032 if test x"$acx_pthread_ok" = xno; then
22037 CFLAGS="$save_CFLAGS"
22040 # We must check for the threads library under a number of different
22041 # names; the ordering is very important because some systems
22042 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22043 # libraries is broken (non-POSIX).
22045 # Create a list of thread flags to try. Items starting with a "-" are
22046 # C compiler flags, and other items are library names, except for "none"
22047 # which indicates that we try without any flags at all, and "pthread-config"
22048 # which is a program returning the flags for the Pth emulation library.
22050 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22052 # The ordering *is* (sometimes) important. Some notes on the
22053 # individual items follow:
22055 # pthreads: AIX (must check this before -lpthread)
22056 # none: in case threads are in libc; should be tried before -Kthread and
22057 # other compiler flags to prevent continual compiler warnings
22058 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22059 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22060 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22061 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22062 # -pthreads: Solaris/gcc
22063 # -mthreads: Mingw32/gcc, Lynx/gcc
22064 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22065 # doesn't hurt to check since this sometimes defines pthreads too;
22066 # also defines -D_REENTRANT)
22067 # pthread: Linux, etcetera
22068 # --thread-safe: KAI C++
22069 # pthread-config: use pthread-config program (for GNU Pth library)
22071 case "${host_cpu}-${host_os}" in
22074 # On Solaris (at least, for some versions), libc contains stubbed
22075 # (non-functional) versions of the pthreads routines, so link-based
22076 # tests will erroneously succeed. (We need to link with -pthread or
22077 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22078 # a function called by this macro, so we could check for that, but
22079 # who knows whether they'll stub that too in a future libc.) So,
22080 # we'll just look for -pthreads and -lpthread first:
22082 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22086 if test x"$acx_pthread_ok" = xno; then
22087 for flag in $acx_pthread_flags; do
22089 tryPTHREAD_CFLAGS=""
22093 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22094 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22098 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22099 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22100 tryPTHREAD_CFLAGS="$flag"
22104 # skip this if we already have flags defined, for PostgreSQL
22105 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22106 # Extract the first word of "pthread-config", so it can be a program name with args.
22107 set dummy pthread-config; ac_word=$2
22108 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22109 $as_echo_n "checking for $ac_word... " >&6; }
22110 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22111 $as_echo_n "(cached) " >&6
22113 if test -n "$acx_pthread_config"; then
22114 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22117 for as_dir in $PATH
22120 test -z "$as_dir" && as_dir=.
22121 for ac_exec_ext in '' $ac_executable_extensions; do
22122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22123 ac_cv_prog_acx_pthread_config="yes"
22124 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22131 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22134 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22135 if test -n "$acx_pthread_config"; then
22136 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22137 $as_echo "$acx_pthread_config" >&6; }
22139 { $as_echo "$as_me:$LINENO: result: no" >&5
22140 $as_echo "no" >&6; }
22144 if test x"$acx_pthread_config" = xno; then continue; fi
22145 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22146 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22150 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22151 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22152 tryPTHREAD_LIBS="-l$flag"
22157 save_CFLAGS="$CFLAGS"
22158 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22159 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22161 # Check for various functions. We must include pthread.h,
22162 # since some functions may be macros. (On the Sequent, we
22163 # need a special flag -Kthread to make this header compile.)
22164 # We check for pthread_join because it is in -lpthread on IRIX
22165 # while pthread_create is in libc. We check for pthread_attr_init
22166 # due to DEC craziness with -lpthreads. We check for
22167 # pthread_cleanup_push because it is one of the few pthread
22168 # functions on Solaris that doesn't have a non-functional libc stub.
22169 # We try pthread_create on general principles.
22170 cat >conftest.$ac_ext <<_ACEOF
22173 cat confdefs.h >>conftest.$ac_ext
22174 cat >>conftest.$ac_ext <<_ACEOF
22175 /* end confdefs.h. */
22176 #include <pthread.h>
22180 pthread_t th; pthread_join(th, 0);
22181 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22182 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22187 rm -f conftest.$ac_objext conftest$ac_exeext
22188 if { (ac_try="$ac_link"
22189 case "(($ac_try" in
22190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191 *) ac_try_echo=$ac_try;;
22193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22194 $as_echo "$ac_try_echo") >&5
22195 (eval "$ac_link") 2>conftest.er1
22197 grep -v '^ *+' conftest.er1 >conftest.err
22199 cat conftest.err >&5
22200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); } && {
22202 test -z "$ac_c_werror_flag" ||
22203 test ! -s conftest.err
22204 } && test -s conftest$ac_exeext && {
22205 test "$cross_compiling" = yes ||
22206 $as_test_x conftest$ac_exeext
22210 $as_echo "$as_me: failed program was:" >&5
22211 sed 's/^/| /' conftest.$ac_ext >&5
22216 rm -rf conftest.dSYM
22217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22218 conftest$ac_exeext conftest.$ac_ext
22220 if test "x$acx_pthread_ok" = xyes; then
22221 # Don't use options that are ignored by the compiler.
22222 # We find them by checking stderror.
22223 cat >conftest.$ac_ext <<_ACEOF
22225 main (int argc, char **argv)
22232 rm -f conftest.$ac_objext conftest$ac_exeext
22233 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
22234 # we continue with more flags because Linux needs -lpthread
22235 # for libpq builds on PostgreSQL. The test above only
22236 # tests for building binaries, not shared libraries.
22237 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22238 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22239 else acx_pthread_ok=no
22244 CFLAGS="$save_CFLAGS"
22246 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22247 $as_echo "$acx_pthread_ok" >&6; }
22251 # Various other checks:
22252 if test "x$acx_pthread_ok" = xyes; then
22254 LIBS="$PTHREAD_LIBS $LIBS"
22255 save_CFLAGS="$CFLAGS"
22256 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22258 # Detect AIX lossage: threads are created detached by default
22259 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22260 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22261 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22262 cat >conftest.$ac_ext <<_ACEOF
22265 cat confdefs.h >>conftest.$ac_ext
22266 cat >>conftest.$ac_ext <<_ACEOF
22267 /* end confdefs.h. */
22268 #include <pthread.h>
22272 int attr=PTHREAD_CREATE_JOINABLE;
22277 rm -f conftest.$ac_objext conftest$ac_exeext
22278 if { (ac_try="$ac_link"
22279 case "(($ac_try" in
22280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22281 *) ac_try_echo=$ac_try;;
22283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22284 $as_echo "$ac_try_echo") >&5
22285 (eval "$ac_link") 2>conftest.er1
22287 grep -v '^ *+' conftest.er1 >conftest.err
22289 cat conftest.err >&5
22290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); } && {
22292 test -z "$ac_c_werror_flag" ||
22293 test ! -s conftest.err
22294 } && test -s conftest$ac_exeext && {
22295 test "$cross_compiling" = yes ||
22296 $as_test_x conftest$ac_exeext
22298 ok=PTHREAD_CREATE_JOINABLE
22300 $as_echo "$as_me: failed program was:" >&5
22301 sed 's/^/| /' conftest.$ac_ext >&5
22306 rm -rf conftest.dSYM
22307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22308 conftest$ac_exeext conftest.$ac_ext
22309 if test x"$ok" = xunknown; then
22310 cat >conftest.$ac_ext <<_ACEOF
22313 cat confdefs.h >>conftest.$ac_ext
22314 cat >>conftest.$ac_ext <<_ACEOF
22315 /* end confdefs.h. */
22316 #include <pthread.h>
22320 int attr=PTHREAD_CREATE_UNDETACHED;
22325 rm -f conftest.$ac_objext conftest$ac_exeext
22326 if { (ac_try="$ac_link"
22327 case "(($ac_try" in
22328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22329 *) ac_try_echo=$ac_try;;
22331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22332 $as_echo "$ac_try_echo") >&5
22333 (eval "$ac_link") 2>conftest.er1
22335 grep -v '^ *+' conftest.er1 >conftest.err
22337 cat conftest.err >&5
22338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339 (exit $ac_status); } && {
22340 test -z "$ac_c_werror_flag" ||
22341 test ! -s conftest.err
22342 } && test -s conftest$ac_exeext && {
22343 test "$cross_compiling" = yes ||
22344 $as_test_x conftest$ac_exeext
22346 ok=PTHREAD_CREATE_UNDETACHED
22348 $as_echo "$as_me: failed program was:" >&5
22349 sed 's/^/| /' conftest.$ac_ext >&5
22354 rm -rf conftest.dSYM
22355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22356 conftest$ac_exeext conftest.$ac_ext
22358 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22360 cat >>confdefs.h <<\_ACEOF
22361 #define PTHREAD_CREATE_JOINABLE $ok
22365 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
22366 $as_echo "${ok}" >&6; }
22367 if test x"$ok" = xunknown; then
22368 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22369 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22372 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22373 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
22375 # We always add these in PostgreSQL
22376 # case "${host_cpu}-${host_os}" in
22377 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22378 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22380 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
22381 $as_echo "${flag}" >&6; }
22382 if test "x$flag" != xno; then
22383 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22387 CFLAGS="$save_CFLAGS"
22389 # Supporting cc_r would require a special CC in all places that
22390 # use libpq, and that is ugly, so we don't do it. Users can still
22391 # define their compiler as cc_r to do thread builds of everything.
22392 # More AIX lossage: must compile with cc_r
22393 # Extract the first word of "cc_r", so it can be a program name with args.
22394 set dummy cc_r; ac_word=$2
22395 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22396 $as_echo_n "checking for $ac_word... " >&6; }
22397 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22398 $as_echo_n "(cached) " >&6
22400 if test -n "$PTHREAD_CC"; then
22401 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22404 for as_dir in $PATH
22407 test -z "$as_dir" && as_dir=.
22408 for ac_exec_ext in '' $ac_executable_extensions; do
22409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22410 ac_cv_prog_PTHREAD_CC="cc_r"
22411 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22418 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
22421 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22422 if test -n "$PTHREAD_CC"; then
22423 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22424 $as_echo "$PTHREAD_CC" >&6; }
22426 { $as_echo "$as_me:$LINENO: result: no" >&5
22427 $as_echo "no" >&6; }
22439 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22440 if test x"$acx_pthread_ok" = xyes; then
22442 cat >>confdefs.h <<\_ACEOF
22443 #define HAVE_PTHREAD 1
22452 ac_cpp='$CPP $CPPFLAGS'
22453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22459 # Some platforms use these, so just define them. They can't hurt if they
22460 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
22461 # enables 5-arg getpwuid_r, among other things.
22462 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
22465 # At this point, we don't want to muck with the compiler name for threading.
22466 # Let's see who fails, perhaps AIX. 2004-04-23
22467 if test "$PTHREAD_CC" != "$CC"; then
22468 { { $as_echo "$as_me:$LINENO: error:
22469 PostgreSQL does not support platforms that require a special compiler
22470 for thread safety; use --disable-thread-safety to disable thread safety." >&5
22471 $as_echo "$as_me: error:
22472 PostgreSQL does not support platforms that require a special compiler
22473 for thread safety; use --disable-thread-safety to disable thread safety." >&2;}
22474 { (exit 1); exit 1; }; }
22477 # Check for *_r functions
22480 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22481 LIBS="$LIBS $PTHREAD_LIBS"
22483 if test "$PORTNAME" != "win32"; then
22484 if test "${ac_cv_header_pthread_h+set}" = set; then
22485 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
22486 $as_echo_n "checking for pthread.h... " >&6; }
22487 if test "${ac_cv_header_pthread_h+set}" = set; then
22488 $as_echo_n "(cached) " >&6
22490 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22491 $as_echo "$ac_cv_header_pthread_h" >&6; }
22493 # Is the header compilable?
22494 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
22495 $as_echo_n "checking pthread.h usability... " >&6; }
22496 cat >conftest.$ac_ext <<_ACEOF
22499 cat confdefs.h >>conftest.$ac_ext
22500 cat >>conftest.$ac_ext <<_ACEOF
22501 /* end confdefs.h. */
22502 $ac_includes_default
22503 #include <pthread.h>
22505 rm -f conftest.$ac_objext
22506 if { (ac_try="$ac_compile"
22507 case "(($ac_try" in
22508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22509 *) ac_try_echo=$ac_try;;
22511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22512 $as_echo "$ac_try_echo") >&5
22513 (eval "$ac_compile") 2>conftest.er1
22515 grep -v '^ *+' conftest.er1 >conftest.err
22517 cat conftest.err >&5
22518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519 (exit $ac_status); } && {
22520 test -z "$ac_c_werror_flag" ||
22521 test ! -s conftest.err
22522 } && test -s conftest.$ac_objext; then
22523 ac_header_compiler=yes
22525 $as_echo "$as_me: failed program was:" >&5
22526 sed 's/^/| /' conftest.$ac_ext >&5
22528 ac_header_compiler=no
22531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22532 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22533 $as_echo "$ac_header_compiler" >&6; }
22535 # Is the header present?
22536 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
22537 $as_echo_n "checking pthread.h presence... " >&6; }
22538 cat >conftest.$ac_ext <<_ACEOF
22541 cat confdefs.h >>conftest.$ac_ext
22542 cat >>conftest.$ac_ext <<_ACEOF
22543 /* end confdefs.h. */
22544 #include <pthread.h>
22546 if { (ac_try="$ac_cpp conftest.$ac_ext"
22547 case "(($ac_try" in
22548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22549 *) ac_try_echo=$ac_try;;
22551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22552 $as_echo "$ac_try_echo") >&5
22553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22555 grep -v '^ *+' conftest.er1 >conftest.err
22557 cat conftest.err >&5
22558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); } >/dev/null && {
22560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22561 test ! -s conftest.err
22563 ac_header_preproc=yes
22565 $as_echo "$as_me: failed program was:" >&5
22566 sed 's/^/| /' conftest.$ac_ext >&5
22568 ac_header_preproc=no
22571 rm -f conftest.err conftest.$ac_ext
22572 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22573 $as_echo "$ac_header_preproc" >&6; }
22575 # So? What about this header?
22576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22578 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
22579 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22580 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
22581 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
22582 ac_header_preproc=yes
22585 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
22586 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
22587 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
22588 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
22589 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
22590 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
22591 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
22592 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
22593 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
22594 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
22595 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
22596 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
22598 ## ---------------------------------------- ##
22599 ## Report this to pgsql-bugs@postgresql.org ##
22600 ## ---------------------------------------- ##
22602 ) | sed "s/^/$as_me: WARNING: /" >&2
22605 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
22606 $as_echo_n "checking for pthread.h... " >&6; }
22607 if test "${ac_cv_header_pthread_h+set}" = set; then
22608 $as_echo_n "(cached) " >&6
22610 ac_cv_header_pthread_h=$ac_header_preproc
22612 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22613 $as_echo "$ac_cv_header_pthread_h" >&6; }
22616 if test "x$ac_cv_header_pthread_h" = x""yes; then
22619 { { $as_echo "$as_me:$LINENO: error:
22620 pthread.h not found; use --disable-thread-safety to disable thread safety" >&5
22621 $as_echo "$as_me: error:
22622 pthread.h not found; use --disable-thread-safety to disable thread safety" >&2;}
22623 { (exit 1); exit 1; }; }
22632 for ac_func in strerror_r getpwuid_r gethostbyname_r
22634 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22635 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22636 $as_echo_n "checking for $ac_func... " >&6; }
22637 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22638 $as_echo_n "(cached) " >&6
22640 cat >conftest.$ac_ext <<_ACEOF
22643 cat confdefs.h >>conftest.$ac_ext
22644 cat >>conftest.$ac_ext <<_ACEOF
22645 /* end confdefs.h. */
22646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22648 #define $ac_func innocuous_$ac_func
22650 /* System header to define __stub macros and hopefully few prototypes,
22651 which can conflict with char $ac_func (); below.
22652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22653 <limits.h> exists even on freestanding compilers. */
22656 # include <limits.h>
22658 # include <assert.h>
22663 /* Override any GCC internal prototype to avoid an error.
22664 Use char because int might match the return type of a GCC
22665 builtin and then its argument prototype would still apply. */
22670 /* The GNU C library defines this for functions which it implements
22671 to always fail with ENOSYS. Some functions are actually named
22672 something starting with __ and the normal name is an alias. */
22673 #if defined __stub_$ac_func || defined __stub___$ac_func
22680 return $ac_func ();
22685 rm -f conftest.$ac_objext conftest$ac_exeext
22686 if { (ac_try="$ac_link"
22687 case "(($ac_try" in
22688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22689 *) ac_try_echo=$ac_try;;
22691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22692 $as_echo "$ac_try_echo") >&5
22693 (eval "$ac_link") 2>conftest.er1
22695 grep -v '^ *+' conftest.er1 >conftest.err
22697 cat conftest.err >&5
22698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699 (exit $ac_status); } && {
22700 test -z "$ac_c_werror_flag" ||
22701 test ! -s conftest.err
22702 } && test -s conftest$ac_exeext && {
22703 test "$cross_compiling" = yes ||
22704 $as_test_x conftest$ac_exeext
22706 eval "$as_ac_var=yes"
22708 $as_echo "$as_me: failed program was:" >&5
22709 sed 's/^/| /' conftest.$ac_ext >&5
22711 eval "$as_ac_var=no"
22714 rm -rf conftest.dSYM
22715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22716 conftest$ac_exeext conftest.$ac_ext
22718 ac_res=`eval 'as_val=${'$as_ac_var'}
22719 $as_echo "$as_val"'`
22720 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22721 $as_echo "$ac_res" >&6; }
22722 as_val=`eval 'as_val=${'$as_ac_var'}
22723 $as_echo "$as_val"'`
22724 if test "x$as_val" = x""yes; then
22725 cat >>confdefs.h <<_ACEOF
22726 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22733 # Do test here with the proper thread flags
22734 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
22735 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
22736 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
22737 $as_echo_n "(cached) " >&6
22739 cat >conftest.$ac_ext <<_ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h. */
22745 #include <sys/types.h>
22751 struct passwd *space;
22754 struct passwd **result;
22755 getpwuid_r(uid, space, buf, bufsize, result);
22760 rm -f conftest.$ac_objext
22761 if { (ac_try="$ac_compile"
22762 case "(($ac_try" in
22763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22764 *) ac_try_echo=$ac_try;;
22766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22767 $as_echo "$ac_try_echo") >&5
22768 (eval "$ac_compile") 2>conftest.er1
22770 grep -v '^ *+' conftest.er1 >conftest.err
22772 cat conftest.err >&5
22773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774 (exit $ac_status); } && {
22775 test -z "$ac_c_werror_flag" ||
22776 test ! -s conftest.err
22777 } && test -s conftest.$ac_objext; then
22778 pgac_cv_func_getpwuid_r_5arg=yes
22780 $as_echo "$as_me: failed program was:" >&5
22781 sed 's/^/| /' conftest.$ac_ext >&5
22783 pgac_cv_func_getpwuid_r_5arg=no
22786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22788 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
22789 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
22790 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
22792 cat >>confdefs.h <<\_ACEOF
22793 #define GETPWUID_R_5ARG /**/
22798 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
22799 $as_echo_n "checking whether strerror_r returns int... " >&6; }
22800 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
22801 $as_echo_n "(cached) " >&6
22803 cat >conftest.$ac_ext <<_ACEOF
22806 cat confdefs.h >>conftest.$ac_ext
22807 cat >>conftest.$ac_ext <<_ACEOF
22808 /* end confdefs.h. */
22809 #include <string.h>
22814 int strerror_r(int, char *, size_t);
22816 /* Older AIX has 'int' for the third argument so we don't test the args. */
22823 rm -f conftest.$ac_objext
22824 if { (ac_try="$ac_compile"
22825 case "(($ac_try" in
22826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22827 *) ac_try_echo=$ac_try;;
22829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22830 $as_echo "$ac_try_echo") >&5
22831 (eval "$ac_compile") 2>conftest.er1
22833 grep -v '^ *+' conftest.er1 >conftest.err
22835 cat conftest.err >&5
22836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837 (exit $ac_status); } && {
22838 test -z "$ac_c_werror_flag" ||
22839 test ! -s conftest.err
22840 } && test -s conftest.$ac_objext; then
22841 pgac_cv_func_strerror_r_int=yes
22843 $as_echo "$as_me: failed program was:" >&5
22844 sed 's/^/| /' conftest.$ac_ext >&5
22846 pgac_cv_func_strerror_r_int=no
22849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22851 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
22852 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
22853 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
22855 cat >>confdefs.h <<\_ACEOF
22856 #define STRERROR_R_INT /**/
22866 # do not use values from template file
22875 # We can test for libldap_r only after we know PTHREAD_LIBS
22876 if test "$with_ldap" = yes ; then
22878 if test "$PORTNAME" != "win32"; then
22880 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
22881 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
22882 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
22883 $as_echo_n "(cached) " >&6
22885 ac_check_lib_save_LIBS=$LIBS
22886 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
22887 cat >conftest.$ac_ext <<_ACEOF
22890 cat confdefs.h >>conftest.$ac_ext
22891 cat >>conftest.$ac_ext <<_ACEOF
22892 /* end confdefs.h. */
22894 /* Override any GCC internal prototype to avoid an error.
22895 Use char because int might match the return type of a GCC
22896 builtin and then its argument prototype would still apply. */
22904 return ldap_bind ();
22909 rm -f conftest.$ac_objext conftest$ac_exeext
22910 if { (ac_try="$ac_link"
22911 case "(($ac_try" in
22912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22913 *) ac_try_echo=$ac_try;;
22915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22916 $as_echo "$ac_try_echo") >&5
22917 (eval "$ac_link") 2>conftest.er1
22919 grep -v '^ *+' conftest.er1 >conftest.err
22921 cat conftest.err >&5
22922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923 (exit $ac_status); } && {
22924 test -z "$ac_c_werror_flag" ||
22925 test ! -s conftest.err
22926 } && test -s conftest$ac_exeext && {
22927 test "$cross_compiling" = yes ||
22928 $as_test_x conftest$ac_exeext
22930 ac_cv_lib_ldap_ldap_bind=yes
22932 $as_echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22935 ac_cv_lib_ldap_ldap_bind=no
22938 rm -rf conftest.dSYM
22939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22940 conftest$ac_exeext conftest.$ac_ext
22941 LIBS=$ac_check_lib_save_LIBS
22943 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
22944 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
22945 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
22946 cat >>confdefs.h <<_ACEOF
22947 #define HAVE_LIBLDAP 1
22950 LIBS="-lldap $LIBS"
22953 { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
22954 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
22955 { (exit 1); exit 1; }; }
22958 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
22959 if test "$enable_thread_safety" = yes; then
22960 # on some platforms ldap_r fails to link without PTHREAD_LIBS
22962 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
22963 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
22964 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
22965 $as_echo_n "(cached) " >&6
22967 ac_check_lib_save_LIBS=$LIBS
22968 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
22969 cat >conftest.$ac_ext <<_ACEOF
22972 cat confdefs.h >>conftest.$ac_ext
22973 cat >>conftest.$ac_ext <<_ACEOF
22974 /* end confdefs.h. */
22976 /* Override any GCC internal prototype to avoid an error.
22977 Use char because int might match the return type of a GCC
22978 builtin and then its argument prototype would still apply. */
22982 char ldap_simple_bind ();
22986 return ldap_simple_bind ();
22991 rm -f conftest.$ac_objext conftest$ac_exeext
22992 if { (ac_try="$ac_link"
22993 case "(($ac_try" in
22994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22995 *) ac_try_echo=$ac_try;;
22997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22998 $as_echo "$ac_try_echo") >&5
22999 (eval "$ac_link") 2>conftest.er1
23001 grep -v '^ *+' conftest.er1 >conftest.err
23003 cat conftest.err >&5
23004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005 (exit $ac_status); } && {
23006 test -z "$ac_c_werror_flag" ||
23007 test ! -s conftest.err
23008 } && test -s conftest$ac_exeext && {
23009 test "$cross_compiling" = yes ||
23010 $as_test_x conftest$ac_exeext
23012 ac_cv_lib_ldap_r_ldap_simple_bind=yes
23014 $as_echo "$as_me: failed program was:" >&5
23015 sed 's/^/| /' conftest.$ac_ext >&5
23017 ac_cv_lib_ldap_r_ldap_simple_bind=no
23020 rm -rf conftest.dSYM
23021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23022 conftest$ac_exeext conftest.$ac_ext
23023 LIBS=$ac_check_lib_save_LIBS
23025 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23026 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23027 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23028 cat >>confdefs.h <<_ACEOF
23029 #define HAVE_LIBLDAP_R 1
23032 LIBS="-lldap_r $LIBS"
23035 { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23036 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23037 { (exit 1); exit 1; }; }
23040 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23042 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23046 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23047 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23048 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23049 $as_echo_n "(cached) " >&6
23051 ac_check_lib_save_LIBS=$LIBS
23052 LIBS="-lwldap32 $LIBS"
23053 cat >conftest.$ac_ext <<_ACEOF
23056 cat confdefs.h >>conftest.$ac_ext
23057 cat >>conftest.$ac_ext <<_ACEOF
23058 /* end confdefs.h. */
23060 /* Override any GCC internal prototype to avoid an error.
23061 Use char because int might match the return type of a GCC
23062 builtin and then its argument prototype would still apply. */
23070 return ldap_bind ();
23075 rm -f conftest.$ac_objext conftest$ac_exeext
23076 if { (ac_try="$ac_link"
23077 case "(($ac_try" in
23078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23079 *) ac_try_echo=$ac_try;;
23081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23082 $as_echo "$ac_try_echo") >&5
23083 (eval "$ac_link") 2>conftest.er1
23085 grep -v '^ *+' conftest.er1 >conftest.err
23087 cat conftest.err >&5
23088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089 (exit $ac_status); } && {
23090 test -z "$ac_c_werror_flag" ||
23091 test ! -s conftest.err
23092 } && test -s conftest$ac_exeext && {
23093 test "$cross_compiling" = yes ||
23094 $as_test_x conftest$ac_exeext
23096 ac_cv_lib_wldap32_ldap_bind=yes
23098 $as_echo "$as_me: failed program was:" >&5
23099 sed 's/^/| /' conftest.$ac_ext >&5
23101 ac_cv_lib_wldap32_ldap_bind=no
23104 rm -rf conftest.dSYM
23105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23106 conftest$ac_exeext conftest.$ac_ext
23107 LIBS=$ac_check_lib_save_LIBS
23109 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23110 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23111 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23112 cat >>confdefs.h <<_ACEOF
23113 #define HAVE_LIBWLDAP32 1
23116 LIBS="-lwldap32 $LIBS"
23119 { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23120 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23121 { (exit 1); exit 1; }; }
23124 LDAP_LIBS_FE="-lwldap32"
23125 LDAP_LIBS_BE="-lwldap32"
23133 # This test makes sure that run tests work at all. Sometimes a shared
23134 # library is found by the linker, but the runtime linker can't find it.
23135 # This check should come after all modifications of compiler or linker
23136 # variables, and before any other run tests.
23137 { $as_echo "$as_me:$LINENO: checking test program" >&5
23138 $as_echo_n "checking test program... " >&6; }
23139 if test "$cross_compiling" = yes; then
23140 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23141 $as_echo "cross-compiling" >&6; }
23143 cat >conftest.$ac_ext <<_ACEOF
23146 cat confdefs.h >>conftest.$ac_ext
23147 cat >>conftest.$ac_ext <<_ACEOF
23148 /* end confdefs.h. */
23149 int main() { return 0; }
23151 rm -f conftest$ac_exeext
23152 if { (ac_try="$ac_link"
23153 case "(($ac_try" in
23154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23155 *) ac_try_echo=$ac_try;;
23157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23158 $as_echo "$ac_try_echo") >&5
23159 (eval "$ac_link") 2>&5
23161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23163 { (case "(($ac_try" in
23164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23165 *) ac_try_echo=$ac_try;;
23167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23168 $as_echo "$ac_try_echo") >&5
23169 (eval "$ac_try") 2>&5
23171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172 (exit $ac_status); }; }; then
23173 { $as_echo "$as_me:$LINENO: result: ok" >&5
23174 $as_echo "ok" >&6; }
23176 $as_echo "$as_me: program exited with status $ac_status" >&5
23177 $as_echo "$as_me: failed program was:" >&5
23178 sed 's/^/| /' conftest.$ac_ext >&5
23180 ( exit $ac_status )
23181 { $as_echo "$as_me:$LINENO: result: failed" >&5
23182 $as_echo "failed" >&6; }
23183 { { $as_echo "$as_me:$LINENO: error:
23184 Could not execute a simple test program. This may be a problem
23185 related to locating shared libraries. Check the file 'config.log'
23186 for the exact reason." >&5
23187 $as_echo "$as_me: error:
23188 Could not execute a simple test program. This may be a problem
23189 related to locating shared libraries. Check the file 'config.log'
23190 for the exact reason." >&2;}
23191 { (exit 1); exit 1; }; }
23193 rm -rf conftest.dSYM
23194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23199 # --------------------
23200 # Run tests below here
23201 # --------------------
23203 # Force use of our snprintf if system's doesn't do arg control
23204 # See comment above at snprintf test for details.
23205 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23206 { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
23207 $as_echo_n "checking whether printf supports argument control... " >&6; }
23208 if test "${pgac_cv_printf_arg_control+set}" = set; then
23209 $as_echo_n "(cached) " >&6
23211 if test "$cross_compiling" = yes; then
23212 pgac_cv_printf_arg_control=cross
23214 cat >conftest.$ac_ext <<_ACEOF
23217 cat confdefs.h >>conftest.$ac_ext
23218 cat >>conftest.$ac_ext <<_ACEOF
23219 /* end confdefs.h. */
23221 #include <string.h>
23227 /* can it swap arguments? */
23228 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
23229 if (strcmp(buf, "4 3") != 0)
23234 rm -f conftest$ac_exeext
23235 if { (ac_try="$ac_link"
23236 case "(($ac_try" in
23237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23238 *) ac_try_echo=$ac_try;;
23240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23241 $as_echo "$ac_try_echo") >&5
23242 (eval "$ac_link") 2>&5
23244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23246 { (case "(($ac_try" in
23247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23248 *) ac_try_echo=$ac_try;;
23250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23251 $as_echo "$ac_try_echo") >&5
23252 (eval "$ac_try") 2>&5
23254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255 (exit $ac_status); }; }; then
23256 pgac_cv_printf_arg_control=yes
23258 $as_echo "$as_me: program exited with status $ac_status" >&5
23259 $as_echo "$as_me: failed program was:" >&5
23260 sed 's/^/| /' conftest.$ac_ext >&5
23262 ( exit $ac_status )
23263 pgac_cv_printf_arg_control=no
23265 rm -rf conftest.dSYM
23266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23272 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
23273 $as_echo "$pgac_cv_printf_arg_control" >&6; }
23275 if test $pgac_cv_printf_arg_control != yes ; then
23276 pgac_need_repl_snprintf=yes
23283 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
23284 $as_echo_n "checking whether long int is 64 bits... " >&6; }
23285 if test "${pgac_cv_type_long_int_64+set}" = set; then
23286 $as_echo_n "(cached) " >&6
23288 if test "$cross_compiling" = yes; then
23289 # If cross-compiling, check the size reported by the compiler and
23290 # trust that the arithmetic works.
23291 cat >conftest.$ac_ext <<_ACEOF
23294 cat confdefs.h >>conftest.$ac_ext
23295 cat >>conftest.$ac_ext <<_ACEOF
23296 /* end confdefs.h. */
23301 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
23308 rm -f conftest.$ac_objext
23309 if { (ac_try="$ac_compile"
23310 case "(($ac_try" in
23311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23312 *) ac_try_echo=$ac_try;;
23314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23315 $as_echo "$ac_try_echo") >&5
23316 (eval "$ac_compile") 2>conftest.er1
23318 grep -v '^ *+' conftest.er1 >conftest.err
23320 cat conftest.err >&5
23321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23322 (exit $ac_status); } && {
23323 test -z "$ac_c_werror_flag" ||
23324 test ! -s conftest.err
23325 } && test -s conftest.$ac_objext; then
23326 pgac_cv_type_long_int_64=yes
23328 $as_echo "$as_me: failed program was:" >&5
23329 sed 's/^/| /' conftest.$ac_ext >&5
23331 pgac_cv_type_long_int_64=no
23334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23336 cat >conftest.$ac_ext <<_ACEOF
23339 cat confdefs.h >>conftest.$ac_ext
23340 cat >>conftest.$ac_ext <<_ACEOF
23341 /* end confdefs.h. */
23342 typedef long int ac_int64;
23345 * These are globals to discourage the compiler from folding all the
23346 * arithmetic tests down to compile-time constants.
23348 ac_int64 a = 20000001;
23349 ac_int64 b = 40000005;
23351 int does_int64_work()
23355 if (sizeof(ac_int64) != 8)
23356 return 0; /* definitely not the right size */
23358 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
23366 exit(! does_int64_work());
23369 rm -f conftest$ac_exeext
23370 if { (ac_try="$ac_link"
23371 case "(($ac_try" in
23372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23373 *) ac_try_echo=$ac_try;;
23375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23376 $as_echo "$ac_try_echo") >&5
23377 (eval "$ac_link") 2>&5
23379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23381 { (case "(($ac_try" in
23382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23383 *) ac_try_echo=$ac_try;;
23385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23386 $as_echo "$ac_try_echo") >&5
23387 (eval "$ac_try") 2>&5
23389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); }; }; then
23391 pgac_cv_type_long_int_64=yes
23393 $as_echo "$as_me: program exited with status $ac_status" >&5
23394 $as_echo "$as_me: failed program was:" >&5
23395 sed 's/^/| /' conftest.$ac_ext >&5
23397 ( exit $ac_status )
23398 pgac_cv_type_long_int_64=no
23400 rm -rf conftest.dSYM
23401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23406 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
23407 $as_echo "$pgac_cv_type_long_int_64" >&6; }
23409 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
23410 if test x"$pgac_cv_type_long_int_64" = xyes ; then
23412 cat >>confdefs.h <<\_ACEOF
23413 #define HAVE_LONG_INT_64 1
23419 if test x"$HAVE_LONG_INT_64" = x"no" ; then
23420 { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
23421 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
23422 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
23423 $as_echo_n "(cached) " >&6
23425 if test "$cross_compiling" = yes; then
23426 # If cross-compiling, check the size reported by the compiler and
23427 # trust that the arithmetic works.
23428 cat >conftest.$ac_ext <<_ACEOF
23431 cat confdefs.h >>conftest.$ac_ext
23432 cat >>conftest.$ac_ext <<_ACEOF
23433 /* end confdefs.h. */
23438 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
23445 rm -f conftest.$ac_objext
23446 if { (ac_try="$ac_compile"
23447 case "(($ac_try" in
23448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23449 *) ac_try_echo=$ac_try;;
23451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23452 $as_echo "$ac_try_echo") >&5
23453 (eval "$ac_compile") 2>conftest.er1
23455 grep -v '^ *+' conftest.er1 >conftest.err
23457 cat conftest.err >&5
23458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459 (exit $ac_status); } && {
23460 test -z "$ac_c_werror_flag" ||
23461 test ! -s conftest.err
23462 } && test -s conftest.$ac_objext; then
23463 pgac_cv_type_long_long_int_64=yes
23465 $as_echo "$as_me: failed program was:" >&5
23466 sed 's/^/| /' conftest.$ac_ext >&5
23468 pgac_cv_type_long_long_int_64=no
23471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23473 cat >conftest.$ac_ext <<_ACEOF
23476 cat confdefs.h >>conftest.$ac_ext
23477 cat >>conftest.$ac_ext <<_ACEOF
23478 /* end confdefs.h. */
23479 typedef long long int ac_int64;
23482 * These are globals to discourage the compiler from folding all the
23483 * arithmetic tests down to compile-time constants.
23485 ac_int64 a = 20000001;
23486 ac_int64 b = 40000005;
23488 int does_int64_work()
23492 if (sizeof(ac_int64) != 8)
23493 return 0; /* definitely not the right size */
23495 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
23503 exit(! does_int64_work());
23506 rm -f conftest$ac_exeext
23507 if { (ac_try="$ac_link"
23508 case "(($ac_try" in
23509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23510 *) ac_try_echo=$ac_try;;
23512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23513 $as_echo "$ac_try_echo") >&5
23514 (eval "$ac_link") 2>&5
23516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23518 { (case "(($ac_try" in
23519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23520 *) ac_try_echo=$ac_try;;
23522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23523 $as_echo "$ac_try_echo") >&5
23524 (eval "$ac_try") 2>&5
23526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); }; }; then
23528 pgac_cv_type_long_long_int_64=yes
23530 $as_echo "$as_me: program exited with status $ac_status" >&5
23531 $as_echo "$as_me: failed program was:" >&5
23532 sed 's/^/| /' conftest.$ac_ext >&5
23534 ( exit $ac_status )
23535 pgac_cv_type_long_long_int_64=no
23537 rm -rf conftest.dSYM
23538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23543 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
23544 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
23546 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
23547 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
23549 cat >>confdefs.h <<\_ACEOF
23550 #define HAVE_LONG_LONG_INT_64 1
23555 if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
23556 { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
23557 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
23558 { (exit 1); exit 1; }; }
23564 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
23565 cat >conftest.$ac_ext <<_ACEOF
23568 cat confdefs.h >>conftest.$ac_ext
23569 cat >>conftest.$ac_ext <<_ACEOF
23570 /* end confdefs.h. */
23572 #define INT64CONST(x) x##LL
23573 long long int foo = INT64CONST(0x1234567890123456);
23583 rm -f conftest.$ac_objext
23584 if { (ac_try="$ac_compile"
23585 case "(($ac_try" in
23586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23587 *) ac_try_echo=$ac_try;;
23589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23590 $as_echo "$ac_try_echo") >&5
23591 (eval "$ac_compile") 2>conftest.er1
23593 grep -v '^ *+' conftest.er1 >conftest.err
23595 cat conftest.err >&5
23596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597 (exit $ac_status); } && {
23598 test -z "$ac_c_werror_flag" ||
23599 test ! -s conftest.err
23600 } && test -s conftest.$ac_objext; then
23602 cat >>confdefs.h <<\_ACEOF
23603 #define HAVE_LL_CONSTANTS 1
23607 $as_echo "$as_me: failed program was:" >&5
23608 sed 's/^/| /' conftest.$ac_ext >&5
23613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23617 # If we found "long int" is 64 bits, assume snprintf handles it. If
23618 # we found we need to use "long long int", better check. We cope with
23619 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
23620 # work, fall back to our own snprintf emulation (which we know uses %lld).
23622 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
23623 if test $pgac_need_repl_snprintf = no; then
23624 { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
23625 $as_echo_n "checking snprintf format for long long int... " >&6; }
23626 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
23627 $as_echo_n "(cached) " >&6
23629 for pgac_format in '%lld' '%qd' '%I64d'; do
23630 if test "$cross_compiling" = yes; then
23631 pgac_cv_snprintf_long_long_int_format=cross; break
23633 cat >conftest.$ac_ext <<_ACEOF
23636 cat confdefs.h >>conftest.$ac_ext
23637 cat >>conftest.$ac_ext <<_ACEOF
23638 /* end confdefs.h. */
23640 typedef long long int ac_int64;
23641 #define INT64_FORMAT "$pgac_format"
23643 ac_int64 a = 20000001;
23644 ac_int64 b = 40000005;
23646 int does_int64_snprintf_work()
23651 if (sizeof(ac_int64) != 8)
23652 return 0; /* doesn't look like the right size */
23655 snprintf(buf, 100, INT64_FORMAT, c);
23656 if (strcmp(buf, "800000140000005") != 0)
23657 return 0; /* either multiply or snprintf is busted */
23661 exit(! does_int64_snprintf_work());
23664 rm -f conftest$ac_exeext
23665 if { (ac_try="$ac_link"
23666 case "(($ac_try" in
23667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23668 *) ac_try_echo=$ac_try;;
23670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23671 $as_echo "$ac_try_echo") >&5
23672 (eval "$ac_link") 2>&5
23674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23676 { (case "(($ac_try" in
23677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23678 *) ac_try_echo=$ac_try;;
23680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23681 $as_echo "$ac_try_echo") >&5
23682 (eval "$ac_try") 2>&5
23684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685 (exit $ac_status); }; }; then
23686 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
23688 $as_echo "$as_me: program exited with status $ac_status" >&5
23689 $as_echo "$as_me: failed program was:" >&5
23690 sed 's/^/| /' conftest.$ac_ext >&5
23693 rm -rf conftest.dSYM
23694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23701 LONG_LONG_INT_FORMAT=''
23703 case $pgac_cv_snprintf_long_long_int_format in
23704 cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
23705 $as_echo "cannot test (not on host machine)" >&6; };;
23706 ?*) { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
23707 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
23708 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
23709 *) { $as_echo "$as_me:$LINENO: result: none" >&5
23710 $as_echo "none" >&6; };;
23712 if test "$LONG_LONG_INT_FORMAT" = ""; then
23713 # Force usage of our own snprintf, since system snprintf is broken
23714 pgac_need_repl_snprintf=yes
23715 LONG_LONG_INT_FORMAT='%lld'
23718 # Here if we previously decided we needed to use our own snprintf
23719 LONG_LONG_INT_FORMAT='%lld'
23721 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
23722 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
23723 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
23725 # Here if we are not using 'long long int' at all
23726 INT64_FORMAT='"%ld"'
23727 UINT64_FORMAT='"%lu"'
23731 cat >>confdefs.h <<_ACEOF
23732 #define INT64_FORMAT $INT64_FORMAT
23737 cat >>confdefs.h <<_ACEOF
23738 #define UINT64_FORMAT $UINT64_FORMAT
23742 # Now we have checked all the reasons to replace snprintf
23743 if test $pgac_need_repl_snprintf = yes; then
23745 cat >>confdefs.h <<\_ACEOF
23746 #define USE_REPL_SNPRINTF 1
23749 case " $LIBOBJS " in
23750 *" snprintf.$ac_objext "* ) ;;
23751 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
23757 # Check size of void *, size_t (enables tweaks for > 32bit address space)
23758 # The cast to long int works around a bug in the HP C Compiler
23759 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23760 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23761 # This bug is HP SR number 8606223364.
23762 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
23763 $as_echo_n "checking size of void *... " >&6; }
23764 if test "${ac_cv_sizeof_void_p+set}" = set; then
23765 $as_echo_n "(cached) " >&6
23767 if test "$cross_compiling" = yes; then
23768 # Depending upon the size, compute the lo and hi bounds.
23769 cat >conftest.$ac_ext <<_ACEOF
23772 cat confdefs.h >>conftest.$ac_ext
23773 cat >>conftest.$ac_ext <<_ACEOF
23774 /* end confdefs.h. */
23775 $ac_includes_default
23779 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
23786 rm -f conftest.$ac_objext
23787 if { (ac_try="$ac_compile"
23788 case "(($ac_try" in
23789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23790 *) ac_try_echo=$ac_try;;
23792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23793 $as_echo "$ac_try_echo") >&5
23794 (eval "$ac_compile") 2>conftest.er1
23796 grep -v '^ *+' conftest.er1 >conftest.err
23798 cat conftest.err >&5
23799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800 (exit $ac_status); } && {
23801 test -z "$ac_c_werror_flag" ||
23802 test ! -s conftest.err
23803 } && test -s conftest.$ac_objext; then
23806 cat >conftest.$ac_ext <<_ACEOF
23809 cat confdefs.h >>conftest.$ac_ext
23810 cat >>conftest.$ac_ext <<_ACEOF
23811 /* end confdefs.h. */
23812 $ac_includes_default
23816 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
23823 rm -f conftest.$ac_objext
23824 if { (ac_try="$ac_compile"
23825 case "(($ac_try" in
23826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23827 *) ac_try_echo=$ac_try;;
23829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23830 $as_echo "$ac_try_echo") >&5
23831 (eval "$ac_compile") 2>conftest.er1
23833 grep -v '^ *+' conftest.er1 >conftest.err
23835 cat conftest.err >&5
23836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23837 (exit $ac_status); } && {
23838 test -z "$ac_c_werror_flag" ||
23839 test ! -s conftest.err
23840 } && test -s conftest.$ac_objext; then
23841 ac_hi=$ac_mid; break
23843 $as_echo "$as_me: failed program was:" >&5
23844 sed 's/^/| /' conftest.$ac_ext >&5
23846 ac_lo=`expr $ac_mid + 1`
23847 if test $ac_lo -le $ac_mid; then
23851 ac_mid=`expr 2 '*' $ac_mid + 1`
23854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23857 $as_echo "$as_me: failed program was:" >&5
23858 sed 's/^/| /' conftest.$ac_ext >&5
23860 cat >conftest.$ac_ext <<_ACEOF
23863 cat confdefs.h >>conftest.$ac_ext
23864 cat >>conftest.$ac_ext <<_ACEOF
23865 /* end confdefs.h. */
23866 $ac_includes_default
23870 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
23877 rm -f conftest.$ac_objext
23878 if { (ac_try="$ac_compile"
23879 case "(($ac_try" in
23880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23881 *) ac_try_echo=$ac_try;;
23883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23884 $as_echo "$ac_try_echo") >&5
23885 (eval "$ac_compile") 2>conftest.er1
23887 grep -v '^ *+' conftest.er1 >conftest.err
23889 cat conftest.err >&5
23890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); } && {
23892 test -z "$ac_c_werror_flag" ||
23893 test ! -s conftest.err
23894 } && test -s conftest.$ac_objext; then
23897 cat >conftest.$ac_ext <<_ACEOF
23900 cat confdefs.h >>conftest.$ac_ext
23901 cat >>conftest.$ac_ext <<_ACEOF
23902 /* end confdefs.h. */
23903 $ac_includes_default
23907 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
23914 rm -f conftest.$ac_objext
23915 if { (ac_try="$ac_compile"
23916 case "(($ac_try" in
23917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23918 *) ac_try_echo=$ac_try;;
23920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23921 $as_echo "$ac_try_echo") >&5
23922 (eval "$ac_compile") 2>conftest.er1
23924 grep -v '^ *+' conftest.er1 >conftest.err
23926 cat conftest.err >&5
23927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); } && {
23929 test -z "$ac_c_werror_flag" ||
23930 test ! -s conftest.err
23931 } && test -s conftest.$ac_objext; then
23932 ac_lo=$ac_mid; break
23934 $as_echo "$as_me: failed program was:" >&5
23935 sed 's/^/| /' conftest.$ac_ext >&5
23937 ac_hi=`expr '(' $ac_mid ')' - 1`
23938 if test $ac_mid -le $ac_hi; then
23942 ac_mid=`expr 2 '*' $ac_mid`
23945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23948 $as_echo "$as_me: failed program was:" >&5
23949 sed 's/^/| /' conftest.$ac_ext >&5
23954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23958 # Binary search between lo and hi bounds.
23959 while test "x$ac_lo" != "x$ac_hi"; do
23960 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23961 cat >conftest.$ac_ext <<_ACEOF
23964 cat confdefs.h >>conftest.$ac_ext
23965 cat >>conftest.$ac_ext <<_ACEOF
23966 /* end confdefs.h. */
23967 $ac_includes_default
23971 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
23978 rm -f conftest.$ac_objext
23979 if { (ac_try="$ac_compile"
23980 case "(($ac_try" in
23981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23982 *) ac_try_echo=$ac_try;;
23984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23985 $as_echo "$ac_try_echo") >&5
23986 (eval "$ac_compile") 2>conftest.er1
23988 grep -v '^ *+' conftest.er1 >conftest.err
23990 cat conftest.err >&5
23991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23992 (exit $ac_status); } && {
23993 test -z "$ac_c_werror_flag" ||
23994 test ! -s conftest.err
23995 } && test -s conftest.$ac_objext; then
23998 $as_echo "$as_me: failed program was:" >&5
23999 sed 's/^/| /' conftest.$ac_ext >&5
24001 ac_lo=`expr '(' $ac_mid ')' + 1`
24004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24007 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24008 '') if test "$ac_cv_type_void_p" = yes; then
24009 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24011 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24012 See \`config.log' for more details." >&5
24013 $as_echo "$as_me: error: cannot compute sizeof (void *)
24014 See \`config.log' for more details." >&2;}
24015 { (exit 77); exit 77; }; }; }
24017 ac_cv_sizeof_void_p=0
24021 cat >conftest.$ac_ext <<_ACEOF
24024 cat confdefs.h >>conftest.$ac_ext
24025 cat >>conftest.$ac_ext <<_ACEOF
24026 /* end confdefs.h. */
24027 $ac_includes_default
24028 static long int longval () { return (long int) (sizeof (void *)); }
24029 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24031 #include <stdlib.h>
24036 FILE *f = fopen ("conftest.val", "w");
24039 if (((long int) (sizeof (void *))) < 0)
24041 long int i = longval ();
24042 if (i != ((long int) (sizeof (void *))))
24044 fprintf (f, "%ld", i);
24048 unsigned long int i = ulongval ();
24049 if (i != ((long int) (sizeof (void *))))
24051 fprintf (f, "%lu", i);
24053 /* Do not output a trailing newline, as this causes \r\n confusion
24054 on some platforms. */
24055 return ferror (f) || fclose (f) != 0;
24061 rm -f conftest$ac_exeext
24062 if { (ac_try="$ac_link"
24063 case "(($ac_try" in
24064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24065 *) ac_try_echo=$ac_try;;
24067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24068 $as_echo "$ac_try_echo") >&5
24069 (eval "$ac_link") 2>&5
24071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24073 { (case "(($ac_try" in
24074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24075 *) ac_try_echo=$ac_try;;
24077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24078 $as_echo "$ac_try_echo") >&5
24079 (eval "$ac_try") 2>&5
24081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24082 (exit $ac_status); }; }; then
24083 ac_cv_sizeof_void_p=`cat conftest.val`
24085 $as_echo "$as_me: program exited with status $ac_status" >&5
24086 $as_echo "$as_me: failed program was:" >&5
24087 sed 's/^/| /' conftest.$ac_ext >&5
24089 ( exit $ac_status )
24090 if test "$ac_cv_type_void_p" = yes; then
24091 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24093 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24094 See \`config.log' for more details." >&5
24095 $as_echo "$as_me: error: cannot compute sizeof (void *)
24096 See \`config.log' for more details." >&2;}
24097 { (exit 77); exit 77; }; }; }
24099 ac_cv_sizeof_void_p=0
24102 rm -rf conftest.dSYM
24103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24107 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24108 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24112 cat >>confdefs.h <<_ACEOF
24113 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24117 # The cast to long int works around a bug in the HP C Compiler
24118 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24119 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24120 # This bug is HP SR number 8606223364.
24121 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24122 $as_echo_n "checking size of size_t... " >&6; }
24123 if test "${ac_cv_sizeof_size_t+set}" = set; then
24124 $as_echo_n "(cached) " >&6
24126 if test "$cross_compiling" = yes; then
24127 # Depending upon the size, compute the lo and hi bounds.
24128 cat >conftest.$ac_ext <<_ACEOF
24131 cat confdefs.h >>conftest.$ac_ext
24132 cat >>conftest.$ac_ext <<_ACEOF
24133 /* end confdefs.h. */
24134 $ac_includes_default
24138 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24145 rm -f conftest.$ac_objext
24146 if { (ac_try="$ac_compile"
24147 case "(($ac_try" in
24148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24149 *) ac_try_echo=$ac_try;;
24151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24152 $as_echo "$ac_try_echo") >&5
24153 (eval "$ac_compile") 2>conftest.er1
24155 grep -v '^ *+' conftest.er1 >conftest.err
24157 cat conftest.err >&5
24158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159 (exit $ac_status); } && {
24160 test -z "$ac_c_werror_flag" ||
24161 test ! -s conftest.err
24162 } && test -s conftest.$ac_objext; then
24165 cat >conftest.$ac_ext <<_ACEOF
24168 cat confdefs.h >>conftest.$ac_ext
24169 cat >>conftest.$ac_ext <<_ACEOF
24170 /* end confdefs.h. */
24171 $ac_includes_default
24175 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24182 rm -f conftest.$ac_objext
24183 if { (ac_try="$ac_compile"
24184 case "(($ac_try" in
24185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24186 *) ac_try_echo=$ac_try;;
24188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24189 $as_echo "$ac_try_echo") >&5
24190 (eval "$ac_compile") 2>conftest.er1
24192 grep -v '^ *+' conftest.er1 >conftest.err
24194 cat conftest.err >&5
24195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24196 (exit $ac_status); } && {
24197 test -z "$ac_c_werror_flag" ||
24198 test ! -s conftest.err
24199 } && test -s conftest.$ac_objext; then
24200 ac_hi=$ac_mid; break
24202 $as_echo "$as_me: failed program was:" >&5
24203 sed 's/^/| /' conftest.$ac_ext >&5
24205 ac_lo=`expr $ac_mid + 1`
24206 if test $ac_lo -le $ac_mid; then
24210 ac_mid=`expr 2 '*' $ac_mid + 1`
24213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24216 $as_echo "$as_me: failed program was:" >&5
24217 sed 's/^/| /' conftest.$ac_ext >&5
24219 cat >conftest.$ac_ext <<_ACEOF
24222 cat confdefs.h >>conftest.$ac_ext
24223 cat >>conftest.$ac_ext <<_ACEOF
24224 /* end confdefs.h. */
24225 $ac_includes_default
24229 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
24236 rm -f conftest.$ac_objext
24237 if { (ac_try="$ac_compile"
24238 case "(($ac_try" in
24239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24240 *) ac_try_echo=$ac_try;;
24242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24243 $as_echo "$ac_try_echo") >&5
24244 (eval "$ac_compile") 2>conftest.er1
24246 grep -v '^ *+' conftest.er1 >conftest.err
24248 cat conftest.err >&5
24249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250 (exit $ac_status); } && {
24251 test -z "$ac_c_werror_flag" ||
24252 test ! -s conftest.err
24253 } && test -s conftest.$ac_objext; then
24256 cat >conftest.$ac_ext <<_ACEOF
24259 cat confdefs.h >>conftest.$ac_ext
24260 cat >>conftest.$ac_ext <<_ACEOF
24261 /* end confdefs.h. */
24262 $ac_includes_default
24266 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
24273 rm -f conftest.$ac_objext
24274 if { (ac_try="$ac_compile"
24275 case "(($ac_try" in
24276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24277 *) ac_try_echo=$ac_try;;
24279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24280 $as_echo "$ac_try_echo") >&5
24281 (eval "$ac_compile") 2>conftest.er1
24283 grep -v '^ *+' conftest.er1 >conftest.err
24285 cat conftest.err >&5
24286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287 (exit $ac_status); } && {
24288 test -z "$ac_c_werror_flag" ||
24289 test ! -s conftest.err
24290 } && test -s conftest.$ac_objext; then
24291 ac_lo=$ac_mid; break
24293 $as_echo "$as_me: failed program was:" >&5
24294 sed 's/^/| /' conftest.$ac_ext >&5
24296 ac_hi=`expr '(' $ac_mid ')' - 1`
24297 if test $ac_mid -le $ac_hi; then
24301 ac_mid=`expr 2 '*' $ac_mid`
24304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24307 $as_echo "$as_me: failed program was:" >&5
24308 sed 's/^/| /' conftest.$ac_ext >&5
24313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24317 # Binary search between lo and hi bounds.
24318 while test "x$ac_lo" != "x$ac_hi"; do
24319 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24320 cat >conftest.$ac_ext <<_ACEOF
24323 cat confdefs.h >>conftest.$ac_ext
24324 cat >>conftest.$ac_ext <<_ACEOF
24325 /* end confdefs.h. */
24326 $ac_includes_default
24330 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24337 rm -f conftest.$ac_objext
24338 if { (ac_try="$ac_compile"
24339 case "(($ac_try" in
24340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24341 *) ac_try_echo=$ac_try;;
24343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24344 $as_echo "$ac_try_echo") >&5
24345 (eval "$ac_compile") 2>conftest.er1
24347 grep -v '^ *+' conftest.er1 >conftest.err
24349 cat conftest.err >&5
24350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); } && {
24352 test -z "$ac_c_werror_flag" ||
24353 test ! -s conftest.err
24354 } && test -s conftest.$ac_objext; then
24357 $as_echo "$as_me: failed program was:" >&5
24358 sed 's/^/| /' conftest.$ac_ext >&5
24360 ac_lo=`expr '(' $ac_mid ')' + 1`
24363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24366 ?*) ac_cv_sizeof_size_t=$ac_lo;;
24367 '') if test "$ac_cv_type_size_t" = yes; then
24368 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24370 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24371 See \`config.log' for more details." >&5
24372 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24373 See \`config.log' for more details." >&2;}
24374 { (exit 77); exit 77; }; }; }
24376 ac_cv_sizeof_size_t=0
24380 cat >conftest.$ac_ext <<_ACEOF
24383 cat confdefs.h >>conftest.$ac_ext
24384 cat >>conftest.$ac_ext <<_ACEOF
24385 /* end confdefs.h. */
24386 $ac_includes_default
24387 static long int longval () { return (long int) (sizeof (size_t)); }
24388 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
24390 #include <stdlib.h>
24395 FILE *f = fopen ("conftest.val", "w");
24398 if (((long int) (sizeof (size_t))) < 0)
24400 long int i = longval ();
24401 if (i != ((long int) (sizeof (size_t))))
24403 fprintf (f, "%ld", i);
24407 unsigned long int i = ulongval ();
24408 if (i != ((long int) (sizeof (size_t))))
24410 fprintf (f, "%lu", i);
24412 /* Do not output a trailing newline, as this causes \r\n confusion
24413 on some platforms. */
24414 return ferror (f) || fclose (f) != 0;
24420 rm -f conftest$ac_exeext
24421 if { (ac_try="$ac_link"
24422 case "(($ac_try" in
24423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24424 *) ac_try_echo=$ac_try;;
24426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24427 $as_echo "$ac_try_echo") >&5
24428 (eval "$ac_link") 2>&5
24430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24432 { (case "(($ac_try" in
24433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24434 *) ac_try_echo=$ac_try;;
24436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24437 $as_echo "$ac_try_echo") >&5
24438 (eval "$ac_try") 2>&5
24440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24441 (exit $ac_status); }; }; then
24442 ac_cv_sizeof_size_t=`cat conftest.val`
24444 $as_echo "$as_me: program exited with status $ac_status" >&5
24445 $as_echo "$as_me: failed program was:" >&5
24446 sed 's/^/| /' conftest.$ac_ext >&5
24448 ( exit $ac_status )
24449 if test "$ac_cv_type_size_t" = yes; then
24450 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24452 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24453 See \`config.log' for more details." >&5
24454 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24455 See \`config.log' for more details." >&2;}
24456 { (exit 77); exit 77; }; }; }
24458 ac_cv_sizeof_size_t=0
24461 rm -rf conftest.dSYM
24462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24466 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
24467 $as_echo "$ac_cv_sizeof_size_t" >&6; }
24471 cat >>confdefs.h <<_ACEOF
24472 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24476 # The cast to long int works around a bug in the HP C Compiler
24477 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24478 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24479 # This bug is HP SR number 8606223364.
24480 { $as_echo "$as_me:$LINENO: checking size of long" >&5
24481 $as_echo_n "checking size of long... " >&6; }
24482 if test "${ac_cv_sizeof_long+set}" = set; then
24483 $as_echo_n "(cached) " >&6
24485 if test "$cross_compiling" = yes; then
24486 # Depending upon the size, compute the lo and hi bounds.
24487 cat >conftest.$ac_ext <<_ACEOF
24490 cat confdefs.h >>conftest.$ac_ext
24491 cat >>conftest.$ac_ext <<_ACEOF
24492 /* end confdefs.h. */
24493 $ac_includes_default
24497 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
24504 rm -f conftest.$ac_objext
24505 if { (ac_try="$ac_compile"
24506 case "(($ac_try" in
24507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24508 *) ac_try_echo=$ac_try;;
24510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24511 $as_echo "$ac_try_echo") >&5
24512 (eval "$ac_compile") 2>conftest.er1
24514 grep -v '^ *+' conftest.er1 >conftest.err
24516 cat conftest.err >&5
24517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518 (exit $ac_status); } && {
24519 test -z "$ac_c_werror_flag" ||
24520 test ! -s conftest.err
24521 } && test -s conftest.$ac_objext; then
24524 cat >conftest.$ac_ext <<_ACEOF
24527 cat confdefs.h >>conftest.$ac_ext
24528 cat >>conftest.$ac_ext <<_ACEOF
24529 /* end confdefs.h. */
24530 $ac_includes_default
24534 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
24541 rm -f conftest.$ac_objext
24542 if { (ac_try="$ac_compile"
24543 case "(($ac_try" in
24544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24545 *) ac_try_echo=$ac_try;;
24547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24548 $as_echo "$ac_try_echo") >&5
24549 (eval "$ac_compile") 2>conftest.er1
24551 grep -v '^ *+' conftest.er1 >conftest.err
24553 cat conftest.err >&5
24554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555 (exit $ac_status); } && {
24556 test -z "$ac_c_werror_flag" ||
24557 test ! -s conftest.err
24558 } && test -s conftest.$ac_objext; then
24559 ac_hi=$ac_mid; break
24561 $as_echo "$as_me: failed program was:" >&5
24562 sed 's/^/| /' conftest.$ac_ext >&5
24564 ac_lo=`expr $ac_mid + 1`
24565 if test $ac_lo -le $ac_mid; then
24569 ac_mid=`expr 2 '*' $ac_mid + 1`
24572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24575 $as_echo "$as_me: failed program was:" >&5
24576 sed 's/^/| /' conftest.$ac_ext >&5
24578 cat >conftest.$ac_ext <<_ACEOF
24581 cat confdefs.h >>conftest.$ac_ext
24582 cat >>conftest.$ac_ext <<_ACEOF
24583 /* end confdefs.h. */
24584 $ac_includes_default
24588 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
24595 rm -f conftest.$ac_objext
24596 if { (ac_try="$ac_compile"
24597 case "(($ac_try" in
24598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24599 *) ac_try_echo=$ac_try;;
24601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24602 $as_echo "$ac_try_echo") >&5
24603 (eval "$ac_compile") 2>conftest.er1
24605 grep -v '^ *+' conftest.er1 >conftest.err
24607 cat conftest.err >&5
24608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609 (exit $ac_status); } && {
24610 test -z "$ac_c_werror_flag" ||
24611 test ! -s conftest.err
24612 } && test -s conftest.$ac_objext; then
24615 cat >conftest.$ac_ext <<_ACEOF
24618 cat confdefs.h >>conftest.$ac_ext
24619 cat >>conftest.$ac_ext <<_ACEOF
24620 /* end confdefs.h. */
24621 $ac_includes_default
24625 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
24632 rm -f conftest.$ac_objext
24633 if { (ac_try="$ac_compile"
24634 case "(($ac_try" in
24635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24636 *) ac_try_echo=$ac_try;;
24638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24639 $as_echo "$ac_try_echo") >&5
24640 (eval "$ac_compile") 2>conftest.er1
24642 grep -v '^ *+' conftest.er1 >conftest.err
24644 cat conftest.err >&5
24645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24646 (exit $ac_status); } && {
24647 test -z "$ac_c_werror_flag" ||
24648 test ! -s conftest.err
24649 } && test -s conftest.$ac_objext; then
24650 ac_lo=$ac_mid; break
24652 $as_echo "$as_me: failed program was:" >&5
24653 sed 's/^/| /' conftest.$ac_ext >&5
24655 ac_hi=`expr '(' $ac_mid ')' - 1`
24656 if test $ac_mid -le $ac_hi; then
24660 ac_mid=`expr 2 '*' $ac_mid`
24663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24666 $as_echo "$as_me: failed program was:" >&5
24667 sed 's/^/| /' conftest.$ac_ext >&5
24672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24676 # Binary search between lo and hi bounds.
24677 while test "x$ac_lo" != "x$ac_hi"; do
24678 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24679 cat >conftest.$ac_ext <<_ACEOF
24682 cat confdefs.h >>conftest.$ac_ext
24683 cat >>conftest.$ac_ext <<_ACEOF
24684 /* end confdefs.h. */
24685 $ac_includes_default
24689 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
24696 rm -f conftest.$ac_objext
24697 if { (ac_try="$ac_compile"
24698 case "(($ac_try" in
24699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24700 *) ac_try_echo=$ac_try;;
24702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24703 $as_echo "$ac_try_echo") >&5
24704 (eval "$ac_compile") 2>conftest.er1
24706 grep -v '^ *+' conftest.er1 >conftest.err
24708 cat conftest.err >&5
24709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710 (exit $ac_status); } && {
24711 test -z "$ac_c_werror_flag" ||
24712 test ! -s conftest.err
24713 } && test -s conftest.$ac_objext; then
24716 $as_echo "$as_me: failed program was:" >&5
24717 sed 's/^/| /' conftest.$ac_ext >&5
24719 ac_lo=`expr '(' $ac_mid ')' + 1`
24722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24725 ?*) ac_cv_sizeof_long=$ac_lo;;
24726 '') if test "$ac_cv_type_long" = yes; then
24727 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24729 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24730 See \`config.log' for more details." >&5
24731 $as_echo "$as_me: error: cannot compute sizeof (long)
24732 See \`config.log' for more details." >&2;}
24733 { (exit 77); exit 77; }; }; }
24735 ac_cv_sizeof_long=0
24739 cat >conftest.$ac_ext <<_ACEOF
24742 cat confdefs.h >>conftest.$ac_ext
24743 cat >>conftest.$ac_ext <<_ACEOF
24744 /* end confdefs.h. */
24745 $ac_includes_default
24746 static long int longval () { return (long int) (sizeof (long)); }
24747 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
24749 #include <stdlib.h>
24754 FILE *f = fopen ("conftest.val", "w");
24757 if (((long int) (sizeof (long))) < 0)
24759 long int i = longval ();
24760 if (i != ((long int) (sizeof (long))))
24762 fprintf (f, "%ld", i);
24766 unsigned long int i = ulongval ();
24767 if (i != ((long int) (sizeof (long))))
24769 fprintf (f, "%lu", i);
24771 /* Do not output a trailing newline, as this causes \r\n confusion
24772 on some platforms. */
24773 return ferror (f) || fclose (f) != 0;
24779 rm -f conftest$ac_exeext
24780 if { (ac_try="$ac_link"
24781 case "(($ac_try" in
24782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24783 *) ac_try_echo=$ac_try;;
24785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24786 $as_echo "$ac_try_echo") >&5
24787 (eval "$ac_link") 2>&5
24789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24791 { (case "(($ac_try" in
24792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24793 *) ac_try_echo=$ac_try;;
24795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24796 $as_echo "$ac_try_echo") >&5
24797 (eval "$ac_try") 2>&5
24799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800 (exit $ac_status); }; }; then
24801 ac_cv_sizeof_long=`cat conftest.val`
24803 $as_echo "$as_me: program exited with status $ac_status" >&5
24804 $as_echo "$as_me: failed program was:" >&5
24805 sed 's/^/| /' conftest.$ac_ext >&5
24807 ( exit $ac_status )
24808 if test "$ac_cv_type_long" = yes; then
24809 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24811 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24812 See \`config.log' for more details." >&5
24813 $as_echo "$as_me: error: cannot compute sizeof (long)
24814 See \`config.log' for more details." >&2;}
24815 { (exit 77); exit 77; }; }; }
24817 ac_cv_sizeof_long=0
24820 rm -rf conftest.dSYM
24821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24825 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
24826 $as_echo "$ac_cv_sizeof_long" >&6; }
24830 cat >>confdefs.h <<_ACEOF
24831 #define SIZEOF_LONG $ac_cv_sizeof_long
24836 # Decide whether float4 is passed by value: user-selectable, enabled by default
24837 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
24838 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
24841 # Check whether --enable-float4-byval was given.
24842 if test "${enable_float4_byval+set}" = set; then
24843 enableval=$enable_float4_byval;
24847 cat >>confdefs.h <<\_ACEOF
24848 #define USE_FLOAT4_BYVAL 1
24851 float4passbyval=true
24854 float4passbyval=false
24857 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
24858 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
24859 { (exit 1); exit 1; }; }
24864 enable_float4_byval=yes
24866 cat >>confdefs.h <<\_ACEOF
24867 #define USE_FLOAT4_BYVAL 1
24870 float4passbyval=true
24874 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
24875 $as_echo "$enable_float4_byval" >&6; }
24877 cat >>confdefs.h <<_ACEOF
24878 #define FLOAT4PASSBYVAL $float4passbyval
24882 # Decide whether float8 is passed by value.
24883 # Note: this setting also controls int8 and related types such as timestamp.
24884 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
24885 # If not, trying to select it is an error.
24886 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
24887 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
24888 if test $ac_cv_sizeof_void_p -ge 8 ; then
24891 # Check whether --enable-float8-byval was given.
24892 if test "${enable_float8_byval+set}" = set; then
24893 enableval=$enable_float8_byval;
24902 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
24903 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
24904 { (exit 1); exit 1; }; }
24909 enable_float8_byval=yes
24917 # Check whether --enable-float8-byval was given.
24918 if test "${enable_float8_byval+set}" = set; then
24919 enableval=$enable_float8_byval;
24928 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
24929 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
24930 { (exit 1); exit 1; }; }
24935 enable_float8_byval=no
24940 if test "$enable_float8_byval" = yes ; then
24941 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
24942 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
24943 { (exit 1); exit 1; }; }
24946 if test "$enable_float8_byval" = yes ; then
24948 cat >>confdefs.h <<\_ACEOF
24949 #define USE_FLOAT8_BYVAL 1
24952 float8passbyval=true
24954 float8passbyval=false
24956 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
24957 $as_echo "$enable_float8_byval" >&6; }
24959 cat >>confdefs.h <<_ACEOF
24960 #define FLOAT8PASSBYVAL $float8passbyval
24964 # Determine memory alignment requirements for the basic C data types.
24966 # The cast to long int works around a bug in the HP C Compiler,
24967 # see AC_CHECK_SIZEOF for more information.
24968 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
24969 $as_echo_n "checking alignment of short... " >&6; }
24970 if test "${ac_cv_alignof_short+set}" = set; then
24971 $as_echo_n "(cached) " >&6
24973 if test "$cross_compiling" = yes; then
24974 # Depending upon the size, compute the lo and hi bounds.
24975 cat >conftest.$ac_ext <<_ACEOF
24978 cat confdefs.h >>conftest.$ac_ext
24979 cat >>conftest.$ac_ext <<_ACEOF
24980 /* end confdefs.h. */
24981 $ac_includes_default
24983 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24985 typedef struct { char x; short y; } ac__type_alignof_;
24989 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24996 rm -f conftest.$ac_objext
24997 if { (ac_try="$ac_compile"
24998 case "(($ac_try" in
24999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25000 *) ac_try_echo=$ac_try;;
25002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25003 $as_echo "$ac_try_echo") >&5
25004 (eval "$ac_compile") 2>conftest.er1
25006 grep -v '^ *+' conftest.er1 >conftest.err
25008 cat conftest.err >&5
25009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); } && {
25011 test -z "$ac_c_werror_flag" ||
25012 test ! -s conftest.err
25013 } && test -s conftest.$ac_objext; then
25016 cat >conftest.$ac_ext <<_ACEOF
25019 cat confdefs.h >>conftest.$ac_ext
25020 cat >>conftest.$ac_ext <<_ACEOF
25021 /* end confdefs.h. */
25022 $ac_includes_default
25024 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25026 typedef struct { char x; short y; } ac__type_alignof_;
25030 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25037 rm -f conftest.$ac_objext
25038 if { (ac_try="$ac_compile"
25039 case "(($ac_try" in
25040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25041 *) ac_try_echo=$ac_try;;
25043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25044 $as_echo "$ac_try_echo") >&5
25045 (eval "$ac_compile") 2>conftest.er1
25047 grep -v '^ *+' conftest.er1 >conftest.err
25049 cat conftest.err >&5
25050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051 (exit $ac_status); } && {
25052 test -z "$ac_c_werror_flag" ||
25053 test ! -s conftest.err
25054 } && test -s conftest.$ac_objext; then
25055 ac_hi=$ac_mid; break
25057 $as_echo "$as_me: failed program was:" >&5
25058 sed 's/^/| /' conftest.$ac_ext >&5
25060 ac_lo=`expr $ac_mid + 1`
25061 if test $ac_lo -le $ac_mid; then
25065 ac_mid=`expr 2 '*' $ac_mid + 1`
25068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25071 $as_echo "$as_me: failed program was:" >&5
25072 sed 's/^/| /' conftest.$ac_ext >&5
25074 cat >conftest.$ac_ext <<_ACEOF
25077 cat confdefs.h >>conftest.$ac_ext
25078 cat >>conftest.$ac_ext <<_ACEOF
25079 /* end confdefs.h. */
25080 $ac_includes_default
25082 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25084 typedef struct { char x; short y; } ac__type_alignof_;
25088 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25095 rm -f conftest.$ac_objext
25096 if { (ac_try="$ac_compile"
25097 case "(($ac_try" in
25098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25099 *) ac_try_echo=$ac_try;;
25101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25102 $as_echo "$ac_try_echo") >&5
25103 (eval "$ac_compile") 2>conftest.er1
25105 grep -v '^ *+' conftest.er1 >conftest.err
25107 cat conftest.err >&5
25108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109 (exit $ac_status); } && {
25110 test -z "$ac_c_werror_flag" ||
25111 test ! -s conftest.err
25112 } && test -s conftest.$ac_objext; then
25115 cat >conftest.$ac_ext <<_ACEOF
25118 cat confdefs.h >>conftest.$ac_ext
25119 cat >>conftest.$ac_ext <<_ACEOF
25120 /* end confdefs.h. */
25121 $ac_includes_default
25123 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25125 typedef struct { char x; short y; } ac__type_alignof_;
25129 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25136 rm -f conftest.$ac_objext
25137 if { (ac_try="$ac_compile"
25138 case "(($ac_try" in
25139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25140 *) ac_try_echo=$ac_try;;
25142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25143 $as_echo "$ac_try_echo") >&5
25144 (eval "$ac_compile") 2>conftest.er1
25146 grep -v '^ *+' conftest.er1 >conftest.err
25148 cat conftest.err >&5
25149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150 (exit $ac_status); } && {
25151 test -z "$ac_c_werror_flag" ||
25152 test ! -s conftest.err
25153 } && test -s conftest.$ac_objext; then
25154 ac_lo=$ac_mid; break
25156 $as_echo "$as_me: failed program was:" >&5
25157 sed 's/^/| /' conftest.$ac_ext >&5
25159 ac_hi=`expr '(' $ac_mid ')' - 1`
25160 if test $ac_mid -le $ac_hi; then
25164 ac_mid=`expr 2 '*' $ac_mid`
25167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25170 $as_echo "$as_me: failed program was:" >&5
25171 sed 's/^/| /' conftest.$ac_ext >&5
25176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25180 # Binary search between lo and hi bounds.
25181 while test "x$ac_lo" != "x$ac_hi"; do
25182 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25183 cat >conftest.$ac_ext <<_ACEOF
25186 cat confdefs.h >>conftest.$ac_ext
25187 cat >>conftest.$ac_ext <<_ACEOF
25188 /* end confdefs.h. */
25189 $ac_includes_default
25191 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25193 typedef struct { char x; short y; } ac__type_alignof_;
25197 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25204 rm -f conftest.$ac_objext
25205 if { (ac_try="$ac_compile"
25206 case "(($ac_try" in
25207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25208 *) ac_try_echo=$ac_try;;
25210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25211 $as_echo "$ac_try_echo") >&5
25212 (eval "$ac_compile") 2>conftest.er1
25214 grep -v '^ *+' conftest.er1 >conftest.err
25216 cat conftest.err >&5
25217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25218 (exit $ac_status); } && {
25219 test -z "$ac_c_werror_flag" ||
25220 test ! -s conftest.err
25221 } && test -s conftest.$ac_objext; then
25224 $as_echo "$as_me: failed program was:" >&5
25225 sed 's/^/| /' conftest.$ac_ext >&5
25227 ac_lo=`expr '(' $ac_mid ')' + 1`
25230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25233 ?*) ac_cv_alignof_short=$ac_lo;;
25234 '') if test "$ac_cv_type_short" = yes; then
25235 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25237 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25238 See \`config.log' for more details." >&5
25239 $as_echo "$as_me: error: cannot compute alignment of short
25240 See \`config.log' for more details." >&2;}
25241 { (exit 77); exit 77; }; }; }
25243 ac_cv_alignof_short=0
25247 cat >conftest.$ac_ext <<_ACEOF
25250 cat confdefs.h >>conftest.$ac_ext
25251 cat >>conftest.$ac_ext <<_ACEOF
25252 /* end confdefs.h. */
25253 $ac_includes_default
25255 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25257 typedef struct { char x; short y; } ac__type_alignof_;
25258 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25259 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25261 #include <stdlib.h>
25266 FILE *f = fopen ("conftest.val", "w");
25269 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25271 long int i = longval ();
25272 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25274 fprintf (f, "%ld", i);
25278 unsigned long int i = ulongval ();
25279 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25281 fprintf (f, "%lu", i);
25283 /* Do not output a trailing newline, as this causes \r\n confusion
25284 on some platforms. */
25285 return ferror (f) || fclose (f) != 0;
25291 rm -f conftest$ac_exeext
25292 if { (ac_try="$ac_link"
25293 case "(($ac_try" in
25294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25295 *) ac_try_echo=$ac_try;;
25297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25298 $as_echo "$ac_try_echo") >&5
25299 (eval "$ac_link") 2>&5
25301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25303 { (case "(($ac_try" in
25304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25305 *) ac_try_echo=$ac_try;;
25307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25308 $as_echo "$ac_try_echo") >&5
25309 (eval "$ac_try") 2>&5
25311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312 (exit $ac_status); }; }; then
25313 ac_cv_alignof_short=`cat conftest.val`
25315 $as_echo "$as_me: program exited with status $ac_status" >&5
25316 $as_echo "$as_me: failed program was:" >&5
25317 sed 's/^/| /' conftest.$ac_ext >&5
25319 ( exit $ac_status )
25320 if test "$ac_cv_type_short" = yes; then
25321 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25323 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25324 See \`config.log' for more details." >&5
25325 $as_echo "$as_me: error: cannot compute alignment of short
25326 See \`config.log' for more details." >&2;}
25327 { (exit 77); exit 77; }; }; }
25329 ac_cv_alignof_short=0
25332 rm -rf conftest.dSYM
25333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25337 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
25338 $as_echo "$ac_cv_alignof_short" >&6; }
25342 cat >>confdefs.h <<_ACEOF
25343 #define ALIGNOF_SHORT $ac_cv_alignof_short
25347 # The cast to long int works around a bug in the HP C Compiler,
25348 # see AC_CHECK_SIZEOF for more information.
25349 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
25350 $as_echo_n "checking alignment of int... " >&6; }
25351 if test "${ac_cv_alignof_int+set}" = set; then
25352 $as_echo_n "(cached) " >&6
25354 if test "$cross_compiling" = yes; then
25355 # Depending upon the size, compute the lo and hi bounds.
25356 cat >conftest.$ac_ext <<_ACEOF
25359 cat confdefs.h >>conftest.$ac_ext
25360 cat >>conftest.$ac_ext <<_ACEOF
25361 /* end confdefs.h. */
25362 $ac_includes_default
25364 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25366 typedef struct { char x; int y; } ac__type_alignof_;
25370 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25377 rm -f conftest.$ac_objext
25378 if { (ac_try="$ac_compile"
25379 case "(($ac_try" in
25380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25381 *) ac_try_echo=$ac_try;;
25383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25384 $as_echo "$ac_try_echo") >&5
25385 (eval "$ac_compile") 2>conftest.er1
25387 grep -v '^ *+' conftest.er1 >conftest.err
25389 cat conftest.err >&5
25390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391 (exit $ac_status); } && {
25392 test -z "$ac_c_werror_flag" ||
25393 test ! -s conftest.err
25394 } && test -s conftest.$ac_objext; then
25397 cat >conftest.$ac_ext <<_ACEOF
25400 cat confdefs.h >>conftest.$ac_ext
25401 cat >>conftest.$ac_ext <<_ACEOF
25402 /* end confdefs.h. */
25403 $ac_includes_default
25405 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25407 typedef struct { char x; int y; } ac__type_alignof_;
25411 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25418 rm -f conftest.$ac_objext
25419 if { (ac_try="$ac_compile"
25420 case "(($ac_try" in
25421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25422 *) ac_try_echo=$ac_try;;
25424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25425 $as_echo "$ac_try_echo") >&5
25426 (eval "$ac_compile") 2>conftest.er1
25428 grep -v '^ *+' conftest.er1 >conftest.err
25430 cat conftest.err >&5
25431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432 (exit $ac_status); } && {
25433 test -z "$ac_c_werror_flag" ||
25434 test ! -s conftest.err
25435 } && test -s conftest.$ac_objext; then
25436 ac_hi=$ac_mid; break
25438 $as_echo "$as_me: failed program was:" >&5
25439 sed 's/^/| /' conftest.$ac_ext >&5
25441 ac_lo=`expr $ac_mid + 1`
25442 if test $ac_lo -le $ac_mid; then
25446 ac_mid=`expr 2 '*' $ac_mid + 1`
25449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25452 $as_echo "$as_me: failed program was:" >&5
25453 sed 's/^/| /' conftest.$ac_ext >&5
25455 cat >conftest.$ac_ext <<_ACEOF
25458 cat confdefs.h >>conftest.$ac_ext
25459 cat >>conftest.$ac_ext <<_ACEOF
25460 /* end confdefs.h. */
25461 $ac_includes_default
25463 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25465 typedef struct { char x; int y; } ac__type_alignof_;
25469 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25476 rm -f conftest.$ac_objext
25477 if { (ac_try="$ac_compile"
25478 case "(($ac_try" in
25479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25480 *) ac_try_echo=$ac_try;;
25482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25483 $as_echo "$ac_try_echo") >&5
25484 (eval "$ac_compile") 2>conftest.er1
25486 grep -v '^ *+' conftest.er1 >conftest.err
25488 cat conftest.err >&5
25489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490 (exit $ac_status); } && {
25491 test -z "$ac_c_werror_flag" ||
25492 test ! -s conftest.err
25493 } && test -s conftest.$ac_objext; then
25496 cat >conftest.$ac_ext <<_ACEOF
25499 cat confdefs.h >>conftest.$ac_ext
25500 cat >>conftest.$ac_ext <<_ACEOF
25501 /* end confdefs.h. */
25502 $ac_includes_default
25504 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25506 typedef struct { char x; int y; } ac__type_alignof_;
25510 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25517 rm -f conftest.$ac_objext
25518 if { (ac_try="$ac_compile"
25519 case "(($ac_try" in
25520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25521 *) ac_try_echo=$ac_try;;
25523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25524 $as_echo "$ac_try_echo") >&5
25525 (eval "$ac_compile") 2>conftest.er1
25527 grep -v '^ *+' conftest.er1 >conftest.err
25529 cat conftest.err >&5
25530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531 (exit $ac_status); } && {
25532 test -z "$ac_c_werror_flag" ||
25533 test ! -s conftest.err
25534 } && test -s conftest.$ac_objext; then
25535 ac_lo=$ac_mid; break
25537 $as_echo "$as_me: failed program was:" >&5
25538 sed 's/^/| /' conftest.$ac_ext >&5
25540 ac_hi=`expr '(' $ac_mid ')' - 1`
25541 if test $ac_mid -le $ac_hi; then
25545 ac_mid=`expr 2 '*' $ac_mid`
25548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25551 $as_echo "$as_me: failed program was:" >&5
25552 sed 's/^/| /' conftest.$ac_ext >&5
25557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25561 # Binary search between lo and hi bounds.
25562 while test "x$ac_lo" != "x$ac_hi"; do
25563 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25564 cat >conftest.$ac_ext <<_ACEOF
25567 cat confdefs.h >>conftest.$ac_ext
25568 cat >>conftest.$ac_ext <<_ACEOF
25569 /* end confdefs.h. */
25570 $ac_includes_default
25572 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25574 typedef struct { char x; int y; } ac__type_alignof_;
25578 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25585 rm -f conftest.$ac_objext
25586 if { (ac_try="$ac_compile"
25587 case "(($ac_try" in
25588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25589 *) ac_try_echo=$ac_try;;
25591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25592 $as_echo "$ac_try_echo") >&5
25593 (eval "$ac_compile") 2>conftest.er1
25595 grep -v '^ *+' conftest.er1 >conftest.err
25597 cat conftest.err >&5
25598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599 (exit $ac_status); } && {
25600 test -z "$ac_c_werror_flag" ||
25601 test ! -s conftest.err
25602 } && test -s conftest.$ac_objext; then
25605 $as_echo "$as_me: failed program was:" >&5
25606 sed 's/^/| /' conftest.$ac_ext >&5
25608 ac_lo=`expr '(' $ac_mid ')' + 1`
25611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25614 ?*) ac_cv_alignof_int=$ac_lo;;
25615 '') if test "$ac_cv_type_int" = yes; then
25616 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25618 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
25619 See \`config.log' for more details." >&5
25620 $as_echo "$as_me: error: cannot compute alignment of int
25621 See \`config.log' for more details." >&2;}
25622 { (exit 77); exit 77; }; }; }
25624 ac_cv_alignof_int=0
25628 cat >conftest.$ac_ext <<_ACEOF
25631 cat confdefs.h >>conftest.$ac_ext
25632 cat >>conftest.$ac_ext <<_ACEOF
25633 /* end confdefs.h. */
25634 $ac_includes_default
25636 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25638 typedef struct { char x; int y; } ac__type_alignof_;
25639 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25640 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25642 #include <stdlib.h>
25647 FILE *f = fopen ("conftest.val", "w");
25650 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25652 long int i = longval ();
25653 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25655 fprintf (f, "%ld", i);
25659 unsigned long int i = ulongval ();
25660 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25662 fprintf (f, "%lu", i);
25664 /* Do not output a trailing newline, as this causes \r\n confusion
25665 on some platforms. */
25666 return ferror (f) || fclose (f) != 0;
25672 rm -f conftest$ac_exeext
25673 if { (ac_try="$ac_link"
25674 case "(($ac_try" in
25675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25676 *) ac_try_echo=$ac_try;;
25678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25679 $as_echo "$ac_try_echo") >&5
25680 (eval "$ac_link") 2>&5
25682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25684 { (case "(($ac_try" in
25685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25686 *) ac_try_echo=$ac_try;;
25688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25689 $as_echo "$ac_try_echo") >&5
25690 (eval "$ac_try") 2>&5
25692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25693 (exit $ac_status); }; }; then
25694 ac_cv_alignof_int=`cat conftest.val`
25696 $as_echo "$as_me: program exited with status $ac_status" >&5
25697 $as_echo "$as_me: failed program was:" >&5
25698 sed 's/^/| /' conftest.$ac_ext >&5
25700 ( exit $ac_status )
25701 if test "$ac_cv_type_int" = yes; then
25702 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25704 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
25705 See \`config.log' for more details." >&5
25706 $as_echo "$as_me: error: cannot compute alignment of int
25707 See \`config.log' for more details." >&2;}
25708 { (exit 77); exit 77; }; }; }
25710 ac_cv_alignof_int=0
25713 rm -rf conftest.dSYM
25714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25718 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
25719 $as_echo "$ac_cv_alignof_int" >&6; }
25723 cat >>confdefs.h <<_ACEOF
25724 #define ALIGNOF_INT $ac_cv_alignof_int
25728 # The cast to long int works around a bug in the HP C Compiler,
25729 # see AC_CHECK_SIZEOF for more information.
25730 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
25731 $as_echo_n "checking alignment of long... " >&6; }
25732 if test "${ac_cv_alignof_long+set}" = set; then
25733 $as_echo_n "(cached) " >&6
25735 if test "$cross_compiling" = yes; then
25736 # Depending upon the size, compute the lo and hi bounds.
25737 cat >conftest.$ac_ext <<_ACEOF
25740 cat confdefs.h >>conftest.$ac_ext
25741 cat >>conftest.$ac_ext <<_ACEOF
25742 /* end confdefs.h. */
25743 $ac_includes_default
25745 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25747 typedef struct { char x; long y; } ac__type_alignof_;
25751 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25758 rm -f conftest.$ac_objext
25759 if { (ac_try="$ac_compile"
25760 case "(($ac_try" in
25761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25762 *) ac_try_echo=$ac_try;;
25764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25765 $as_echo "$ac_try_echo") >&5
25766 (eval "$ac_compile") 2>conftest.er1
25768 grep -v '^ *+' conftest.er1 >conftest.err
25770 cat conftest.err >&5
25771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25772 (exit $ac_status); } && {
25773 test -z "$ac_c_werror_flag" ||
25774 test ! -s conftest.err
25775 } && test -s conftest.$ac_objext; then
25778 cat >conftest.$ac_ext <<_ACEOF
25781 cat confdefs.h >>conftest.$ac_ext
25782 cat >>conftest.$ac_ext <<_ACEOF
25783 /* end confdefs.h. */
25784 $ac_includes_default
25786 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25788 typedef struct { char x; long y; } ac__type_alignof_;
25792 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25799 rm -f conftest.$ac_objext
25800 if { (ac_try="$ac_compile"
25801 case "(($ac_try" in
25802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25803 *) ac_try_echo=$ac_try;;
25805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25806 $as_echo "$ac_try_echo") >&5
25807 (eval "$ac_compile") 2>conftest.er1
25809 grep -v '^ *+' conftest.er1 >conftest.err
25811 cat conftest.err >&5
25812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813 (exit $ac_status); } && {
25814 test -z "$ac_c_werror_flag" ||
25815 test ! -s conftest.err
25816 } && test -s conftest.$ac_objext; then
25817 ac_hi=$ac_mid; break
25819 $as_echo "$as_me: failed program was:" >&5
25820 sed 's/^/| /' conftest.$ac_ext >&5
25822 ac_lo=`expr $ac_mid + 1`
25823 if test $ac_lo -le $ac_mid; then
25827 ac_mid=`expr 2 '*' $ac_mid + 1`
25830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25833 $as_echo "$as_me: failed program was:" >&5
25834 sed 's/^/| /' conftest.$ac_ext >&5
25836 cat >conftest.$ac_ext <<_ACEOF
25839 cat confdefs.h >>conftest.$ac_ext
25840 cat >>conftest.$ac_ext <<_ACEOF
25841 /* end confdefs.h. */
25842 $ac_includes_default
25844 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25846 typedef struct { char x; long y; } ac__type_alignof_;
25850 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25857 rm -f conftest.$ac_objext
25858 if { (ac_try="$ac_compile"
25859 case "(($ac_try" in
25860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25861 *) ac_try_echo=$ac_try;;
25863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25864 $as_echo "$ac_try_echo") >&5
25865 (eval "$ac_compile") 2>conftest.er1
25867 grep -v '^ *+' conftest.er1 >conftest.err
25869 cat conftest.err >&5
25870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25871 (exit $ac_status); } && {
25872 test -z "$ac_c_werror_flag" ||
25873 test ! -s conftest.err
25874 } && test -s conftest.$ac_objext; then
25877 cat >conftest.$ac_ext <<_ACEOF
25880 cat confdefs.h >>conftest.$ac_ext
25881 cat >>conftest.$ac_ext <<_ACEOF
25882 /* end confdefs.h. */
25883 $ac_includes_default
25885 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25887 typedef struct { char x; long y; } ac__type_alignof_;
25891 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25898 rm -f conftest.$ac_objext
25899 if { (ac_try="$ac_compile"
25900 case "(($ac_try" in
25901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25902 *) ac_try_echo=$ac_try;;
25904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25905 $as_echo "$ac_try_echo") >&5
25906 (eval "$ac_compile") 2>conftest.er1
25908 grep -v '^ *+' conftest.er1 >conftest.err
25910 cat conftest.err >&5
25911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912 (exit $ac_status); } && {
25913 test -z "$ac_c_werror_flag" ||
25914 test ! -s conftest.err
25915 } && test -s conftest.$ac_objext; then
25916 ac_lo=$ac_mid; break
25918 $as_echo "$as_me: failed program was:" >&5
25919 sed 's/^/| /' conftest.$ac_ext >&5
25921 ac_hi=`expr '(' $ac_mid ')' - 1`
25922 if test $ac_mid -le $ac_hi; then
25926 ac_mid=`expr 2 '*' $ac_mid`
25929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25932 $as_echo "$as_me: failed program was:" >&5
25933 sed 's/^/| /' conftest.$ac_ext >&5
25938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25942 # Binary search between lo and hi bounds.
25943 while test "x$ac_lo" != "x$ac_hi"; do
25944 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25945 cat >conftest.$ac_ext <<_ACEOF
25948 cat confdefs.h >>conftest.$ac_ext
25949 cat >>conftest.$ac_ext <<_ACEOF
25950 /* end confdefs.h. */
25951 $ac_includes_default
25953 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25955 typedef struct { char x; long y; } ac__type_alignof_;
25959 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25966 rm -f conftest.$ac_objext
25967 if { (ac_try="$ac_compile"
25968 case "(($ac_try" in
25969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25970 *) ac_try_echo=$ac_try;;
25972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25973 $as_echo "$ac_try_echo") >&5
25974 (eval "$ac_compile") 2>conftest.er1
25976 grep -v '^ *+' conftest.er1 >conftest.err
25978 cat conftest.err >&5
25979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25980 (exit $ac_status); } && {
25981 test -z "$ac_c_werror_flag" ||
25982 test ! -s conftest.err
25983 } && test -s conftest.$ac_objext; then
25986 $as_echo "$as_me: failed program was:" >&5
25987 sed 's/^/| /' conftest.$ac_ext >&5
25989 ac_lo=`expr '(' $ac_mid ')' + 1`
25992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25995 ?*) ac_cv_alignof_long=$ac_lo;;
25996 '') if test "$ac_cv_type_long" = yes; then
25997 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25999 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26000 See \`config.log' for more details." >&5
26001 $as_echo "$as_me: error: cannot compute alignment of long
26002 See \`config.log' for more details." >&2;}
26003 { (exit 77); exit 77; }; }; }
26005 ac_cv_alignof_long=0
26009 cat >conftest.$ac_ext <<_ACEOF
26012 cat confdefs.h >>conftest.$ac_ext
26013 cat >>conftest.$ac_ext <<_ACEOF
26014 /* end confdefs.h. */
26015 $ac_includes_default
26017 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26019 typedef struct { char x; long y; } ac__type_alignof_;
26020 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26021 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26023 #include <stdlib.h>
26028 FILE *f = fopen ("conftest.val", "w");
26031 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26033 long int i = longval ();
26034 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26036 fprintf (f, "%ld", i);
26040 unsigned long int i = ulongval ();
26041 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26043 fprintf (f, "%lu", i);
26045 /* Do not output a trailing newline, as this causes \r\n confusion
26046 on some platforms. */
26047 return ferror (f) || fclose (f) != 0;
26053 rm -f conftest$ac_exeext
26054 if { (ac_try="$ac_link"
26055 case "(($ac_try" in
26056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26057 *) ac_try_echo=$ac_try;;
26059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26060 $as_echo "$ac_try_echo") >&5
26061 (eval "$ac_link") 2>&5
26063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26065 { (case "(($ac_try" in
26066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26067 *) ac_try_echo=$ac_try;;
26069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26070 $as_echo "$ac_try_echo") >&5
26071 (eval "$ac_try") 2>&5
26073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074 (exit $ac_status); }; }; then
26075 ac_cv_alignof_long=`cat conftest.val`
26077 $as_echo "$as_me: program exited with status $ac_status" >&5
26078 $as_echo "$as_me: failed program was:" >&5
26079 sed 's/^/| /' conftest.$ac_ext >&5
26081 ( exit $ac_status )
26082 if test "$ac_cv_type_long" = yes; then
26083 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26085 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26086 See \`config.log' for more details." >&5
26087 $as_echo "$as_me: error: cannot compute alignment of long
26088 See \`config.log' for more details." >&2;}
26089 { (exit 77); exit 77; }; }; }
26091 ac_cv_alignof_long=0
26094 rm -rf conftest.dSYM
26095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26099 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26100 $as_echo "$ac_cv_alignof_long" >&6; }
26104 cat >>confdefs.h <<_ACEOF
26105 #define ALIGNOF_LONG $ac_cv_alignof_long
26109 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26110 # The cast to long int works around a bug in the HP C Compiler,
26111 # see AC_CHECK_SIZEOF for more information.
26112 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26113 $as_echo_n "checking alignment of long long int... " >&6; }
26114 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26115 $as_echo_n "(cached) " >&6
26117 if test "$cross_compiling" = yes; then
26118 # Depending upon the size, compute the lo and hi bounds.
26119 cat >conftest.$ac_ext <<_ACEOF
26122 cat confdefs.h >>conftest.$ac_ext
26123 cat >>conftest.$ac_ext <<_ACEOF
26124 /* end confdefs.h. */
26125 $ac_includes_default
26127 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26129 typedef struct { char x; long long int y; } ac__type_alignof_;
26133 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26140 rm -f conftest.$ac_objext
26141 if { (ac_try="$ac_compile"
26142 case "(($ac_try" in
26143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26144 *) ac_try_echo=$ac_try;;
26146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26147 $as_echo "$ac_try_echo") >&5
26148 (eval "$ac_compile") 2>conftest.er1
26150 grep -v '^ *+' conftest.er1 >conftest.err
26152 cat conftest.err >&5
26153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154 (exit $ac_status); } && {
26155 test -z "$ac_c_werror_flag" ||
26156 test ! -s conftest.err
26157 } && test -s conftest.$ac_objext; then
26160 cat >conftest.$ac_ext <<_ACEOF
26163 cat confdefs.h >>conftest.$ac_ext
26164 cat >>conftest.$ac_ext <<_ACEOF
26165 /* end confdefs.h. */
26166 $ac_includes_default
26168 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26170 typedef struct { char x; long long int y; } ac__type_alignof_;
26174 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26181 rm -f conftest.$ac_objext
26182 if { (ac_try="$ac_compile"
26183 case "(($ac_try" in
26184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26185 *) ac_try_echo=$ac_try;;
26187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26188 $as_echo "$ac_try_echo") >&5
26189 (eval "$ac_compile") 2>conftest.er1
26191 grep -v '^ *+' conftest.er1 >conftest.err
26193 cat conftest.err >&5
26194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195 (exit $ac_status); } && {
26196 test -z "$ac_c_werror_flag" ||
26197 test ! -s conftest.err
26198 } && test -s conftest.$ac_objext; then
26199 ac_hi=$ac_mid; break
26201 $as_echo "$as_me: failed program was:" >&5
26202 sed 's/^/| /' conftest.$ac_ext >&5
26204 ac_lo=`expr $ac_mid + 1`
26205 if test $ac_lo -le $ac_mid; then
26209 ac_mid=`expr 2 '*' $ac_mid + 1`
26212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26215 $as_echo "$as_me: failed program was:" >&5
26216 sed 's/^/| /' conftest.$ac_ext >&5
26218 cat >conftest.$ac_ext <<_ACEOF
26221 cat confdefs.h >>conftest.$ac_ext
26222 cat >>conftest.$ac_ext <<_ACEOF
26223 /* end confdefs.h. */
26224 $ac_includes_default
26226 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26228 typedef struct { char x; long long int y; } ac__type_alignof_;
26232 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26239 rm -f conftest.$ac_objext
26240 if { (ac_try="$ac_compile"
26241 case "(($ac_try" in
26242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26243 *) ac_try_echo=$ac_try;;
26245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26246 $as_echo "$ac_try_echo") >&5
26247 (eval "$ac_compile") 2>conftest.er1
26249 grep -v '^ *+' conftest.er1 >conftest.err
26251 cat conftest.err >&5
26252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253 (exit $ac_status); } && {
26254 test -z "$ac_c_werror_flag" ||
26255 test ! -s conftest.err
26256 } && test -s conftest.$ac_objext; then
26259 cat >conftest.$ac_ext <<_ACEOF
26262 cat confdefs.h >>conftest.$ac_ext
26263 cat >>conftest.$ac_ext <<_ACEOF
26264 /* end confdefs.h. */
26265 $ac_includes_default
26267 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26269 typedef struct { char x; long long int y; } ac__type_alignof_;
26273 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26280 rm -f conftest.$ac_objext
26281 if { (ac_try="$ac_compile"
26282 case "(($ac_try" in
26283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26284 *) ac_try_echo=$ac_try;;
26286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26287 $as_echo "$ac_try_echo") >&5
26288 (eval "$ac_compile") 2>conftest.er1
26290 grep -v '^ *+' conftest.er1 >conftest.err
26292 cat conftest.err >&5
26293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294 (exit $ac_status); } && {
26295 test -z "$ac_c_werror_flag" ||
26296 test ! -s conftest.err
26297 } && test -s conftest.$ac_objext; then
26298 ac_lo=$ac_mid; break
26300 $as_echo "$as_me: failed program was:" >&5
26301 sed 's/^/| /' conftest.$ac_ext >&5
26303 ac_hi=`expr '(' $ac_mid ')' - 1`
26304 if test $ac_mid -le $ac_hi; then
26308 ac_mid=`expr 2 '*' $ac_mid`
26311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26314 $as_echo "$as_me: failed program was:" >&5
26315 sed 's/^/| /' conftest.$ac_ext >&5
26320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26324 # Binary search between lo and hi bounds.
26325 while test "x$ac_lo" != "x$ac_hi"; do
26326 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26327 cat >conftest.$ac_ext <<_ACEOF
26330 cat confdefs.h >>conftest.$ac_ext
26331 cat >>conftest.$ac_ext <<_ACEOF
26332 /* end confdefs.h. */
26333 $ac_includes_default
26335 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26337 typedef struct { char x; long long int y; } ac__type_alignof_;
26341 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26348 rm -f conftest.$ac_objext
26349 if { (ac_try="$ac_compile"
26350 case "(($ac_try" in
26351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26352 *) ac_try_echo=$ac_try;;
26354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26355 $as_echo "$ac_try_echo") >&5
26356 (eval "$ac_compile") 2>conftest.er1
26358 grep -v '^ *+' conftest.er1 >conftest.err
26360 cat conftest.err >&5
26361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362 (exit $ac_status); } && {
26363 test -z "$ac_c_werror_flag" ||
26364 test ! -s conftest.err
26365 } && test -s conftest.$ac_objext; then
26368 $as_echo "$as_me: failed program was:" >&5
26369 sed 's/^/| /' conftest.$ac_ext >&5
26371 ac_lo=`expr '(' $ac_mid ')' + 1`
26374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26377 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
26378 '') if test "$ac_cv_type_long_long_int" = yes; then
26379 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26381 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
26382 See \`config.log' for more details." >&5
26383 $as_echo "$as_me: error: cannot compute alignment of long long int
26384 See \`config.log' for more details." >&2;}
26385 { (exit 77); exit 77; }; }; }
26387 ac_cv_alignof_long_long_int=0
26391 cat >conftest.$ac_ext <<_ACEOF
26394 cat confdefs.h >>conftest.$ac_ext
26395 cat >>conftest.$ac_ext <<_ACEOF
26396 /* end confdefs.h. */
26397 $ac_includes_default
26399 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26401 typedef struct { char x; long long int y; } ac__type_alignof_;
26402 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26403 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26405 #include <stdlib.h>
26410 FILE *f = fopen ("conftest.val", "w");
26413 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26415 long int i = longval ();
26416 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26418 fprintf (f, "%ld", i);
26422 unsigned long int i = ulongval ();
26423 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26425 fprintf (f, "%lu", i);
26427 /* Do not output a trailing newline, as this causes \r\n confusion
26428 on some platforms. */
26429 return ferror (f) || fclose (f) != 0;
26435 rm -f conftest$ac_exeext
26436 if { (ac_try="$ac_link"
26437 case "(($ac_try" in
26438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26439 *) ac_try_echo=$ac_try;;
26441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26442 $as_echo "$ac_try_echo") >&5
26443 (eval "$ac_link") 2>&5
26445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26447 { (case "(($ac_try" in
26448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26449 *) ac_try_echo=$ac_try;;
26451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26452 $as_echo "$ac_try_echo") >&5
26453 (eval "$ac_try") 2>&5
26455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456 (exit $ac_status); }; }; then
26457 ac_cv_alignof_long_long_int=`cat conftest.val`
26459 $as_echo "$as_me: program exited with status $ac_status" >&5
26460 $as_echo "$as_me: failed program was:" >&5
26461 sed 's/^/| /' conftest.$ac_ext >&5
26463 ( exit $ac_status )
26464 if test "$ac_cv_type_long_long_int" = yes; then
26465 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26467 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
26468 See \`config.log' for more details." >&5
26469 $as_echo "$as_me: error: cannot compute alignment of long long int
26470 See \`config.log' for more details." >&2;}
26471 { (exit 77); exit 77; }; }; }
26473 ac_cv_alignof_long_long_int=0
26476 rm -rf conftest.dSYM
26477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26481 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
26482 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
26486 cat >>confdefs.h <<_ACEOF
26487 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
26492 # The cast to long int works around a bug in the HP C Compiler,
26493 # see AC_CHECK_SIZEOF for more information.
26494 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
26495 $as_echo_n "checking alignment of double... " >&6; }
26496 if test "${ac_cv_alignof_double+set}" = set; then
26497 $as_echo_n "(cached) " >&6
26499 if test "$cross_compiling" = yes; then
26500 # Depending upon the size, compute the lo and hi bounds.
26501 cat >conftest.$ac_ext <<_ACEOF
26504 cat confdefs.h >>conftest.$ac_ext
26505 cat >>conftest.$ac_ext <<_ACEOF
26506 /* end confdefs.h. */
26507 $ac_includes_default
26509 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26511 typedef struct { char x; double y; } ac__type_alignof_;
26515 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26522 rm -f conftest.$ac_objext
26523 if { (ac_try="$ac_compile"
26524 case "(($ac_try" in
26525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26526 *) ac_try_echo=$ac_try;;
26528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26529 $as_echo "$ac_try_echo") >&5
26530 (eval "$ac_compile") 2>conftest.er1
26532 grep -v '^ *+' conftest.er1 >conftest.err
26534 cat conftest.err >&5
26535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536 (exit $ac_status); } && {
26537 test -z "$ac_c_werror_flag" ||
26538 test ! -s conftest.err
26539 } && test -s conftest.$ac_objext; then
26542 cat >conftest.$ac_ext <<_ACEOF
26545 cat confdefs.h >>conftest.$ac_ext
26546 cat >>conftest.$ac_ext <<_ACEOF
26547 /* end confdefs.h. */
26548 $ac_includes_default
26550 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26552 typedef struct { char x; double y; } ac__type_alignof_;
26556 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26563 rm -f conftest.$ac_objext
26564 if { (ac_try="$ac_compile"
26565 case "(($ac_try" in
26566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26567 *) ac_try_echo=$ac_try;;
26569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26570 $as_echo "$ac_try_echo") >&5
26571 (eval "$ac_compile") 2>conftest.er1
26573 grep -v '^ *+' conftest.er1 >conftest.err
26575 cat conftest.err >&5
26576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577 (exit $ac_status); } && {
26578 test -z "$ac_c_werror_flag" ||
26579 test ! -s conftest.err
26580 } && test -s conftest.$ac_objext; then
26581 ac_hi=$ac_mid; break
26583 $as_echo "$as_me: failed program was:" >&5
26584 sed 's/^/| /' conftest.$ac_ext >&5
26586 ac_lo=`expr $ac_mid + 1`
26587 if test $ac_lo -le $ac_mid; then
26591 ac_mid=`expr 2 '*' $ac_mid + 1`
26594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26597 $as_echo "$as_me: failed program was:" >&5
26598 sed 's/^/| /' conftest.$ac_ext >&5
26600 cat >conftest.$ac_ext <<_ACEOF
26603 cat confdefs.h >>conftest.$ac_ext
26604 cat >>conftest.$ac_ext <<_ACEOF
26605 /* end confdefs.h. */
26606 $ac_includes_default
26608 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26610 typedef struct { char x; double y; } ac__type_alignof_;
26614 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26621 rm -f conftest.$ac_objext
26622 if { (ac_try="$ac_compile"
26623 case "(($ac_try" in
26624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26625 *) ac_try_echo=$ac_try;;
26627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26628 $as_echo "$ac_try_echo") >&5
26629 (eval "$ac_compile") 2>conftest.er1
26631 grep -v '^ *+' conftest.er1 >conftest.err
26633 cat conftest.err >&5
26634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635 (exit $ac_status); } && {
26636 test -z "$ac_c_werror_flag" ||
26637 test ! -s conftest.err
26638 } && test -s conftest.$ac_objext; then
26641 cat >conftest.$ac_ext <<_ACEOF
26644 cat confdefs.h >>conftest.$ac_ext
26645 cat >>conftest.$ac_ext <<_ACEOF
26646 /* end confdefs.h. */
26647 $ac_includes_default
26649 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26651 typedef struct { char x; double y; } ac__type_alignof_;
26655 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26662 rm -f conftest.$ac_objext
26663 if { (ac_try="$ac_compile"
26664 case "(($ac_try" in
26665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26666 *) ac_try_echo=$ac_try;;
26668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26669 $as_echo "$ac_try_echo") >&5
26670 (eval "$ac_compile") 2>conftest.er1
26672 grep -v '^ *+' conftest.er1 >conftest.err
26674 cat conftest.err >&5
26675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26676 (exit $ac_status); } && {
26677 test -z "$ac_c_werror_flag" ||
26678 test ! -s conftest.err
26679 } && test -s conftest.$ac_objext; then
26680 ac_lo=$ac_mid; break
26682 $as_echo "$as_me: failed program was:" >&5
26683 sed 's/^/| /' conftest.$ac_ext >&5
26685 ac_hi=`expr '(' $ac_mid ')' - 1`
26686 if test $ac_mid -le $ac_hi; then
26690 ac_mid=`expr 2 '*' $ac_mid`
26693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26696 $as_echo "$as_me: failed program was:" >&5
26697 sed 's/^/| /' conftest.$ac_ext >&5
26702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26706 # Binary search between lo and hi bounds.
26707 while test "x$ac_lo" != "x$ac_hi"; do
26708 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26709 cat >conftest.$ac_ext <<_ACEOF
26712 cat confdefs.h >>conftest.$ac_ext
26713 cat >>conftest.$ac_ext <<_ACEOF
26714 /* end confdefs.h. */
26715 $ac_includes_default
26717 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26719 typedef struct { char x; double y; } ac__type_alignof_;
26723 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26730 rm -f conftest.$ac_objext
26731 if { (ac_try="$ac_compile"
26732 case "(($ac_try" in
26733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26734 *) ac_try_echo=$ac_try;;
26736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26737 $as_echo "$ac_try_echo") >&5
26738 (eval "$ac_compile") 2>conftest.er1
26740 grep -v '^ *+' conftest.er1 >conftest.err
26742 cat conftest.err >&5
26743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744 (exit $ac_status); } && {
26745 test -z "$ac_c_werror_flag" ||
26746 test ! -s conftest.err
26747 } && test -s conftest.$ac_objext; then
26750 $as_echo "$as_me: failed program was:" >&5
26751 sed 's/^/| /' conftest.$ac_ext >&5
26753 ac_lo=`expr '(' $ac_mid ')' + 1`
26756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26759 ?*) ac_cv_alignof_double=$ac_lo;;
26760 '') if test "$ac_cv_type_double" = yes; then
26761 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26763 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
26764 See \`config.log' for more details." >&5
26765 $as_echo "$as_me: error: cannot compute alignment of double
26766 See \`config.log' for more details." >&2;}
26767 { (exit 77); exit 77; }; }; }
26769 ac_cv_alignof_double=0
26773 cat >conftest.$ac_ext <<_ACEOF
26776 cat confdefs.h >>conftest.$ac_ext
26777 cat >>conftest.$ac_ext <<_ACEOF
26778 /* end confdefs.h. */
26779 $ac_includes_default
26781 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26783 typedef struct { char x; double y; } ac__type_alignof_;
26784 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26785 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26787 #include <stdlib.h>
26792 FILE *f = fopen ("conftest.val", "w");
26795 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26797 long int i = longval ();
26798 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26800 fprintf (f, "%ld", i);
26804 unsigned long int i = ulongval ();
26805 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26807 fprintf (f, "%lu", i);
26809 /* Do not output a trailing newline, as this causes \r\n confusion
26810 on some platforms. */
26811 return ferror (f) || fclose (f) != 0;
26817 rm -f conftest$ac_exeext
26818 if { (ac_try="$ac_link"
26819 case "(($ac_try" in
26820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26821 *) ac_try_echo=$ac_try;;
26823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26824 $as_echo "$ac_try_echo") >&5
26825 (eval "$ac_link") 2>&5
26827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26829 { (case "(($ac_try" in
26830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26831 *) ac_try_echo=$ac_try;;
26833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26834 $as_echo "$ac_try_echo") >&5
26835 (eval "$ac_try") 2>&5
26837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838 (exit $ac_status); }; }; then
26839 ac_cv_alignof_double=`cat conftest.val`
26841 $as_echo "$as_me: program exited with status $ac_status" >&5
26842 $as_echo "$as_me: failed program was:" >&5
26843 sed 's/^/| /' conftest.$ac_ext >&5
26845 ( exit $ac_status )
26846 if test "$ac_cv_type_double" = yes; then
26847 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26849 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
26850 See \`config.log' for more details." >&5
26851 $as_echo "$as_me: error: cannot compute alignment of double
26852 See \`config.log' for more details." >&2;}
26853 { (exit 77); exit 77; }; }; }
26855 ac_cv_alignof_double=0
26858 rm -rf conftest.dSYM
26859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26863 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
26864 $as_echo "$ac_cv_alignof_double" >&6; }
26868 cat >>confdefs.h <<_ACEOF
26869 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
26874 # Compute maximum alignment of any basic type.
26875 # We assume long's alignment is at least as strong as char, short, or int;
26876 # but we must check long long (if it exists) and double.
26878 MAX_ALIGNOF=$ac_cv_alignof_long
26879 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
26880 MAX_ALIGNOF=$ac_cv_alignof_double
26882 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
26883 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
26886 cat >>confdefs.h <<_ACEOF
26887 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
26892 # Some platforms predefine the types int8, int16, etc. Only check
26893 # a (hopefully) representative subset.
26894 { $as_echo "$as_me:$LINENO: checking for int8" >&5
26895 $as_echo_n "checking for int8... " >&6; }
26896 if test "${ac_cv_type_int8+set}" = set; then
26897 $as_echo_n "(cached) " >&6
26900 cat >conftest.$ac_ext <<_ACEOF
26903 cat confdefs.h >>conftest.$ac_ext
26904 cat >>conftest.$ac_ext <<_ACEOF
26905 /* end confdefs.h. */
26907 #ifdef HAVE_SUPPORTDEFS_H
26908 #include <SupportDefs.h>
26920 rm -f conftest.$ac_objext
26921 if { (ac_try="$ac_compile"
26922 case "(($ac_try" in
26923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26924 *) ac_try_echo=$ac_try;;
26926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26927 $as_echo "$ac_try_echo") >&5
26928 (eval "$ac_compile") 2>conftest.er1
26930 grep -v '^ *+' conftest.er1 >conftest.err
26932 cat conftest.err >&5
26933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934 (exit $ac_status); } && {
26935 test -z "$ac_c_werror_flag" ||
26936 test ! -s conftest.err
26937 } && test -s conftest.$ac_objext; then
26938 cat >conftest.$ac_ext <<_ACEOF
26941 cat confdefs.h >>conftest.$ac_ext
26942 cat >>conftest.$ac_ext <<_ACEOF
26943 /* end confdefs.h. */
26945 #ifdef HAVE_SUPPORTDEFS_H
26946 #include <SupportDefs.h>
26952 if (sizeof ((int8)))
26958 rm -f conftest.$ac_objext
26959 if { (ac_try="$ac_compile"
26960 case "(($ac_try" in
26961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26962 *) ac_try_echo=$ac_try;;
26964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26965 $as_echo "$ac_try_echo") >&5
26966 (eval "$ac_compile") 2>conftest.er1
26968 grep -v '^ *+' conftest.er1 >conftest.err
26970 cat conftest.err >&5
26971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972 (exit $ac_status); } && {
26973 test -z "$ac_c_werror_flag" ||
26974 test ! -s conftest.err
26975 } && test -s conftest.$ac_objext; then
26978 $as_echo "$as_me: failed program was:" >&5
26979 sed 's/^/| /' conftest.$ac_ext >&5
26981 ac_cv_type_int8=yes
26984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26986 $as_echo "$as_me: failed program was:" >&5
26987 sed 's/^/| /' conftest.$ac_ext >&5
26992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26994 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
26995 $as_echo "$ac_cv_type_int8" >&6; }
26996 if test "x$ac_cv_type_int8" = x""yes; then
26998 cat >>confdefs.h <<_ACEOF
26999 #define HAVE_INT8 1
27004 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27005 $as_echo_n "checking for uint8... " >&6; }
27006 if test "${ac_cv_type_uint8+set}" = set; then
27007 $as_echo_n "(cached) " >&6
27009 ac_cv_type_uint8=no
27010 cat >conftest.$ac_ext <<_ACEOF
27013 cat confdefs.h >>conftest.$ac_ext
27014 cat >>conftest.$ac_ext <<_ACEOF
27015 /* end confdefs.h. */
27017 #ifdef HAVE_SUPPORTDEFS_H
27018 #include <SupportDefs.h>
27024 if (sizeof (uint8))
27030 rm -f conftest.$ac_objext
27031 if { (ac_try="$ac_compile"
27032 case "(($ac_try" in
27033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27034 *) ac_try_echo=$ac_try;;
27036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27037 $as_echo "$ac_try_echo") >&5
27038 (eval "$ac_compile") 2>conftest.er1
27040 grep -v '^ *+' conftest.er1 >conftest.err
27042 cat conftest.err >&5
27043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27044 (exit $ac_status); } && {
27045 test -z "$ac_c_werror_flag" ||
27046 test ! -s conftest.err
27047 } && test -s conftest.$ac_objext; then
27048 cat >conftest.$ac_ext <<_ACEOF
27051 cat confdefs.h >>conftest.$ac_ext
27052 cat >>conftest.$ac_ext <<_ACEOF
27053 /* end confdefs.h. */
27055 #ifdef HAVE_SUPPORTDEFS_H
27056 #include <SupportDefs.h>
27062 if (sizeof ((uint8)))
27068 rm -f conftest.$ac_objext
27069 if { (ac_try="$ac_compile"
27070 case "(($ac_try" in
27071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27072 *) ac_try_echo=$ac_try;;
27074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27075 $as_echo "$ac_try_echo") >&5
27076 (eval "$ac_compile") 2>conftest.er1
27078 grep -v '^ *+' conftest.er1 >conftest.err
27080 cat conftest.err >&5
27081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27082 (exit $ac_status); } && {
27083 test -z "$ac_c_werror_flag" ||
27084 test ! -s conftest.err
27085 } && test -s conftest.$ac_objext; then
27088 $as_echo "$as_me: failed program was:" >&5
27089 sed 's/^/| /' conftest.$ac_ext >&5
27091 ac_cv_type_uint8=yes
27094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27096 $as_echo "$as_me: failed program was:" >&5
27097 sed 's/^/| /' conftest.$ac_ext >&5
27102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27104 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27105 $as_echo "$ac_cv_type_uint8" >&6; }
27106 if test "x$ac_cv_type_uint8" = x""yes; then
27108 cat >>confdefs.h <<_ACEOF
27109 #define HAVE_UINT8 1
27114 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27115 $as_echo_n "checking for int64... " >&6; }
27116 if test "${ac_cv_type_int64+set}" = set; then
27117 $as_echo_n "(cached) " >&6
27119 ac_cv_type_int64=no
27120 cat >conftest.$ac_ext <<_ACEOF
27123 cat confdefs.h >>conftest.$ac_ext
27124 cat >>conftest.$ac_ext <<_ACEOF
27125 /* end confdefs.h. */
27127 #ifdef HAVE_SUPPORTDEFS_H
27128 #include <SupportDefs.h>
27134 if (sizeof (int64))
27140 rm -f conftest.$ac_objext
27141 if { (ac_try="$ac_compile"
27142 case "(($ac_try" in
27143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27144 *) ac_try_echo=$ac_try;;
27146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27147 $as_echo "$ac_try_echo") >&5
27148 (eval "$ac_compile") 2>conftest.er1
27150 grep -v '^ *+' conftest.er1 >conftest.err
27152 cat conftest.err >&5
27153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154 (exit $ac_status); } && {
27155 test -z "$ac_c_werror_flag" ||
27156 test ! -s conftest.err
27157 } && test -s conftest.$ac_objext; then
27158 cat >conftest.$ac_ext <<_ACEOF
27161 cat confdefs.h >>conftest.$ac_ext
27162 cat >>conftest.$ac_ext <<_ACEOF
27163 /* end confdefs.h. */
27165 #ifdef HAVE_SUPPORTDEFS_H
27166 #include <SupportDefs.h>
27172 if (sizeof ((int64)))
27178 rm -f conftest.$ac_objext
27179 if { (ac_try="$ac_compile"
27180 case "(($ac_try" in
27181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27182 *) ac_try_echo=$ac_try;;
27184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27185 $as_echo "$ac_try_echo") >&5
27186 (eval "$ac_compile") 2>conftest.er1
27188 grep -v '^ *+' conftest.er1 >conftest.err
27190 cat conftest.err >&5
27191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192 (exit $ac_status); } && {
27193 test -z "$ac_c_werror_flag" ||
27194 test ! -s conftest.err
27195 } && test -s conftest.$ac_objext; then
27198 $as_echo "$as_me: failed program was:" >&5
27199 sed 's/^/| /' conftest.$ac_ext >&5
27201 ac_cv_type_int64=yes
27204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27206 $as_echo "$as_me: failed program was:" >&5
27207 sed 's/^/| /' conftest.$ac_ext >&5
27212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27214 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
27215 $as_echo "$ac_cv_type_int64" >&6; }
27216 if test "x$ac_cv_type_int64" = x""yes; then
27218 cat >>confdefs.h <<_ACEOF
27219 #define HAVE_INT64 1
27224 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
27225 $as_echo_n "checking for uint64... " >&6; }
27226 if test "${ac_cv_type_uint64+set}" = set; then
27227 $as_echo_n "(cached) " >&6
27229 ac_cv_type_uint64=no
27230 cat >conftest.$ac_ext <<_ACEOF
27233 cat confdefs.h >>conftest.$ac_ext
27234 cat >>conftest.$ac_ext <<_ACEOF
27235 /* end confdefs.h. */
27237 #ifdef HAVE_SUPPORTDEFS_H
27238 #include <SupportDefs.h>
27244 if (sizeof (uint64))
27250 rm -f conftest.$ac_objext
27251 if { (ac_try="$ac_compile"
27252 case "(($ac_try" in
27253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27254 *) ac_try_echo=$ac_try;;
27256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27257 $as_echo "$ac_try_echo") >&5
27258 (eval "$ac_compile") 2>conftest.er1
27260 grep -v '^ *+' conftest.er1 >conftest.err
27262 cat conftest.err >&5
27263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27264 (exit $ac_status); } && {
27265 test -z "$ac_c_werror_flag" ||
27266 test ! -s conftest.err
27267 } && test -s conftest.$ac_objext; then
27268 cat >conftest.$ac_ext <<_ACEOF
27271 cat confdefs.h >>conftest.$ac_ext
27272 cat >>conftest.$ac_ext <<_ACEOF
27273 /* end confdefs.h. */
27275 #ifdef HAVE_SUPPORTDEFS_H
27276 #include <SupportDefs.h>
27282 if (sizeof ((uint64)))
27288 rm -f conftest.$ac_objext
27289 if { (ac_try="$ac_compile"
27290 case "(($ac_try" in
27291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27292 *) ac_try_echo=$ac_try;;
27294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27295 $as_echo "$ac_try_echo") >&5
27296 (eval "$ac_compile") 2>conftest.er1
27298 grep -v '^ *+' conftest.er1 >conftest.err
27300 cat conftest.err >&5
27301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302 (exit $ac_status); } && {
27303 test -z "$ac_c_werror_flag" ||
27304 test ! -s conftest.err
27305 } && test -s conftest.$ac_objext; then
27308 $as_echo "$as_me: failed program was:" >&5
27309 sed 's/^/| /' conftest.$ac_ext >&5
27311 ac_cv_type_uint64=yes
27314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27316 $as_echo "$as_me: failed program was:" >&5
27317 sed 's/^/| /' conftest.$ac_ext >&5
27322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27324 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
27325 $as_echo "$ac_cv_type_uint64" >&6; }
27326 if test "x$ac_cv_type_uint64" = x""yes; then
27328 cat >>confdefs.h <<_ACEOF
27329 #define HAVE_UINT64 1
27336 # We also check for sig_atomic_t, which *should* be defined per ANSI
27337 # C, but is missing on some old platforms.
27338 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
27339 $as_echo_n "checking for sig_atomic_t... " >&6; }
27340 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
27341 $as_echo_n "(cached) " >&6
27343 ac_cv_type_sig_atomic_t=no
27344 cat >conftest.$ac_ext <<_ACEOF
27347 cat confdefs.h >>conftest.$ac_ext
27348 cat >>conftest.$ac_ext <<_ACEOF
27349 /* end confdefs.h. */
27350 #include <signal.h>
27355 if (sizeof (sig_atomic_t))
27361 rm -f conftest.$ac_objext
27362 if { (ac_try="$ac_compile"
27363 case "(($ac_try" in
27364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27365 *) ac_try_echo=$ac_try;;
27367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27368 $as_echo "$ac_try_echo") >&5
27369 (eval "$ac_compile") 2>conftest.er1
27371 grep -v '^ *+' conftest.er1 >conftest.err
27373 cat conftest.err >&5
27374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375 (exit $ac_status); } && {
27376 test -z "$ac_c_werror_flag" ||
27377 test ! -s conftest.err
27378 } && test -s conftest.$ac_objext; then
27379 cat >conftest.$ac_ext <<_ACEOF
27382 cat confdefs.h >>conftest.$ac_ext
27383 cat >>conftest.$ac_ext <<_ACEOF
27384 /* end confdefs.h. */
27385 #include <signal.h>
27390 if (sizeof ((sig_atomic_t)))
27396 rm -f conftest.$ac_objext
27397 if { (ac_try="$ac_compile"
27398 case "(($ac_try" in
27399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27400 *) ac_try_echo=$ac_try;;
27402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27403 $as_echo "$ac_try_echo") >&5
27404 (eval "$ac_compile") 2>conftest.er1
27406 grep -v '^ *+' conftest.er1 >conftest.err
27408 cat conftest.err >&5
27409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410 (exit $ac_status); } && {
27411 test -z "$ac_c_werror_flag" ||
27412 test ! -s conftest.err
27413 } && test -s conftest.$ac_objext; then
27416 $as_echo "$as_me: failed program was:" >&5
27417 sed 's/^/| /' conftest.$ac_ext >&5
27419 ac_cv_type_sig_atomic_t=yes
27422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27424 $as_echo "$as_me: failed program was:" >&5
27425 sed 's/^/| /' conftest.$ac_ext >&5
27430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27432 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
27433 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
27434 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
27436 cat >>confdefs.h <<_ACEOF
27437 #define HAVE_SIG_ATOMIC_T 1
27445 if test "$PORTNAME" != "win32"
27447 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
27448 $as_echo_n "checking for POSIX signal interface... " >&6; }
27449 if test "${pgac_cv_func_posix_signals+set}" = set; then
27450 $as_echo_n "(cached) " >&6
27452 cat >conftest.$ac_ext <<_ACEOF
27455 cat confdefs.h >>conftest.$ac_ext
27456 cat >>conftest.$ac_ext <<_ACEOF
27457 /* end confdefs.h. */
27458 #include <signal.h>
27463 struct sigaction act, oact;
27464 sigemptyset(&act.sa_mask);
27465 act.sa_flags = SA_RESTART;
27466 sigaction(0, &act, &oact);
27471 rm -f conftest.$ac_objext conftest$ac_exeext
27472 if { (ac_try="$ac_link"
27473 case "(($ac_try" in
27474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27475 *) ac_try_echo=$ac_try;;
27477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27478 $as_echo "$ac_try_echo") >&5
27479 (eval "$ac_link") 2>conftest.er1
27481 grep -v '^ *+' conftest.er1 >conftest.err
27483 cat conftest.err >&5
27484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27485 (exit $ac_status); } && {
27486 test -z "$ac_c_werror_flag" ||
27487 test ! -s conftest.err
27488 } && test -s conftest$ac_exeext && {
27489 test "$cross_compiling" = yes ||
27490 $as_test_x conftest$ac_exeext
27492 pgac_cv_func_posix_signals=yes
27494 $as_echo "$as_me: failed program was:" >&5
27495 sed 's/^/| /' conftest.$ac_ext >&5
27497 pgac_cv_func_posix_signals=no
27500 rm -rf conftest.dSYM
27501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27502 conftest$ac_exeext conftest.$ac_ext
27504 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
27505 $as_echo "$pgac_cv_func_posix_signals" >&6; }
27506 if test x"$pgac_cv_func_posix_signals" = xyes ; then
27508 cat >>confdefs.h <<\_ACEOF
27509 #define HAVE_POSIX_SIGNALS /**/
27513 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
27515 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
27516 { { $as_echo "$as_me:$LINENO: error:
27517 Thread-safety requires POSIX signals, which are not supported by this
27518 operating system; use --disable-thread-safety to disable thread safety." >&5
27519 $as_echo "$as_me: error:
27520 Thread-safety requires POSIX signals, which are not supported by this
27521 operating system; use --disable-thread-safety to disable thread safety." >&2;}
27522 { (exit 1); exit 1; }; }
27526 # SunOS doesn't handle negative byte comparisons properly with +/- return
27527 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
27528 $as_echo_n "checking for working memcmp... " >&6; }
27529 if test "${ac_cv_func_memcmp_working+set}" = set; then
27530 $as_echo_n "(cached) " >&6
27532 if test "$cross_compiling" = yes; then
27533 ac_cv_func_memcmp_working=no
27535 cat >conftest.$ac_ext <<_ACEOF
27538 cat confdefs.h >>conftest.$ac_ext
27539 cat >>conftest.$ac_ext <<_ACEOF
27540 /* end confdefs.h. */
27541 $ac_includes_default
27546 /* Some versions of memcmp are not 8-bit clean. */
27547 char c0 = '\100', c1 = '\200', c2 = '\201';
27548 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27551 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27552 or more and with at least one buffer not starting on a 4-byte boundary.
27553 William Lewis provided this test program. */
27558 for (i = 0; i < 4; i++)
27562 strcpy (a, "--------01111111");
27563 strcpy (b, "--------10000000");
27564 if (memcmp (a, b, 16) >= 0)
27574 rm -f conftest$ac_exeext
27575 if { (ac_try="$ac_link"
27576 case "(($ac_try" in
27577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27578 *) ac_try_echo=$ac_try;;
27580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27581 $as_echo "$ac_try_echo") >&5
27582 (eval "$ac_link") 2>&5
27584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27586 { (case "(($ac_try" in
27587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27588 *) ac_try_echo=$ac_try;;
27590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27591 $as_echo "$ac_try_echo") >&5
27592 (eval "$ac_try") 2>&5
27594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595 (exit $ac_status); }; }; then
27596 ac_cv_func_memcmp_working=yes
27598 $as_echo "$as_me: program exited with status $ac_status" >&5
27599 $as_echo "$as_me: failed program was:" >&5
27600 sed 's/^/| /' conftest.$ac_ext >&5
27602 ( exit $ac_status )
27603 ac_cv_func_memcmp_working=no
27605 rm -rf conftest.dSYM
27606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27611 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27612 $as_echo "$ac_cv_func_memcmp_working" >&6; }
27613 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27614 *" memcmp.$ac_objext "* ) ;;
27615 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27622 # Select semaphore implementation type.
27623 if test "$PORTNAME" != "win32"; then
27624 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
27626 cat >>confdefs.h <<\_ACEOF
27627 #define USE_NAMED_POSIX_SEMAPHORES 1
27630 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27632 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
27634 cat >>confdefs.h <<\_ACEOF
27635 #define USE_UNNAMED_POSIX_SEMAPHORES 1
27638 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27641 cat >>confdefs.h <<\_ACEOF
27642 #define USE_SYSV_SEMAPHORES 1
27645 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
27650 cat >>confdefs.h <<\_ACEOF
27651 #define USE_WIN32_SEMAPHORES 1
27654 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
27658 # Select shared-memory implementation type.
27659 if test "$PORTNAME" != "win32"; then
27661 cat >>confdefs.h <<\_ACEOF
27662 #define USE_SYSV_SHARED_MEMORY 1
27665 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
27668 cat >>confdefs.h <<\_ACEOF
27669 #define USE_WIN32_SHARED_MEMORY 1
27672 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
27675 # If not set in template file, set bytes to use libc memset()
27676 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
27677 MEMSET_LOOP_LIMIT=1024
27680 cat >>confdefs.h <<_ACEOF
27681 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
27686 if test "$enable_nls" = yes ; then
27688 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
27689 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
27690 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27691 $as_echo_n "(cached) " >&6
27693 ac_func_search_save_LIBS=$LIBS
27694 cat >conftest.$ac_ext <<_ACEOF
27697 cat confdefs.h >>conftest.$ac_ext
27698 cat >>conftest.$ac_ext <<_ACEOF
27699 /* end confdefs.h. */
27701 /* Override any GCC internal prototype to avoid an error.
27702 Use char because int might match the return type of a GCC
27703 builtin and then its argument prototype would still apply. */
27707 char bind_textdomain_codeset ();
27711 return bind_textdomain_codeset ();
27716 for ac_lib in '' intl; do
27717 if test -z "$ac_lib"; then
27718 ac_res="none required"
27721 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27723 rm -f conftest.$ac_objext conftest$ac_exeext
27724 if { (ac_try="$ac_link"
27725 case "(($ac_try" in
27726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27727 *) ac_try_echo=$ac_try;;
27729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27730 $as_echo "$ac_try_echo") >&5
27731 (eval "$ac_link") 2>conftest.er1
27733 grep -v '^ *+' conftest.er1 >conftest.err
27735 cat conftest.err >&5
27736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737 (exit $ac_status); } && {
27738 test -z "$ac_c_werror_flag" ||
27739 test ! -s conftest.err
27740 } && test -s conftest$ac_exeext && {
27741 test "$cross_compiling" = yes ||
27742 $as_test_x conftest$ac_exeext
27744 ac_cv_search_bind_textdomain_codeset=$ac_res
27746 $as_echo "$as_me: failed program was:" >&5
27747 sed 's/^/| /' conftest.$ac_ext >&5
27752 rm -rf conftest.dSYM
27753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27755 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27759 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27762 ac_cv_search_bind_textdomain_codeset=no
27764 rm conftest.$ac_ext
27765 LIBS=$ac_func_search_save_LIBS
27767 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
27768 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
27769 ac_res=$ac_cv_search_bind_textdomain_codeset
27770 if test "$ac_res" != no; then
27771 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27774 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
27775 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
27776 { (exit 1); exit 1; }; }
27779 if test "${ac_cv_header_libintl_h+set}" = set; then
27780 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27781 $as_echo_n "checking for libintl.h... " >&6; }
27782 if test "${ac_cv_header_libintl_h+set}" = set; then
27783 $as_echo_n "(cached) " >&6
27785 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27786 $as_echo "$ac_cv_header_libintl_h" >&6; }
27788 # Is the header compilable?
27789 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
27790 $as_echo_n "checking libintl.h usability... " >&6; }
27791 cat >conftest.$ac_ext <<_ACEOF
27794 cat confdefs.h >>conftest.$ac_ext
27795 cat >>conftest.$ac_ext <<_ACEOF
27796 /* end confdefs.h. */
27797 $ac_includes_default
27798 #include <libintl.h>
27800 rm -f conftest.$ac_objext
27801 if { (ac_try="$ac_compile"
27802 case "(($ac_try" in
27803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27804 *) ac_try_echo=$ac_try;;
27806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27807 $as_echo "$ac_try_echo") >&5
27808 (eval "$ac_compile") 2>conftest.er1
27810 grep -v '^ *+' conftest.er1 >conftest.err
27812 cat conftest.err >&5
27813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814 (exit $ac_status); } && {
27815 test -z "$ac_c_werror_flag" ||
27816 test ! -s conftest.err
27817 } && test -s conftest.$ac_objext; then
27818 ac_header_compiler=yes
27820 $as_echo "$as_me: failed program was:" >&5
27821 sed 's/^/| /' conftest.$ac_ext >&5
27823 ac_header_compiler=no
27826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27827 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27828 $as_echo "$ac_header_compiler" >&6; }
27830 # Is the header present?
27831 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
27832 $as_echo_n "checking libintl.h presence... " >&6; }
27833 cat >conftest.$ac_ext <<_ACEOF
27836 cat confdefs.h >>conftest.$ac_ext
27837 cat >>conftest.$ac_ext <<_ACEOF
27838 /* end confdefs.h. */
27839 #include <libintl.h>
27841 if { (ac_try="$ac_cpp conftest.$ac_ext"
27842 case "(($ac_try" in
27843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27844 *) ac_try_echo=$ac_try;;
27846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27847 $as_echo "$ac_try_echo") >&5
27848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27850 grep -v '^ *+' conftest.er1 >conftest.err
27852 cat conftest.err >&5
27853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854 (exit $ac_status); } >/dev/null && {
27855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27856 test ! -s conftest.err
27858 ac_header_preproc=yes
27860 $as_echo "$as_me: failed program was:" >&5
27861 sed 's/^/| /' conftest.$ac_ext >&5
27863 ac_header_preproc=no
27866 rm -f conftest.err conftest.$ac_ext
27867 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27868 $as_echo "$ac_header_preproc" >&6; }
27870 # So? What about this header?
27871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27873 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27874 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27875 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
27876 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
27877 ac_header_preproc=yes
27880 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
27881 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
27882 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
27883 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
27884 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
27885 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
27886 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
27887 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
27888 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
27889 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
27890 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
27891 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
27893 ## ---------------------------------------- ##
27894 ## Report this to pgsql-bugs@postgresql.org ##
27895 ## ---------------------------------------- ##
27897 ) | sed "s/^/$as_me: WARNING: /" >&2
27900 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27901 $as_echo_n "checking for libintl.h... " >&6; }
27902 if test "${ac_cv_header_libintl_h+set}" = set; then
27903 $as_echo_n "(cached) " >&6
27905 ac_cv_header_libintl_h=$ac_header_preproc
27907 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27908 $as_echo "$ac_cv_header_libintl_h" >&6; }
27911 if test "x$ac_cv_header_libintl_h" = x""yes; then
27914 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
27915 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
27916 { (exit 1); exit 1; }; }
27920 for ac_prog in msgfmt
27922 # Extract the first word of "$ac_prog", so it can be a program name with args.
27923 set dummy $ac_prog; ac_word=$2
27924 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27925 $as_echo_n "checking for $ac_word... " >&6; }
27926 if test "${ac_cv_prog_MSGFMT+set}" = set; then
27927 $as_echo_n "(cached) " >&6
27929 if test -n "$MSGFMT"; then
27930 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
27932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27933 for as_dir in $PATH
27936 test -z "$as_dir" && as_dir=.
27937 for ac_exec_ext in '' $ac_executable_extensions; do
27938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27939 ac_cv_prog_MSGFMT="$ac_prog"
27940 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27949 MSGFMT=$ac_cv_prog_MSGFMT
27950 if test -n "$MSGFMT"; then
27951 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
27952 $as_echo "$MSGFMT" >&6; }
27954 { $as_echo "$as_me:$LINENO: result: no" >&5
27955 $as_echo "no" >&6; }
27959 test -n "$MSGFMT" && break
27962 if test -z "$MSGFMT"; then
27963 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
27964 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
27965 { (exit 1); exit 1; }; }
27967 for ac_prog in msgmerge
27969 # Extract the first word of "$ac_prog", so it can be a program name with args.
27970 set dummy $ac_prog; ac_word=$2
27971 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27972 $as_echo_n "checking for $ac_word... " >&6; }
27973 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
27974 $as_echo_n "(cached) " >&6
27976 if test -n "$MSGMERGE"; then
27977 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
27979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27980 for as_dir in $PATH
27983 test -z "$as_dir" && as_dir=.
27984 for ac_exec_ext in '' $ac_executable_extensions; do
27985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27986 ac_cv_prog_MSGMERGE="$ac_prog"
27987 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27996 MSGMERGE=$ac_cv_prog_MSGMERGE
27997 if test -n "$MSGMERGE"; then
27998 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
27999 $as_echo "$MSGMERGE" >&6; }
28001 { $as_echo "$as_me:$LINENO: result: no" >&5
28002 $as_echo "no" >&6; }
28006 test -n "$MSGMERGE" && break
28009 for ac_prog in xgettext
28011 # Extract the first word of "$ac_prog", so it can be a program name with args.
28012 set dummy $ac_prog; ac_word=$2
28013 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28014 $as_echo_n "checking for $ac_word... " >&6; }
28015 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28016 $as_echo_n "(cached) " >&6
28018 if test -n "$XGETTEXT"; then
28019 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28022 for as_dir in $PATH
28025 test -z "$as_dir" && as_dir=.
28026 for ac_exec_ext in '' $ac_executable_extensions; do
28027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28028 ac_cv_prog_XGETTEXT="$ac_prog"
28029 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28038 XGETTEXT=$ac_cv_prog_XGETTEXT
28039 if test -n "$XGETTEXT"; then
28040 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28041 $as_echo "$XGETTEXT" >&6; }
28043 { $as_echo "$as_me:$LINENO: result: no" >&5
28044 $as_echo "no" >&6; }
28048 test -n "$XGETTEXT" && break
28054 # Check for Tcl configuration script tclConfig.sh
28055 if test "$with_tcl" = yes; then
28056 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28058 # Extract the first word of "$ac_prog", so it can be a program name with args.
28059 set dummy $ac_prog; ac_word=$2
28060 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28061 $as_echo_n "checking for $ac_word... " >&6; }
28062 if test "${ac_cv_path_TCLSH+set}" = set; then
28063 $as_echo_n "(cached) " >&6
28067 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28071 for as_dir in $PATH
28074 test -z "$as_dir" && as_dir=.
28075 for ac_exec_ext in '' $ac_executable_extensions; do
28076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28077 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28078 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28088 TCLSH=$ac_cv_path_TCLSH
28089 if test -n "$TCLSH"; then
28090 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28091 $as_echo "$TCLSH" >&6; }
28093 { $as_echo "$as_me:$LINENO: result: no" >&5
28094 $as_echo "no" >&6; }
28098 test -n "$TCLSH" && break
28101 if test x"$TCLSH" = x""; then
28102 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28103 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28104 { (exit 1); exit 1; }; }
28107 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28108 $as_echo_n "checking for tclConfig.sh... " >&6; }
28109 # Let user override test
28110 if test -z "$TCL_CONFIG_SH"; then
28111 pgac_test_dirs="$with_tclconfig"
28113 set X $pgac_test_dirs; shift
28114 if test $# -eq 0; then
28115 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28116 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28117 { (exit 1); exit 1; }; }
28118 set X `echo 'puts $auto_path' | $TCLSH`; shift
28122 if test -r "$pgac_dir/tclConfig.sh"; then
28123 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28129 if test -z "$TCL_CONFIG_SH"; then
28130 { $as_echo "$as_me:$LINENO: result: no" >&5
28131 $as_echo "no" >&6; }
28132 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28133 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28134 { (exit 1); exit 1; }; }
28136 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28137 $as_echo "$TCL_CONFIG_SH" >&6; }
28143 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28144 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28145 eval TCL_LIBS=\"$TCL_LIBS\"
28146 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28147 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28149 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28150 ac_save_CPPFLAGS=$CPPFLAGS
28151 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28152 if test "${ac_cv_header_tcl_h+set}" = set; then
28153 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28154 $as_echo_n "checking for tcl.h... " >&6; }
28155 if test "${ac_cv_header_tcl_h+set}" = set; then
28156 $as_echo_n "(cached) " >&6
28158 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28159 $as_echo "$ac_cv_header_tcl_h" >&6; }
28161 # Is the header compilable?
28162 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28163 $as_echo_n "checking tcl.h usability... " >&6; }
28164 cat >conftest.$ac_ext <<_ACEOF
28167 cat confdefs.h >>conftest.$ac_ext
28168 cat >>conftest.$ac_ext <<_ACEOF
28169 /* end confdefs.h. */
28170 $ac_includes_default
28173 rm -f conftest.$ac_objext
28174 if { (ac_try="$ac_compile"
28175 case "(($ac_try" in
28176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28177 *) ac_try_echo=$ac_try;;
28179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28180 $as_echo "$ac_try_echo") >&5
28181 (eval "$ac_compile") 2>conftest.er1
28183 grep -v '^ *+' conftest.er1 >conftest.err
28185 cat conftest.err >&5
28186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28187 (exit $ac_status); } && {
28188 test -z "$ac_c_werror_flag" ||
28189 test ! -s conftest.err
28190 } && test -s conftest.$ac_objext; then
28191 ac_header_compiler=yes
28193 $as_echo "$as_me: failed program was:" >&5
28194 sed 's/^/| /' conftest.$ac_ext >&5
28196 ac_header_compiler=no
28199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28200 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28201 $as_echo "$ac_header_compiler" >&6; }
28203 # Is the header present?
28204 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28205 $as_echo_n "checking tcl.h presence... " >&6; }
28206 cat >conftest.$ac_ext <<_ACEOF
28209 cat confdefs.h >>conftest.$ac_ext
28210 cat >>conftest.$ac_ext <<_ACEOF
28211 /* end confdefs.h. */
28214 if { (ac_try="$ac_cpp conftest.$ac_ext"
28215 case "(($ac_try" in
28216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28217 *) ac_try_echo=$ac_try;;
28219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28220 $as_echo "$ac_try_echo") >&5
28221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28223 grep -v '^ *+' conftest.er1 >conftest.err
28225 cat conftest.err >&5
28226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227 (exit $ac_status); } >/dev/null && {
28228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28229 test ! -s conftest.err
28231 ac_header_preproc=yes
28233 $as_echo "$as_me: failed program was:" >&5
28234 sed 's/^/| /' conftest.$ac_ext >&5
28236 ac_header_preproc=no
28239 rm -f conftest.err conftest.$ac_ext
28240 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28241 $as_echo "$ac_header_preproc" >&6; }
28243 # So? What about this header?
28244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28246 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28247 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28248 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
28249 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
28250 ac_header_preproc=yes
28253 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
28254 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
28255 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
28256 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
28257 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
28258 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
28259 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
28260 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28261 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
28262 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
28263 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
28264 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
28266 ## ---------------------------------------- ##
28267 ## Report this to pgsql-bugs@postgresql.org ##
28268 ## ---------------------------------------- ##
28270 ) | sed "s/^/$as_me: WARNING: /" >&2
28273 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28274 $as_echo_n "checking for tcl.h... " >&6; }
28275 if test "${ac_cv_header_tcl_h+set}" = set; then
28276 $as_echo_n "(cached) " >&6
28278 ac_cv_header_tcl_h=$ac_header_preproc
28280 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28281 $as_echo "$ac_cv_header_tcl_h" >&6; }
28284 if test "x$ac_cv_header_tcl_h" = x""yes; then
28287 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
28288 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
28289 { (exit 1); exit 1; }; }
28293 CPPFLAGS=$ac_save_CPPFLAGS
28297 # Check for DocBook and tools
28299 for ac_prog in onsgmls nsgmls
28301 # Extract the first word of "$ac_prog", so it can be a program name with args.
28302 set dummy $ac_prog; ac_word=$2
28303 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28304 $as_echo_n "checking for $ac_word... " >&6; }
28305 if test "${ac_cv_prog_NSGMLS+set}" = set; then
28306 $as_echo_n "(cached) " >&6
28308 if test -n "$NSGMLS"; then
28309 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
28311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28312 for as_dir in $PATH
28315 test -z "$as_dir" && as_dir=.
28316 for ac_exec_ext in '' $ac_executable_extensions; do
28317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28318 ac_cv_prog_NSGMLS="$ac_prog"
28319 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28328 NSGMLS=$ac_cv_prog_NSGMLS
28329 if test -n "$NSGMLS"; then
28330 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
28331 $as_echo "$NSGMLS" >&6; }
28333 { $as_echo "$as_me:$LINENO: result: no" >&5
28334 $as_echo "no" >&6; }
28338 test -n "$NSGMLS" && break
28341 for ac_prog in openjade jade
28343 # Extract the first word of "$ac_prog", so it can be a program name with args.
28344 set dummy $ac_prog; ac_word=$2
28345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28346 $as_echo_n "checking for $ac_word... " >&6; }
28347 if test "${ac_cv_prog_JADE+set}" = set; then
28348 $as_echo_n "(cached) " >&6
28350 if test -n "$JADE"; then
28351 ac_cv_prog_JADE="$JADE" # Let the user override the test.
28353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28354 for as_dir in $PATH
28357 test -z "$as_dir" && as_dir=.
28358 for ac_exec_ext in '' $ac_executable_extensions; do
28359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28360 ac_cv_prog_JADE="$ac_prog"
28361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28370 JADE=$ac_cv_prog_JADE
28371 if test -n "$JADE"; then
28372 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
28373 $as_echo "$JADE" >&6; }
28375 { $as_echo "$as_me:$LINENO: result: no" >&5
28376 $as_echo "no" >&6; }
28380 test -n "$JADE" && break
28384 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
28385 $as_echo_n "checking for DocBook V4.2... " >&6; }
28386 if test "${pgac_cv_check_docbook+set}" = set; then
28387 $as_echo_n "(cached) " >&6
28389 cat >conftest.sgml <<EOF
28390 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
28392 <title>test</title>
28394 <title>random</title>
28396 <title>testsect</title>
28403 pgac_cv_check_docbook=no
28405 if test -n "$NSGMLS"; then
28406 $NSGMLS -s conftest.sgml 1>&5 2>&1
28407 if test $? -eq 0; then
28408 pgac_cv_check_docbook=yes
28411 rm -f conftest.sgml
28413 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
28414 $as_echo "$pgac_cv_check_docbook" >&6; }
28416 have_docbook=$pgac_cv_check_docbook
28419 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
28420 $as_echo_n "checking for DocBook stylesheets... " >&6; }
28421 if test "${pgac_cv_path_stylesheets+set}" = set; then
28422 $as_echo_n "(cached) " >&6
28424 if test -n "$DOCBOOKSTYLE"; then
28425 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
28427 for pgac_prefix in /usr /usr/local /opt /sw; do
28428 for pgac_infix in share lib; do
28429 for pgac_postfix in \
28430 sgml/stylesheets/nwalsh-modular \
28431 sgml/stylesheets/docbook \
28432 sgml/stylesheets/dsssl/docbook \
28433 sgml/docbook-dsssl \
28434 sgml/docbook/dsssl/modular \
28435 sgml/docbook/stylesheet/dsssl/modular \
28436 sgml/docbook/dsssl-stylesheets \
28437 sgml/dsssl/docbook-dsssl-nwalsh
28439 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
28440 if test -r "$pgac_candidate/html/docbook.dsl" \
28441 && test -r "$pgac_candidate/print/docbook.dsl"
28443 pgac_cv_path_stylesheets=$pgac_candidate
28452 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
28454 if test -n "$DOCBOOKSTYLE"; then
28455 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
28456 $as_echo "$DOCBOOKSTYLE" >&6; }
28458 { $as_echo "$as_me:$LINENO: result: no" >&5
28459 $as_echo "no" >&6; }
28461 if test -n "$DOCBOOKSTYLE"; then
28462 for ac_prog in collateindex.pl
28464 # Extract the first word of "$ac_prog", so it can be a program name with args.
28465 set dummy $ac_prog; ac_word=$2
28466 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28467 $as_echo_n "checking for $ac_word... " >&6; }
28468 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28469 $as_echo_n "(cached) " >&6
28471 case $COLLATEINDEX in
28473 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28477 for as_dir in $DOCBOOKSTYLE/bin $PATH
28480 test -z "$as_dir" && as_dir=.
28481 for ac_exec_ext in '' $ac_executable_extensions; do
28482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28483 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28484 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28494 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28495 if test -n "$COLLATEINDEX"; then
28496 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28497 $as_echo "$COLLATEINDEX" >&6; }
28499 { $as_echo "$as_me:$LINENO: result: no" >&5
28500 $as_echo "no" >&6; }
28504 test -n "$COLLATEINDEX" && break
28508 for ac_prog in collateindex.pl
28510 # Extract the first word of "$ac_prog", so it can be a program name with args.
28511 set dummy $ac_prog; ac_word=$2
28512 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28513 $as_echo_n "checking for $ac_word... " >&6; }
28514 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28515 $as_echo_n "(cached) " >&6
28517 case $COLLATEINDEX in
28519 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28523 for as_dir in $PATH
28526 test -z "$as_dir" && as_dir=.
28527 for ac_exec_ext in '' $ac_executable_extensions; do
28528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28529 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28530 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28540 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28541 if test -n "$COLLATEINDEX"; then
28542 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28543 $as_echo "$COLLATEINDEX" >&6; }
28545 { $as_echo "$as_me:$LINENO: result: no" >&5
28546 $as_echo "no" >&6; }
28550 test -n "$COLLATEINDEX" && break
28554 for ac_prog in xsltproc
28556 # Extract the first word of "$ac_prog", so it can be a program name with args.
28557 set dummy $ac_prog; ac_word=$2
28558 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28559 $as_echo_n "checking for $ac_word... " >&6; }
28560 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
28561 $as_echo_n "(cached) " >&6
28563 if test -n "$XSLTPROC"; then
28564 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
28566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28567 for as_dir in $PATH
28570 test -z "$as_dir" && as_dir=.
28571 for ac_exec_ext in '' $ac_executable_extensions; do
28572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28573 ac_cv_prog_XSLTPROC="$ac_prog"
28574 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28583 XSLTPROC=$ac_cv_prog_XSLTPROC
28584 if test -n "$XSLTPROC"; then
28585 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
28586 $as_echo "$XSLTPROC" >&6; }
28588 { $as_echo "$as_me:$LINENO: result: no" >&5
28589 $as_echo "no" >&6; }
28593 test -n "$XSLTPROC" && break
28596 for ac_prog in osx sgml2xml sx
28598 # Extract the first word of "$ac_prog", so it can be a program name with args.
28599 set dummy $ac_prog; ac_word=$2
28600 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28601 $as_echo_n "checking for $ac_word... " >&6; }
28602 if test "${ac_cv_prog_OSX+set}" = set; then
28603 $as_echo_n "(cached) " >&6
28605 if test -n "$OSX"; then
28606 ac_cv_prog_OSX="$OSX" # Let the user override the test.
28608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28609 for as_dir in $PATH
28612 test -z "$as_dir" && as_dir=.
28613 for ac_exec_ext in '' $ac_executable_extensions; do
28614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28615 ac_cv_prog_OSX="$ac_prog"
28616 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28625 OSX=$ac_cv_prog_OSX
28626 if test -n "$OSX"; then
28627 { $as_echo "$as_me:$LINENO: result: $OSX" >&5
28628 $as_echo "$OSX" >&6; }
28630 { $as_echo "$as_me:$LINENO: result: no" >&5
28631 $as_echo "no" >&6; }
28635 test -n "$OSX" && break
28641 # We have to run the thread test near the end so we have all our symbols
28642 # defined. Cross compiling throws a warning.
28644 if test "$enable_thread_safety" = yes; then
28645 if test "$PORTNAME" != "win32"
28647 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
28648 $as_echo_n "checking thread safety of required library functions... " >&6; }
28652 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
28653 LIBS="$LIBS $PTHREAD_LIBS"
28654 if test "$cross_compiling" = yes; then
28655 { $as_echo "$as_me:$LINENO: result: maybe" >&5
28656 $as_echo "maybe" >&6; }
28657 { $as_echo "$as_me:$LINENO: WARNING:
28658 *** Skipping thread test program because of cross-compile build.
28659 *** Run the program in src/test/thread on the target machine.
28661 $as_echo "$as_me: WARNING:
28662 *** Skipping thread test program because of cross-compile build.
28663 *** Run the program in src/test/thread on the target machine.
28666 cat >conftest.$ac_ext <<_ACEOF
28669 cat confdefs.h >>conftest.$ac_ext
28670 cat >>conftest.$ac_ext <<_ACEOF
28671 /* end confdefs.h. */
28672 #include "$srcdir/src/test/thread/thread_test.c"
28674 rm -f conftest$ac_exeext
28675 if { (ac_try="$ac_link"
28676 case "(($ac_try" in
28677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28678 *) ac_try_echo=$ac_try;;
28680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28681 $as_echo "$ac_try_echo") >&5
28682 (eval "$ac_link") 2>&5
28684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28686 { (case "(($ac_try" in
28687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28688 *) ac_try_echo=$ac_try;;
28690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28691 $as_echo "$ac_try_echo") >&5
28692 (eval "$ac_try") 2>&5
28694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28695 (exit $ac_status); }; }; then
28696 { $as_echo "$as_me:$LINENO: result: yes" >&5
28697 $as_echo "yes" >&6; }
28699 $as_echo "$as_me: program exited with status $ac_status" >&5
28700 $as_echo "$as_me: failed program was:" >&5
28701 sed 's/^/| /' conftest.$ac_ext >&5
28703 ( exit $ac_status )
28704 { $as_echo "$as_me:$LINENO: result: no" >&5
28705 $as_echo "no" >&6; }
28706 { { $as_echo "$as_me:$LINENO: error: thread test program failed
28707 This platform is not thread-safe. Check the file 'config.log' or compile
28708 and run src/test/thread/thread_test for the exact reason.
28709 Use --disable-thread-safety to disable thread safety." >&5
28710 $as_echo "$as_me: error: thread test program failed
28711 This platform is not thread-safe. Check the file 'config.log' or compile
28712 and run src/test/thread/thread_test for the exact reason.
28713 Use --disable-thread-safety to disable thread safety." >&2;}
28714 { (exit 1); exit 1; }; }
28716 rm -rf conftest.dSYM
28717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28724 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
28725 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
28729 # If compiler will take -Wl,--as-needed (or various platform-specific
28730 # spellings thereof) then add that to LDFLAGS. This is much easier than
28731 # trying to filter LIBS to the minimum for each executable.
28732 # (Note that shared library links won't use this switch, though.)
28733 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
28734 # libreadline; therefore we postpone testing it until we know what library
28735 # dependencies readline has. The test code will try to link with $LIBS.
28736 if test "$with_readline" = yes; then
28737 link_test_func=readline
28739 link_test_func=exit
28742 if test "$PORTNAME" = "darwin"; then
28743 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
28744 $as_echo_n "checking if $CC supports -Wl,-dead_strip_dylibs... " >&6; }
28745 pgac_save_LDFLAGS=$LDFLAGS
28746 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
28747 if test "$cross_compiling" = yes; then
28748 LDFLAGS="$pgac_save_LDFLAGS"
28749 { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28750 $as_echo "assuming no" >&6; }
28752 cat >conftest.$ac_ext <<_ACEOF
28755 cat confdefs.h >>conftest.$ac_ext
28756 cat >>conftest.$ac_ext <<_ACEOF
28757 /* end confdefs.h. */
28758 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28767 rm -f conftest$ac_exeext
28768 if { (ac_try="$ac_link"
28769 case "(($ac_try" in
28770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28771 *) ac_try_echo=$ac_try;;
28773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28774 $as_echo "$ac_try_echo") >&5
28775 (eval "$ac_link") 2>&5
28777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28779 { (case "(($ac_try" in
28780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28781 *) ac_try_echo=$ac_try;;
28783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28784 $as_echo "$ac_try_echo") >&5
28785 (eval "$ac_try") 2>&5
28787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28788 (exit $ac_status); }; }; then
28789 { $as_echo "$as_me:$LINENO: result: yes" >&5
28790 $as_echo "yes" >&6; }
28792 $as_echo "$as_me: program exited with status $ac_status" >&5
28793 $as_echo "$as_me: failed program was:" >&5
28794 sed 's/^/| /' conftest.$ac_ext >&5
28796 ( exit $ac_status )
28797 LDFLAGS="$pgac_save_LDFLAGS"
28798 { $as_echo "$as_me:$LINENO: result: no" >&5
28799 $as_echo "no" >&6; }
28801 rm -rf conftest.dSYM
28802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28807 elif test "$PORTNAME" = "openbsd"; then
28808 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-Bdynamic" >&5
28809 $as_echo_n "checking if $CC supports -Wl,-Bdynamic... " >&6; }
28810 pgac_save_LDFLAGS=$LDFLAGS
28811 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
28812 if test "$cross_compiling" = yes; then
28813 LDFLAGS="$pgac_save_LDFLAGS"
28814 { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28815 $as_echo "assuming no" >&6; }
28817 cat >conftest.$ac_ext <<_ACEOF
28820 cat confdefs.h >>conftest.$ac_ext
28821 cat >>conftest.$ac_ext <<_ACEOF
28822 /* end confdefs.h. */
28823 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28832 rm -f conftest$ac_exeext
28833 if { (ac_try="$ac_link"
28834 case "(($ac_try" in
28835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28836 *) ac_try_echo=$ac_try;;
28838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28839 $as_echo "$ac_try_echo") >&5
28840 (eval "$ac_link") 2>&5
28842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28844 { (case "(($ac_try" in
28845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28846 *) ac_try_echo=$ac_try;;
28848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28849 $as_echo "$ac_try_echo") >&5
28850 (eval "$ac_try") 2>&5
28852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853 (exit $ac_status); }; }; then
28854 { $as_echo "$as_me:$LINENO: result: yes" >&5
28855 $as_echo "yes" >&6; }
28857 $as_echo "$as_me: program exited with status $ac_status" >&5
28858 $as_echo "$as_me: failed program was:" >&5
28859 sed 's/^/| /' conftest.$ac_ext >&5
28861 ( exit $ac_status )
28862 LDFLAGS="$pgac_save_LDFLAGS"
28863 { $as_echo "$as_me:$LINENO: result: no" >&5
28864 $as_echo "no" >&6; }
28866 rm -rf conftest.dSYM
28867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28873 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
28874 $as_echo_n "checking if $CC supports -Wl,--as-needed... " >&6; }
28875 pgac_save_LDFLAGS=$LDFLAGS
28876 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
28877 if test "$cross_compiling" = yes; then
28878 LDFLAGS="$pgac_save_LDFLAGS"
28879 { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28880 $as_echo "assuming no" >&6; }
28882 cat >conftest.$ac_ext <<_ACEOF
28885 cat confdefs.h >>conftest.$ac_ext
28886 cat >>conftest.$ac_ext <<_ACEOF
28887 /* end confdefs.h. */
28888 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28897 rm -f conftest$ac_exeext
28898 if { (ac_try="$ac_link"
28899 case "(($ac_try" in
28900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28901 *) ac_try_echo=$ac_try;;
28903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28904 $as_echo "$ac_try_echo") >&5
28905 (eval "$ac_link") 2>&5
28907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28909 { (case "(($ac_try" in
28910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28911 *) ac_try_echo=$ac_try;;
28913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28914 $as_echo "$ac_try_echo") >&5
28915 (eval "$ac_try") 2>&5
28917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918 (exit $ac_status); }; }; then
28919 { $as_echo "$as_me:$LINENO: result: yes" >&5
28920 $as_echo "yes" >&6; }
28922 $as_echo "$as_me: program exited with status $ac_status" >&5
28923 $as_echo "$as_me: failed program was:" >&5
28924 sed 's/^/| /' conftest.$ac_ext >&5
28926 ( exit $ac_status )
28927 LDFLAGS="$pgac_save_LDFLAGS"
28928 { $as_echo "$as_me:$LINENO: result: no" >&5
28929 $as_echo "no" >&6; }
28931 rm -rf conftest.dSYM
28932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28940 # Begin output steps
28942 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
28943 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
28944 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
28945 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
28946 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
28947 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
28949 # Create compiler version string
28950 if test x"$GCC" = x"yes" ; then
28951 cc_string="GCC `${CC} --version | sed q`"
28952 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
28953 cc_string=`${CC} -V 2>&1 | sed q`
28959 cat >>confdefs.h <<_ACEOF
28960 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
28964 # Supply a numeric version string for use by 3rd party add-ons
28965 # awk -F is a regex on some platforms, and not on others, so make "." a tab
28966 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
28968 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
28970 cat >>confdefs.h <<_ACEOF
28971 #define PG_VERSION_NUM $PG_VERSION_NUM
28976 # prepare build tree if outside source tree
28977 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
28978 # Note 2: /bin/pwd might be better than shell's built-in at getting
28979 # a symlink-free name.
28980 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
28984 if test "$no_create" != yes; then
28985 $as_echo_n "preparing build tree... " >&6
28986 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
28987 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
28988 || { { $as_echo "$as_me:$LINENO: error: failed" >&5
28989 $as_echo "$as_me: error: failed" >&2;}
28990 { (exit 1); exit 1; }; }
28991 { $as_echo "$as_me:$LINENO: result: done" >&5
28992 $as_echo "done" >&6; }
28998 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29001 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}"
29004 if test "$PORTNAME" = "win32"; then
29005 ac_config_commands="$ac_config_commands check_win32_symlinks"
29009 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29012 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29015 cat >confcache <<\_ACEOF
29016 # This file is a shell script that caches the results of configure
29017 # tests run on this system so they can be shared between configure
29018 # scripts and configure runs, see configure's option --config-cache.
29019 # It is not useful on other systems. If it contains results you don't
29020 # want to keep, you may remove or edit it.
29022 # config.status only pays attention to the cache file if you give it
29023 # the --recheck option to rerun configure.
29025 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29026 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29027 # following values.
29031 # The following way of writing the cache mishandles newlines in values,
29032 # but we know of no workaround that is simple, portable, and efficient.
29033 # So, we kill variables containing newlines.
29034 # Ultrix sh set writes to stderr and can't be redirected directly,
29035 # and sets the high bit in the cache file unless we assign to the vars.
29037 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29038 eval ac_val=\$$ac_var
29042 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29043 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29046 _ | IFS | as_nl) ;; #(
29047 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29048 *) $as_unset $ac_var ;;
29054 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29055 *${as_nl}ac_space=\ *)
29056 # `set' does not quote correctly, so add quotes (double-quote
29057 # substitution turns \\\\ into \\, and sed turns \\ into \).
29060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29063 # `set' quotes correctly as required by POSIX, so do not add quotes.
29064 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29073 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29075 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29077 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29078 if test -w "$cache_file"; then
29079 test "x$cache_file" != "x/dev/null" &&
29080 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29081 $as_echo "$as_me: updating cache $cache_file" >&6;}
29082 cat confcache >$cache_file
29084 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29085 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29090 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29091 # Let make expand exec_prefix.
29092 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29094 DEFS=-DHAVE_CONFIG_H
29098 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29099 # 1. Remove the extension, and $U if already installed.
29100 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29101 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29102 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29103 # will be set to the directory where LIBOBJS objects are built.
29104 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29105 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29107 LIBOBJS=$ac_libobjs
29109 LTLIBOBJS=$ac_ltlibobjs
29114 : ${CONFIG_STATUS=./config.status}
29116 ac_clean_files_save=$ac_clean_files
29117 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29118 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29119 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29120 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29122 # Generated by $as_me.
29123 # Run this file to recreate the current configuration.
29124 # Compiler output produced by configure, useful for debugging
29125 # configure, is in config.log if it exists.
29128 ac_cs_recheck=false
29130 SHELL=\${CONFIG_SHELL-$SHELL}
29133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29134 ## --------------------- ##
29135 ## M4sh Initialization. ##
29136 ## --------------------- ##
29138 # Be more Bourne compatible
29139 DUALCASE=1; export DUALCASE # for MKS sh
29140 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29143 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29144 # is contrary to our usage. Disable this feature.
29145 alias -g '${1+"$@"}'='"$@"'
29146 setopt NO_GLOB_SUBST
29148 case `(set -o) 2>/dev/null` in
29149 *posix*) set -o posix ;;
29158 # Avoid depending upon Character Ranges.
29159 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29160 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29161 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29162 as_cr_digits='0123456789'
29163 as_cr_alnum=$as_cr_Letters$as_cr_digits
29168 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29169 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29170 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29171 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29172 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29173 as_echo='printf %s\n'
29174 as_echo_n='printf %s'
29176 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29177 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29178 as_echo_n='/usr/ucb/echo -n'
29180 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29181 as_echo_n_body='eval
29185 expr "X$arg" : "X\\(.*\\)$as_nl";
29186 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29188 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29190 export as_echo_n_body
29191 as_echo_n='sh -c $as_echo_n_body as_echo'
29193 export as_echo_body
29194 as_echo='sh -c $as_echo_body as_echo'
29197 # The user is always right.
29198 if test "${PATH_SEPARATOR+set}" != set; then
29200 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29201 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29206 # Support unset when possible.
29207 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29215 # We need space, tab and new line, in precisely that order. Quoting is
29216 # there to prevent editors from complaining about space-tab.
29217 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29218 # splitting by setting IFS to empty value.)
29221 # Find who we are. Look in the path if we contain no directory separator.
29223 *[\\/]* ) as_myself=$0 ;;
29224 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29225 for as_dir in $PATH
29228 test -z "$as_dir" && as_dir=.
29229 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29235 # We did not find ourselves, most probably we were run as `sh COMMAND'
29236 # in which case we are not to be found in the path.
29237 if test "x$as_myself" = x; then
29240 if test ! -f "$as_myself"; then
29241 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29242 { (exit 1); exit 1; }
29245 # Work around bugs in pre-3.0 UWIN ksh.
29246 for as_var in ENV MAIL MAILPATH
29247 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29259 # Required to use basename.
29260 if expr a : '\(a\)' >/dev/null 2>&1 &&
29261 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29267 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29268 as_basename=basename
29274 # Name of the executable.
29275 as_me=`$as_basename -- "$0" ||
29276 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29277 X"$0" : 'X\(//\)$' \| \
29278 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29280 sed '/^.*\/\([^/][^/]*\)\/*$/{
29299 as_lineno_1=$LINENO
29300 as_lineno_2=$LINENO
29301 test "x$as_lineno_1" != "x$as_lineno_2" &&
29302 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29304 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29305 # uniformly replaced by the line number. The first 'sed' inserts a
29306 # line-number line after each line using $LINENO; the second 'sed'
29307 # does the real work. The second script uses 'N' to pair each
29308 # line-number line with the line containing $LINENO, and appends
29309 # trailing '-' during substitution so that $LINENO is not a special
29310 # case at line end.
29311 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29312 # scripts with optimization help from Paolo Bonzini. Blame Lee
29313 # E. McMahon (1931-1989) for sed's syntax. :-)
29325 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29328 ' >$as_me.lineno &&
29329 chmod +x "$as_me.lineno" ||
29330 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29331 { (exit 1); exit 1; }; }
29333 # Don't try to exec as it changes $[0], causing all sort of problems
29334 # (the dirname of $[0] is not the place where we might find the
29335 # original and so on. Autoconf is especially sensitive to this).
29336 . "./$as_me.lineno"
29337 # Exit status is that of the last command.
29342 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29348 ECHO_C= ECHO_N= ECHO_T=
29349 case `echo -n x` in
29351 case `echo 'x\c'` in
29352 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29358 if expr a : '\(a\)' >/dev/null 2>&1 &&
29359 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29365 rm -f conf$$ conf$$.exe conf$$.file
29366 if test -d conf$$.dir; then
29367 rm -f conf$$.dir/conf$$.file
29370 mkdir conf$$.dir 2>/dev/null
29372 if (echo >conf$$.file) 2>/dev/null; then
29373 if ln -s conf$$.file conf$$ 2>/dev/null; then
29375 # ... but there are two gotchas:
29376 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29377 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29378 # In both cases, we have to default to `cp -p'.
29379 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29381 elif ln conf$$.file conf$$ 2>/dev/null; then
29389 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29390 rmdir conf$$.dir 2>/dev/null
29392 if mkdir -p . 2>/dev/null; then
29395 test -d ./-p && rmdir ./-p
29399 if test -x / >/dev/null 2>&1; then
29400 as_test_x='test -x'
29402 if ls -dL / >/dev/null 2>&1; then
29409 if test -d "$1"; then
29415 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29416 ???[sx]*):;;*)false;;esac;fi
29420 as_executable_p=$as_test_x
29422 # Sed expression to map a string onto a valid CPP name.
29423 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29425 # Sed expression to map a string onto a valid variable name.
29426 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29431 # Save the log message, to keep $[0] and so on meaningful, and to
29432 # report actual input values of CONFIG_FILES etc. instead of their
29433 # values after options handling.
29435 This file was extended by PostgreSQL $as_me 9.0beta1, which was
29436 generated by GNU Autoconf 2.63. Invocation command line was
29438 CONFIG_FILES = $CONFIG_FILES
29439 CONFIG_HEADERS = $CONFIG_HEADERS
29440 CONFIG_LINKS = $CONFIG_LINKS
29441 CONFIG_COMMANDS = $CONFIG_COMMANDS
29444 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29449 case $ac_config_files in *"
29450 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29453 case $ac_config_headers in *"
29454 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29459 # Files that config.status was made for.
29460 config_files="$ac_config_files"
29461 config_headers="$ac_config_headers"
29462 config_links="$ac_config_links"
29463 config_commands="$ac_config_commands"
29467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29469 \`$as_me' instantiates files from templates according to the
29470 current configuration.
29472 Usage: $0 [OPTION]... [FILE]...
29474 -h, --help print this help, then exit
29475 -V, --version print version number and configuration settings, then exit
29476 -q, --quiet, --silent
29477 do not print progress messages
29478 -d, --debug don't remove temporary files
29479 --recheck update $as_me by reconfiguring in the same conditions
29480 --file=FILE[:TEMPLATE]
29481 instantiate the configuration file FILE
29482 --header=FILE[:TEMPLATE]
29483 instantiate the configuration header FILE
29485 Configuration files:
29488 Configuration headers:
29491 Configuration links:
29494 Configuration commands:
29497 Report bugs to <bug-autoconf@gnu.org>."
29500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29502 PostgreSQL config.status 9.0beta1
29503 configured by $0, generated by GNU Autoconf 2.63,
29504 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29506 Copyright (C) 2008 Free Software Foundation, Inc.
29507 This config.status script is free software; the Free Software Foundation
29508 gives unlimited permission to copy, distribute and modify it."
29514 test -n "\$AWK" || AWK=awk
29517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29518 # The default lists apply if the user does not specify any file.
29524 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29525 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29536 # Handling of the options.
29537 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29539 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29540 $as_echo "$ac_cs_version"; exit ;;
29541 --debug | --debu | --deb | --de | --d | -d )
29543 --file | --fil | --fi | --f )
29546 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29548 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
29549 ac_need_defaults=false;;
29550 --header | --heade | --head | --hea )
29553 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29555 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
29556 ac_need_defaults=false;;
29558 # Conflict between --help and --header
29559 { $as_echo "$as_me: error: ambiguous option: $1
29560 Try \`$0 --help' for more information." >&2
29561 { (exit 1); exit 1; }; };;
29562 --help | --hel | -h )
29563 $as_echo "$ac_cs_usage"; exit ;;
29564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29565 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29568 # This is an error.
29569 -*) { $as_echo "$as_me: error: unrecognized option: $1
29570 Try \`$0 --help' for more information." >&2
29571 { (exit 1); exit 1; }; } ;;
29573 *) ac_config_targets="$ac_config_targets $1"
29574 ac_need_defaults=false ;;
29580 ac_configure_extra_args=
29582 if $ac_cs_silent; then
29584 ac_configure_extra_args="$ac_configure_extra_args --silent"
29588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29589 if \$ac_cs_recheck; then
29590 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29592 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29593 CONFIG_SHELL='$SHELL'
29594 export CONFIG_SHELL
29599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29603 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29604 ## Running $as_me. ##
29610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29615 # Handling of arguments.
29616 for ac_config_target in $ac_config_targets
29618 case $ac_config_target in
29619 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
29620 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
29621 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
29622 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
29623 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
29624 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
29625 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
29626 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
29627 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
29628 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
29629 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
29630 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
29632 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29633 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29634 { (exit 1); exit 1; }; };;
29639 # If the user did not use the arguments to specify the items to instantiate,
29640 # then the envvar interface is used. Set only those that are not.
29641 # We use the long form for the default assignment because of an extremely
29642 # bizarre bug on SunOS 4.1.3.
29643 if $ac_need_defaults; then
29644 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29645 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29646 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29647 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29650 # Have a temporary directory for convenience. Make it in the build tree
29651 # simply because there is no reason against having it here, and in addition,
29652 # creating and moving files from /tmp can sometimes cause problems.
29653 # Hook for its removal unless debugging.
29654 # Note that there is a small window in which the directory will not be cleaned:
29655 # after its creation but before its name has been assigned to `$tmp'.
29659 trap 'exit_status=$?
29660 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29662 trap '{ (exit 1); exit 1; }' 1 2 13 15
29664 # Create a (secure) tmp directory for tmp files.
29667 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29668 test -n "$tmp" && test -d "$tmp"
29671 tmp=./conf$$-$RANDOM
29672 (umask 077 && mkdir "$tmp")
29675 $as_echo "$as_me: cannot create a temporary directory in ." >&2
29676 { (exit 1); exit 1; }
29679 # Set up the scripts for CONFIG_FILES section.
29680 # No need to generate them if there are no CONFIG_FILES.
29681 # This happens for instance with `./config.status config.h'.
29682 if test -n "$CONFIG_FILES"; then
29686 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29687 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29690 ac_cs_awk_cr=$ac_cr
29693 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29698 echo "cat >conf$$subs.awk <<_ACEOF" &&
29699 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29701 } >conf$$subs.sh ||
29702 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29703 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29704 { (exit 1); exit 1; }; }
29705 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29707 for ac_last_try in false false false false false :; do
29708 . ./conf$$subs.sh ||
29709 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29710 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29711 { (exit 1); exit 1; }; }
29713 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29714 if test $ac_delim_n = $ac_delim_num; then
29716 elif $ac_last_try; then
29717 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29718 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29719 { (exit 1); exit 1; }; }
29721 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29724 rm -f conf$$subs.sh
29726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29727 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29731 s/^/S["/; s/!.*/"]=/
29741 s/\(.\{148\}\).*/\1/
29743 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29748 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29755 s/\(.\{148\}\).*/\1/
29757 s/["\\]/\\&/g; s/^/"/; s/$/"/
29761 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29766 ' <conf$$subs.awk | sed '
29771 ' >>$CONFIG_STATUS || ac_write_fail=1
29772 rm -f conf$$subs.awk
29773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29775 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29776 for (key in S) S_is_set[key] = 1
29782 nfields = split(line, field, "@")
29784 len = length(field[1])
29785 for (i = 2; i < nfields; i++) {
29787 keylen = length(key)
29788 if (S_is_set[key]) {
29790 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29791 len += length(value) + length(field[++i])
29802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29803 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29804 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29807 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29808 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
29809 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
29810 { (exit 1); exit 1; }; }
29813 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29814 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29815 # trailing colons and then remove the whole line if VPATH becomes empty
29816 # (actually we leave an empty line to preserve line numbers).
29817 if test "x$srcdir" = x.; then
29818 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29819 s/:*\$(srcdir):*/:/
29820 s/:*\${srcdir}:*/:/
29822 s/^\([^=]*=[ ]*\):*/\1/
29828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29829 fi # test -n "$CONFIG_FILES"
29831 # Set up the scripts for CONFIG_HEADERS section.
29832 # No need to generate them if there are no CONFIG_HEADERS.
29833 # This happens for instance with `./config.status Makefile'.
29834 if test -n "$CONFIG_HEADERS"; then
29835 cat >"$tmp/defines.awk" <<\_ACAWK ||
29839 # Transform confdefs.h into an awk script `defines.awk', embedded as
29840 # here-document in config.status, that substitutes the proper values into
29841 # config.h.in to produce config.h.
29843 # Create a delimiter string that does not exist in confdefs.h, to ease
29844 # handling of long lines.
29846 for ac_last_try in false false :; do
29847 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29848 if test -z "$ac_t"; then
29850 elif $ac_last_try; then
29851 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
29852 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
29853 { (exit 1); exit 1; }; }
29855 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29859 # For the awk script, D is an array of macro values keyed by name,
29860 # likewise P contains macro parameters if any. Preserve backslash
29861 # newline sequences.
29863 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29865 s/.\{148\}/&'"$ac_delim"'/g
29868 s/^[ ]*#[ ]*define[ ][ ]*/ /
29875 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29877 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29881 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29882 D["\1"]=" \3\\\\\\n"\\/p
29884 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29889 s/.\{148\}/&'"$ac_delim"'/g
29894 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29897 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29899 ' <confdefs.h | sed '
29900 s/'"$ac_delim"'/"\\\
29901 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29904 for (key in D) D_is_set[key] = 1
29907 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29909 split(line, arg, " ")
29910 if (arg[1] == "#") {
29914 defundef = substr(arg[1], 2)
29917 split(mac1, mac2, "(") #)
29919 prefix = substr(line, 1, index(line, defundef) - 1)
29920 if (D_is_set[macro]) {
29921 # Preserve the white space surrounding the "#".
29922 print prefix "define", macro P[macro] D[macro]
29925 # Replace #undef with comments. This is necessary, for example,
29926 # in the case of _POSIX_SOURCE, which is predefined and required
29927 # on some systems where configure will not decide to define it.
29928 if (defundef == "undef") {
29929 print "/*", prefix defundef, macro, "*/"
29937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29938 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
29939 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
29940 { (exit 1); exit 1; }; }
29941 fi # test -n "$CONFIG_HEADERS"
29944 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29949 :[FHLC]) ac_mode=$ac_tag; continue;;
29951 case $ac_mode$ac_tag in
29953 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
29954 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
29955 { (exit 1); exit 1; }; };;
29956 :[FH]-) ac_tag=-:-;;
29957 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29974 -) ac_f="$tmp/stdin";;
29975 *) # Look for the file first in the build tree, then in the source tree
29976 # (if the path is not absolute). The absolute path cannot be DOS-style,
29977 # because $ac_f cannot contain `:'.
29981 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29983 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29984 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29985 { (exit 1); exit 1; }; };;
29987 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29988 ac_file_inputs="$ac_file_inputs '$ac_f'"
29991 # Let's still pretend it is `configure' which instantiates (i.e., don't
29992 # use $as_me), people would be surprised to read:
29993 # /* config.h. Generated by config.status. */
29994 configure_input='Generated from '`
29995 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29997 if test x"$ac_file" != x-; then
29998 configure_input="$ac_file. $configure_input"
29999 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30000 $as_echo "$as_me: creating $ac_file" >&6;}
30002 # Neutralize special characters interpreted by sed in replacement strings.
30003 case $configure_input in #(
30004 *\&* | *\|* | *\\* )
30005 ac_sed_conf_input=`$as_echo "$configure_input" |
30006 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30007 *) ac_sed_conf_input=$configure_input;;
30011 *:-:* | *:-) cat >"$tmp/stdin" \
30012 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30013 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30014 { (exit 1); exit 1; }; } ;;
30019 ac_dir=`$as_dirname -- "$ac_file" ||
30020 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30021 X"$ac_file" : 'X\(//\)[^/]' \| \
30022 X"$ac_file" : 'X\(//\)$' \| \
30023 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30024 $as_echo X"$ac_file" |
30025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30029 /^X\(\/\/\)[^/].*/{
30044 -*) as_dir=./$as_dir;;
30046 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30050 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30051 *) as_qdir=$as_dir;;
30053 as_dirs="'$as_qdir' $as_dirs"
30054 as_dir=`$as_dirname -- "$as_dir" ||
30055 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30056 X"$as_dir" : 'X\(//\)[^/]' \| \
30057 X"$as_dir" : 'X\(//\)$' \| \
30058 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30059 $as_echo X"$as_dir" |
30060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30064 /^X\(\/\/\)[^/].*/{
30077 test -d "$as_dir" && break
30079 test -z "$as_dirs" || eval "mkdir $as_dirs"
30080 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30081 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30082 { (exit 1); exit 1; }; }; }
30086 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30088 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30089 # A ".." for each directory in $ac_dir_suffix.
30090 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30091 case $ac_top_builddir_sub in
30092 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30093 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30096 ac_abs_top_builddir=$ac_pwd
30097 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30098 # for backward compatibility:
30099 ac_top_builddir=$ac_top_build_prefix
30102 .) # We are building in place.
30104 ac_top_srcdir=$ac_top_builddir_sub
30105 ac_abs_top_srcdir=$ac_pwd ;;
30106 [\\/]* | ?:[\\/]* ) # Absolute name.
30107 ac_srcdir=$srcdir$ac_dir_suffix;
30108 ac_top_srcdir=$srcdir
30109 ac_abs_top_srcdir=$srcdir ;;
30110 *) # Relative name.
30111 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30112 ac_top_srcdir=$ac_top_build_prefix$srcdir
30113 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30115 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30124 ac_MKDIR_P=$MKDIR_P
30126 [\\/$]* | ?:[\\/]* ) ;;
30127 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30132 # If the template does not know about datarootdir, expand it.
30133 # FIXME: This hack should be removed a few years after 2.60.
30134 ac_datarootdir_hack=; ac_datarootdir_seen=
30147 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30148 *datarootdir*) ac_datarootdir_seen=yes;;
30149 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30150 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30151 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30154 ac_datarootdir_hack='
30155 s&@datadir@&$datadir&g
30156 s&@docdir@&$docdir&g
30157 s&@infodir@&$infodir&g
30158 s&@localedir@&$localedir&g
30159 s&@mandir@&$mandir&g
30160 s&\\\${datarootdir}&$datarootdir&g' ;;
30164 # Neutralize VPATH when `$srcdir' = `.'.
30165 # Shell code in configure.ac might set extrasub.
30166 # FIXME: do we really want to maintain this feature?
30167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30168 ac_sed_extra="$ac_vpsub
30171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30174 s|@configure_input@|$ac_sed_conf_input|;t t
30175 s&@top_builddir@&$ac_top_builddir_sub&;t t
30176 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30177 s&@srcdir@&$ac_srcdir&;t t
30178 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30179 s&@top_srcdir@&$ac_top_srcdir&;t t
30180 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30181 s&@builddir@&$ac_builddir&;t t
30182 s&@abs_builddir@&$ac_abs_builddir&;t t
30183 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30184 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30185 $ac_datarootdir_hack
30187 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
30188 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30189 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30190 { (exit 1); exit 1; }; }
30192 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30193 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30194 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30195 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30196 which seems to be undefined. Please make sure it is defined." >&5
30197 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30198 which seems to be undefined. Please make sure it is defined." >&2;}
30202 -) cat "$tmp/out" && rm -f "$tmp/out";;
30203 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30205 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30206 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30207 { (exit 1); exit 1; }; }
30213 if test x"$ac_file" != x-; then
30215 $as_echo "/* $configure_input */" \
30216 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30217 } >"$tmp/config.h" \
30218 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30219 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30220 { (exit 1); exit 1; }; }
30221 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30222 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30223 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30226 mv "$tmp/config.h" "$ac_file" \
30227 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30228 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30229 { (exit 1); exit 1; }; }
30232 $as_echo "/* $configure_input */" \
30233 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30234 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
30235 $as_echo "$as_me: error: could not create -" >&2;}
30236 { (exit 1); exit 1; }; }
30244 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30247 # Prefer the file from the source tree if names are identical.
30248 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30249 ac_source=$srcdir/$ac_source
30252 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
30253 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30255 if test ! -r "$ac_source"; then
30256 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
30257 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
30258 { (exit 1); exit 1; }; }
30262 # Try a relative symlink, then a hard link, then a copy.
30264 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30265 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30267 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30268 ln "$ac_source" "$ac_file" 2>/dev/null ||
30269 cp -p "$ac_source" "$ac_file" ||
30270 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
30271 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
30272 { (exit 1); exit 1; }; }
30275 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
30276 $as_echo "$as_me: executing $ac_file commands" >&6;}
30281 case $ac_file$ac_mode in
30282 "check_win32_symlinks":C)
30283 # Links sometimes fail undetected on Mingw -
30284 # so here we detect it and warn the user
30285 for FILE in $CONFIG_LINKS
30287 # test -e works for symlinks in the MinGW console
30288 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
30289 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
30292 "src/include/pg_config.h":H)
30293 # Update timestamp for pg_config.h (see Makefile.global)
30294 echo >src/include/stamp-h
30296 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
30302 { (exit 0); exit 0; }
30304 chmod +x $CONFIG_STATUS
30305 ac_clean_files=$ac_clean_files_save
30307 test $ac_write_fail = 0 ||
30308 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
30309 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
30310 { (exit 1); exit 1; }; }
30313 # configure is writing to config.log, and then calls config.status.
30314 # config.status does its own redirection, appending to config.log.
30315 # Unfortunately, on DOS this fails, as config.log is still kept open
30316 # by configure, so config.status won't be able to write to it; its
30317 # output is simply discarded. So we exec the FD to /dev/null,
30318 # effectively closing config.log, so it can be properly (re)opened and
30319 # appended to by config.status. When coming back to configure, we
30320 # need to make the FD available again.
30321 if test "$no_create" != yes; then
30323 ac_config_status_args=
30324 test "$silent" = yes &&
30325 ac_config_status_args="$ac_config_status_args --quiet"
30327 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30329 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30330 # would make configure fail if this is the last instruction.
30331 $ac_cs_success || { (exit 1); exit 1; }
30333 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
30334 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30335 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}