2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 9.4devel.
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-2013, 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.4devel'
602 PACKAGE_STRING='PostgreSQL 9.4devel'
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
676 python_additional_libs
793 program_transform_name
805 enable_option_checking
810 enable_integer_datetimes
840 with_libedit_preferred
851 ac_precious_vars='build_alias
865 # Initialize some variables set by options.
867 ac_init_version=false
868 ac_unrecognized_opts=
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
879 program_transform_name=s,x,x,
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir='${exec_prefix}/bin'
894 sbindir='${exec_prefix}/sbin'
895 libexecdir='${exec_prefix}/libexec'
896 datarootdir='${prefix}/share'
897 datadir='${datarootdir}'
898 sysconfdir='${prefix}/etc'
899 sharedstatedir='${prefix}/com'
900 localstatedir='${prefix}/var'
901 includedir='${prefix}/include'
902 oldincludedir='/usr/include'
903 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
904 infodir='${datarootdir}/info'
909 libdir='${exec_prefix}/lib'
910 localedir='${datarootdir}/locale'
911 mandir='${datarootdir}/man'
917 # If the previous option needs an argument, assign it.
918 if test -n "$ac_prev"; then
919 eval $ac_prev=\$ac_option
925 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
929 # Accept the important Cygnus configure options, so we can diagnose typos.
931 case $ac_dashdash$ac_option in
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
940 -build | --build | --buil | --bui | --bu)
941 ac_prev=build_alias ;;
942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943 build_alias=$ac_optarg ;;
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950 cache_file=$ac_optarg ;;
953 cache_file=config.cache ;;
955 -datadir | --datadir | --datadi | --datad)
957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
958 datadir=$ac_optarg ;;
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
967 -disable-* | --disable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
972 { (exit 1); exit 1; }; }
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
982 eval enable_$ac_useropt=no ;;
984 -docdir | --docdir | --docdi | --doc | --do)
986 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994 -enable-* | --enable-*)
995 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
999 { (exit 1); exit 1; }; }
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1004 "enable_$ac_useropt"
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1009 eval enable_$ac_useropt=\$ac_optarg ;;
1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013 | --exec | --exe | --ex)
1014 ac_prev=exec_prefix ;;
1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017 | --exec=* | --exe=* | --ex=*)
1018 exec_prefix=$ac_optarg ;;
1020 -gas | --gas | --ga | --g)
1021 # Obsolete; use --with-gas.
1024 -help | --help | --hel | --he | -h)
1025 ac_init_help=long ;;
1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027 ac_init_help=recursive ;;
1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029 ac_init_help=short ;;
1031 -host | --host | --hos | --ho)
1032 ac_prev=host_alias ;;
1033 -host=* | --host=* | --hos=* | --ho=*)
1034 host_alias=$ac_optarg ;;
1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040 htmldir=$ac_optarg ;;
1042 -includedir | --includedir | --includedi | --included | --include \
1043 | --includ | --inclu | --incl | --inc)
1044 ac_prev=includedir ;;
1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046 | --includ=* | --inclu=* | --incl=* | --inc=*)
1047 includedir=$ac_optarg ;;
1049 -infodir | --infodir | --infodi | --infod | --info | --inf)
1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052 infodir=$ac_optarg ;;
1054 -libdir | --libdir | --libdi | --libd)
1056 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057 libdir=$ac_optarg ;;
1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060 | --libexe | --libex | --libe)
1061 ac_prev=libexecdir ;;
1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063 | --libexe=* | --libex=* | --libe=*)
1064 libexecdir=$ac_optarg ;;
1066 -localedir | --localedir | --localedi | --localed | --locale)
1067 ac_prev=localedir ;;
1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069 localedir=$ac_optarg ;;
1071 -localstatedir | --localstatedir | --localstatedi | --localstated \
1072 | --localstate | --localstat | --localsta | --localst | --locals)
1073 ac_prev=localstatedir ;;
1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076 localstatedir=$ac_optarg ;;
1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081 mandir=$ac_optarg ;;
1083 -nfp | --nfp | --nf)
1084 # Obsolete; use --without-fp.
1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088 | --no-cr | --no-c | -n)
1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097 | --oldin | --oldi | --old | --ol | --o)
1098 ac_prev=oldincludedir ;;
1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102 oldincludedir=$ac_optarg ;;
1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107 prefix=$ac_optarg ;;
1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110 | --program-pre | --program-pr | --program-p)
1111 ac_prev=program_prefix ;;
1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114 program_prefix=$ac_optarg ;;
1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117 | --program-suf | --program-su | --program-s)
1118 ac_prev=program_suffix ;;
1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121 program_suffix=$ac_optarg ;;
1123 -program-transform-name | --program-transform-name \
1124 | --program-transform-nam | --program-transform-na \
1125 | --program-transform-n | --program-transform- \
1126 | --program-transform | --program-transfor \
1127 | --program-transfo | --program-transf \
1128 | --program-trans | --program-tran \
1129 | --progr-tra | --program-tr | --program-t)
1130 ac_prev=program_transform_name ;;
1131 -program-transform-name=* | --program-transform-name=* \
1132 | --program-transform-nam=* | --program-transform-na=* \
1133 | --program-transform-n=* | --program-transform-=* \
1134 | --program-transform=* | --program-transfor=* \
1135 | --program-transfo=* | --program-transf=* \
1136 | --program-trans=* | --program-tran=* \
1137 | --progr-tra=* | --program-tr=* | --program-t=*)
1138 program_transform_name=$ac_optarg ;;
1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143 pdfdir=$ac_optarg ;;
1145 -psdir | --psdir | --psdi | --psd | --ps)
1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151 | -silent | --silent | --silen | --sile | --sil)
1154 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158 sbindir=$ac_optarg ;;
1160 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162 | --sharedst | --shareds | --shared | --share | --shar \
1164 ac_prev=sharedstatedir ;;
1165 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169 sharedstatedir=$ac_optarg ;;
1171 -site | --site | --sit)
1173 -site=* | --site=* | --sit=*)
1176 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179 srcdir=$ac_optarg ;;
1181 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182 | --syscon | --sysco | --sysc | --sys | --sy)
1183 ac_prev=sysconfdir ;;
1184 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186 sysconfdir=$ac_optarg ;;
1188 -target | --target | --targe | --targ | --tar | --ta | --t)
1189 ac_prev=target_alias ;;
1190 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191 target_alias=$ac_optarg ;;
1193 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1196 -version | --version | --versio | --versi | --vers | -V)
1197 ac_init_version=: ;;
1200 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1204 { (exit 1); exit 1; }; }
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1214 eval with_$ac_useropt=\$ac_optarg ;;
1216 -without-* | --without-*)
1217 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1221 { (exit 1); exit 1; }; }
1222 ac_useropt_orig=$ac_useropt
1223 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224 case $ac_user_opts in
1228 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1229 ac_unrecognized_sep=', ';;
1231 eval with_$ac_useropt=no ;;
1234 # Obsolete; use --with-x.
1237 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238 | --x-incl | --x-inc | --x-in | --x-i)
1239 ac_prev=x_includes ;;
1240 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242 x_includes=$ac_optarg ;;
1244 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246 ac_prev=x_libraries ;;
1247 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249 x_libraries=$ac_optarg ;;
1251 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1252 Try \`$0 --help' for more information." >&2
1253 { (exit 1); exit 1; }; }
1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1260 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1261 { (exit 1); exit 1; }; }
1262 eval $ac_envvar=\$ac_optarg
1263 export $ac_envvar ;;
1266 # FIXME: should be removed in autoconf 3.0.
1267 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1276 if test -n "$ac_prev"; then
1277 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1279 { (exit 1); exit 1; }; }
1282 if test -n "$ac_unrecognized_opts"; then
1283 case $enable_option_checking in
1285 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1286 { (exit 1); exit 1; }; } ;;
1287 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291 # Check all directory arguments for consistency.
1292 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293 datadir sysconfdir sharedstatedir localstatedir includedir \
1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295 libdir localedir mandir
1297 eval ac_val=\$$ac_var
1298 # Remove trailing slashes.
1301 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302 eval $ac_var=\$ac_val;;
1304 # Be sure to have absolute directory names.
1306 [\\/$]* | ?:[\\/]* ) continue;;
1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1310 { (exit 1); exit 1; }; }
1313 # There might be people who depend on the old broken behavior: `$host'
1314 # used to hold the argument of --host etc.
1315 # FIXME: To remove some day.
1318 target=$target_alias
1320 # FIXME: To remove some day.
1321 if test "x$host_alias" != x; then
1322 if test "x$build_alias" = x; then
1323 cross_compiling=maybe
1324 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1325 If a cross compiler is detected then cross compile mode will be used." >&2
1326 elif test "x$build_alias" != "x$host_alias"; then
1332 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334 test "$silent" = yes && exec 6>/dev/null
1337 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di=`ls -di .` &&
1339 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1341 { (exit 1); exit 1; }; }
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1344 { (exit 1); exit 1; }; }
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349 ac_srcdir_defaulted=yes
1350 # Try the directory containing this script, then the parent directory.
1351 ac_confdir=`$as_dirname -- "$as_myself" ||
1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$as_myself" : 'X\(//\)[^/]' \| \
1354 X"$as_myself" : 'X\(//\)$' \| \
1355 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356 $as_echo X"$as_myself" |
1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1379 ac_srcdir_defaulted=no
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1384 { (exit 1); exit 1; }; }
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1389 { (exit 1); exit 1; }; }
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1399 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 for ac_var in $ac_precious_vars; do
1402 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_env_${ac_var}_value=\$${ac_var}
1404 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409 # Report the --help message.
1411 if test "$ac_init_help" = "long"; then
1412 # Omit some internal or obsolete options to make the list less imposing.
1413 # This message is too long to be a string in the A/UX 3.1 sh.
1415 \`configure' configures PostgreSQL 9.4devel to adapt to many kinds of systems.
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE. See below for descriptions of some of the useful variables.
1422 Defaults for the options are specified in brackets.
1425 -h, --help display this help and exit
1426 --help=short display options specific to this package
1427 --help=recursive display the short help of all the included packages
1428 -V, --version display version information and exit
1429 -q, --quiet, --silent do not print \`checking...' messages
1430 --cache-file=FILE cache test results in FILE [disabled]
1431 -C, --config-cache alias for \`--cache-file=config.cache'
1432 -n, --no-create do not create output files
1433 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1435 Installation directories:
1436 --prefix=PREFIX install architecture-independent files in PREFIX
1437 [$ac_default_prefix]
1438 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1446 For better control, use the options below.
1448 Fine tuning of the installation directories:
1449 --bindir=DIR user executables [EPREFIX/bin]
1450 --sbindir=DIR system admin executables [EPREFIX/sbin]
1451 --libexecdir=DIR program executables [EPREFIX/libexec]
1452 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1453 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1454 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1473 --build=BUILD configure for building on BUILD [guessed]
1474 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1478 if test -n "$ac_init_help"; then
1479 case $ac_init_help in
1480 short | recursive ) echo "Configuration of PostgreSQL 9.4devel:";;
1485 --disable-option-checking ignore unrecognized --enable/--with options
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --disable-integer-datetimes
1489 disable 64-bit integer date/time support
1490 --enable-nls[=LANGUAGES]
1491 enable Native Language Support
1492 --disable-rpath do not embed shared library search path in
1494 --disable-spinlocks do not use spinlocks
1495 --enable-debug build with debugging symbols (-g)
1496 --enable-profiling build with profiling enabled
1497 --enable-coverage build with coverage testing instrumentation
1498 --enable-dtrace build with DTrace support
1499 --enable-depend turn on automatic dependency tracking
1500 --enable-cassert enable assertion checks (for debugging)
1501 --disable-thread-safety disable thread-safety in client libraries
1502 --disable-largefile omit support for large files
1503 --disable-float4-byval disable float4 passed by value
1504 --disable-float8-byval disable float8 passed by value
1507 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1508 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1509 --with-template=NAME override operating system template
1510 --with-includes=DIRS look for additional header files in DIRS
1511 --with-libraries=DIRS look for additional libraries in DIRS
1512 --with-libs=DIRS alternative spelling of --with-libraries
1513 --with-pgport=PORTNUM set default port number [5432]
1514 --with-blocksize=BLOCKSIZE
1515 set table block size in kB [8]
1516 --with-segsize=SEGSIZE set table segment size in GB [1]
1517 --with-wal-blocksize=BLOCKSIZE
1518 set WAL block size in kB [8]
1519 --with-wal-segsize=SEGSIZE
1520 set WAL segment size in MB [16]
1521 --with-CC=CMD set compiler (deprecated)
1522 --with-tcl build Tcl modules (PL/Tcl)
1523 --with-tclconfig=DIR tclConfig.sh is in DIR
1524 --with-perl build Perl modules (PL/Perl)
1525 --with-python build Python modules (PL/Python)
1526 --with-gssapi build with GSSAPI support
1527 --with-krb5 build with Kerberos 5 support
1528 --with-krb-srvnam=NAME default service principal name in Kerberos
1530 --with-pam build with PAM support
1531 --with-ldap build with LDAP support
1532 --with-bonjour build with Bonjour support
1533 --with-openssl build with OpenSSL support
1534 --with-selinux build with SELinux support
1535 --without-readline do not use GNU Readline nor BSD Libedit for editing
1536 --with-libedit-preferred
1537 prefer BSD Libedit over GNU Readline
1538 --with-ossp-uuid build contrib/uuid-ossp, requires OSSP UUID library
1539 --with-libxml build with XML support
1540 --with-libxslt use XSLT support when building contrib/xml2
1541 --with-system-tzdata=DIR
1542 use system time zone data in DIR
1543 --without-zlib do not use Zlib
1544 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1546 Some influential environment variables:
1547 CC C compiler command
1548 CFLAGS C compiler flags
1549 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1550 nonstandard directory <lib dir>
1551 LIBS libraries to pass to the linker, e.g. -l<library>
1552 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1553 you have headers in a nonstandard directory <include dir>
1555 LDFLAGS_EX extra linker flags for linking executables only
1556 LDFLAGS_SL extra linker flags for linking shared libraries only
1558 location of DocBook stylesheets
1560 Use these variables to override the choices made by `configure' or to help
1561 it to find libraries and programs with nonstandard names/locations.
1563 Report bugs to <pgsql-bugs@postgresql.org>.
1568 if test "$ac_init_help" = "recursive"; then
1569 # If there are subdirs, report their specific --help.
1570 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1571 test -d "$ac_dir" ||
1572 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1580 # A ".." for each directory in $ac_dir_suffix.
1581 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1582 case $ac_top_builddir_sub in
1583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1587 ac_abs_top_builddir=$ac_pwd
1588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1589 # for backward compatibility:
1590 ac_top_builddir=$ac_top_build_prefix
1593 .) # We are building in place.
1595 ac_top_srcdir=$ac_top_builddir_sub
1596 ac_abs_top_srcdir=$ac_pwd ;;
1597 [\\/]* | ?:[\\/]* ) # Absolute name.
1598 ac_srcdir=$srcdir$ac_dir_suffix;
1599 ac_top_srcdir=$srcdir
1600 ac_abs_top_srcdir=$srcdir ;;
1602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1603 ac_top_srcdir=$ac_top_build_prefix$srcdir
1604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1608 cd "$ac_dir" || { ac_status=$?; continue; }
1609 # Check for guested configure.
1610 if test -f "$ac_srcdir/configure.gnu"; then
1612 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613 elif test -f "$ac_srcdir/configure"; then
1615 $SHELL "$ac_srcdir/configure" --help=recursive
1617 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619 cd "$ac_pwd" || { ac_status=$?; break; }
1623 test -n "$ac_init_help" && exit $ac_status
1624 if $ac_init_version; then
1626 PostgreSQL configure 9.4devel
1627 generated by GNU Autoconf 2.63
1629 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1630 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1631 This configure script is free software; the Free Software Foundation
1632 gives unlimited permission to copy, distribute and modify it.
1634 Copyright (c) 1996-2013, PostgreSQL Global Development Group
1638 cat >config.log <<_ACEOF
1639 This file contains any messages produced by compilers while
1640 running configure, to aid debugging if configure makes a mistake.
1642 It was created by PostgreSQL $as_me 9.4devel, which was
1643 generated by GNU Autoconf 2.63. Invocation command line was
1655 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1656 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1657 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1658 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1659 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1661 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1662 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1664 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1665 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1666 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1667 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1668 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1669 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1670 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1678 test -z "$as_dir" && as_dir=.
1679 $as_echo "PATH: $as_dir"
1695 # Keep a trace of the command line.
1696 # Strip out --no-create and --no-recursion so they do not pile up.
1697 # Strip out --silent because we don't want to record it for future runs.
1698 # Also quote any args containing shell meta-characters.
1699 # Make two passes to allow for proper duplicate-argument suppression.
1703 ac_must_keep_next=false
1709 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1710 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1711 | -silent | --silent | --silen | --sile | --sil)
1714 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1717 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1719 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1720 if test $ac_must_keep_next = true; then
1721 ac_must_keep_next=false # Got value, back to normal.
1724 *=* | --config-cache | -C | -disable-* | --disable-* \
1725 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1726 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1727 | -with-* | --with-* | -without-* | --without-* | --x)
1728 case "$ac_configure_args0 " in
1729 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1732 -* ) ac_must_keep_next=true ;;
1735 ac_configure_args="$ac_configure_args '$ac_arg'"
1740 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1741 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1743 # When interrupted or exit'd, cleanup temporary files, and complete
1744 # config.log. We remove comments because anyway the quotes in there
1745 # would cause problems or look ugly.
1746 # WARNING: Use '\'' to represent an apostrophe within the trap.
1747 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1748 trap 'exit_status=$?
1749 # Save into config.log some information that might help in debugging.
1754 ## ---------------- ##
1755 ## Cache variables. ##
1756 ## ---------------- ##
1759 # The following way of writing the cache mishandles newlines in values,
1761 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1762 eval ac_val=\$$ac_var
1766 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1767 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1770 _ | IFS | as_nl) ;; #(
1771 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1772 *) $as_unset $ac_var ;;
1777 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1778 *${as_nl}ac_space=\ *)
1780 "s/'\''/'\''\\\\'\'''\''/g;
1781 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1784 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1792 ## ----------------- ##
1793 ## Output variables. ##
1794 ## ----------------- ##
1797 for ac_var in $ac_subst_vars
1799 eval ac_val=\$$ac_var
1801 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1803 $as_echo "$ac_var='\''$ac_val'\''"
1807 if test -n "$ac_subst_files"; then
1809 ## ------------------- ##
1810 ## File substitutions. ##
1811 ## ------------------- ##
1814 for ac_var in $ac_subst_files
1816 eval ac_val=\$$ac_var
1818 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1820 $as_echo "$ac_var='\''$ac_val'\''"
1825 if test -s confdefs.h; then
1835 test "$ac_signal" != 0 &&
1836 $as_echo "$as_me: caught signal $ac_signal"
1837 $as_echo "$as_me: exit $exit_status"
1839 rm -f core *.core core.conftest.* &&
1840 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1843 for ac_signal in 1 2 13 15; do
1844 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1848 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1849 rm -f -r conftest* confdefs.h
1851 # Predefined preprocessor variables.
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_NAME "$PACKAGE_NAME"
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_STRING "$PACKAGE_STRING"
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1878 # Let the site file select an alternate cache file if it wants to.
1879 # Prefer an explicitly selected file to automatically selected ones.
1882 if test -n "$CONFIG_SITE"; then
1883 ac_site_file1=$CONFIG_SITE
1884 elif test "x$prefix" != xNONE; then
1885 ac_site_file1=$prefix/share/config.site
1886 ac_site_file2=$prefix/etc/config.site
1888 ac_site_file1=$ac_default_prefix/share/config.site
1889 ac_site_file2=$ac_default_prefix/etc/config.site
1891 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1893 test "x$ac_site_file" = xNONE && continue
1894 if test -r "$ac_site_file"; then
1895 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1896 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1897 sed 's/^/| /' "$ac_site_file" >&5
1902 if test -r "$cache_file"; then
1903 # Some versions of bash will fail to source /dev/null (special
1904 # files actually), so we avoid doing that.
1905 if test -f "$cache_file"; then
1906 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1907 $as_echo "$as_me: loading cache $cache_file" >&6;}
1909 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1910 *) . "./$cache_file";;
1914 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1915 $as_echo "$as_me: creating cache $cache_file" >&6;}
1919 # Check that the precious variables saved in the cache have kept the same
1921 ac_cache_corrupted=false
1922 for ac_var in $ac_precious_vars; do
1923 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1924 eval ac_new_set=\$ac_env_${ac_var}_set
1925 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1926 eval ac_new_val=\$ac_env_${ac_var}_value
1927 case $ac_old_set,$ac_new_set in
1929 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1930 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1931 ac_cache_corrupted=: ;;
1933 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1934 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1935 ac_cache_corrupted=: ;;
1938 if test "x$ac_old_val" != "x$ac_new_val"; then
1939 # differences in whitespace do not lead to failure.
1940 ac_old_val_w=`echo x $ac_old_val`
1941 ac_new_val_w=`echo x $ac_new_val`
1942 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1943 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1944 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1945 ac_cache_corrupted=:
1947 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1948 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1949 eval $ac_var=\$ac_old_val
1951 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1952 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1953 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1954 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1957 # Pass precious variables to config.status.
1958 if test "$ac_new_set" = set; then
1960 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1961 *) ac_arg=$ac_var=$ac_new_val ;;
1963 case " $ac_configure_args " in
1964 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1965 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1969 if $ac_cache_corrupted; then
1970 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1972 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1973 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1974 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1975 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1976 { (exit 1); exit 1; }; }
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2015 for ac_dir in config "$srcdir"/config; do
2016 if test -f "$ac_dir/install-sh"; then
2018 ac_install_sh="$ac_aux_dir/install-sh -c"
2020 elif test -f "$ac_dir/install.sh"; then
2022 ac_install_sh="$ac_aux_dir/install.sh -c"
2024 elif test -f "$ac_dir/shtool"; then
2026 ac_install_sh="$ac_aux_dir/shtool install -c"
2030 if test -z "$ac_aux_dir"; then
2031 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2032 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2033 { (exit 1); exit 1; }; }
2036 # These three variables are undocumented and unsupported,
2037 # and are intended to be withdrawn in a future Autoconf release.
2038 # They can cause serious problems if a builder's source tree is in a directory
2039 # whose full name contains unusual characters.
2040 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2041 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2042 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2046 configure_args=$ac_configure_args
2050 cat >>confdefs.h <<_ACEOF
2051 #define PG_VERSION "$PACKAGE_VERSION"
2054 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2057 cat >>confdefs.h <<_ACEOF
2058 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2062 # Make sure we can run config.sub.
2063 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2064 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2065 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2066 { (exit 1); exit 1; }; }
2068 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2069 $as_echo_n "checking build system type... " >&6; }
2070 if test "${ac_cv_build+set}" = set; then
2071 $as_echo_n "(cached) " >&6
2073 ac_build_alias=$build_alias
2074 test "x$ac_build_alias" = x &&
2075 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2076 test "x$ac_build_alias" = x &&
2077 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2078 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2079 { (exit 1); exit 1; }; }
2080 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2081 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2082 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2083 { (exit 1); exit 1; }; }
2086 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2087 $as_echo "$ac_cv_build" >&6; }
2088 case $ac_cv_build in
2090 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2091 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2092 { (exit 1); exit 1; }; };;
2095 ac_save_IFS=$IFS; IFS='-'
2101 # Remember, the first character of IFS is used to create $*,
2102 # except with old shells:
2105 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2108 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2109 $as_echo_n "checking host system type... " >&6; }
2110 if test "${ac_cv_host+set}" = set; then
2111 $as_echo_n "(cached) " >&6
2113 if test "x$host_alias" = x; then
2114 ac_cv_host=$ac_cv_build
2116 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2117 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2118 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2119 { (exit 1); exit 1; }; }
2123 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2124 $as_echo "$ac_cv_host" >&6; }
2127 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2128 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2129 { (exit 1); exit 1; }; };;
2132 ac_save_IFS=$IFS; IFS='-'
2138 # Remember, the first character of IFS is used to create $*,
2139 # except with old shells:
2142 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2147 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2148 $as_echo_n "checking which template to use... " >&6; }
2153 # Check whether --with-template was given.
2154 if test "${with_template+set}" = set; then
2155 withval=$with_template;
2158 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2159 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2160 { (exit 1); exit 1; }; }
2163 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2164 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2165 { (exit 1); exit 1; }; }
2170 list) echo; ls "$srcdir/src/template"; exit;;
2171 *) if test -f "$srcdir/src/template/$with_template" ; then
2174 { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2175 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2176 { (exit 1); exit 1; }; }
2185 # --with-template not given
2188 aix*) template=aix ;;
2189 cygwin*) template=cygwin ;;
2190 darwin*) template=darwin ;;
2191 dragonfly*) template=netbsd ;;
2192 freebsd*) template=freebsd ;;
2193 hpux*) template=hpux ;;
2194 irix*) template=irix ;;
2195 linux*|gnu*|k*bsd*-gnu)
2197 mingw*) template=win32 ;;
2198 netbsd*) template=netbsd ;;
2199 openbsd*) template=openbsd ;;
2200 osf*) template=osf ;;
2201 sco*) template=sco ;;
2202 solaris*) template=solaris ;;
2203 sysv5*) template=unixware ;;
2206 if test x"$template" = x"" ; then
2207 { { $as_echo "$as_me:$LINENO: error:
2208 *******************************************************************
2209 PostgreSQL has apparently not been ported to your platform yet.
2210 To try a manual configuration, look into the src/template directory
2211 for a similar platform and use the '--with-template=' option.
2213 Please also contact <pgsql-bugs@postgresql.org> to see about
2214 rectifying this. Include the above 'checking host system type...'
2216 *******************************************************************
2218 $as_echo "$as_me: error:
2219 *******************************************************************
2220 PostgreSQL has apparently not been ported to your platform yet.
2221 To try a manual configuration, look into the src/template directory
2222 for a similar platform and use the '--with-template=' option.
2224 Please also contact <pgsql-bugs@postgresql.org> to see about
2225 rectifying this. Include the above 'checking host system type...'
2227 *******************************************************************
2229 { (exit 1); exit 1; }; }
2237 { $as_echo "$as_me:$LINENO: result: $template" >&5
2238 $as_echo "$template" >&6; }
2243 # Initialize default assumption that we do not need separate assembly code
2244 # for TAS (test-and-set). This can be overridden by the template file
2245 # when it's executed.
2252 ## Command line options
2256 # Add non-standard directories to the include path
2261 # Check whether --with-includes was given.
2262 if test "${with_includes+set}" = set; then
2263 withval=$with_includes;
2266 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2267 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2268 { (exit 1); exit 1; }; }
2271 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2272 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2273 { (exit 1); exit 1; }; }
2286 # Add non-standard directories to the library search path
2291 # Check whether --with-libraries was given.
2292 if test "${with_libraries+set}" = set; then
2293 withval=$with_libraries;
2296 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2297 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2298 { (exit 1); exit 1; }; }
2301 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2302 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2303 { (exit 1); exit 1; }; }
2306 LIBRARY_DIRS=$withval
2317 # Check whether --with-libs was given.
2318 if test "${with_libs+set}" = set; then
2322 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2323 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2324 { (exit 1); exit 1; }; }
2327 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2328 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2329 { (exit 1); exit 1; }; }
2332 LIBRARY_DIRS=$withval
2342 # 64-bit integer date/time storage: enabled by default.
2344 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2345 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2348 # Check whether --enable-integer-datetimes was given.
2349 if test "${enable_integer_datetimes+set}" = set; then
2350 enableval=$enable_integer_datetimes;
2354 cat >>confdefs.h <<\_ACEOF
2355 #define USE_INTEGER_DATETIMES 1
2363 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2364 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2365 { (exit 1); exit 1; }; }
2370 enable_integer_datetimes=yes
2372 cat >>confdefs.h <<\_ACEOF
2373 #define USE_INTEGER_DATETIMES 1
2379 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2380 $as_echo "$enable_integer_datetimes" >&6; }
2386 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2387 $as_echo_n "checking whether NLS is wanted... " >&6; }
2390 # Check whether --enable-nls was given.
2391 if test "${enable_nls+set}" = set; then
2392 enableval=$enable_nls;
2402 WANTED_LANGUAGES=$enableval
2412 if test "$enable_nls" = yes; then
2414 cat >>confdefs.h <<\_ACEOF
2415 #define ENABLE_NLS 1
2420 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2421 $as_echo "$enable_nls" >&6; }
2426 # Default port number (--with-pgport), default 5432
2428 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2429 $as_echo_n "checking for default port number... " >&6; }
2433 # Check whether --with-pgport was given.
2434 if test "${with_pgport+set}" = set; then
2435 withval=$with_pgport;
2438 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2439 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2440 { (exit 1); exit 1; }; }
2443 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2444 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2445 { (exit 1); exit 1; }; }
2448 default_port=$withval
2457 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2458 $as_echo "$default_port" >&6; }
2459 # Need both of these because some places want an integer and some a string
2461 cat >>confdefs.h <<_ACEOF
2462 #define DEF_PGPORT ${default_port}
2466 cat >>confdefs.h <<_ACEOF
2467 #define DEF_PGPORT_STR "${default_port}"
2473 # '-rpath'-like feature can be disabled
2477 # Check whether --enable-rpath was given.
2478 if test "${enable_rpath+set}" = set; then
2479 enableval=$enable_rpath;
2488 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2489 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2490 { (exit 1); exit 1; }; }
2507 # Check whether --enable-spinlocks was given.
2508 if test "${enable_spinlocks+set}" = set; then
2509 enableval=$enable_spinlocks;
2518 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2519 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2520 { (exit 1); exit 1; }; }
2525 enable_spinlocks=yes
2532 # --enable-debug adds -g to compiler flags
2536 # Check whether --enable-debug was given.
2537 if test "${enable_debug+set}" = set; then
2538 enableval=$enable_debug;
2547 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2548 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2549 { (exit 1); exit 1; }; }
2562 # --enable-profiling enables gcc profiling
2566 # Check whether --enable-profiling was given.
2567 if test "${enable_profiling+set}" = set; then
2568 enableval=$enable_profiling;
2577 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2578 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2579 { (exit 1); exit 1; }; }
2591 # --enable-coverage enables generation of code coverage metrics with gcov
2595 # Check whether --enable-coverage was given.
2596 if test "${enable_coverage+set}" = set; then
2597 enableval=$enable_coverage;
2602 # Extract the first word of "$ac_prog", so it can be a program name with args.
2603 set dummy $ac_prog; ac_word=$2
2604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 $as_echo_n "checking for $ac_word... " >&6; }
2606 if test "${ac_cv_prog_GCOV+set}" = set; then
2607 $as_echo_n "(cached) " >&6
2609 if test -n "$GCOV"; then
2610 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2619 ac_cv_prog_GCOV="$ac_prog"
2620 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 GCOV=$ac_cv_prog_GCOV
2630 if test -n "$GCOV"; then
2631 { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2632 $as_echo "$GCOV" >&6; }
2634 { $as_echo "$as_me:$LINENO: result: no" >&5
2635 $as_echo "no" >&6; }
2639 test -n "$GCOV" && break
2642 if test -z "$GCOV"; then
2643 { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2644 $as_echo "$as_me: error: gcov not found" >&2;}
2645 { (exit 1); exit 1; }; }
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650 set dummy $ac_prog; ac_word=$2
2651 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if test "${ac_cv_prog_LCOV+set}" = set; then
2654 $as_echo_n "(cached) " >&6
2656 if test -n "$LCOV"; then
2657 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_LCOV="$ac_prog"
2667 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 LCOV=$ac_cv_prog_LCOV
2677 if test -n "$LCOV"; then
2678 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2679 $as_echo "$LCOV" >&6; }
2681 { $as_echo "$as_me:$LINENO: result: no" >&5
2682 $as_echo "no" >&6; }
2686 test -n "$LCOV" && break
2689 if test -z "$LCOV"; then
2690 { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2691 $as_echo "$as_me: error: lcov not found" >&2;}
2692 { (exit 1); exit 1; }; }
2694 for ac_prog in genhtml
2696 # Extract the first word of "$ac_prog", so it can be a program name with args.
2697 set dummy $ac_prog; ac_word=$2
2698 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if test "${ac_cv_prog_GENHTML+set}" = set; then
2701 $as_echo_n "(cached) " >&6
2703 if test -n "$GENHTML"; then
2704 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713 ac_cv_prog_GENHTML="$ac_prog"
2714 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 GENHTML=$ac_cv_prog_GENHTML
2724 if test -n "$GENHTML"; then
2725 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2726 $as_echo "$GENHTML" >&6; }
2728 { $as_echo "$as_me:$LINENO: result: no" >&5
2729 $as_echo "no" >&6; }
2733 test -n "$GENHTML" && break
2736 if test -z "$GENHTML"; then
2737 { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2738 $as_echo "$as_me: error: genhtml not found" >&2;}
2739 { (exit 1); exit 1; }; }
2746 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2747 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2748 { (exit 1); exit 1; }; }
2765 # Check whether --enable-dtrace was given.
2766 if test "${enable_dtrace+set}" = set; then
2767 enableval=$enable_dtrace;
2770 for ac_prog in dtrace
2772 # Extract the first word of "$ac_prog", so it can be a program name with args.
2773 set dummy $ac_prog; ac_word=$2
2774 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2775 $as_echo_n "checking for $ac_word... " >&6; }
2776 if test "${ac_cv_prog_DTRACE+set}" = set; then
2777 $as_echo_n "(cached) " >&6
2779 if test -n "$DTRACE"; then
2780 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2789 ac_cv_prog_DTRACE="$ac_prog"
2790 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 DTRACE=$ac_cv_prog_DTRACE
2800 if test -n "$DTRACE"; then
2801 { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2802 $as_echo "$DTRACE" >&6; }
2804 { $as_echo "$as_me:$LINENO: result: no" >&5
2805 $as_echo "no" >&6; }
2809 test -n "$DTRACE" && break
2812 if test -z "$DTRACE"; then
2813 { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2814 $as_echo "$as_me: error: dtrace not found" >&2;}
2815 { (exit 1); exit 1; }; }
2823 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2824 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2825 { (exit 1); exit 1; }; }
2840 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2841 $as_echo_n "checking for block size... " >&6; }
2845 # Check whether --with-blocksize was given.
2846 if test "${with_blocksize+set}" = set; then
2847 withval=$with_blocksize;
2850 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2851 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2852 { (exit 1); exit 1; }; }
2855 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2856 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2857 { (exit 1); exit 1; }; }
2869 case ${blocksize} in
2876 *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2877 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2878 { (exit 1); exit 1; }; }
2880 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2881 $as_echo "${blocksize}kB" >&6; }
2884 cat >>confdefs.h <<_ACEOF
2885 #define BLCKSZ ${BLCKSZ}
2890 # Relation segment size
2892 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2893 $as_echo_n "checking for segment size... " >&6; }
2897 # Check whether --with-segsize was given.
2898 if test "${with_segsize+set}" = set; then
2899 withval=$with_segsize;
2902 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2903 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2904 { (exit 1); exit 1; }; }
2907 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2908 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2909 { (exit 1); exit 1; }; }
2921 # this expression is set up to avoid unnecessary integer overflow
2922 # blocksize is already guaranteed to be a factor of 1024
2923 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2924 test $? -eq 0 || exit 1
2925 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2926 $as_echo "${segsize}GB" >&6; }
2929 cat >>confdefs.h <<_ACEOF
2930 #define RELSEG_SIZE ${RELSEG_SIZE}
2937 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2938 $as_echo_n "checking for WAL block size... " >&6; }
2942 # Check whether --with-wal-blocksize was given.
2943 if test "${with_wal_blocksize+set}" = set; then
2944 withval=$with_wal_blocksize;
2947 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2948 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2949 { (exit 1); exit 1; }; }
2952 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2953 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2954 { (exit 1); exit 1; }; }
2957 wal_blocksize=$withval
2966 case ${wal_blocksize} in
2967 1) XLOG_BLCKSZ=1024;;
2968 2) XLOG_BLCKSZ=2048;;
2969 4) XLOG_BLCKSZ=4096;;
2970 8) XLOG_BLCKSZ=8192;;
2971 16) XLOG_BLCKSZ=16384;;
2972 32) XLOG_BLCKSZ=32768;;
2973 64) XLOG_BLCKSZ=65536;;
2974 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2975 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2976 { (exit 1); exit 1; }; }
2978 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2979 $as_echo "${wal_blocksize}kB" >&6; }
2982 cat >>confdefs.h <<_ACEOF
2983 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2990 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
2991 $as_echo_n "checking for WAL segment size... " >&6; }
2995 # Check whether --with-wal-segsize was given.
2996 if test "${with_wal_segsize+set}" = set; then
2997 withval=$with_wal_segsize;
3000 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3001 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3002 { (exit 1); exit 1; }; }
3005 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3006 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3007 { (exit 1); exit 1; }; }
3010 wal_segsize=$withval
3019 case ${wal_segsize} in
3027 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3028 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3029 { (exit 1); exit 1; }; }
3031 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3032 $as_echo "${wal_segsize}MB" >&6; }
3035 cat >>confdefs.h <<_ACEOF
3036 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3044 # For historical reasons you can also use --with-CC to specify the C compiler
3045 # to use, although the standard way to do this is to set the CC environment
3050 # Check whether --with-CC was given.
3051 if test "${with_CC+set}" = set; then
3055 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3056 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3057 { (exit 1); exit 1; }; }
3060 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3061 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3062 { (exit 1); exit 1; }; }
3074 aix) pgac_cc_list="gcc xlc";;
3075 irix) pgac_cc_list="cc";; # no gcc
3076 *) pgac_cc_list="gcc cc";;
3080 ac_cpp='$CPP $CPPFLAGS'
3081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3084 if test -n "$ac_tool_prefix"; then
3085 for ac_prog in $pgac_cc_list
3087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3089 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3090 $as_echo_n "checking for $ac_word... " >&6; }
3091 if test "${ac_cv_prog_CC+set}" = set; then
3092 $as_echo_n "(cached) " >&6
3094 if test -n "$CC"; then
3095 ac_cv_prog_CC="$CC" # Let the user override the test.
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 test -z "$as_dir" && as_dir=.
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3104 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3105 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 if test -n "$CC"; then
3116 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3117 $as_echo "$CC" >&6; }
3119 { $as_echo "$as_me:$LINENO: result: no" >&5
3120 $as_echo "no" >&6; }
3124 test -n "$CC" && break
3127 if test -z "$CC"; then
3129 for ac_prog in $pgac_cc_list
3131 # Extract the first word of "$ac_prog", so it can be a program name with args.
3132 set dummy $ac_prog; ac_word=$2
3133 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3136 $as_echo_n "(cached) " >&6
3138 if test -n "$ac_ct_CC"; then
3139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3148 ac_cv_prog_ac_ct_CC="$ac_prog"
3149 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3159 if test -n "$ac_ct_CC"; then
3160 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3161 $as_echo "$ac_ct_CC" >&6; }
3163 { $as_echo "$as_me:$LINENO: result: no" >&5
3164 $as_echo "no" >&6; }
3168 test -n "$ac_ct_CC" && break
3171 if test "x$ac_ct_CC" = x; then
3174 case $cross_compiling:$ac_tool_warned in
3176 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3178 ac_tool_warned=yes ;;
3185 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3187 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3188 See \`config.log' for more details." >&5
3189 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3190 See \`config.log' for more details." >&2;}
3191 { (exit 1); exit 1; }; }; }
3193 # Provide some information about the compiler.
3194 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3197 { (ac_try="$ac_compiler --version >&5"
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3203 $as_echo "$ac_try_echo") >&5
3204 (eval "$ac_compiler --version >&5") 2>&5
3206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }
3208 { (ac_try="$ac_compiler -v >&5"
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3214 $as_echo "$ac_try_echo") >&5
3215 (eval "$ac_compiler -v >&5") 2>&5
3217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }
3219 { (ac_try="$ac_compiler -V >&5"
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3225 $as_echo "$ac_try_echo") >&5
3226 (eval "$ac_compiler -V >&5") 2>&5
3228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); }
3231 cat >conftest.$ac_ext <<_ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3246 ac_clean_files_save=$ac_clean_files
3247 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3248 # Try to create an executable without -o first, disregard a.out.
3249 # It will help us diagnose broken compilers, and finding out an intuition
3251 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3252 $as_echo_n "checking for C compiler default output file name... " >&6; }
3253 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3255 # The possible output files:
3256 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3259 for ac_file in $ac_files
3262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3263 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3268 if { (ac_try="$ac_link_default"
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3274 $as_echo "$ac_try_echo") >&5
3275 (eval "$ac_link_default") 2>&5
3277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; then
3279 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3280 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3281 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3282 # so that the user can short-circuit this test for compilers unknown to
3284 for ac_file in $ac_files ''
3286 test -f "$ac_file" || continue
3288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3291 # We found the default executable, but exeext='' is most
3295 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3297 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3299 # We set ac_cv_exeext here because the later test for it is not
3300 # safe: cross compilers may not add the suffix if given an `-o'
3301 # argument, so we may need to know it at that point already.
3302 # Even if this section looks crufty: it has the advantage of
3309 test "$ac_cv_exeext" = no && ac_cv_exeext=
3315 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3316 $as_echo "$ac_file" >&6; }
3317 if test -z "$ac_file"; then
3318 $as_echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3321 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3323 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3324 See \`config.log' for more details." >&5
3325 $as_echo "$as_me: error: C compiler cannot create executables
3326 See \`config.log' for more details." >&2;}
3327 { (exit 77); exit 77; }; }; }
3330 ac_exeext=$ac_cv_exeext
3332 # Check that the compiler produces executables we can run. If not, either
3333 # the compiler is broken, or we cross compile.
3334 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3335 $as_echo_n "checking whether the C compiler works... " >&6; }
3336 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3337 # If not cross compiling, check that we can run a simple program.
3338 if test "$cross_compiling" != yes; then
3339 if { ac_try='./$ac_file'
3340 { (case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3345 $as_echo "$ac_try_echo") >&5
3346 (eval "$ac_try") 2>&5
3348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
3352 if test "$cross_compiling" = maybe; then
3355 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3357 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3358 If you meant to cross compile, use \`--host'.
3359 See \`config.log' for more details." >&5
3360 $as_echo "$as_me: error: cannot run C compiled programs.
3361 If you meant to cross compile, use \`--host'.
3362 See \`config.log' for more details." >&2;}
3363 { (exit 1); exit 1; }; }; }
3367 { $as_echo "$as_me:$LINENO: result: yes" >&5
3368 $as_echo "yes" >&6; }
3370 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3371 ac_clean_files=$ac_clean_files_save
3372 # Check that the compiler produces executables we can run. If not, either
3373 # the compiler is broken, or we cross compile.
3374 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3375 $as_echo_n "checking whether we are cross compiling... " >&6; }
3376 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3377 $as_echo "$cross_compiling" >&6; }
3379 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3380 $as_echo_n "checking for suffix of executables... " >&6; }
3381 if { (ac_try="$ac_link"
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_link") 2>&5
3390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; then
3392 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3393 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3394 # work properly (i.e., refer to `conftest.exe'), while it won't with
3396 for ac_file in conftest.exe conftest conftest.*; do
3397 test -f "$ac_file" || continue
3399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3400 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3406 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3409 See \`config.log' for more details." >&5
3410 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3411 See \`config.log' for more details." >&2;}
3412 { (exit 1); exit 1; }; }; }
3415 rm -f conftest$ac_cv_exeext
3416 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3417 $as_echo "$ac_cv_exeext" >&6; }
3419 rm -f conftest.$ac_ext
3420 EXEEXT=$ac_cv_exeext
3422 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3423 $as_echo_n "checking for suffix of object files... " >&6; }
3424 if test "${ac_cv_objext+set}" = set; then
3425 $as_echo_n "(cached) " >&6
3427 cat >conftest.$ac_ext <<_ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h. */
3442 rm -f conftest.o conftest.obj
3443 if { (ac_try="$ac_compile"
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3449 $as_echo "$ac_try_echo") >&5
3450 (eval "$ac_compile") 2>&5
3452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; then
3454 for ac_file in conftest.o conftest.obj conftest.*; do
3455 test -f "$ac_file" || continue;
3457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3458 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3463 $as_echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3466 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3468 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3469 See \`config.log' for more details." >&5
3470 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3471 See \`config.log' for more details." >&2;}
3472 { (exit 1); exit 1; }; }; }
3475 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3477 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3478 $as_echo "$ac_cv_objext" >&6; }
3479 OBJEXT=$ac_cv_objext
3481 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3482 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3483 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3484 $as_echo_n "(cached) " >&6
3486 cat >conftest.$ac_ext <<_ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h. */
3504 rm -f conftest.$ac_objext
3505 if { (ac_try="$ac_compile"
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3511 $as_echo "$ac_try_echo") >&5
3512 (eval "$ac_compile") 2>conftest.er1
3514 grep -v '^ *+' conftest.er1 >conftest.err
3516 cat conftest.err >&5
3517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); } && {
3519 test -z "$ac_c_werror_flag" ||
3520 test ! -s conftest.err
3521 } && test -s conftest.$ac_objext; then
3524 $as_echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3531 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3534 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3535 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3536 if test $ac_compiler_gnu = yes; then
3541 ac_test_CFLAGS=${CFLAGS+set}
3542 ac_save_CFLAGS=$CFLAGS
3543 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3544 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3545 if test "${ac_cv_prog_cc_g+set}" = set; then
3546 $as_echo_n "(cached) " >&6
3548 ac_save_c_werror_flag=$ac_c_werror_flag
3549 ac_c_werror_flag=yes
3552 cat >conftest.$ac_ext <<_ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3567 rm -f conftest.$ac_objext
3568 if { (ac_try="$ac_compile"
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3574 $as_echo "$ac_try_echo") >&5
3575 (eval "$ac_compile") 2>conftest.er1
3577 grep -v '^ *+' conftest.er1 >conftest.err
3579 cat conftest.err >&5
3580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } && {
3582 test -z "$ac_c_werror_flag" ||
3583 test ! -s conftest.err
3584 } && test -s conftest.$ac_objext; then
3587 $as_echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3591 cat >conftest.$ac_ext <<_ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3606 rm -f conftest.$ac_objext
3607 if { (ac_try="$ac_compile"
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3613 $as_echo "$ac_try_echo") >&5
3614 (eval "$ac_compile") 2>conftest.er1
3616 grep -v '^ *+' conftest.er1 >conftest.err
3618 cat conftest.err >&5
3619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } && {
3621 test -z "$ac_c_werror_flag" ||
3622 test ! -s conftest.err
3623 } && test -s conftest.$ac_objext; then
3626 $as_echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3629 ac_c_werror_flag=$ac_save_c_werror_flag
3631 cat >conftest.$ac_ext <<_ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h. */
3646 rm -f conftest.$ac_objext
3647 if { (ac_try="$ac_compile"
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3653 $as_echo "$ac_try_echo") >&5
3654 (eval "$ac_compile") 2>conftest.er1
3656 grep -v '^ *+' conftest.er1 >conftest.err
3658 cat conftest.err >&5
3659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } && {
3661 test -z "$ac_c_werror_flag" ||
3662 test ! -s conftest.err
3663 } && test -s conftest.$ac_objext; then
3666 $as_echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679 ac_c_werror_flag=$ac_save_c_werror_flag
3681 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3682 $as_echo "$ac_cv_prog_cc_g" >&6; }
3683 if test "$ac_test_CFLAGS" = set; then
3684 CFLAGS=$ac_save_CFLAGS
3685 elif test $ac_cv_prog_cc_g = yes; then
3686 if test "$GCC" = yes; then
3692 if test "$GCC" = yes; then
3698 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3699 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3700 if test "${ac_cv_prog_cc_c89+set}" = set; then
3701 $as_echo_n "(cached) " >&6
3703 ac_cv_prog_cc_c89=no
3705 cat >conftest.$ac_ext <<_ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h. */
3713 #include <sys/types.h>
3714 #include <sys/stat.h>
3715 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3716 struct buf { int x; };
3717 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3718 static char *e (p, i)
3724 static char *f (char * (*g) (char **, int), char **p, ...)
3729 s = g (p, va_arg (v,int));
3734 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3735 function prototypes and stuff, but not '\xHH' hex character constants.
3736 These don't provoke an error unfortunately, instead are silently treated
3737 as 'x'. The following induces an error, until -std is added to get
3738 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3739 array size at least. It's necessary to write '\x00'==0 to get something
3740 that's true only with -std. */
3741 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3743 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3744 inside strings and character constants. */
3746 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3748 int test (int i, double x);
3749 struct s1 {int (*f) (int a);};
3750 struct s2 {int (*f) (double a);};
3751 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3757 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3762 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3763 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3765 CC="$ac_save_CC $ac_arg"
3766 rm -f conftest.$ac_objext
3767 if { (ac_try="$ac_compile"
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3773 $as_echo "$ac_try_echo") >&5
3774 (eval "$ac_compile") 2>conftest.er1
3776 grep -v '^ *+' conftest.er1 >conftest.err
3778 cat conftest.err >&5
3779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } && {
3781 test -z "$ac_c_werror_flag" ||
3782 test ! -s conftest.err
3783 } && test -s conftest.$ac_objext; then
3784 ac_cv_prog_cc_c89=$ac_arg
3786 $as_echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.$ac_ext >&5
3792 rm -f core conftest.err conftest.$ac_objext
3793 test "x$ac_cv_prog_cc_c89" != "xno" && break
3795 rm -f conftest.$ac_ext
3800 case "x$ac_cv_prog_cc_c89" in
3802 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3803 $as_echo "none needed" >&6; } ;;
3805 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3806 $as_echo "unsupported" >&6; } ;;
3808 CC="$CC $ac_cv_prog_cc_c89"
3809 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3810 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3815 ac_cpp='$CPP $CPPFLAGS'
3816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3821 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3822 # but has idiosyncrasies of its own. We assume icc will define
3823 # __INTEL_COMPILER regardless of CFLAGS.
3825 cat >conftest.$ac_ext <<_ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h. */
3835 #ifndef __INTEL_COMPILER
3842 rm -f conftest.$ac_objext
3843 if { (ac_try="$ac_compile"
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3849 $as_echo "$ac_try_echo") >&5
3850 (eval "$ac_compile") 2>conftest.er1
3852 grep -v '^ *+' conftest.er1 >conftest.err
3854 cat conftest.err >&5
3855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); } && {
3857 test -z "$ac_c_werror_flag" ||
3858 test ! -s conftest.err
3859 } && test -s conftest.$ac_objext; then
3862 $as_echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870 # Check if it's Sun Studio compiler. We assume that
3871 # __SUNPRO_C will be defined for Sun Studio compilers
3872 cat >conftest.$ac_ext <<_ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h. */
3889 rm -f conftest.$ac_objext
3890 if { (ac_try="$ac_compile"
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3896 $as_echo "$ac_try_echo") >&5
3897 (eval "$ac_compile") 2>conftest.er1
3899 grep -v '^ *+' conftest.er1 >conftest.err
3901 cat conftest.err >&5
3902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); } && {
3904 test -z "$ac_c_werror_flag" ||
3905 test ! -s conftest.err
3906 } && test -s conftest.$ac_objext; then
3909 $as_echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 . "$srcdir/src/template/$template" || exit
3926 # CFLAGS are selected so:
3927 # If the user specifies something in the environment, that is used.
3928 # else: If the template file set something, that is used.
3929 # else: If coverage was enabled, don't set anything.
3930 # else: If the compiler is GCC, then we use -O2.
3931 # else: If the compiler is something else, then we use -O, unless debugging.
3933 if test "$ac_env_CFLAGS_set" = set; then
3934 CFLAGS=$ac_env_CFLAGS_value
3935 elif test "${CFLAGS+set}" = set; then
3936 : # (keep what template set)
3937 elif test "$enable_coverage" = yes; then
3938 : # no optimization by default
3939 elif test "$GCC" = yes; then
3942 # if the user selected debug mode, don't use -O
3943 if test "$enable_debug" != yes; then
3948 # set CFLAGS_VECTOR from the environment, if available
3949 if test "$ac_env_CFLAGS_VECTOR_set" = set; then
3950 CFLAGS_VECTOR=$ac_env_CFLAGS_VECTOR_value
3953 # Some versions of GCC support some additional useful warning flags.
3954 # Check whether they are supported, and add them to CFLAGS if so.
3955 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3956 # but has its own. Also check other compiler-specific flags here.
3958 if test "$GCC" = yes -a "$ICC" = no; then
3959 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3960 # These work in some but not all gcc versions
3961 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
3962 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
3963 if test "${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+set}" = set; then
3964 $as_echo_n "(cached) " >&6
3966 pgac_save_CFLAGS=$CFLAGS
3967 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3968 ac_save_c_werror_flag=$ac_c_werror_flag
3969 ac_c_werror_flag=yes
3970 cat >conftest.$ac_ext <<_ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h. */
3985 rm -f conftest.$ac_objext
3986 if { (ac_try="$ac_compile"
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3992 $as_echo "$ac_try_echo") >&5
3993 (eval "$ac_compile") 2>conftest.er1
3995 grep -v '^ *+' conftest.er1 >conftest.err
3997 cat conftest.err >&5
3998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); } && {
4000 test -z "$ac_c_werror_flag" ||
4001 test ! -s conftest.err
4002 } && test -s conftest.$ac_objext; then
4003 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4005 $as_echo "$as_me: failed program was:" >&5
4006 sed 's/^/| /' conftest.$ac_ext >&5
4008 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012 ac_c_werror_flag=$ac_save_c_werror_flag
4013 CFLAGS="$pgac_save_CFLAGS"
4015 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4016 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4017 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4018 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4021 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
4022 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4023 if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
4024 $as_echo_n "(cached) " >&6
4026 pgac_save_CFLAGS=$CFLAGS
4027 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4028 ac_save_c_werror_flag=$ac_c_werror_flag
4029 ac_c_werror_flag=yes
4030 cat >conftest.$ac_ext <<_ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h. */
4045 rm -f conftest.$ac_objext
4046 if { (ac_try="$ac_compile"
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4052 $as_echo "$ac_try_echo") >&5
4053 (eval "$ac_compile") 2>conftest.er1
4055 grep -v '^ *+' conftest.er1 >conftest.err
4057 cat conftest.err >&5
4058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } && {
4060 test -z "$ac_c_werror_flag" ||
4061 test ! -s conftest.err
4062 } && test -s conftest.$ac_objext; then
4063 pgac_cv_prog_cc_cflags__Wendif_labels=yes
4065 $as_echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4068 pgac_cv_prog_cc_cflags__Wendif_labels=no
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 ac_c_werror_flag=$ac_save_c_werror_flag
4073 CFLAGS="$pgac_save_CFLAGS"
4075 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4076 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4077 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4078 CFLAGS="$CFLAGS -Wendif-labels"
4081 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
4082 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4083 if test "${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+set}" = set; then
4084 $as_echo_n "(cached) " >&6
4086 pgac_save_CFLAGS=$CFLAGS
4087 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4088 ac_save_c_werror_flag=$ac_c_werror_flag
4089 ac_c_werror_flag=yes
4090 cat >conftest.$ac_ext <<_ACEOF
4093 cat confdefs.h >>conftest.$ac_ext
4094 cat >>conftest.$ac_ext <<_ACEOF
4095 /* end confdefs.h. */
4105 rm -f conftest.$ac_objext
4106 if { (ac_try="$ac_compile"
4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109 *) ac_try_echo=$ac_try;;
4111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4112 $as_echo "$ac_try_echo") >&5
4113 (eval "$ac_compile") 2>conftest.er1
4115 grep -v '^ *+' conftest.er1 >conftest.err
4117 cat conftest.err >&5
4118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); } && {
4120 test -z "$ac_c_werror_flag" ||
4121 test ! -s conftest.err
4122 } && test -s conftest.$ac_objext; then
4123 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4125 $as_echo "$as_me: failed program was:" >&5
4126 sed 's/^/| /' conftest.$ac_ext >&5
4128 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132 ac_c_werror_flag=$ac_save_c_werror_flag
4133 CFLAGS="$pgac_save_CFLAGS"
4135 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4136 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4137 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4138 CFLAGS="$CFLAGS -Wmissing-format-attribute"
4141 # This was included in -Wall/-Wformat in older GCC versions
4142 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
4143 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4144 if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
4145 $as_echo_n "(cached) " >&6
4147 pgac_save_CFLAGS=$CFLAGS
4148 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4149 ac_save_c_werror_flag=$ac_c_werror_flag
4150 ac_c_werror_flag=yes
4151 cat >conftest.$ac_ext <<_ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4166 rm -f conftest.$ac_objext
4167 if { (ac_try="$ac_compile"
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4173 $as_echo "$ac_try_echo") >&5
4174 (eval "$ac_compile") 2>conftest.er1
4176 grep -v '^ *+' conftest.er1 >conftest.err
4178 cat conftest.err >&5
4179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } && {
4181 test -z "$ac_c_werror_flag" ||
4182 test ! -s conftest.err
4183 } && test -s conftest.$ac_objext; then
4184 pgac_cv_prog_cc_cflags__Wformat_security=yes
4186 $as_echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4189 pgac_cv_prog_cc_cflags__Wformat_security=no
4192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193 ac_c_werror_flag=$ac_save_c_werror_flag
4194 CFLAGS="$pgac_save_CFLAGS"
4196 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4197 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4198 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4199 CFLAGS="$CFLAGS -Wformat-security"
4202 # Disable strict-aliasing rules; needed for gcc 3.3+
4203 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4204 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4205 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4206 $as_echo_n "(cached) " >&6
4208 pgac_save_CFLAGS=$CFLAGS
4209 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4210 ac_save_c_werror_flag=$ac_c_werror_flag
4211 ac_c_werror_flag=yes
4212 cat >conftest.$ac_ext <<_ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4227 rm -f conftest.$ac_objext
4228 if { (ac_try="$ac_compile"
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4234 $as_echo "$ac_try_echo") >&5
4235 (eval "$ac_compile") 2>conftest.er1
4237 grep -v '^ *+' conftest.er1 >conftest.err
4239 cat conftest.err >&5
4240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } && {
4242 test -z "$ac_c_werror_flag" ||
4243 test ! -s conftest.err
4244 } && test -s conftest.$ac_objext; then
4245 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4247 $as_echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4250 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4254 ac_c_werror_flag=$ac_save_c_werror_flag
4255 CFLAGS="$pgac_save_CFLAGS"
4257 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4258 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4259 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4260 CFLAGS="$CFLAGS -fno-strict-aliasing"
4263 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4264 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4265 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4266 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4267 $as_echo_n "(cached) " >&6
4269 pgac_save_CFLAGS=$CFLAGS
4270 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4271 ac_save_c_werror_flag=$ac_c_werror_flag
4272 ac_c_werror_flag=yes
4273 cat >conftest.$ac_ext <<_ACEOF
4276 cat confdefs.h >>conftest.$ac_ext
4277 cat >>conftest.$ac_ext <<_ACEOF
4278 /* end confdefs.h. */
4288 rm -f conftest.$ac_objext
4289 if { (ac_try="$ac_compile"
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4295 $as_echo "$ac_try_echo") >&5
4296 (eval "$ac_compile") 2>conftest.er1
4298 grep -v '^ *+' conftest.er1 >conftest.err
4300 cat conftest.err >&5
4301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); } && {
4303 test -z "$ac_c_werror_flag" ||
4304 test ! -s conftest.err
4305 } && test -s conftest.$ac_objext; then
4306 pgac_cv_prog_cc_cflags__fwrapv=yes
4308 $as_echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4311 pgac_cv_prog_cc_cflags__fwrapv=no
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 ac_c_werror_flag=$ac_save_c_werror_flag
4316 CFLAGS="$pgac_save_CFLAGS"
4318 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4319 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4320 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4321 CFLAGS="$CFLAGS -fwrapv"
4324 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4325 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fexcess-precision=standard" >&5
4326 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4327 if test "${pgac_cv_prog_cc_cflags__fexcess_precision_standard+set}" = set; then
4328 $as_echo_n "(cached) " >&6
4330 pgac_save_CFLAGS=$CFLAGS
4331 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4332 ac_save_c_werror_flag=$ac_c_werror_flag
4333 ac_c_werror_flag=yes
4334 cat >conftest.$ac_ext <<_ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4349 rm -f conftest.$ac_objext
4350 if { (ac_try="$ac_compile"
4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353 *) ac_try_echo=$ac_try;;
4355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4356 $as_echo "$ac_try_echo") >&5
4357 (eval "$ac_compile") 2>conftest.er1
4359 grep -v '^ *+' conftest.er1 >conftest.err
4361 cat conftest.err >&5
4362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } && {
4364 test -z "$ac_c_werror_flag" ||
4365 test ! -s conftest.err
4366 } && test -s conftest.$ac_objext; then
4367 pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4369 $as_echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4372 pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376 ac_c_werror_flag=$ac_save_c_werror_flag
4377 CFLAGS="$pgac_save_CFLAGS"
4379 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4380 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4381 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4382 CFLAGS="$CFLAGS -fexcess-precision=standard"
4385 # Optimization flags for specific files that benefit from vectorization
4386 { $as_echo "$as_me:$LINENO: checking whether $CC supports -funroll-loops" >&5
4387 $as_echo_n "checking whether $CC supports -funroll-loops... " >&6; }
4388 if test "${pgac_cv_prog_cc_cflags__funroll_loops+set}" = set; then
4389 $as_echo_n "(cached) " >&6
4391 pgac_save_CFLAGS=$CFLAGS
4392 CFLAGS="$pgac_save_CFLAGS -funroll-loops"
4393 ac_save_c_werror_flag=$ac_c_werror_flag
4394 ac_c_werror_flag=yes
4395 cat >conftest.$ac_ext <<_ACEOF
4398 cat confdefs.h >>conftest.$ac_ext
4399 cat >>conftest.$ac_ext <<_ACEOF
4400 /* end confdefs.h. */
4410 rm -f conftest.$ac_objext
4411 if { (ac_try="$ac_compile"
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4417 $as_echo "$ac_try_echo") >&5
4418 (eval "$ac_compile") 2>conftest.er1
4420 grep -v '^ *+' conftest.er1 >conftest.err
4422 cat conftest.err >&5
4423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); } && {
4425 test -z "$ac_c_werror_flag" ||
4426 test ! -s conftest.err
4427 } && test -s conftest.$ac_objext; then
4428 pgac_cv_prog_cc_cflags__funroll_loops=yes
4430 $as_echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4433 pgac_cv_prog_cc_cflags__funroll_loops=no
4436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437 ac_c_werror_flag=$ac_save_c_werror_flag
4438 CFLAGS="$pgac_save_CFLAGS"
4440 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__funroll_loops" >&5
4441 $as_echo "$pgac_cv_prog_cc_cflags__funroll_loops" >&6; }
4442 if test x"$pgac_cv_prog_cc_cflags__funroll_loops" = x"yes"; then
4443 CFLAGS_VECTOR="${CFLAGS_VECTOR} -funroll-loops"
4446 { $as_echo "$as_me:$LINENO: checking whether $CC supports -ftree-vectorize" >&5
4447 $as_echo_n "checking whether $CC supports -ftree-vectorize... " >&6; }
4448 if test "${pgac_cv_prog_cc_cflags__ftree_vectorize+set}" = set; then
4449 $as_echo_n "(cached) " >&6
4451 pgac_save_CFLAGS=$CFLAGS
4452 CFLAGS="$pgac_save_CFLAGS -ftree-vectorize"
4453 ac_save_c_werror_flag=$ac_c_werror_flag
4454 ac_c_werror_flag=yes
4455 cat >conftest.$ac_ext <<_ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
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
4488 pgac_cv_prog_cc_cflags__ftree_vectorize=yes
4490 $as_echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4493 pgac_cv_prog_cc_cflags__ftree_vectorize=no
4496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4497 ac_c_werror_flag=$ac_save_c_werror_flag
4498 CFLAGS="$pgac_save_CFLAGS"
4500 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__ftree_vectorize" >&5
4501 $as_echo "$pgac_cv_prog_cc_cflags__ftree_vectorize" >&6; }
4502 if test x"$pgac_cv_prog_cc_cflags__ftree_vectorize" = x"yes"; then
4503 CFLAGS_VECTOR="${CFLAGS_VECTOR} -ftree-vectorize"
4506 elif test "$ICC" = yes; then
4507 # Intel's compiler has a bug/misoptimization in checking for
4508 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4509 { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4510 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4511 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4512 $as_echo_n "(cached) " >&6
4514 pgac_save_CFLAGS=$CFLAGS
4515 CFLAGS="$pgac_save_CFLAGS -mp1"
4516 ac_save_c_werror_flag=$ac_c_werror_flag
4517 ac_c_werror_flag=yes
4518 cat >conftest.$ac_ext <<_ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h. */
4533 rm -f conftest.$ac_objext
4534 if { (ac_try="$ac_compile"
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4540 $as_echo "$ac_try_echo") >&5
4541 (eval "$ac_compile") 2>conftest.er1
4543 grep -v '^ *+' conftest.er1 >conftest.err
4545 cat conftest.err >&5
4546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } && {
4548 test -z "$ac_c_werror_flag" ||
4549 test ! -s conftest.err
4550 } && test -s conftest.$ac_objext; then
4551 pgac_cv_prog_cc_cflags__mp1=yes
4553 $as_echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4556 pgac_cv_prog_cc_cflags__mp1=no
4559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4560 ac_c_werror_flag=$ac_save_c_werror_flag
4561 CFLAGS="$pgac_save_CFLAGS"
4563 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4564 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4565 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4566 CFLAGS="$CFLAGS -mp1"
4569 # Make sure strict aliasing is off (though this is said to be the default)
4570 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4571 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4572 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4573 $as_echo_n "(cached) " >&6
4575 pgac_save_CFLAGS=$CFLAGS
4576 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4577 ac_save_c_werror_flag=$ac_c_werror_flag
4578 ac_c_werror_flag=yes
4579 cat >conftest.$ac_ext <<_ACEOF
4582 cat confdefs.h >>conftest.$ac_ext
4583 cat >>conftest.$ac_ext <<_ACEOF
4584 /* end confdefs.h. */
4594 rm -f conftest.$ac_objext
4595 if { (ac_try="$ac_compile"
4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598 *) ac_try_echo=$ac_try;;
4600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4601 $as_echo "$ac_try_echo") >&5
4602 (eval "$ac_compile") 2>conftest.er1
4604 grep -v '^ *+' conftest.er1 >conftest.err
4606 cat conftest.err >&5
4607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); } && {
4609 test -z "$ac_c_werror_flag" ||
4610 test ! -s conftest.err
4611 } && test -s conftest.$ac_objext; then
4612 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4614 $as_echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.$ac_ext >&5
4617 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 ac_c_werror_flag=$ac_save_c_werror_flag
4622 CFLAGS="$pgac_save_CFLAGS"
4624 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4625 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4626 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4627 CFLAGS="$CFLAGS -fno-strict-aliasing"
4630 elif test "$PORTNAME" = "aix"; then
4631 # AIX's xlc has to have strict aliasing turned off too
4632 { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4633 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4634 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4635 $as_echo_n "(cached) " >&6
4637 pgac_save_CFLAGS=$CFLAGS
4638 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4639 ac_save_c_werror_flag=$ac_c_werror_flag
4640 ac_c_werror_flag=yes
4641 cat >conftest.$ac_ext <<_ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h. */
4656 rm -f conftest.$ac_objext
4657 if { (ac_try="$ac_compile"
4659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660 *) ac_try_echo=$ac_try;;
4662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4663 $as_echo "$ac_try_echo") >&5
4664 (eval "$ac_compile") 2>conftest.er1
4666 grep -v '^ *+' conftest.er1 >conftest.err
4668 cat conftest.err >&5
4669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } && {
4671 test -z "$ac_c_werror_flag" ||
4672 test ! -s conftest.err
4673 } && test -s conftest.$ac_objext; then
4674 pgac_cv_prog_cc_cflags__qnoansialias=yes
4676 $as_echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4679 pgac_cv_prog_cc_cflags__qnoansialias=no
4682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683 ac_c_werror_flag=$ac_save_c_werror_flag
4684 CFLAGS="$pgac_save_CFLAGS"
4686 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4687 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4688 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4689 CFLAGS="$CFLAGS -qnoansialias"
4692 elif test "$PORTNAME" = "hpux"; then
4693 # On some versions of HP-UX, libm functions do not set errno by default.
4694 # Fix that by using +Olibmerrno if the compiler recognizes it.
4695 { $as_echo "$as_me:$LINENO: checking whether $CC supports +Olibmerrno" >&5
4696 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4697 if test "${pgac_cv_prog_cc_cflags_pOlibmerrno+set}" = set; then
4698 $as_echo_n "(cached) " >&6
4700 pgac_save_CFLAGS=$CFLAGS
4701 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4702 ac_save_c_werror_flag=$ac_c_werror_flag
4703 ac_c_werror_flag=yes
4704 cat >conftest.$ac_ext <<_ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h. */
4719 rm -f conftest.$ac_objext
4720 if { (ac_try="$ac_compile"
4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723 *) ac_try_echo=$ac_try;;
4725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4726 $as_echo "$ac_try_echo") >&5
4727 (eval "$ac_compile") 2>conftest.er1
4729 grep -v '^ *+' conftest.er1 >conftest.err
4731 cat conftest.err >&5
4732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); } && {
4734 test -z "$ac_c_werror_flag" ||
4735 test ! -s conftest.err
4736 } && test -s conftest.$ac_objext; then
4737 pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4739 $as_echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4742 pgac_cv_prog_cc_cflags_pOlibmerrno=no
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746 ac_c_werror_flag=$ac_save_c_werror_flag
4747 CFLAGS="$pgac_save_CFLAGS"
4749 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4750 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4751 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4752 CFLAGS="$CFLAGS +Olibmerrno"
4757 CFLAGS_VECTOR=$CFLAGS_VECTOR
4760 # supply -g if --enable-debug
4761 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4765 # enable code coverage if --enable-coverage
4766 if test "$enable_coverage" = yes; then
4767 if test "$GCC" = yes; then
4768 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4770 { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4771 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4772 { (exit 1); exit 1; }; }
4776 # enable profiling if --enable-profiling
4777 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4778 if test "$GCC" = yes; then
4780 cat >>confdefs.h <<\_ACEOF
4781 #define PROFILE_PID_DIR 1
4784 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4786 { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4787 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4788 { (exit 1); exit 1; }; }
4792 # We already have this in Makefile.win32, but configure needs it too
4793 if test "$PORTNAME" = "win32"; then
4794 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4797 # Check if the compiler still works with the template settings
4798 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4799 $as_echo_n "checking whether the C compiler still works... " >&6; }
4800 cat >conftest.$ac_ext <<_ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h. */
4815 rm -f conftest.$ac_objext conftest$ac_exeext
4816 if { (ac_try="$ac_link"
4818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4819 *) ac_try_echo=$ac_try;;
4821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4822 $as_echo "$ac_try_echo") >&5
4823 (eval "$ac_link") 2>conftest.er1
4825 grep -v '^ *+' conftest.er1 >conftest.err
4827 cat conftest.err >&5
4828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); } && {
4830 test -z "$ac_c_werror_flag" ||
4831 test ! -s conftest.err
4832 } && test -s conftest$ac_exeext && {
4833 test "$cross_compiling" = yes ||
4834 $as_test_x conftest$ac_exeext
4836 { $as_echo "$as_me:$LINENO: result: yes" >&5
4837 $as_echo "yes" >&6; }
4839 $as_echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4842 { $as_echo "$as_me:$LINENO: result: no" >&5
4843 $as_echo "no" >&6; }
4844 { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4845 $as_echo "$as_me: error: cannot proceed" >&2;}
4846 { (exit 1); exit 1; }; }
4849 rm -rf conftest.dSYM
4850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4851 conftest$ac_exeext conftest.$ac_ext
4853 # Defend against gcc -ffast-math
4854 if test "$GCC" = yes; then
4855 cat >conftest.$ac_ext <<_ACEOF
4858 cat confdefs.h >>conftest.$ac_ext
4859 cat >>conftest.$ac_ext <<_ACEOF
4860 /* end confdefs.h. */
4865 #ifdef __FAST_MATH__
4872 rm -f conftest.$ac_objext
4873 if { (ac_try="$ac_compile"
4875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876 *) ac_try_echo=$ac_try;;
4878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4879 $as_echo "$ac_try_echo") >&5
4880 (eval "$ac_compile") 2>conftest.er1
4882 grep -v '^ *+' conftest.er1 >conftest.err
4884 cat conftest.err >&5
4885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } && {
4887 test -z "$ac_c_werror_flag" ||
4888 test ! -s conftest.err
4889 } && test -s conftest.$ac_objext; then
4892 $as_echo "$as_me: failed program was:" >&5
4893 sed 's/^/| /' conftest.$ac_ext >&5
4895 { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4896 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4897 { (exit 1); exit 1; }; }
4900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4904 ac_cpp='$CPP $CPPFLAGS'
4905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4908 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4909 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4910 # On Suns, sometimes $CPP names a directory.
4911 if test -n "$CPP" && test -d "$CPP"; then
4914 if test -z "$CPP"; then
4915 if test "${ac_cv_prog_CPP+set}" = set; then
4916 $as_echo_n "(cached) " >&6
4918 # Double quotes because CPP needs to be expanded
4919 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4922 for ac_c_preproc_warn_flag in '' yes
4924 # Use a header file that comes with gcc, so configuring glibc
4925 # with a fresh cross-compiler works.
4926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4927 # <limits.h> exists even on freestanding compilers.
4928 # On the NeXT, cc -E runs the code through the compiler's parser,
4929 # not just through cpp. "Syntax error" is here to catch this case.
4930 cat >conftest.$ac_ext <<_ACEOF
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h. */
4937 # include <limits.h>
4939 # include <assert.h>
4943 if { (ac_try="$ac_cpp conftest.$ac_ext"
4945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946 *) ac_try_echo=$ac_try;;
4948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4949 $as_echo "$ac_try_echo") >&5
4950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4952 grep -v '^ *+' conftest.er1 >conftest.err
4954 cat conftest.err >&5
4955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } >/dev/null && {
4957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4958 test ! -s conftest.err
4962 $as_echo "$as_me: failed program was:" >&5
4963 sed 's/^/| /' conftest.$ac_ext >&5
4965 # Broken: fails on valid input.
4969 rm -f conftest.err conftest.$ac_ext
4971 # OK, works on sane cases. Now check whether nonexistent headers
4972 # can be detected and how.
4973 cat >conftest.$ac_ext <<_ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4979 #include <ac_nonexistent.h>
4981 if { (ac_try="$ac_cpp conftest.$ac_ext"
4983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984 *) ac_try_echo=$ac_try;;
4986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4987 $as_echo "$ac_try_echo") >&5
4988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4990 grep -v '^ *+' conftest.er1 >conftest.err
4992 cat conftest.err >&5
4993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } >/dev/null && {
4995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4996 test ! -s conftest.err
4998 # Broken: success on invalid input.
5001 $as_echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.$ac_ext >&5
5004 # Passes both tests.
5009 rm -f conftest.err conftest.$ac_ext
5012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5013 rm -f conftest.err conftest.$ac_ext
5014 if $ac_preproc_ok; then
5026 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5027 $as_echo "$CPP" >&6; }
5029 for ac_c_preproc_warn_flag in '' yes
5031 # Use a header file that comes with gcc, so configuring glibc
5032 # with a fresh cross-compiler works.
5033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5034 # <limits.h> exists even on freestanding compilers.
5035 # On the NeXT, cc -E runs the code through the compiler's parser,
5036 # not just through cpp. "Syntax error" is here to catch this case.
5037 cat >conftest.$ac_ext <<_ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5044 # include <limits.h>
5046 # include <assert.h>
5050 if { (ac_try="$ac_cpp conftest.$ac_ext"
5052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5053 *) ac_try_echo=$ac_try;;
5055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5056 $as_echo "$ac_try_echo") >&5
5057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5059 grep -v '^ *+' conftest.er1 >conftest.err
5061 cat conftest.err >&5
5062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } >/dev/null && {
5064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5065 test ! -s conftest.err
5069 $as_echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5072 # Broken: fails on valid input.
5076 rm -f conftest.err conftest.$ac_ext
5078 # OK, works on sane cases. Now check whether nonexistent headers
5079 # can be detected and how.
5080 cat >conftest.$ac_ext <<_ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h. */
5086 #include <ac_nonexistent.h>
5088 if { (ac_try="$ac_cpp conftest.$ac_ext"
5090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5091 *) ac_try_echo=$ac_try;;
5093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5094 $as_echo "$ac_try_echo") >&5
5095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5097 grep -v '^ *+' conftest.er1 >conftest.err
5099 cat conftest.err >&5
5100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } >/dev/null && {
5102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5103 test ! -s conftest.err
5105 # Broken: success on invalid input.
5108 $as_echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5111 # Passes both tests.
5116 rm -f conftest.err conftest.$ac_ext
5119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5120 rm -f conftest.err conftest.$ac_ext
5121 if $ac_preproc_ok; then
5124 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5126 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5127 See \`config.log' for more details." >&5
5128 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5129 See \`config.log' for more details." >&2;}
5130 { (exit 1); exit 1; }; }; }
5134 ac_cpp='$CPP $CPPFLAGS'
5135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5143 # Set up TAS assembly code if needed; the template file has now had its
5144 # chance to request this.
5146 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5149 if test "$need_tas" = yes ; then
5158 # Automatic dependency tracking
5162 # Check whether --enable-depend was given.
5163 if test "${enable_depend+set}" = set; then
5164 enableval=$enable_depend;
5173 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
5174 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
5175 { (exit 1); exit 1; }; }
5189 # Enable assert checks
5193 # Check whether --enable-cassert was given.
5194 if test "${enable_cassert+set}" = set; then
5195 enableval=$enable_cassert;
5199 cat >>confdefs.h <<\_ACEOF
5200 #define USE_ASSERT_CHECKING 1
5208 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
5209 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
5210 { (exit 1); exit 1; }; }
5223 # Include directories
5226 IFS="${IFS}${PATH_SEPARATOR}"
5227 # SRCH_INC comes from the template file
5228 for dir in $with_includes $SRCH_INC; do
5229 if test -d "$dir"; then
5230 INCLUDES="$INCLUDES -I$dir"
5232 { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
5233 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5241 # Library directories
5244 IFS="${IFS}${PATH_SEPARATOR}"
5245 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5246 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5247 if test -d "$dir"; then
5248 LIBDIRS="$LIBDIRS -L$dir"
5250 { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
5251 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5257 # Enable thread-safe client libraries
5259 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
5260 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5263 # Check whether --enable-thread-safety was given.
5264 if test "${enable_thread_safety+set}" = set; then
5265 enableval=$enable_thread_safety;
5274 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
5275 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
5276 { (exit 1); exit 1; }; }
5281 enable_thread_safety=yes
5286 if test "$enable_thread_safety" = yes; then
5288 cat >>confdefs.h <<\_ACEOF
5289 #define ENABLE_THREAD_SAFETY 1
5293 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5294 $as_echo "$enable_thread_safety" >&6; }
5298 # Optionally build Tcl modules (PL/Tcl)
5300 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5301 $as_echo_n "checking whether to build with Tcl... " >&6; }
5305 # Check whether --with-tcl was given.
5306 if test "${with_tcl+set}" = set; then
5316 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5317 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5318 { (exit 1); exit 1; }; }
5328 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
5329 $as_echo "$with_tcl" >&6; }
5332 # We see if the path to the Tcl/Tk configuration scripts is specified.
5333 # This will override the use of tclsh to find the paths to search.
5338 # Check whether --with-tclconfig was given.
5339 if test "${with_tclconfig+set}" = set; then
5340 withval=$with_tclconfig;
5343 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5344 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5345 { (exit 1); exit 1; }; }
5348 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5349 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5350 { (exit 1); exit 1; }; }
5362 # Optionally build Perl modules (PL/Perl)
5364 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5365 $as_echo_n "checking whether to build Perl modules... " >&6; }
5369 # Check whether --with-perl was given.
5370 if test "${with_perl+set}" = set; then
5380 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5381 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5382 { (exit 1); exit 1; }; }
5392 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5393 $as_echo "$with_perl" >&6; }
5397 # Optionally build Python modules (PL/Python)
5399 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5400 $as_echo_n "checking whether to build Python modules... " >&6; }
5404 # Check whether --with-python was given.
5405 if test "${with_python+set}" = set; then
5406 withval=$with_python;
5415 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5416 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5417 { (exit 1); exit 1; }; }
5427 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5428 $as_echo "$with_python" >&6; }
5434 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5435 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5439 # Check whether --with-gssapi was given.
5440 if test "${with_gssapi+set}" = set; then
5441 withval=$with_gssapi;
5446 cat >>confdefs.h <<\_ACEOF
5447 #define ENABLE_GSS 1
5450 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5457 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5458 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5459 { (exit 1); exit 1; }; }
5469 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5470 $as_echo "$with_gssapi" >&6; }
5475 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5476 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5480 # Check whether --with-krb5 was given.
5481 if test "${with_krb5+set}" = set; then
5487 cat >>confdefs.h <<\_ACEOF
5491 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5498 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5499 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5500 { (exit 1); exit 1; }; }
5510 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5511 $as_echo "$with_krb5" >&6; }
5518 # Kerberos configuration parameters
5523 # Check whether --with-krb-srvnam was given.
5524 if test "${with_krb_srvnam+set}" = set; then
5525 withval=$with_krb_srvnam;
5528 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5529 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5530 { (exit 1); exit 1; }; }
5533 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5534 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5535 { (exit 1); exit 1; }; }
5543 with_krb_srvnam="postgres"
5548 cat >>confdefs.h <<_ACEOF
5549 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5557 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5558 $as_echo_n "checking whether to build with PAM support... " >&6; }
5562 # Check whether --with-pam was given.
5563 if test "${with_pam+set}" = set; then
5568 cat >>confdefs.h <<\_ACEOF
5577 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5578 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5579 { (exit 1); exit 1; }; }
5589 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5590 $as_echo "$with_pam" >&6; }
5596 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5597 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5601 # Check whether --with-ldap was given.
5602 if test "${with_ldap+set}" = set; then
5607 cat >>confdefs.h <<\_ACEOF
5616 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5617 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5618 { (exit 1); exit 1; }; }
5628 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5629 $as_echo "$with_ldap" >&6; }
5635 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5636 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5640 # Check whether --with-bonjour was given.
5641 if test "${with_bonjour+set}" = set; then
5642 withval=$with_bonjour;
5646 cat >>confdefs.h <<\_ACEOF
5647 #define USE_BONJOUR 1
5655 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5656 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5657 { (exit 1); exit 1; }; }
5667 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5668 $as_echo "$with_bonjour" >&6; }
5674 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5675 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5679 # Check whether --with-openssl was given.
5680 if test "${with_openssl+set}" = set; then
5681 withval=$with_openssl;
5685 cat >>confdefs.h <<\_ACEOF
5694 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5695 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5696 { (exit 1); exit 1; }; }
5706 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5707 $as_echo "$with_openssl" >&6; }
5713 { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5714 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5718 # Check whether --with-selinux was given.
5719 if test "${with_selinux+set}" = set; then
5720 withval=$with_selinux;
5729 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5730 $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5731 { (exit 1); exit 1; }; }
5742 { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5743 $as_echo "$with_selinux" >&6; }
5751 # Check whether --with-readline was given.
5752 if test "${with_readline+set}" = set; then
5753 withval=$with_readline;
5762 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5763 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5764 { (exit 1); exit 1; }; }
5774 # readline on MinGW has problems with backslashes in psql and other bugs.
5775 # This is particularly a problem with non-US code pages.
5776 # Therefore disable its use until we understand the cause. 2004-07-20
5777 if test "$PORTNAME" = "win32"; then
5778 if test "$with_readline" = yes; then
5779 { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5780 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5792 # Check whether --with-libedit-preferred was given.
5793 if test "${with_libedit_preferred+set}" = set; then
5794 withval=$with_libedit_preferred;
5803 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5804 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5805 { (exit 1); exit 1; }; }
5810 with_libedit_preferred=no
5823 # Check whether --with-ossp-uuid was given.
5824 if test "${with_ossp_uuid+set}" = set; then
5825 withval=$with_ossp_uuid;
5834 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5835 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5836 { (exit 1); exit 1; }; }
5855 # Check whether --with-libxml was given.
5856 if test "${with_libxml+set}" = set; then
5857 withval=$with_libxml;
5861 cat >>confdefs.h <<\_ACEOF
5862 #define USE_LIBXML 1
5870 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5871 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5872 { (exit 1); exit 1; }; }
5883 if test "$with_libxml" = yes ; then
5884 for ac_prog in xml2-config
5886 # Extract the first word of "$ac_prog", so it can be a program name with args.
5887 set dummy $ac_prog; ac_word=$2
5888 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5889 $as_echo_n "checking for $ac_word... " >&6; }
5890 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5891 $as_echo_n "(cached) " >&6
5893 if test -n "$XML2_CONFIG"; then
5894 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5903 ac_cv_prog_XML2_CONFIG="$ac_prog"
5904 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5914 if test -n "$XML2_CONFIG"; then
5915 { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5916 $as_echo "$XML2_CONFIG" >&6; }
5918 { $as_echo "$as_me:$LINENO: result: no" >&5
5919 $as_echo "no" >&6; }
5923 test -n "$XML2_CONFIG" && break
5926 if test -n "$XML2_CONFIG"; then
5927 for pgac_option in `$XML2_CONFIG --cflags`; do
5928 case $pgac_option in
5929 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5932 for pgac_option in `$XML2_CONFIG --libs`; do
5933 case $pgac_option in
5934 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5948 # Check whether --with-libxslt was given.
5949 if test "${with_libxslt+set}" = set; then
5950 withval=$with_libxslt;
5954 cat >>confdefs.h <<\_ACEOF
5955 #define USE_LIBXSLT 1
5963 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5964 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5965 { (exit 1); exit 1; }; }
5985 # Check whether --with-system-tzdata was given.
5986 if test "${with_system_tzdata+set}" = set; then
5987 withval=$with_system_tzdata;
5990 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5991 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5992 { (exit 1); exit 1; }; }
5995 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5996 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5997 { (exit 1); exit 1; }; }
6015 # Check whether --with-zlib was given.
6016 if test "${with_zlib+set}" = set; then
6026 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
6027 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
6028 { (exit 1); exit 1; }; }
6044 # Assume system is ELF if it predefines __ELF__ as 1,
6045 # otherwise believe host_os based default.
6047 freebsd1*|freebsd2*) elf=no;;
6048 freebsd3*|freebsd4*) elf=yes;;
6052 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6053 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6054 if test "${ac_cv_path_GREP+set}" = set; then
6055 $as_echo_n "(cached) " >&6
6057 if test -z "$GREP"; then
6058 ac_path_GREP_found=false
6059 # Loop through the user's path and test for each of PROGNAME-LIST
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6064 test -z "$as_dir" && as_dir=.
6065 for ac_prog in grep ggrep; do
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6068 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6069 # Check for GNU ac_path_GREP and select it if it is found.
6070 # Check for GNU $ac_path_GREP
6071 case `"$ac_path_GREP" --version 2>&1` in
6073 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6076 $as_echo_n 0123456789 >"conftest.in"
6079 cat "conftest.in" "conftest.in" >"conftest.tmp"
6080 mv "conftest.tmp" "conftest.in"
6081 cp "conftest.in" "conftest.nl"
6082 $as_echo 'GREP' >> "conftest.nl"
6083 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6084 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6085 ac_count=`expr $ac_count + 1`
6086 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6087 # Best one so far, save it but keep looking for a better one
6088 ac_cv_path_GREP="$ac_path_GREP"
6089 ac_path_GREP_max=$ac_count
6091 # 10*(2^10) chars as input seems more than enough
6092 test $ac_count -gt 10 && break
6094 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6097 $ac_path_GREP_found && break 3
6102 if test -z "$ac_cv_path_GREP"; then
6103 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6104 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6105 { (exit 1); exit 1; }; }
6108 ac_cv_path_GREP=$GREP
6112 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6113 $as_echo "$ac_cv_path_GREP" >&6; }
6114 GREP="$ac_cv_path_GREP"
6117 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6118 $as_echo_n "checking for egrep... " >&6; }
6119 if test "${ac_cv_path_EGREP+set}" = set; then
6120 $as_echo_n "(cached) " >&6
6122 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6123 then ac_cv_path_EGREP="$GREP -E"
6125 if test -z "$EGREP"; then
6126 ac_path_EGREP_found=false
6127 # Loop through the user's path and test for each of PROGNAME-LIST
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6132 test -z "$as_dir" && as_dir=.
6133 for ac_prog in egrep; do
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6136 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6137 # Check for GNU ac_path_EGREP and select it if it is found.
6138 # Check for GNU $ac_path_EGREP
6139 case `"$ac_path_EGREP" --version 2>&1` in
6141 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6144 $as_echo_n 0123456789 >"conftest.in"
6147 cat "conftest.in" "conftest.in" >"conftest.tmp"
6148 mv "conftest.tmp" "conftest.in"
6149 cp "conftest.in" "conftest.nl"
6150 $as_echo 'EGREP' >> "conftest.nl"
6151 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6152 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6153 ac_count=`expr $ac_count + 1`
6154 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6155 # Best one so far, save it but keep looking for a better one
6156 ac_cv_path_EGREP="$ac_path_EGREP"
6157 ac_path_EGREP_max=$ac_count
6159 # 10*(2^10) chars as input seems more than enough
6160 test $ac_count -gt 10 && break
6162 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6165 $ac_path_EGREP_found && break 3
6170 if test -z "$ac_cv_path_EGREP"; then
6171 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6172 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6173 { (exit 1); exit 1; }; }
6176 ac_cv_path_EGREP=$EGREP
6181 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6182 $as_echo "$ac_cv_path_EGREP" >&6; }
6183 EGREP="$ac_cv_path_EGREP"
6186 cat >conftest.$ac_ext <<_ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6198 $EGREP "yes" >/dev/null 2>&1; then
6201 if test "X$elf" = "Xyes" ; then
6215 CPPFLAGS="$CPPFLAGS $INCLUDES"
6216 LDFLAGS="$LDFLAGS $LIBDIRS"
6222 # Check whether --with-gnu-ld was given.
6223 if test "${with_gnu_ld+set}" = set; then
6224 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6230 if test "$GCC" = yes; then
6231 # Check if gcc -print-prog-name=ld gives a path.
6232 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6233 $as_echo_n "checking for ld used by GCC... " >&6; }
6236 # gcc leaves a trailing carriage return which upsets mingw
6237 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6239 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6242 # Accept absolute paths.
6243 [\\/]* | [A-Za-z]:[\\/]*)
6244 re_direlt='/[^/][^/]*/\.\./'
6245 # Canonicalize the path of ld
6246 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6247 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6248 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6250 test -z "$LD" && LD="$ac_prog"
6253 # If it fails, then pretend we aren't using GCC.
6257 # If it is relative, then search for the first ld in PATH.
6261 elif test "$with_gnu_ld" = yes; then
6262 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6263 $as_echo_n "checking for GNU ld... " >&6; }
6265 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6266 $as_echo_n "checking for non-GNU ld... " >&6; }
6268 if test "${ac_cv_path_LD+set}" = set; then
6269 $as_echo_n "(cached) " >&6
6271 if test -z "$LD"; then
6272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6273 for ac_dir in $PATH; do
6274 test -z "$ac_dir" && ac_dir=.
6275 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6276 ac_cv_path_LD="$ac_dir/$ac_prog"
6277 # Check to see if the program is GNU ld. I'd rather use --version,
6278 # but apparently some GNU ld's only accept -v.
6279 # Break only if it was the GNU/non-GNU ld that we prefer.
6280 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6281 test "$with_gnu_ld" != no && break
6283 test "$with_gnu_ld" != yes && break
6289 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6294 if test -n "$LD"; then
6295 { $as_echo "$as_me:$LINENO: result: $LD" >&5
6296 $as_echo "$LD" >&6; }
6298 { $as_echo "$as_me:$LINENO: result: no" >&5
6299 $as_echo "no" >&6; }
6301 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6302 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6303 { (exit 1); exit 1; }; }
6304 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6305 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6306 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6307 $as_echo_n "(cached) " >&6
6309 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6310 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6311 ac_cv_prog_gnu_ld=yes
6313 ac_cv_prog_gnu_ld=no
6316 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6317 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6318 with_gnu_ld=$ac_cv_prog_gnu_ld
6323 case $host_os in sysv5*)
6324 { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
6325 $as_echo_n "checking whether ld -R works... " >&6; }
6326 if test "${pgac_cv_prog_ld_R+set}" = set; then
6327 $as_echo_n "(cached) " >&6
6330 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6331 cat >conftest.$ac_ext <<_ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6346 rm -f conftest.$ac_objext conftest$ac_exeext
6347 if { (ac_try="$ac_link"
6349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6350 *) ac_try_echo=$ac_try;;
6352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6353 $as_echo "$ac_try_echo") >&5
6354 (eval "$ac_link") 2>conftest.er1
6356 grep -v '^ *+' conftest.er1 >conftest.err
6358 cat conftest.err >&5
6359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); } && {
6361 test -z "$ac_c_werror_flag" ||
6362 test ! -s conftest.err
6363 } && test -s conftest$ac_exeext && {
6364 test "$cross_compiling" = yes ||
6365 $as_test_x conftest$ac_exeext
6367 pgac_cv_prog_ld_R=yes
6369 $as_echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.$ac_ext >&5
6372 pgac_cv_prog_ld_R=no
6375 rm -rf conftest.dSYM
6376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6377 conftest$ac_exeext conftest.$ac_ext
6378 LDFLAGS=$pgac_save_LDFLAGS
6381 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6382 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6383 ld_R_works=$pgac_cv_prog_ld_R
6386 if test -n "$ac_tool_prefix"; then
6387 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6388 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6389 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6390 $as_echo_n "checking for $ac_word... " >&6; }
6391 if test "${ac_cv_prog_RANLIB+set}" = set; then
6392 $as_echo_n "(cached) " >&6
6394 if test -n "$RANLIB"; then
6395 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 test -z "$as_dir" && as_dir=.
6402 for ac_exec_ext in '' $ac_executable_extensions; do
6403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6404 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6405 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 RANLIB=$ac_cv_prog_RANLIB
6415 if test -n "$RANLIB"; then
6416 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6417 $as_echo "$RANLIB" >&6; }
6419 { $as_echo "$as_me:$LINENO: result: no" >&5
6420 $as_echo "no" >&6; }
6425 if test -z "$ac_cv_prog_RANLIB"; then
6426 ac_ct_RANLIB=$RANLIB
6427 # Extract the first word of "ranlib", so it can be a program name with args.
6428 set dummy ranlib; ac_word=$2
6429 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6430 $as_echo_n "checking for $ac_word... " >&6; }
6431 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6432 $as_echo_n "(cached) " >&6
6434 if test -n "$ac_ct_RANLIB"; then
6435 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 test -z "$as_dir" && as_dir=.
6442 for ac_exec_ext in '' $ac_executable_extensions; do
6443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6444 ac_cv_prog_ac_ct_RANLIB="ranlib"
6445 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6454 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6455 if test -n "$ac_ct_RANLIB"; then
6456 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6457 $as_echo "$ac_ct_RANLIB" >&6; }
6459 { $as_echo "$as_me:$LINENO: result: no" >&5
6460 $as_echo "no" >&6; }
6463 if test "x$ac_ct_RANLIB" = x; then
6466 case $cross_compiling:$ac_tool_warned in
6468 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6470 ac_tool_warned=yes ;;
6472 RANLIB=$ac_ct_RANLIB
6475 RANLIB="$ac_cv_prog_RANLIB"
6479 if test -n "$ac_tool_prefix"; then
6480 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6481 set dummy ${ac_tool_prefix}strip; ac_word=$2
6482 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6483 $as_echo_n "checking for $ac_word... " >&6; }
6484 if test "${ac_cv_prog_STRIP+set}" = set; then
6485 $as_echo_n "(cached) " >&6
6487 if test -n "$STRIP"; then
6488 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 test -z "$as_dir" && as_dir=.
6495 for ac_exec_ext in '' $ac_executable_extensions; do
6496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6497 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6498 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 STRIP=$ac_cv_prog_STRIP
6508 if test -n "$STRIP"; then
6509 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6510 $as_echo "$STRIP" >&6; }
6512 { $as_echo "$as_me:$LINENO: result: no" >&5
6513 $as_echo "no" >&6; }
6518 if test -z "$ac_cv_prog_STRIP"; then
6520 # Extract the first word of "strip", so it can be a program name with args.
6521 set dummy strip; ac_word=$2
6522 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6523 $as_echo_n "checking for $ac_word... " >&6; }
6524 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6525 $as_echo_n "(cached) " >&6
6527 if test -n "$ac_ct_STRIP"; then
6528 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534 test -z "$as_dir" && as_dir=.
6535 for ac_exec_ext in '' $ac_executable_extensions; do
6536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6537 ac_cv_prog_ac_ct_STRIP="strip"
6538 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6548 if test -n "$ac_ct_STRIP"; then
6549 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6550 $as_echo "$ac_ct_STRIP" >&6; }
6552 { $as_echo "$as_me:$LINENO: result: no" >&5
6553 $as_echo "no" >&6; }
6556 if test "x$ac_ct_STRIP" = x; then
6559 case $cross_compiling:$ac_tool_warned in
6561 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6563 ac_tool_warned=yes ;;
6568 STRIP="$ac_cv_prog_STRIP"
6572 { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6573 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6574 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6575 STRIP_STATIC_LIB="$STRIP -x"
6576 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6577 { $as_echo "$as_me:$LINENO: result: yes" >&5
6578 $as_echo "yes" >&6; }
6583 STRIP_STATIC_LIB=$STRIP
6584 STRIP_SHARED_LIB=$STRIP
6585 { $as_echo "$as_me:$LINENO: result: yes" >&5
6586 $as_echo "yes" >&6; }
6591 { $as_echo "$as_me:$LINENO: result: no" >&5
6592 $as_echo "no" >&6; }
6599 if test -n "$ac_tool_prefix"; then
6600 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6601 set dummy ${ac_tool_prefix}ar; ac_word=$2
6602 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6603 $as_echo_n "checking for $ac_word... " >&6; }
6604 if test "${ac_cv_prog_AR+set}" = set; then
6605 $as_echo_n "(cached) " >&6
6607 if test -n "$AR"; then
6608 ac_cv_prog_AR="$AR" # Let the user override the test.
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 test -z "$as_dir" && as_dir=.
6615 for ac_exec_ext in '' $ac_executable_extensions; do
6616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6617 ac_cv_prog_AR="${ac_tool_prefix}ar"
6618 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 if test -n "$AR"; then
6629 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6630 $as_echo "$AR" >&6; }
6632 { $as_echo "$as_me:$LINENO: result: no" >&5
6633 $as_echo "no" >&6; }
6638 if test -z "$ac_cv_prog_AR"; then
6640 # Extract the first word of "ar", so it can be a program name with args.
6641 set dummy ar; ac_word=$2
6642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6643 $as_echo_n "checking for $ac_word... " >&6; }
6644 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6645 $as_echo_n "(cached) " >&6
6647 if test -n "$ac_ct_AR"; then
6648 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6657 ac_cv_prog_ac_ct_AR="ar"
6658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6667 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6668 if test -n "$ac_ct_AR"; then
6669 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6670 $as_echo "$ac_ct_AR" >&6; }
6672 { $as_echo "$as_me:$LINENO: result: no" >&5
6673 $as_echo "no" >&6; }
6676 if test "x$ac_ct_AR" = x; then
6679 case $cross_compiling:$ac_tool_warned in
6681 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6683 ac_tool_warned=yes ;;
6691 if test "$PORTNAME" = "win32"; then
6692 if test -n "$ac_tool_prefix"; then
6693 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6694 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6695 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6698 $as_echo_n "(cached) " >&6
6700 if test -n "$DLLTOOL"; then
6701 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6710 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6711 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 DLLTOOL=$ac_cv_prog_DLLTOOL
6721 if test -n "$DLLTOOL"; then
6722 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6723 $as_echo "$DLLTOOL" >&6; }
6725 { $as_echo "$as_me:$LINENO: result: no" >&5
6726 $as_echo "no" >&6; }
6731 if test -z "$ac_cv_prog_DLLTOOL"; then
6732 ac_ct_DLLTOOL=$DLLTOOL
6733 # Extract the first word of "dlltool", so it can be a program name with args.
6734 set dummy dlltool; ac_word=$2
6735 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6738 $as_echo_n "(cached) " >&6
6740 if test -n "$ac_ct_DLLTOOL"; then
6741 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6751 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6761 if test -n "$ac_ct_DLLTOOL"; then
6762 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6763 $as_echo "$ac_ct_DLLTOOL" >&6; }
6765 { $as_echo "$as_me:$LINENO: result: no" >&5
6766 $as_echo "no" >&6; }
6769 if test "x$ac_ct_DLLTOOL" = x; then
6772 case $cross_compiling:$ac_tool_warned in
6774 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6776 ac_tool_warned=yes ;;
6778 DLLTOOL=$ac_ct_DLLTOOL
6781 DLLTOOL="$ac_cv_prog_DLLTOOL"
6784 if test -n "$ac_tool_prefix"; then
6785 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6786 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6787 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6788 $as_echo_n "checking for $ac_word... " >&6; }
6789 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6790 $as_echo_n "(cached) " >&6
6792 if test -n "$DLLWRAP"; then
6793 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6802 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6803 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6812 DLLWRAP=$ac_cv_prog_DLLWRAP
6813 if test -n "$DLLWRAP"; then
6814 { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6815 $as_echo "$DLLWRAP" >&6; }
6817 { $as_echo "$as_me:$LINENO: result: no" >&5
6818 $as_echo "no" >&6; }
6823 if test -z "$ac_cv_prog_DLLWRAP"; then
6824 ac_ct_DLLWRAP=$DLLWRAP
6825 # Extract the first word of "dllwrap", so it can be a program name with args.
6826 set dummy dllwrap; ac_word=$2
6827 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6828 $as_echo_n "checking for $ac_word... " >&6; }
6829 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6830 $as_echo_n "(cached) " >&6
6832 if test -n "$ac_ct_DLLWRAP"; then
6833 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6842 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6843 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6853 if test -n "$ac_ct_DLLWRAP"; then
6854 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6855 $as_echo "$ac_ct_DLLWRAP" >&6; }
6857 { $as_echo "$as_me:$LINENO: result: no" >&5
6858 $as_echo "no" >&6; }
6861 if test "x$ac_ct_DLLWRAP" = x; then
6864 case $cross_compiling:$ac_tool_warned in
6866 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6868 ac_tool_warned=yes ;;
6870 DLLWRAP=$ac_ct_DLLWRAP
6873 DLLWRAP="$ac_cv_prog_DLLWRAP"
6876 if test -n "$ac_tool_prefix"; then
6877 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6878 set dummy ${ac_tool_prefix}windres; ac_word=$2
6879 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6880 $as_echo_n "checking for $ac_word... " >&6; }
6881 if test "${ac_cv_prog_WINDRES+set}" = set; then
6882 $as_echo_n "(cached) " >&6
6884 if test -n "$WINDRES"; then
6885 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 test -z "$as_dir" && as_dir=.
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6894 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6895 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6904 WINDRES=$ac_cv_prog_WINDRES
6905 if test -n "$WINDRES"; then
6906 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6907 $as_echo "$WINDRES" >&6; }
6909 { $as_echo "$as_me:$LINENO: result: no" >&5
6910 $as_echo "no" >&6; }
6915 if test -z "$ac_cv_prog_WINDRES"; then
6916 ac_ct_WINDRES=$WINDRES
6917 # Extract the first word of "windres", so it can be a program name with args.
6918 set dummy windres; ac_word=$2
6919 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6920 $as_echo_n "checking for $ac_word... " >&6; }
6921 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6922 $as_echo_n "(cached) " >&6
6924 if test -n "$ac_ct_WINDRES"; then
6925 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 test -z "$as_dir" && as_dir=.
6932 for ac_exec_ext in '' $ac_executable_extensions; do
6933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6934 ac_cv_prog_ac_ct_WINDRES="windres"
6935 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6945 if test -n "$ac_ct_WINDRES"; then
6946 { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6947 $as_echo "$ac_ct_WINDRES" >&6; }
6949 { $as_echo "$as_me:$LINENO: result: no" >&5
6950 $as_echo "no" >&6; }
6953 if test "x$ac_ct_WINDRES" = x; then
6956 case $cross_compiling:$ac_tool_warned in
6958 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6960 ac_tool_warned=yes ;;
6962 WINDRES=$ac_ct_WINDRES
6965 WINDRES="$ac_cv_prog_WINDRES"
6970 # Find a good install program. We prefer a C program (faster),
6971 # so one script is as good as another. But avoid the broken or
6972 # incompatible versions:
6973 # SysV /etc/install, /usr/sbin/install
6974 # SunOS /usr/etc/install
6975 # IRIX /sbin/install
6977 # AmigaOS /C/install, which installs bootblocks on floppy discs
6978 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6979 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6980 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6981 # OS/2's system install, which has a completely different semantic
6982 # ./install, which can be erroneously created by make from ./install.sh.
6983 # Reject install programs that cannot install multiple files.
6984 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6985 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6986 if test -z "$INSTALL"; then
6987 if test "${ac_cv_path_install+set}" = set; then
6988 $as_echo_n "(cached) " >&6
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 test -z "$as_dir" && as_dir=.
6995 # Account for people who put trailing slashes in PATH elements.
6997 ./ | .// | /cC/* | \
6998 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6999 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7002 # OSF1 and SCO ODT 3.0 have their own names for install.
7003 # Don't use installbsd from OSF since it installs stuff as root
7005 for ac_prog in ginstall scoinst install; do
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7008 if test $ac_prog = install &&
7009 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7010 # AIX install. It has an incompatible calling convention.
7012 elif test $ac_prog = install &&
7013 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7014 # program-specific install script used by HP pwplus--don't use.
7017 rm -rf conftest.one conftest.two conftest.dir
7018 echo one > conftest.one
7019 echo two > conftest.two
7021 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7022 test -s conftest.one && test -s conftest.two &&
7023 test -s conftest.dir/conftest.one &&
7024 test -s conftest.dir/conftest.two
7026 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7039 rm -rf conftest.one conftest.two conftest.dir
7042 if test "${ac_cv_path_install+set}" = set; then
7043 INSTALL=$ac_cv_path_install
7045 # As a last resort, use the slow shell script. Don't cache a
7046 # value for INSTALL within a source directory, because that will
7047 # break other packages using the cache if that directory is
7048 # removed, or if the value is a relative name.
7049 INSTALL=$ac_install_sh
7052 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
7053 $as_echo "$INSTALL" >&6; }
7055 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7056 # It thinks the first close brace ends the variable substitution.
7057 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7059 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7061 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7063 # When Autoconf chooses install-sh as install program it tries to generate
7064 # a relative path to it in each makefile where it subsitutes it. This clashes
7065 # with our Makefile.global concept. This workaround helps.
7067 *install-sh*) install_bin='';;
7068 *) install_bin=$INSTALL;;
7072 # Extract the first word of "tar", so it can be a program name with args.
7073 set dummy tar; ac_word=$2
7074 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7075 $as_echo_n "checking for $ac_word... " >&6; }
7076 if test "${ac_cv_path_TAR+set}" = set; then
7077 $as_echo_n "(cached) " >&6
7081 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 test -z "$as_dir" && as_dir=.
7089 for ac_exec_ext in '' $ac_executable_extensions; do
7090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7091 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7092 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 if test -n "$TAR"; then
7104 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
7105 $as_echo "$TAR" >&6; }
7107 { $as_echo "$as_me:$LINENO: result: no" >&5
7108 $as_echo "no" >&6; }
7112 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7113 $as_echo_n "checking whether ln -s works... " >&6; }
7115 if test "$LN_S" = "ln -s"; then
7116 { $as_echo "$as_me:$LINENO: result: yes" >&5
7117 $as_echo "yes" >&6; }
7119 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7120 $as_echo "no, using $LN_S" >&6; }
7123 for ac_prog in gawk mawk nawk awk
7125 # Extract the first word of "$ac_prog", so it can be a program name with args.
7126 set dummy $ac_prog; ac_word=$2
7127 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 $as_echo_n "checking for $ac_word... " >&6; }
7129 if test "${ac_cv_prog_AWK+set}" = set; then
7130 $as_echo_n "(cached) " >&6
7132 if test -n "$AWK"; then
7133 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7142 ac_cv_prog_AWK="$ac_prog"
7143 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 if test -n "$AWK"; then
7154 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
7155 $as_echo "$AWK" >&6; }
7157 { $as_echo "$as_me:$LINENO: result: no" >&5
7158 $as_echo "no" >&6; }
7162 test -n "$AWK" && break
7165 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
7166 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7167 if test -z "$MKDIR_P"; then
7168 if test "${ac_cv_path_mkdir+set}" = set; then
7169 $as_echo_n "(cached) " >&6
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7175 test -z "$as_dir" && as_dir=.
7176 for ac_prog in mkdir gmkdir; do
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7179 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7180 'mkdir (GNU coreutils) '* | \
7181 'mkdir (coreutils) '* | \
7182 'mkdir (fileutils) '4.1*)
7183 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7193 if test "${ac_cv_path_mkdir+set}" = set; then
7194 MKDIR_P="$ac_cv_path_mkdir -p"
7196 # As a last resort, use the slow shell script. Don't cache a
7197 # value for MKDIR_P within a source directory, because that will
7198 # break other packages using the cache if that directory is
7199 # removed, or if the value is a relative name.
7200 test -d ./--version && rmdir ./--version
7201 MKDIR_P="$ac_install_sh -d"
7204 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
7205 $as_echo "$MKDIR_P" >&6; }
7207 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7208 # a relative path to it in each makefile where it subsitutes it. This clashes
7209 # with our Makefile.global concept. This workaround helps.
7211 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7214 # Let the user override the search
7215 if test -z "$BISON"; then
7216 for ac_prog in bison
7218 # Extract the first word of "$ac_prog", so it can be a program name with args.
7219 set dummy $ac_prog; ac_word=$2
7220 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7221 $as_echo_n "checking for $ac_word... " >&6; }
7222 if test "${ac_cv_path_BISON+set}" = set; then
7223 $as_echo_n "(cached) " >&6
7227 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7237 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7238 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 BISON=$ac_cv_path_BISON
7249 if test -n "$BISON"; then
7250 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
7251 $as_echo "$BISON" >&6; }
7253 { $as_echo "$as_me:$LINENO: result: no" >&5
7254 $as_echo "no" >&6; }
7258 test -n "$BISON" && break
7263 if test "$BISON"; then
7264 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7265 { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
7266 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7267 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7269 { $as_echo "$as_me:$LINENO: WARNING:
7270 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7271 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7272 $as_echo "$as_me: WARNING:
7273 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7274 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7279 if test -z "$BISON"; then
7280 { $as_echo "$as_me:$LINENO: WARNING:
7281 *** Without Bison you will not be able to build PostgreSQL from Git nor
7282 *** change any of the parser definition files. You can obtain Bison from
7283 *** a GNU mirror site. (If you are using the official distribution of
7284 *** PostgreSQL then you do not need to worry about this, because the Bison
7285 *** output is pre-generated.)" >&5
7286 $as_echo "$as_me: WARNING:
7287 *** Without Bison you will not be able to build PostgreSQL from Git nor
7288 *** change any of the parser definition files. You can obtain Bison from
7289 *** a GNU mirror site. (If you are using the official distribution of
7290 *** PostgreSQL then you do not need to worry about this, because the Bison
7291 *** output is pre-generated.)" >&2;}
7293 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7296 { $as_echo "$as_me:$LINENO: checking for flex" >&5
7297 $as_echo_n "checking for flex... " >&6; }
7298 if test "${pgac_cv_path_flex+set}" = set; then
7299 $as_echo_n "(cached) " >&6
7301 # Let the user override the test
7302 if test -n "$FLEX"; then
7303 pgac_cv_path_flex=$FLEX
7307 for pgac_dir in $PATH; do
7309 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7312 for pgac_prog in flex lex; do
7313 pgac_candidate="$pgac_dir/$pgac_prog"
7314 if test -f "$pgac_candidate" \
7315 && $pgac_candidate --version </dev/null >/dev/null 2>&1
7317 echo '%%' > conftest.l
7318 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7319 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7320 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7322 pgac_cv_path_flex=$pgac_candidate
7325 { $as_echo "$as_me:$LINENO: WARNING:
7326 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7327 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7328 $as_echo "$as_me: WARNING:
7329 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7330 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7336 rm -f conftest.l lex.yy.c
7337 : ${pgac_cv_path_flex=no}
7341 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
7342 $as_echo "$pgac_cv_path_flex" >&6; }
7343 if test x"$pgac_cv_path_flex" = x"no"; then
7344 { $as_echo "$as_me:$LINENO: WARNING:
7345 *** Without Flex you will not be able to build PostgreSQL from Git nor
7346 *** change any of the scanner definition files. You can obtain Flex from
7347 *** a GNU mirror site. (If you are using the official distribution of
7348 *** PostgreSQL then you do not need to worry about this because the Flex
7349 *** output is pre-generated.)" >&5
7350 $as_echo "$as_me: WARNING:
7351 *** Without Flex you will not be able to build PostgreSQL from Git nor
7352 *** change any of the scanner definition files. You can obtain Flex from
7353 *** a GNU mirror site. (If you are using the official distribution of
7354 *** PostgreSQL then you do not need to worry about this because the Flex
7355 *** output is pre-generated.)" >&2;}
7359 FLEX=$pgac_cv_path_flex
7360 pgac_flex_version=`$FLEX --version 2>/dev/null`
7361 { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
7362 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7369 # Let the user override the search
7370 if test -z "$PERL"; then
7371 # Extract the first word of "perl", so it can be a program name with args.
7372 set dummy perl; ac_word=$2
7373 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7374 $as_echo_n "checking for $ac_word... " >&6; }
7375 if test "${ac_cv_path_PERL+set}" = set; then
7376 $as_echo_n "(cached) " >&6
7380 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7390 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7391 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 PERL=$ac_cv_path_PERL
7402 if test -n "$PERL"; then
7403 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
7404 $as_echo "$PERL" >&6; }
7406 { $as_echo "$as_me:$LINENO: result: no" >&5
7407 $as_echo "no" >&6; }
7413 if test "$PERL"; then
7414 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'`
7415 { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
7416 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7417 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7418 $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7420 { $as_echo "$as_me:$LINENO: WARNING:
7421 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7422 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7423 $as_echo "$as_me: WARNING:
7424 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7425 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7430 if test -z "$PERL"; then
7431 { $as_echo "$as_me:$LINENO: WARNING:
7432 *** Without Perl you will not be able to build PostgreSQL from Git.
7433 *** You can obtain Perl from any CPAN mirror site.
7434 *** (If you are using the official distribution of PostgreSQL then you do not
7435 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7436 $as_echo "$as_me: WARNING:
7437 *** Without Perl you will not be able to build PostgreSQL from Git.
7438 *** You can obtain Perl from any CPAN mirror site.
7439 *** (If you are using the official distribution of PostgreSQL then you do not
7440 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7443 if test "$with_perl" = yes; then
7444 if test -z "$PERL"; then
7445 { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
7446 $as_echo "$as_me: error: Perl not found" >&2;}
7447 { (exit 1); exit 1; }; }
7450 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7451 $as_echo_n "checking for Perl archlibexp... " >&6; }
7452 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7453 test "$PORTNAME" = "win32" && perl_archlibexp=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
7454 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7455 $as_echo "$perl_archlibexp" >&6; }
7456 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7457 $as_echo_n "checking for Perl privlibexp... " >&6; }
7458 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7459 test "$PORTNAME" = "win32" && perl_privlibexp=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
7460 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7461 $as_echo "$perl_privlibexp" >&6; }
7462 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7463 $as_echo_n "checking for Perl useshrplib... " >&6; }
7464 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7465 test "$PORTNAME" = "win32" && perl_useshrplib=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
7466 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7467 $as_echo "$perl_useshrplib" >&6; }
7469 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7470 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7471 if test "$PORTNAME" = "win32" ; then
7472 perl_lib=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
7473 test -e "$perl_archlibexp/CORE/$perl_lib.lib" && perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"
7475 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7476 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7477 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7479 if test -z "$perl_embed_ldflags" ; then
7480 { $as_echo "$as_me:$LINENO: result: no" >&5
7481 $as_echo "no" >&6; }
7482 { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7483 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7485 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
7486 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7488 { (exit 1); exit 1; }; }
7490 { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7491 $as_echo "$perl_embed_ldflags" >&6; }
7496 if test "$with_python" = yes; then
7497 # Extract the first word of "python", so it can be a program name with args.
7498 set dummy python; ac_word=$2
7499 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7500 $as_echo_n "checking for $ac_word... " >&6; }
7501 if test "${ac_cv_path_PYTHON+set}" = set; then
7502 $as_echo_n "(cached) " >&6
7506 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 test -z "$as_dir" && as_dir=.
7514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7516 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7517 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7527 PYTHON=$ac_cv_path_PYTHON
7528 if test -n "$PYTHON"; then
7529 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7530 $as_echo "$PYTHON" >&6; }
7532 { $as_echo "$as_me:$LINENO: result: no" >&5
7533 $as_echo "no" >&6; }
7537 if test x"$PYTHON" = x""; then
7538 { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7539 $as_echo "$as_me: error: Python not found" >&2;}
7540 { (exit 1); exit 1; }; }
7544 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7545 $as_echo_n "checking for Python distutils module... " >&6; }
7546 if "${PYTHON}" -c 'import distutils' 2>&5
7548 { $as_echo "$as_me:$LINENO: result: yes" >&5
7549 $as_echo "yes" >&6; }
7551 { $as_echo "$as_me:$LINENO: result: no" >&5
7552 $as_echo "no" >&6; }
7553 { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7554 $as_echo "$as_me: error: distutils module not found" >&2;}
7555 { (exit 1); exit 1; }; }
7557 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7558 $as_echo_n "checking Python configuration directory... " >&6; }
7559 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7560 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7561 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7562 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7563 $as_echo "$python_configdir" >&6; }
7565 { $as_echo "$as_me:$LINENO: checking Python include directories" >&5
7566 $as_echo_n "checking Python include directories... " >&6; }
7567 python_includespec=`${PYTHON} -c "
7568 import distutils.sysconfig
7569 a = '-I' + distutils.sysconfig.get_python_inc(False)
7570 b = '-I' + distutils.sysconfig.get_python_inc(True)
7574 print(a + ' ' + b)"`
7575 { $as_echo "$as_me:$LINENO: result: $python_includespec" >&5
7576 $as_echo "$python_includespec" >&6; }
7580 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7581 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7583 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7584 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7585 python_so=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7586 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7587 python_framework=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('PYTHONFRAMEWORK'))))"`
7588 python_enable_shared=`${PYTHON} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_vars().get('Py_ENABLE_SHARED',0))"`
7590 if test -n "$python_framework"; then
7591 python_frameworkprefix=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('PYTHONFRAMEWORKPREFIX'))))"`
7592 python_libspec="-F${python_frameworkprefix} -framework $python_framework"
7593 python_enable_shared=1
7594 elif test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7596 # New way: use the official shared library
7597 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7598 python_libspec="-L${python_libdir} -l${ldlibrary}"
7600 # Old way: use libpython from python_configdir
7601 python_libdir="${python_configdir}"
7602 # LDVERSION was introduced in Python 3.2.
7603 python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7604 if test x"${python_ldversion}" = x""; then
7605 python_ldversion=$python_version
7607 python_libspec="-L${python_libdir} -lpython${python_ldversion}"
7610 if test -z "$python_framework"; then
7611 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7614 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7615 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7618 # threaded python is not supported on OpenBSD
7619 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7620 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7621 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7622 if test "$pythreads" = "1"; then
7623 { $as_echo "$as_me:$LINENO: result: yes" >&5
7624 $as_echo "yes" >&6; }
7627 { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7628 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7629 { (exit 1); exit 1; }; }
7633 { $as_echo "$as_me:$LINENO: result: no" >&5
7634 $as_echo "no" >&6; }
7640 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7641 # Extract the first word of "zic", so it can be a program name with args.
7642 set dummy zic; ac_word=$2
7643 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7644 $as_echo_n "checking for $ac_word... " >&6; }
7645 if test "${ac_cv_path_ZIC+set}" = set; then
7646 $as_echo_n "(cached) " >&6
7650 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 test -z "$as_dir" && as_dir=.
7658 for ac_exec_ext in '' $ac_executable_extensions; do
7659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7660 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7661 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 if test -n "$ZIC"; then
7673 { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7674 $as_echo "$ZIC" >&6; }
7676 { $as_echo "$as_me:$LINENO: result: no" >&5
7677 $as_echo "no" >&6; }
7681 if test -z "$ZIC"; then
7682 { { $as_echo "$as_me:$LINENO: error:
7683 When cross-compiling, either use the option --with-system-tzdata to use
7684 existing time-zone data, or set the environment variable ZIC to a zic
7685 program to use during the build." >&5
7686 $as_echo "$as_me: error:
7687 When cross-compiling, either use the option --with-system-tzdata to use
7688 existing time-zone data, or set the environment variable ZIC to a zic
7689 program to use during the build." >&2;}
7690 { (exit 1); exit 1; }; }
7698 ## Most libraries are included only if they demonstrably provide a function
7699 ## we need, but libm is an exception: always include it, because there are
7700 ## too many compilers that play cute optimization games that will break
7701 ## probes for standard functions such as pow().
7705 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7706 $as_echo_n "checking for main in -lm... " >&6; }
7707 if test "${ac_cv_lib_m_main+set}" = set; then
7708 $as_echo_n "(cached) " >&6
7710 ac_check_lib_save_LIBS=$LIBS
7712 cat >conftest.$ac_ext <<_ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h. */
7728 rm -f conftest.$ac_objext conftest$ac_exeext
7729 if { (ac_try="$ac_link"
7731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7735 $as_echo "$ac_try_echo") >&5
7736 (eval "$ac_link") 2>conftest.er1
7738 grep -v '^ *+' conftest.er1 >conftest.err
7740 cat conftest.err >&5
7741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } && {
7743 test -z "$ac_c_werror_flag" ||
7744 test ! -s conftest.err
7745 } && test -s conftest$ac_exeext && {
7746 test "$cross_compiling" = yes ||
7747 $as_test_x conftest$ac_exeext
7749 ac_cv_lib_m_main=yes
7751 $as_echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7757 rm -rf conftest.dSYM
7758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7759 conftest$ac_exeext conftest.$ac_ext
7760 LIBS=$ac_check_lib_save_LIBS
7762 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7763 $as_echo "$ac_cv_lib_m_main" >&6; }
7764 if test "x$ac_cv_lib_m_main" = x""yes; then
7765 cat >>confdefs.h <<_ACEOF
7773 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7774 $as_echo_n "checking for library containing setproctitle... " >&6; }
7775 if test "${ac_cv_search_setproctitle+set}" = set; then
7776 $as_echo_n "(cached) " >&6
7778 ac_func_search_save_LIBS=$LIBS
7779 cat >conftest.$ac_ext <<_ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h. */
7786 /* Override any GCC internal prototype to avoid an error.
7787 Use char because int might match the return type of a GCC
7788 builtin and then its argument prototype would still apply. */
7792 char setproctitle ();
7796 return setproctitle ();
7801 for ac_lib in '' util; do
7802 if test -z "$ac_lib"; then
7803 ac_res="none required"
7806 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7808 rm -f conftest.$ac_objext conftest$ac_exeext
7809 if { (ac_try="$ac_link"
7811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7812 *) ac_try_echo=$ac_try;;
7814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7815 $as_echo "$ac_try_echo") >&5
7816 (eval "$ac_link") 2>conftest.er1
7818 grep -v '^ *+' conftest.er1 >conftest.err
7820 cat conftest.err >&5
7821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); } && {
7823 test -z "$ac_c_werror_flag" ||
7824 test ! -s conftest.err
7825 } && test -s conftest$ac_exeext && {
7826 test "$cross_compiling" = yes ||
7827 $as_test_x conftest$ac_exeext
7829 ac_cv_search_setproctitle=$ac_res
7831 $as_echo "$as_me: failed program was:" >&5
7832 sed 's/^/| /' conftest.$ac_ext >&5
7837 rm -rf conftest.dSYM
7838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7840 if test "${ac_cv_search_setproctitle+set}" = set; then
7844 if test "${ac_cv_search_setproctitle+set}" = set; then
7847 ac_cv_search_setproctitle=no
7850 LIBS=$ac_func_search_save_LIBS
7852 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7853 $as_echo "$ac_cv_search_setproctitle" >&6; }
7854 ac_res=$ac_cv_search_setproctitle
7855 if test "$ac_res" != no; then
7856 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7860 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7861 $as_echo_n "checking for library containing dlopen... " >&6; }
7862 if test "${ac_cv_search_dlopen+set}" = set; then
7863 $as_echo_n "(cached) " >&6
7865 ac_func_search_save_LIBS=$LIBS
7866 cat >conftest.$ac_ext <<_ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7873 /* Override any GCC internal prototype to avoid an error.
7874 Use char because int might match the return type of a GCC
7875 builtin and then its argument prototype would still apply. */
7888 for ac_lib in '' dl; do
7889 if test -z "$ac_lib"; then
7890 ac_res="none required"
7893 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7895 rm -f conftest.$ac_objext conftest$ac_exeext
7896 if { (ac_try="$ac_link"
7898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899 *) ac_try_echo=$ac_try;;
7901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7902 $as_echo "$ac_try_echo") >&5
7903 (eval "$ac_link") 2>conftest.er1
7905 grep -v '^ *+' conftest.er1 >conftest.err
7907 cat conftest.err >&5
7908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } && {
7910 test -z "$ac_c_werror_flag" ||
7911 test ! -s conftest.err
7912 } && test -s conftest$ac_exeext && {
7913 test "$cross_compiling" = yes ||
7914 $as_test_x conftest$ac_exeext
7916 ac_cv_search_dlopen=$ac_res
7918 $as_echo "$as_me: failed program was:" >&5
7919 sed 's/^/| /' conftest.$ac_ext >&5
7924 rm -rf conftest.dSYM
7925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7927 if test "${ac_cv_search_dlopen+set}" = set; then
7931 if test "${ac_cv_search_dlopen+set}" = set; then
7934 ac_cv_search_dlopen=no
7937 LIBS=$ac_func_search_save_LIBS
7939 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7940 $as_echo "$ac_cv_search_dlopen" >&6; }
7941 ac_res=$ac_cv_search_dlopen
7942 if test "$ac_res" != no; then
7943 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7947 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7948 $as_echo_n "checking for library containing socket... " >&6; }
7949 if test "${ac_cv_search_socket+set}" = set; then
7950 $as_echo_n "(cached) " >&6
7952 ac_func_search_save_LIBS=$LIBS
7953 cat >conftest.$ac_ext <<_ACEOF
7956 cat confdefs.h >>conftest.$ac_ext
7957 cat >>conftest.$ac_ext <<_ACEOF
7958 /* end confdefs.h. */
7960 /* Override any GCC internal prototype to avoid an error.
7961 Use char because int might match the return type of a GCC
7962 builtin and then its argument prototype would still apply. */
7975 for ac_lib in '' socket wsock32; do
7976 if test -z "$ac_lib"; then
7977 ac_res="none required"
7980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7982 rm -f conftest.$ac_objext conftest$ac_exeext
7983 if { (ac_try="$ac_link"
7985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7986 *) ac_try_echo=$ac_try;;
7988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7989 $as_echo "$ac_try_echo") >&5
7990 (eval "$ac_link") 2>conftest.er1
7992 grep -v '^ *+' conftest.er1 >conftest.err
7994 cat conftest.err >&5
7995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } && {
7997 test -z "$ac_c_werror_flag" ||
7998 test ! -s conftest.err
7999 } && test -s conftest$ac_exeext && {
8000 test "$cross_compiling" = yes ||
8001 $as_test_x conftest$ac_exeext
8003 ac_cv_search_socket=$ac_res
8005 $as_echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8011 rm -rf conftest.dSYM
8012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8014 if test "${ac_cv_search_socket+set}" = set; then
8018 if test "${ac_cv_search_socket+set}" = set; then
8021 ac_cv_search_socket=no
8024 LIBS=$ac_func_search_save_LIBS
8026 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
8027 $as_echo "$ac_cv_search_socket" >&6; }
8028 ac_res=$ac_cv_search_socket
8029 if test "$ac_res" != no; then
8030 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8034 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
8035 $as_echo_n "checking for library containing shl_load... " >&6; }
8036 if test "${ac_cv_search_shl_load+set}" = set; then
8037 $as_echo_n "(cached) " >&6
8039 ac_func_search_save_LIBS=$LIBS
8040 cat >conftest.$ac_ext <<_ACEOF
8043 cat confdefs.h >>conftest.$ac_ext
8044 cat >>conftest.$ac_ext <<_ACEOF
8045 /* end confdefs.h. */
8047 /* Override any GCC internal prototype to avoid an error.
8048 Use char because int might match the return type of a GCC
8049 builtin and then its argument prototype would still apply. */
8062 for ac_lib in '' dld; do
8063 if test -z "$ac_lib"; then
8064 ac_res="none required"
8067 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8069 rm -f conftest.$ac_objext conftest$ac_exeext
8070 if { (ac_try="$ac_link"
8072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073 *) ac_try_echo=$ac_try;;
8075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8076 $as_echo "$ac_try_echo") >&5
8077 (eval "$ac_link") 2>conftest.er1
8079 grep -v '^ *+' conftest.er1 >conftest.err
8081 cat conftest.err >&5
8082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); } && {
8084 test -z "$ac_c_werror_flag" ||
8085 test ! -s conftest.err
8086 } && test -s conftest$ac_exeext && {
8087 test "$cross_compiling" = yes ||
8088 $as_test_x conftest$ac_exeext
8090 ac_cv_search_shl_load=$ac_res
8092 $as_echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.$ac_ext >&5
8098 rm -rf conftest.dSYM
8099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8101 if test "${ac_cv_search_shl_load+set}" = set; then
8105 if test "${ac_cv_search_shl_load+set}" = set; then
8108 ac_cv_search_shl_load=no
8111 LIBS=$ac_func_search_save_LIBS
8113 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
8114 $as_echo "$ac_cv_search_shl_load" >&6; }
8115 ac_res=$ac_cv_search_shl_load
8116 if test "$ac_res" != no; then
8117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8121 # We only use libld in port/dynloader/aix.c
8124 { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
8125 $as_echo_n "checking for library containing ldopen... " >&6; }
8126 if test "${ac_cv_search_ldopen+set}" = set; then
8127 $as_echo_n "(cached) " >&6
8129 ac_func_search_save_LIBS=$LIBS
8130 cat >conftest.$ac_ext <<_ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h. */
8137 /* Override any GCC internal prototype to avoid an error.
8138 Use char because int might match the return type of a GCC
8139 builtin and then its argument prototype would still apply. */
8152 for ac_lib in '' ld; do
8153 if test -z "$ac_lib"; then
8154 ac_res="none required"
8157 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8159 rm -f conftest.$ac_objext conftest$ac_exeext
8160 if { (ac_try="$ac_link"
8162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8163 *) ac_try_echo=$ac_try;;
8165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8166 $as_echo "$ac_try_echo") >&5
8167 (eval "$ac_link") 2>conftest.er1
8169 grep -v '^ *+' conftest.er1 >conftest.err
8171 cat conftest.err >&5
8172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); } && {
8174 test -z "$ac_c_werror_flag" ||
8175 test ! -s conftest.err
8176 } && test -s conftest$ac_exeext && {
8177 test "$cross_compiling" = yes ||
8178 $as_test_x conftest$ac_exeext
8180 ac_cv_search_ldopen=$ac_res
8182 $as_echo "$as_me: failed program was:" >&5
8183 sed 's/^/| /' conftest.$ac_ext >&5
8188 rm -rf conftest.dSYM
8189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8191 if test "${ac_cv_search_ldopen+set}" = set; then
8195 if test "${ac_cv_search_ldopen+set}" = set; then
8198 ac_cv_search_ldopen=no
8201 LIBS=$ac_func_search_save_LIBS
8203 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
8204 $as_echo "$ac_cv_search_ldopen" >&6; }
8205 ac_res=$ac_cv_search_ldopen
8206 if test "$ac_res" != no; then
8207 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8213 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
8214 $as_echo_n "checking for library containing getopt_long... " >&6; }
8215 if test "${ac_cv_search_getopt_long+set}" = set; then
8216 $as_echo_n "(cached) " >&6
8218 ac_func_search_save_LIBS=$LIBS
8219 cat >conftest.$ac_ext <<_ACEOF
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8226 /* Override any GCC internal prototype to avoid an error.
8227 Use char because int might match the return type of a GCC
8228 builtin and then its argument prototype would still apply. */
8232 char getopt_long ();
8236 return getopt_long ();
8241 for ac_lib in '' getopt gnugetopt; do
8242 if test -z "$ac_lib"; then
8243 ac_res="none required"
8246 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8248 rm -f conftest.$ac_objext conftest$ac_exeext
8249 if { (ac_try="$ac_link"
8251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252 *) ac_try_echo=$ac_try;;
8254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8255 $as_echo "$ac_try_echo") >&5
8256 (eval "$ac_link") 2>conftest.er1
8258 grep -v '^ *+' conftest.er1 >conftest.err
8260 cat conftest.err >&5
8261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } && {
8263 test -z "$ac_c_werror_flag" ||
8264 test ! -s conftest.err
8265 } && test -s conftest$ac_exeext && {
8266 test "$cross_compiling" = yes ||
8267 $as_test_x conftest$ac_exeext
8269 ac_cv_search_getopt_long=$ac_res
8271 $as_echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8277 rm -rf conftest.dSYM
8278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8280 if test "${ac_cv_search_getopt_long+set}" = set; then
8284 if test "${ac_cv_search_getopt_long+set}" = set; then
8287 ac_cv_search_getopt_long=no
8290 LIBS=$ac_func_search_save_LIBS
8292 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
8293 $as_echo "$ac_cv_search_getopt_long" >&6; }
8294 ac_res=$ac_cv_search_getopt_long
8295 if test "$ac_res" != no; then
8296 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8300 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
8301 $as_echo_n "checking for library containing crypt... " >&6; }
8302 if test "${ac_cv_search_crypt+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. */
8328 for ac_lib in '' crypt; 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_crypt=$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_crypt+set}" = set; then
8371 if test "${ac_cv_search_crypt+set}" = set; then
8374 ac_cv_search_crypt=no
8377 LIBS=$ac_func_search_save_LIBS
8379 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
8380 $as_echo "$ac_cv_search_crypt" >&6; }
8381 ac_res=$ac_cv_search_crypt
8382 if test "$ac_res" != no; then
8383 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8388 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
8389 $as_echo_n "checking for library containing fdatasync... " >&6; }
8390 if test "${ac_cv_search_fdatasync+set}" = set; then
8391 $as_echo_n "(cached) " >&6
8393 ac_func_search_save_LIBS=$LIBS
8394 cat >conftest.$ac_ext <<_ACEOF
8397 cat confdefs.h >>conftest.$ac_ext
8398 cat >>conftest.$ac_ext <<_ACEOF
8399 /* end confdefs.h. */
8401 /* Override any GCC internal prototype to avoid an error.
8402 Use char because int might match the return type of a GCC
8403 builtin and then its argument prototype would still apply. */
8411 return fdatasync ();
8416 for ac_lib in '' rt posix4; do
8417 if test -z "$ac_lib"; then
8418 ac_res="none required"
8421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8423 rm -f conftest.$ac_objext conftest$ac_exeext
8424 if { (ac_try="$ac_link"
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8430 $as_echo "$ac_try_echo") >&5
8431 (eval "$ac_link") 2>conftest.er1
8433 grep -v '^ *+' conftest.er1 >conftest.err
8435 cat conftest.err >&5
8436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); } && {
8438 test -z "$ac_c_werror_flag" ||
8439 test ! -s conftest.err
8440 } && test -s conftest$ac_exeext && {
8441 test "$cross_compiling" = yes ||
8442 $as_test_x conftest$ac_exeext
8444 ac_cv_search_fdatasync=$ac_res
8446 $as_echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8452 rm -rf conftest.dSYM
8453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8455 if test "${ac_cv_search_fdatasync+set}" = set; then
8459 if test "${ac_cv_search_fdatasync+set}" = set; then
8462 ac_cv_search_fdatasync=no
8465 LIBS=$ac_func_search_save_LIBS
8467 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8468 $as_echo "$ac_cv_search_fdatasync" >&6; }
8469 ac_res=$ac_cv_search_fdatasync
8470 if test "$ac_res" != no; then
8471 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8475 # Required for thread_test.c on Solaris 2.5:
8476 # Other ports use it too (HP-UX) so test unconditionally
8477 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
8478 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8479 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8480 $as_echo_n "(cached) " >&6
8482 ac_func_search_save_LIBS=$LIBS
8483 cat >conftest.$ac_ext <<_ACEOF
8486 cat confdefs.h >>conftest.$ac_ext
8487 cat >>conftest.$ac_ext <<_ACEOF
8488 /* end confdefs.h. */
8490 /* Override any GCC internal prototype to avoid an error.
8491 Use char because int might match the return type of a GCC
8492 builtin and then its argument prototype would still apply. */
8496 char gethostbyname_r ();
8500 return gethostbyname_r ();
8505 for ac_lib in '' nsl; do
8506 if test -z "$ac_lib"; then
8507 ac_res="none required"
8510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8512 rm -f conftest.$ac_objext conftest$ac_exeext
8513 if { (ac_try="$ac_link"
8515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516 *) ac_try_echo=$ac_try;;
8518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8519 $as_echo "$ac_try_echo") >&5
8520 (eval "$ac_link") 2>conftest.er1
8522 grep -v '^ *+' conftest.er1 >conftest.err
8524 cat conftest.err >&5
8525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } && {
8527 test -z "$ac_c_werror_flag" ||
8528 test ! -s conftest.err
8529 } && test -s conftest$ac_exeext && {
8530 test "$cross_compiling" = yes ||
8531 $as_test_x conftest$ac_exeext
8533 ac_cv_search_gethostbyname_r=$ac_res
8535 $as_echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8541 rm -rf conftest.dSYM
8542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8544 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8548 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8551 ac_cv_search_gethostbyname_r=no
8554 LIBS=$ac_func_search_save_LIBS
8556 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8557 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8558 ac_res=$ac_cv_search_gethostbyname_r
8559 if test "$ac_res" != no; then
8560 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8565 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8566 $as_echo_n "checking for library containing shmget... " >&6; }
8567 if test "${ac_cv_search_shmget+set}" = set; then
8568 $as_echo_n "(cached) " >&6
8570 ac_func_search_save_LIBS=$LIBS
8571 cat >conftest.$ac_ext <<_ACEOF
8574 cat confdefs.h >>conftest.$ac_ext
8575 cat >>conftest.$ac_ext <<_ACEOF
8576 /* end confdefs.h. */
8578 /* Override any GCC internal prototype to avoid an error.
8579 Use char because int might match the return type of a GCC
8580 builtin and then its argument prototype would still apply. */
8593 for ac_lib in '' cygipc; do
8594 if test -z "$ac_lib"; then
8595 ac_res="none required"
8598 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8600 rm -f conftest.$ac_objext conftest$ac_exeext
8601 if { (ac_try="$ac_link"
8603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604 *) ac_try_echo=$ac_try;;
8606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8607 $as_echo "$ac_try_echo") >&5
8608 (eval "$ac_link") 2>conftest.er1
8610 grep -v '^ *+' conftest.er1 >conftest.err
8612 cat conftest.err >&5
8613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } && {
8615 test -z "$ac_c_werror_flag" ||
8616 test ! -s conftest.err
8617 } && test -s conftest$ac_exeext && {
8618 test "$cross_compiling" = yes ||
8619 $as_test_x conftest$ac_exeext
8621 ac_cv_search_shmget=$ac_res
8623 $as_echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8629 rm -rf conftest.dSYM
8630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8632 if test "${ac_cv_search_shmget+set}" = set; then
8636 if test "${ac_cv_search_shmget+set}" = set; then
8639 ac_cv_search_shmget=no
8642 LIBS=$ac_func_search_save_LIBS
8644 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8645 $as_echo "$ac_cv_search_shmget" >&6; }
8646 ac_res=$ac_cv_search_shmget
8647 if test "$ac_res" != no; then
8648 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8653 if test "$with_readline" = yes; then
8656 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8657 $as_echo_n "checking for library containing readline... " >&6; }
8658 if test "${pgac_cv_check_readline+set}" = set; then
8659 $as_echo_n "(cached) " >&6
8661 pgac_cv_check_readline=no
8662 pgac_save_LIBS=$LIBS
8663 if test x"$with_libedit_preferred" != x"yes"
8664 then READLINE_ORDER="-lreadline -ledit"
8665 else READLINE_ORDER="-ledit -lreadline"
8667 for pgac_rllib in $READLINE_ORDER ; do
8668 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8669 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8670 cat >conftest.$ac_ext <<_ACEOF
8673 cat confdefs.h >>conftest.$ac_ext
8674 cat >>conftest.$ac_ext <<_ACEOF
8675 /* end confdefs.h. */
8677 /* Override any GCC internal prototype to avoid an error.
8678 Use char because int might match the return type of a GCC
8679 builtin and then its argument prototype would still apply. */
8692 rm -f conftest.$ac_objext conftest$ac_exeext
8693 if { (ac_try="$ac_link"
8695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8699 $as_echo "$ac_try_echo") >&5
8700 (eval "$ac_link") 2>conftest.er1
8702 grep -v '^ *+' conftest.er1 >conftest.err
8704 cat conftest.err >&5
8705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && {
8707 test -z "$ac_c_werror_flag" ||
8708 test ! -s conftest.err
8709 } && test -s conftest$ac_exeext && {
8710 test "$cross_compiling" = yes ||
8711 $as_test_x conftest$ac_exeext
8714 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8715 # recognize dependent libraries; assume curses is needed if we didn't
8716 # find any dependency.
8718 netbsd* | openbsd* | irix*)
8719 if test x"$pgac_lib" = x"" ; then
8720 pgac_lib=" -lcurses"
8724 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8728 $as_echo "$as_me: failed program was:" >&5
8729 sed 's/^/| /' conftest.$ac_ext >&5
8734 rm -rf conftest.dSYM
8735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8736 conftest$ac_exeext conftest.$ac_ext
8738 if test "$pgac_cv_check_readline" != no ; then
8742 LIBS=$pgac_save_LIBS
8745 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8746 $as_echo "$pgac_cv_check_readline" >&6; }
8747 if test "$pgac_cv_check_readline" != no ; then
8748 LIBS="$pgac_cv_check_readline $LIBS"
8750 cat >>confdefs.h <<\_ACEOF
8751 #define HAVE_LIBREADLINE 1
8757 if test x"$pgac_cv_check_readline" = x"no"; then
8758 { { $as_echo "$as_me:$LINENO: error: readline library not found
8759 If you have readline already installed, see config.log for details on the
8760 failure. It is possible the compiler isn't looking in the proper directory.
8761 Use --without-readline to disable readline support." >&5
8762 $as_echo "$as_me: error: readline library not found
8763 If you have readline already installed, see config.log for details on the
8764 failure. It is possible the compiler isn't looking in the proper directory.
8765 Use --without-readline to disable readline support." >&2;}
8766 { (exit 1); exit 1; }; }
8770 if test "$with_zlib" = yes; then
8772 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8773 $as_echo_n "checking for inflate in -lz... " >&6; }
8774 if test "${ac_cv_lib_z_inflate+set}" = set; then
8775 $as_echo_n "(cached) " >&6
8777 ac_check_lib_save_LIBS=$LIBS
8779 cat >conftest.$ac_ext <<_ACEOF
8782 cat confdefs.h >>conftest.$ac_ext
8783 cat >>conftest.$ac_ext <<_ACEOF
8784 /* end confdefs.h. */
8786 /* Override any GCC internal prototype to avoid an error.
8787 Use char because int might match the return type of a GCC
8788 builtin and then its argument prototype would still apply. */
8801 rm -f conftest.$ac_objext conftest$ac_exeext
8802 if { (ac_try="$ac_link"
8804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805 *) ac_try_echo=$ac_try;;
8807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8808 $as_echo "$ac_try_echo") >&5
8809 (eval "$ac_link") 2>conftest.er1
8811 grep -v '^ *+' conftest.er1 >conftest.err
8813 cat conftest.err >&5
8814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } && {
8816 test -z "$ac_c_werror_flag" ||
8817 test ! -s conftest.err
8818 } && test -s conftest$ac_exeext && {
8819 test "$cross_compiling" = yes ||
8820 $as_test_x conftest$ac_exeext
8822 ac_cv_lib_z_inflate=yes
8824 $as_echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8827 ac_cv_lib_z_inflate=no
8830 rm -rf conftest.dSYM
8831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8832 conftest$ac_exeext conftest.$ac_ext
8833 LIBS=$ac_check_lib_save_LIBS
8835 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8836 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8837 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8838 cat >>confdefs.h <<_ACEOF
8845 { { $as_echo "$as_me:$LINENO: error: zlib library not found
8846 If you have zlib already installed, see config.log for details on the
8847 failure. It is possible the compiler isn't looking in the proper directory.
8848 Use --without-zlib to disable zlib support." >&5
8849 $as_echo "$as_me: error: zlib library not found
8850 If you have zlib already installed, see config.log for details on the
8851 failure. It is possible the compiler isn't looking in the proper directory.
8852 Use --without-zlib to disable zlib support." >&2;}
8853 { (exit 1); exit 1; }; }
8858 if test "$enable_spinlocks" = yes; then
8860 cat >>confdefs.h <<\_ACEOF
8861 #define HAVE_SPINLOCKS 1
8865 { $as_echo "$as_me:$LINENO: WARNING:
8866 *** Not using spinlocks will cause poor performance." >&5
8867 $as_echo "$as_me: WARNING:
8868 *** Not using spinlocks will cause poor performance." >&2;}
8871 if test "$with_gssapi" = yes ; then
8872 if test "$PORTNAME" != "win32"; then
8873 { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8874 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8875 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8876 $as_echo_n "(cached) " >&6
8878 ac_func_search_save_LIBS=$LIBS
8879 cat >conftest.$ac_ext <<_ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h. */
8886 /* Override any GCC internal prototype to avoid an error.
8887 Use char because int might match the return type of a GCC
8888 builtin and then its argument prototype would still apply. */
8892 char gss_init_sec_context ();
8896 return gss_init_sec_context ();
8901 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8902 if test -z "$ac_lib"; then
8903 ac_res="none required"
8906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8908 rm -f conftest.$ac_objext conftest$ac_exeext
8909 if { (ac_try="$ac_link"
8911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912 *) ac_try_echo=$ac_try;;
8914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8915 $as_echo "$ac_try_echo") >&5
8916 (eval "$ac_link") 2>conftest.er1
8918 grep -v '^ *+' conftest.er1 >conftest.err
8920 cat conftest.err >&5
8921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } && {
8923 test -z "$ac_c_werror_flag" ||
8924 test ! -s conftest.err
8925 } && test -s conftest$ac_exeext && {
8926 test "$cross_compiling" = yes ||
8927 $as_test_x conftest$ac_exeext
8929 ac_cv_search_gss_init_sec_context=$ac_res
8931 $as_echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8937 rm -rf conftest.dSYM
8938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8940 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8944 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8947 ac_cv_search_gss_init_sec_context=no
8950 LIBS=$ac_func_search_save_LIBS
8952 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8953 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8954 ac_res=$ac_cv_search_gss_init_sec_context
8955 if test "$ac_res" != no; then
8956 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8959 { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8960 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8961 { (exit 1); exit 1; }; }
8965 LIBS="$LIBS -lgssapi32"
8969 if test "$with_krb5" = yes ; then
8970 if test "$PORTNAME" != "win32"; then
8971 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8972 $as_echo_n "checking for library containing com_err... " >&6; }
8973 if test "${ac_cv_search_com_err+set}" = set; then
8974 $as_echo_n "(cached) " >&6
8976 ac_func_search_save_LIBS=$LIBS
8977 cat >conftest.$ac_ext <<_ACEOF
8980 cat confdefs.h >>conftest.$ac_ext
8981 cat >>conftest.$ac_ext <<_ACEOF
8982 /* end confdefs.h. */
8984 /* Override any GCC internal prototype to avoid an error.
8985 Use char because int might match the return type of a GCC
8986 builtin and then its argument prototype would still apply. */
8999 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
9000 if test -z "$ac_lib"; then
9001 ac_res="none required"
9004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9006 rm -f conftest.$ac_objext conftest$ac_exeext
9007 if { (ac_try="$ac_link"
9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9013 $as_echo "$ac_try_echo") >&5
9014 (eval "$ac_link") 2>conftest.er1
9016 grep -v '^ *+' conftest.er1 >conftest.err
9018 cat conftest.err >&5
9019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); } && {
9021 test -z "$ac_c_werror_flag" ||
9022 test ! -s conftest.err
9023 } && test -s conftest$ac_exeext && {
9024 test "$cross_compiling" = yes ||
9025 $as_test_x conftest$ac_exeext
9027 ac_cv_search_com_err=$ac_res
9029 $as_echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9035 rm -rf conftest.dSYM
9036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9038 if test "${ac_cv_search_com_err+set}" = set; then
9042 if test "${ac_cv_search_com_err+set}" = set; then
9045 ac_cv_search_com_err=no
9048 LIBS=$ac_func_search_save_LIBS
9050 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
9051 $as_echo "$ac_cv_search_com_err" >&6; }
9052 ac_res=$ac_cv_search_com_err
9053 if test "$ac_res" != no; then
9054 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9057 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
9058 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
9059 { (exit 1); exit 1; }; }
9062 { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
9063 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
9064 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
9065 $as_echo_n "(cached) " >&6
9067 ac_func_search_save_LIBS=$LIBS
9068 cat >conftest.$ac_ext <<_ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h. */
9075 /* Override any GCC internal prototype to avoid an error.
9076 Use char because int might match the return type of a GCC
9077 builtin and then its argument prototype would still apply. */
9081 char krb5_sendauth ();
9085 return krb5_sendauth ();
9090 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
9091 if test -z "$ac_lib"; then
9092 ac_res="none required"
9095 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9097 rm -f conftest.$ac_objext conftest$ac_exeext
9098 if { (ac_try="$ac_link"
9100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9101 *) ac_try_echo=$ac_try;;
9103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9104 $as_echo "$ac_try_echo") >&5
9105 (eval "$ac_link") 2>conftest.er1
9107 grep -v '^ *+' conftest.er1 >conftest.err
9109 cat conftest.err >&5
9110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); } && {
9112 test -z "$ac_c_werror_flag" ||
9113 test ! -s conftest.err
9114 } && test -s conftest$ac_exeext && {
9115 test "$cross_compiling" = yes ||
9116 $as_test_x conftest$ac_exeext
9118 ac_cv_search_krb5_sendauth=$ac_res
9120 $as_echo "$as_me: failed program was:" >&5
9121 sed 's/^/| /' conftest.$ac_ext >&5
9126 rm -rf conftest.dSYM
9127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9129 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
9133 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
9136 ac_cv_search_krb5_sendauth=no
9139 LIBS=$ac_func_search_save_LIBS
9141 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
9142 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
9143 ac_res=$ac_cv_search_krb5_sendauth
9144 if test "$ac_res" != no; then
9145 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9148 { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
9149 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
9150 { (exit 1); exit 1; }; }
9154 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
9155 $as_echo_n "checking for library containing com_err... " >&6; }
9156 if test "${ac_cv_search_com_err+set}" = set; then
9157 $as_echo_n "(cached) " >&6
9159 ac_func_search_save_LIBS=$LIBS
9160 cat >conftest.$ac_ext <<_ACEOF
9163 cat confdefs.h >>conftest.$ac_ext
9164 cat >>conftest.$ac_ext <<_ACEOF
9165 /* end confdefs.h. */
9167 /* Override any GCC internal prototype to avoid an error.
9168 Use char because int might match the return type of a GCC
9169 builtin and then its argument prototype would still apply. */
9182 for ac_lib in '' 'comerr32 -lkrb5_32'; do
9183 if test -z "$ac_lib"; then
9184 ac_res="none required"
9187 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9189 rm -f conftest.$ac_objext conftest$ac_exeext
9190 if { (ac_try="$ac_link"
9192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9193 *) ac_try_echo=$ac_try;;
9195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9196 $as_echo "$ac_try_echo") >&5
9197 (eval "$ac_link") 2>conftest.er1
9199 grep -v '^ *+' conftest.er1 >conftest.err
9201 cat conftest.err >&5
9202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); } && {
9204 test -z "$ac_c_werror_flag" ||
9205 test ! -s conftest.err
9206 } && test -s conftest$ac_exeext && {
9207 test "$cross_compiling" = yes ||
9208 $as_test_x conftest$ac_exeext
9210 ac_cv_search_com_err=$ac_res
9212 $as_echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9218 rm -rf conftest.dSYM
9219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9221 if test "${ac_cv_search_com_err+set}" = set; then
9225 if test "${ac_cv_search_com_err+set}" = set; then
9228 ac_cv_search_com_err=no
9231 LIBS=$ac_func_search_save_LIBS
9233 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
9234 $as_echo "$ac_cv_search_com_err" >&6; }
9235 ac_res=$ac_cv_search_com_err
9236 if test "$ac_res" != no; then
9237 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9240 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
9241 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
9242 { (exit 1); exit 1; }; }
9248 if test "$with_openssl" = yes ; then
9249 if test "$PORTNAME" != "win32"; then
9251 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
9252 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
9253 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
9254 $as_echo_n "(cached) " >&6
9256 ac_check_lib_save_LIBS=$LIBS
9257 LIBS="-lcrypto $LIBS"
9258 cat >conftest.$ac_ext <<_ACEOF
9261 cat confdefs.h >>conftest.$ac_ext
9262 cat >>conftest.$ac_ext <<_ACEOF
9263 /* end confdefs.h. */
9265 /* Override any GCC internal prototype to avoid an error.
9266 Use char because int might match the return type of a GCC
9267 builtin and then its argument prototype would still apply. */
9271 char CRYPTO_new_ex_data ();
9275 return CRYPTO_new_ex_data ();
9280 rm -f conftest.$ac_objext conftest$ac_exeext
9281 if { (ac_try="$ac_link"
9283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9284 *) ac_try_echo=$ac_try;;
9286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9287 $as_echo "$ac_try_echo") >&5
9288 (eval "$ac_link") 2>conftest.er1
9290 grep -v '^ *+' conftest.er1 >conftest.err
9292 cat conftest.err >&5
9293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } && {
9295 test -z "$ac_c_werror_flag" ||
9296 test ! -s conftest.err
9297 } && test -s conftest$ac_exeext && {
9298 test "$cross_compiling" = yes ||
9299 $as_test_x conftest$ac_exeext
9301 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9303 $as_echo "$as_me: failed program was:" >&5
9304 sed 's/^/| /' conftest.$ac_ext >&5
9306 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9309 rm -rf conftest.dSYM
9310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9311 conftest$ac_exeext conftest.$ac_ext
9312 LIBS=$ac_check_lib_save_LIBS
9314 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
9315 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
9316 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
9317 cat >>confdefs.h <<_ACEOF
9318 #define HAVE_LIBCRYPTO 1
9321 LIBS="-lcrypto $LIBS"
9324 { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
9325 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
9326 { (exit 1); exit 1; }; }
9330 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9331 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
9332 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9333 $as_echo_n "(cached) " >&6
9335 ac_check_lib_save_LIBS=$LIBS
9337 cat >conftest.$ac_ext <<_ACEOF
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h. */
9344 /* Override any GCC internal prototype to avoid an error.
9345 Use char because int might match the return type of a GCC
9346 builtin and then its argument prototype would still apply. */
9350 char SSL_library_init ();
9354 return SSL_library_init ();
9359 rm -f conftest.$ac_objext conftest$ac_exeext
9360 if { (ac_try="$ac_link"
9362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9363 *) ac_try_echo=$ac_try;;
9365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9366 $as_echo "$ac_try_echo") >&5
9367 (eval "$ac_link") 2>conftest.er1
9369 grep -v '^ *+' conftest.er1 >conftest.err
9371 cat conftest.err >&5
9372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } && {
9374 test -z "$ac_c_werror_flag" ||
9375 test ! -s conftest.err
9376 } && test -s conftest$ac_exeext && {
9377 test "$cross_compiling" = yes ||
9378 $as_test_x conftest$ac_exeext
9380 ac_cv_lib_ssl_SSL_library_init=yes
9382 $as_echo "$as_me: failed program was:" >&5
9383 sed 's/^/| /' conftest.$ac_ext >&5
9385 ac_cv_lib_ssl_SSL_library_init=no
9388 rm -rf conftest.dSYM
9389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9390 conftest$ac_exeext conftest.$ac_ext
9391 LIBS=$ac_check_lib_save_LIBS
9393 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9394 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
9395 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
9396 cat >>confdefs.h <<_ACEOF
9397 #define HAVE_LIBSSL 1
9403 { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
9404 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9405 { (exit 1); exit 1; }; }
9409 { $as_echo "$as_me:$LINENO: checking for library containing CRYPTO_new_ex_data" >&5
9410 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
9411 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9412 $as_echo_n "(cached) " >&6
9414 ac_func_search_save_LIBS=$LIBS
9415 cat >conftest.$ac_ext <<_ACEOF
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h. */
9422 /* Override any GCC internal prototype to avoid an error.
9423 Use char because int might match the return type of a GCC
9424 builtin and then its argument prototype would still apply. */
9428 char CRYPTO_new_ex_data ();
9432 return CRYPTO_new_ex_data ();
9437 for ac_lib in '' eay32 crypto; do
9438 if test -z "$ac_lib"; then
9439 ac_res="none required"
9442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9444 rm -f conftest.$ac_objext conftest$ac_exeext
9445 if { (ac_try="$ac_link"
9447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9448 *) ac_try_echo=$ac_try;;
9450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9451 $as_echo "$ac_try_echo") >&5
9452 (eval "$ac_link") 2>conftest.er1
9454 grep -v '^ *+' conftest.er1 >conftest.err
9456 cat conftest.err >&5
9457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } && {
9459 test -z "$ac_c_werror_flag" ||
9460 test ! -s conftest.err
9461 } && test -s conftest$ac_exeext && {
9462 test "$cross_compiling" = yes ||
9463 $as_test_x conftest$ac_exeext
9465 ac_cv_search_CRYPTO_new_ex_data=$ac_res
9467 $as_echo "$as_me: failed program was:" >&5
9468 sed 's/^/| /' conftest.$ac_ext >&5
9473 rm -rf conftest.dSYM
9474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9476 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9480 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9483 ac_cv_search_CRYPTO_new_ex_data=no
9486 LIBS=$ac_func_search_save_LIBS
9488 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
9489 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
9490 ac_res=$ac_cv_search_CRYPTO_new_ex_data
9491 if test "$ac_res" != no; then
9492 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9495 { { $as_echo "$as_me:$LINENO: error: library 'eay32' or 'crypto' is required for OpenSSL" >&5
9496 $as_echo "$as_me: error: library 'eay32' or 'crypto' is required for OpenSSL" >&2;}
9497 { (exit 1); exit 1; }; }
9500 { $as_echo "$as_me:$LINENO: checking for library containing SSL_library_init" >&5
9501 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
9502 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9503 $as_echo_n "(cached) " >&6
9505 ac_func_search_save_LIBS=$LIBS
9506 cat >conftest.$ac_ext <<_ACEOF
9509 cat confdefs.h >>conftest.$ac_ext
9510 cat >>conftest.$ac_ext <<_ACEOF
9511 /* end confdefs.h. */
9513 /* Override any GCC internal prototype to avoid an error.
9514 Use char because int might match the return type of a GCC
9515 builtin and then its argument prototype would still apply. */
9519 char SSL_library_init ();
9523 return SSL_library_init ();
9528 for ac_lib in '' ssleay32 ssl; do
9529 if test -z "$ac_lib"; then
9530 ac_res="none required"
9533 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9535 rm -f conftest.$ac_objext conftest$ac_exeext
9536 if { (ac_try="$ac_link"
9538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539 *) ac_try_echo=$ac_try;;
9541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9542 $as_echo "$ac_try_echo") >&5
9543 (eval "$ac_link") 2>conftest.er1
9545 grep -v '^ *+' conftest.er1 >conftest.err
9547 cat conftest.err >&5
9548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } && {
9550 test -z "$ac_c_werror_flag" ||
9551 test ! -s conftest.err
9552 } && test -s conftest$ac_exeext && {
9553 test "$cross_compiling" = yes ||
9554 $as_test_x conftest$ac_exeext
9556 ac_cv_search_SSL_library_init=$ac_res
9558 $as_echo "$as_me: failed program was:" >&5
9559 sed 's/^/| /' conftest.$ac_ext >&5
9564 rm -rf conftest.dSYM
9565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9567 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9571 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9574 ac_cv_search_SSL_library_init=no
9577 LIBS=$ac_func_search_save_LIBS
9579 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_SSL_library_init" >&5
9580 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
9581 ac_res=$ac_cv_search_SSL_library_init
9582 if test "$ac_res" != no; then
9583 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9586 { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&5
9587 $as_echo "$as_me: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&2;}
9588 { (exit 1); exit 1; }; }
9594 if test "$with_pam" = yes ; then
9596 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9597 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9598 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9599 $as_echo_n "(cached) " >&6
9601 ac_check_lib_save_LIBS=$LIBS
9603 cat >conftest.$ac_ext <<_ACEOF
9606 cat confdefs.h >>conftest.$ac_ext
9607 cat >>conftest.$ac_ext <<_ACEOF
9608 /* end confdefs.h. */
9610 /* Override any GCC internal prototype to avoid an error.
9611 Use char because int might match the return type of a GCC
9612 builtin and then its argument prototype would still apply. */
9620 return pam_start ();
9625 rm -f conftest.$ac_objext conftest$ac_exeext
9626 if { (ac_try="$ac_link"
9628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9629 *) ac_try_echo=$ac_try;;
9631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9632 $as_echo "$ac_try_echo") >&5
9633 (eval "$ac_link") 2>conftest.er1
9635 grep -v '^ *+' conftest.er1 >conftest.err
9637 cat conftest.err >&5
9638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } && {
9640 test -z "$ac_c_werror_flag" ||
9641 test ! -s conftest.err
9642 } && test -s conftest$ac_exeext && {
9643 test "$cross_compiling" = yes ||
9644 $as_test_x conftest$ac_exeext
9646 ac_cv_lib_pam_pam_start=yes
9648 $as_echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9651 ac_cv_lib_pam_pam_start=no
9654 rm -rf conftest.dSYM
9655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9656 conftest$ac_exeext conftest.$ac_ext
9657 LIBS=$ac_check_lib_save_LIBS
9659 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9660 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9661 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9662 cat >>confdefs.h <<_ACEOF
9663 #define HAVE_LIBPAM 1
9669 { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9670 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9671 { (exit 1); exit 1; }; }
9676 if test "$with_libxml" = yes ; then
9678 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9679 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9680 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9681 $as_echo_n "(cached) " >&6
9683 ac_check_lib_save_LIBS=$LIBS
9685 cat >conftest.$ac_ext <<_ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h. */
9692 /* Override any GCC internal prototype to avoid an error.
9693 Use char because int might match the return type of a GCC
9694 builtin and then its argument prototype would still apply. */
9698 char xmlSaveToBuffer ();
9702 return xmlSaveToBuffer ();
9707 rm -f conftest.$ac_objext conftest$ac_exeext
9708 if { (ac_try="$ac_link"
9710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711 *) ac_try_echo=$ac_try;;
9713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9714 $as_echo "$ac_try_echo") >&5
9715 (eval "$ac_link") 2>conftest.er1
9717 grep -v '^ *+' conftest.er1 >conftest.err
9719 cat conftest.err >&5
9720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } && {
9722 test -z "$ac_c_werror_flag" ||
9723 test ! -s conftest.err
9724 } && test -s conftest$ac_exeext && {
9725 test "$cross_compiling" = yes ||
9726 $as_test_x conftest$ac_exeext
9728 ac_cv_lib_xml2_xmlSaveToBuffer=yes
9730 $as_echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9733 ac_cv_lib_xml2_xmlSaveToBuffer=no
9736 rm -rf conftest.dSYM
9737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9738 conftest$ac_exeext conftest.$ac_ext
9739 LIBS=$ac_check_lib_save_LIBS
9741 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9742 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9743 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9744 cat >>confdefs.h <<_ACEOF
9745 #define HAVE_LIBXML2 1
9751 { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9752 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9753 { (exit 1); exit 1; }; }
9758 if test "$with_libxslt" = yes ; then
9760 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9761 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9762 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9763 $as_echo_n "(cached) " >&6
9765 ac_check_lib_save_LIBS=$LIBS
9767 cat >conftest.$ac_ext <<_ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h. */
9774 /* Override any GCC internal prototype to avoid an error.
9775 Use char because int might match the return type of a GCC
9776 builtin and then its argument prototype would still apply. */
9780 char xsltCleanupGlobals ();
9784 return xsltCleanupGlobals ();
9789 rm -f conftest.$ac_objext conftest$ac_exeext
9790 if { (ac_try="$ac_link"
9792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793 *) ac_try_echo=$ac_try;;
9795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9796 $as_echo "$ac_try_echo") >&5
9797 (eval "$ac_link") 2>conftest.er1
9799 grep -v '^ *+' conftest.er1 >conftest.err
9801 cat conftest.err >&5
9802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); } && {
9804 test -z "$ac_c_werror_flag" ||
9805 test ! -s conftest.err
9806 } && test -s conftest$ac_exeext && {
9807 test "$cross_compiling" = yes ||
9808 $as_test_x conftest$ac_exeext
9810 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9812 $as_echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9815 ac_cv_lib_xslt_xsltCleanupGlobals=no
9818 rm -rf conftest.dSYM
9819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9820 conftest$ac_exeext conftest.$ac_ext
9821 LIBS=$ac_check_lib_save_LIBS
9823 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9824 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9825 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9826 cat >>confdefs.h <<_ACEOF
9827 #define HAVE_LIBXSLT 1
9833 { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9834 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9835 { (exit 1); exit 1; }; }
9840 # for contrib/sepgsql
9841 if test "$with_selinux" = yes; then
9843 { $as_echo "$as_me:$LINENO: checking for security_compute_create_name in -lselinux" >&5
9844 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
9845 if test "${ac_cv_lib_selinux_security_compute_create_name+set}" = set; then
9846 $as_echo_n "(cached) " >&6
9848 ac_check_lib_save_LIBS=$LIBS
9849 LIBS="-lselinux $LIBS"
9850 cat >conftest.$ac_ext <<_ACEOF
9853 cat confdefs.h >>conftest.$ac_ext
9854 cat >>conftest.$ac_ext <<_ACEOF
9855 /* end confdefs.h. */
9857 /* Override any GCC internal prototype to avoid an error.
9858 Use char because int might match the return type of a GCC
9859 builtin and then its argument prototype would still apply. */
9863 char security_compute_create_name ();
9867 return security_compute_create_name ();
9872 rm -f conftest.$ac_objext conftest$ac_exeext
9873 if { (ac_try="$ac_link"
9875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876 *) ac_try_echo=$ac_try;;
9878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9879 $as_echo "$ac_try_echo") >&5
9880 (eval "$ac_link") 2>conftest.er1
9882 grep -v '^ *+' conftest.er1 >conftest.err
9884 cat conftest.err >&5
9885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); } && {
9887 test -z "$ac_c_werror_flag" ||
9888 test ! -s conftest.err
9889 } && test -s conftest$ac_exeext && {
9890 test "$cross_compiling" = yes ||
9891 $as_test_x conftest$ac_exeext
9893 ac_cv_lib_selinux_security_compute_create_name=yes
9895 $as_echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.$ac_ext >&5
9898 ac_cv_lib_selinux_security_compute_create_name=no
9901 rm -rf conftest.dSYM
9902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9903 conftest$ac_exeext conftest.$ac_ext
9904 LIBS=$ac_check_lib_save_LIBS
9906 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
9907 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
9908 if test "x$ac_cv_lib_selinux_security_compute_create_name" = x""yes; then
9909 cat >>confdefs.h <<_ACEOF
9910 #define HAVE_LIBSELINUX 1
9913 LIBS="-lselinux $LIBS"
9916 { { $as_echo "$as_me:$LINENO: error: library 'libselinux', version 2.1.10 or newer, is required for SELinux support" >&5
9917 $as_echo "$as_me: error: library 'libselinux', version 2.1.10 or newer, is required for SELinux support" >&2;}
9918 { (exit 1); exit 1; }; }
9923 # for contrib/uuid-ossp
9924 if test "$with_ossp_uuid" = yes ; then
9925 { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9926 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9927 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9928 $as_echo_n "(cached) " >&6
9930 ac_check_lib_save_LIBS=$LIBS
9931 LIBS="-lossp-uuid $LIBS"
9932 cat >conftest.$ac_ext <<_ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h. */
9939 /* Override any GCC internal prototype to avoid an error.
9940 Use char because int might match the return type of a GCC
9941 builtin and then its argument prototype would still apply. */
9945 char uuid_export ();
9949 return uuid_export ();
9954 rm -f conftest.$ac_objext conftest$ac_exeext
9955 if { (ac_try="$ac_link"
9957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958 *) ac_try_echo=$ac_try;;
9960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9961 $as_echo "$ac_try_echo") >&5
9962 (eval "$ac_link") 2>conftest.er1
9964 grep -v '^ *+' conftest.er1 >conftest.err
9966 cat conftest.err >&5
9967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } && {
9969 test -z "$ac_c_werror_flag" ||
9970 test ! -s conftest.err
9971 } && test -s conftest$ac_exeext && {
9972 test "$cross_compiling" = yes ||
9973 $as_test_x conftest$ac_exeext
9975 ac_cv_lib_ossp_uuid_uuid_export=yes
9977 $as_echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9980 ac_cv_lib_ossp_uuid_uuid_export=no
9983 rm -rf conftest.dSYM
9984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9985 conftest$ac_exeext conftest.$ac_ext
9986 LIBS=$ac_check_lib_save_LIBS
9988 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9989 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9990 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9991 OSSP_UUID_LIBS="-lossp-uuid"
9993 { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9994 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9995 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9996 $as_echo_n "(cached) " >&6
9998 ac_check_lib_save_LIBS=$LIBS
10000 cat >conftest.$ac_ext <<_ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h. */
10007 /* Override any GCC internal prototype to avoid an error.
10008 Use char because int might match the return type of a GCC
10009 builtin and then its argument prototype would still apply. */
10013 char uuid_export ();
10017 return uuid_export ();
10022 rm -f conftest.$ac_objext conftest$ac_exeext
10023 if { (ac_try="$ac_link"
10024 case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10029 $as_echo "$ac_try_echo") >&5
10030 (eval "$ac_link") 2>conftest.er1
10032 grep -v '^ *+' conftest.er1 >conftest.err
10034 cat conftest.err >&5
10035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); } && {
10037 test -z "$ac_c_werror_flag" ||
10038 test ! -s conftest.err
10039 } && test -s conftest$ac_exeext && {
10040 test "$cross_compiling" = yes ||
10041 $as_test_x conftest$ac_exeext
10043 ac_cv_lib_uuid_uuid_export=yes
10045 $as_echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10048 ac_cv_lib_uuid_uuid_export=no
10051 rm -rf conftest.dSYM
10052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10053 conftest$ac_exeext conftest.$ac_ext
10054 LIBS=$ac_check_lib_save_LIBS
10056 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
10057 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
10058 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
10059 OSSP_UUID_LIBS="-luuid"
10061 { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
10062 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
10063 { (exit 1); exit 1; }; }
10076 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10077 $as_echo_n "checking for ANSI C header files... " >&6; }
10078 if test "${ac_cv_header_stdc+set}" = set; then
10079 $as_echo_n "(cached) " >&6
10081 cat >conftest.$ac_ext <<_ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h. */
10087 #include <stdlib.h>
10088 #include <stdarg.h>
10089 #include <string.h>
10100 rm -f conftest.$ac_objext
10101 if { (ac_try="$ac_compile"
10102 case "(($ac_try" in
10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10107 $as_echo "$ac_try_echo") >&5
10108 (eval "$ac_compile") 2>conftest.er1
10110 grep -v '^ *+' conftest.er1 >conftest.err
10112 cat conftest.err >&5
10113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); } && {
10115 test -z "$ac_c_werror_flag" ||
10116 test ! -s conftest.err
10117 } && test -s conftest.$ac_objext; then
10118 ac_cv_header_stdc=yes
10120 $as_echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10123 ac_cv_header_stdc=no
10126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10128 if test $ac_cv_header_stdc = yes; then
10129 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10130 cat >conftest.$ac_ext <<_ACEOF
10133 cat confdefs.h >>conftest.$ac_ext
10134 cat >>conftest.$ac_ext <<_ACEOF
10135 /* end confdefs.h. */
10136 #include <string.h>
10139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10140 $EGREP "memchr" >/dev/null 2>&1; then
10143 ac_cv_header_stdc=no
10149 if test $ac_cv_header_stdc = yes; then
10150 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10151 cat >conftest.$ac_ext <<_ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10157 #include <stdlib.h>
10160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10161 $EGREP "free" >/dev/null 2>&1; then
10164 ac_cv_header_stdc=no
10170 if test $ac_cv_header_stdc = yes; then
10171 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10172 if test "$cross_compiling" = yes; then
10175 cat >conftest.$ac_ext <<_ACEOF
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h. */
10182 #include <stdlib.h>
10183 #if ((' ' & 0x0FF) == 0x020)
10184 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10185 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10187 # define ISLOWER(c) \
10188 (('a' <= (c) && (c) <= 'i') \
10189 || ('j' <= (c) && (c) <= 'r') \
10190 || ('s' <= (c) && (c) <= 'z'))
10191 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10194 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10199 for (i = 0; i < 256; i++)
10200 if (XOR (islower (i), ISLOWER (i))
10201 || toupper (i) != TOUPPER (i))
10206 rm -f conftest$ac_exeext
10207 if { (ac_try="$ac_link"
10208 case "(($ac_try" in
10209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10210 *) ac_try_echo=$ac_try;;
10212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10213 $as_echo "$ac_try_echo") >&5
10214 (eval "$ac_link") 2>&5
10216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10218 { (case "(($ac_try" in
10219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10223 $as_echo "$ac_try_echo") >&5
10224 (eval "$ac_try") 2>&5
10226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; }; then
10230 $as_echo "$as_me: program exited with status $ac_status" >&5
10231 $as_echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10234 ( exit $ac_status )
10235 ac_cv_header_stdc=no
10237 rm -rf conftest.dSYM
10238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10244 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10245 $as_echo "$ac_cv_header_stdc" >&6; }
10246 if test $ac_cv_header_stdc = yes; then
10248 cat >>confdefs.h <<\_ACEOF
10249 #define STDC_HEADERS 1
10254 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10264 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10265 inttypes.h stdint.h unistd.h
10267 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10268 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10269 $as_echo_n "checking for $ac_header... " >&6; }
10270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10271 $as_echo_n "(cached) " >&6
10273 cat >conftest.$ac_ext <<_ACEOF
10276 cat confdefs.h >>conftest.$ac_ext
10277 cat >>conftest.$ac_ext <<_ACEOF
10278 /* end confdefs.h. */
10279 $ac_includes_default
10281 #include <$ac_header>
10283 rm -f conftest.$ac_objext
10284 if { (ac_try="$ac_compile"
10285 case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10290 $as_echo "$ac_try_echo") >&5
10291 (eval "$ac_compile") 2>conftest.er1
10293 grep -v '^ *+' conftest.er1 >conftest.err
10295 cat conftest.err >&5
10296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } && {
10298 test -z "$ac_c_werror_flag" ||
10299 test ! -s conftest.err
10300 } && test -s conftest.$ac_objext; then
10301 eval "$as_ac_Header=yes"
10303 $as_echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10306 eval "$as_ac_Header=no"
10309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10311 ac_res=`eval 'as_val=${'$as_ac_Header'}
10312 $as_echo "$as_val"'`
10313 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10314 $as_echo "$ac_res" >&6; }
10315 as_val=`eval 'as_val=${'$as_ac_Header'}
10316 $as_echo "$as_val"'`
10317 if test "x$as_val" = x""yes; then
10318 cat >>confdefs.h <<_ACEOF
10319 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10355 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/ucred.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h
10357 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10359 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10360 $as_echo_n "checking for $ac_header... " >&6; }
10361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10362 $as_echo_n "(cached) " >&6
10364 ac_res=`eval 'as_val=${'$as_ac_Header'}
10365 $as_echo "$as_val"'`
10366 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10367 $as_echo "$ac_res" >&6; }
10369 # Is the header compilable?
10370 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10371 $as_echo_n "checking $ac_header usability... " >&6; }
10372 cat >conftest.$ac_ext <<_ACEOF
10375 cat confdefs.h >>conftest.$ac_ext
10376 cat >>conftest.$ac_ext <<_ACEOF
10377 /* end confdefs.h. */
10378 $ac_includes_default
10379 #include <$ac_header>
10381 rm -f conftest.$ac_objext
10382 if { (ac_try="$ac_compile"
10383 case "(($ac_try" in
10384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385 *) ac_try_echo=$ac_try;;
10387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10388 $as_echo "$ac_try_echo") >&5
10389 (eval "$ac_compile") 2>conftest.er1
10391 grep -v '^ *+' conftest.er1 >conftest.err
10393 cat conftest.err >&5
10394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); } && {
10396 test -z "$ac_c_werror_flag" ||
10397 test ! -s conftest.err
10398 } && test -s conftest.$ac_objext; then
10399 ac_header_compiler=yes
10401 $as_echo "$as_me: failed program was:" >&5
10402 sed 's/^/| /' conftest.$ac_ext >&5
10404 ac_header_compiler=no
10407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10408 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10409 $as_echo "$ac_header_compiler" >&6; }
10411 # Is the header present?
10412 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10413 $as_echo_n "checking $ac_header presence... " >&6; }
10414 cat >conftest.$ac_ext <<_ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h. */
10420 #include <$ac_header>
10422 if { (ac_try="$ac_cpp conftest.$ac_ext"
10423 case "(($ac_try" in
10424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10425 *) ac_try_echo=$ac_try;;
10427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10428 $as_echo "$ac_try_echo") >&5
10429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10431 grep -v '^ *+' conftest.er1 >conftest.err
10433 cat conftest.err >&5
10434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } >/dev/null && {
10436 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10437 test ! -s conftest.err
10439 ac_header_preproc=yes
10441 $as_echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10444 ac_header_preproc=no
10447 rm -f conftest.err conftest.$ac_ext
10448 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10449 $as_echo "$ac_header_preproc" >&6; }
10451 # So? What about this header?
10452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10454 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10455 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10457 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10458 ac_header_preproc=yes
10461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10462 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10464 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10466 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10467 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10468 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10470 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10472 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10474 ## ---------------------------------------- ##
10475 ## Report this to pgsql-bugs@postgresql.org ##
10476 ## ---------------------------------------- ##
10478 ) | sed "s/^/$as_me: WARNING: /" >&2
10481 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10482 $as_echo_n "checking for $ac_header... " >&6; }
10483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10484 $as_echo_n "(cached) " >&6
10486 eval "$as_ac_Header=\$ac_header_preproc"
10488 ac_res=`eval 'as_val=${'$as_ac_Header'}
10489 $as_echo "$as_val"'`
10490 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10491 $as_echo "$ac_res" >&6; }
10494 as_val=`eval 'as_val=${'$as_ac_Header'}
10495 $as_echo "$as_val"'`
10496 if test "x$as_val" = x""yes; then
10497 cat >>confdefs.h <<_ACEOF
10498 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10506 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
10507 # is included first.
10509 for ac_header in net/if.h
10511 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10512 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10513 $as_echo_n "checking for $ac_header... " >&6; }
10514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10515 $as_echo_n "(cached) " >&6
10517 cat >conftest.$ac_ext <<_ACEOF
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h. */
10523 $ac_includes_default
10524 #ifdef HAVE_SYS_SOCKET_H
10525 #include <sys/socket.h>
10529 #include <$ac_header>
10531 rm -f conftest.$ac_objext
10532 if { (ac_try="$ac_compile"
10533 case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10538 $as_echo "$ac_try_echo") >&5
10539 (eval "$ac_compile") 2>conftest.er1
10541 grep -v '^ *+' conftest.er1 >conftest.err
10543 cat conftest.err >&5
10544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } && {
10546 test -z "$ac_c_werror_flag" ||
10547 test ! -s conftest.err
10548 } && test -s conftest.$ac_objext; then
10549 eval "$as_ac_Header=yes"
10551 $as_echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10554 eval "$as_ac_Header=no"
10557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10559 ac_res=`eval 'as_val=${'$as_ac_Header'}
10560 $as_echo "$as_val"'`
10561 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10562 $as_echo "$ac_res" >&6; }
10563 as_val=`eval 'as_val=${'$as_ac_Header'}
10564 $as_echo "$as_val"'`
10565 if test "x$as_val" = x""yes; then
10566 cat >>confdefs.h <<_ACEOF
10567 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10575 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
10576 # netinet/in.h is included first.
10578 for ac_header in netinet/in.h
10580 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10582 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10583 $as_echo_n "checking for $ac_header... " >&6; }
10584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10585 $as_echo_n "(cached) " >&6
10587 ac_res=`eval 'as_val=${'$as_ac_Header'}
10588 $as_echo "$as_val"'`
10589 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10590 $as_echo "$ac_res" >&6; }
10592 # Is the header compilable?
10593 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10594 $as_echo_n "checking $ac_header usability... " >&6; }
10595 cat >conftest.$ac_ext <<_ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10601 $ac_includes_default
10602 #include <$ac_header>
10604 rm -f conftest.$ac_objext
10605 if { (ac_try="$ac_compile"
10606 case "(($ac_try" in
10607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10608 *) ac_try_echo=$ac_try;;
10610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10611 $as_echo "$ac_try_echo") >&5
10612 (eval "$ac_compile") 2>conftest.er1
10614 grep -v '^ *+' conftest.er1 >conftest.err
10616 cat conftest.err >&5
10617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } && {
10619 test -z "$ac_c_werror_flag" ||
10620 test ! -s conftest.err
10621 } && test -s conftest.$ac_objext; then
10622 ac_header_compiler=yes
10624 $as_echo "$as_me: failed program was:" >&5
10625 sed 's/^/| /' conftest.$ac_ext >&5
10627 ac_header_compiler=no
10630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10631 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10632 $as_echo "$ac_header_compiler" >&6; }
10634 # Is the header present?
10635 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10636 $as_echo_n "checking $ac_header presence... " >&6; }
10637 cat >conftest.$ac_ext <<_ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h. */
10643 #include <$ac_header>
10645 if { (ac_try="$ac_cpp conftest.$ac_ext"
10646 case "(($ac_try" in
10647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10648 *) ac_try_echo=$ac_try;;
10650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10651 $as_echo "$ac_try_echo") >&5
10652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10654 grep -v '^ *+' conftest.er1 >conftest.err
10656 cat conftest.err >&5
10657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); } >/dev/null && {
10659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10660 test ! -s conftest.err
10662 ac_header_preproc=yes
10664 $as_echo "$as_me: failed program was:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10667 ac_header_preproc=no
10670 rm -f conftest.err conftest.$ac_ext
10671 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10672 $as_echo "$ac_header_preproc" >&6; }
10674 # So? What about this header?
10675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10678 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10680 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10681 ac_header_preproc=yes
10684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10685 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10687 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10689 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10691 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10693 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10695 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10697 ## ---------------------------------------- ##
10698 ## Report this to pgsql-bugs@postgresql.org ##
10699 ## ---------------------------------------- ##
10701 ) | sed "s/^/$as_me: WARNING: /" >&2
10704 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10705 $as_echo_n "checking for $ac_header... " >&6; }
10706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10707 $as_echo_n "(cached) " >&6
10709 eval "$as_ac_Header=\$ac_header_preproc"
10711 ac_res=`eval 'as_val=${'$as_ac_Header'}
10712 $as_echo "$as_val"'`
10713 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10714 $as_echo "$ac_res" >&6; }
10717 as_val=`eval 'as_val=${'$as_ac_Header'}
10718 $as_echo "$as_val"'`
10719 if test "x$as_val" = x""yes; then
10720 cat >>confdefs.h <<_ACEOF
10721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10729 for ac_header in netinet/tcp.h
10731 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10732 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10733 $as_echo_n "checking for $ac_header... " >&6; }
10734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10735 $as_echo_n "(cached) " >&6
10737 cat >conftest.$ac_ext <<_ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h. */
10743 $ac_includes_default
10744 #ifdef HAVE_NETINET_IN_H
10745 #include <netinet/in.h>
10749 #include <$ac_header>
10751 rm -f conftest.$ac_objext
10752 if { (ac_try="$ac_compile"
10753 case "(($ac_try" in
10754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10755 *) ac_try_echo=$ac_try;;
10757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10758 $as_echo "$ac_try_echo") >&5
10759 (eval "$ac_compile") 2>conftest.er1
10761 grep -v '^ *+' conftest.er1 >conftest.err
10763 cat conftest.err >&5
10764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); } && {
10766 test -z "$ac_c_werror_flag" ||
10767 test ! -s conftest.err
10768 } && test -s conftest.$ac_objext; then
10769 eval "$as_ac_Header=yes"
10771 $as_echo "$as_me: failed program was:" >&5
10772 sed 's/^/| /' conftest.$ac_ext >&5
10774 eval "$as_ac_Header=no"
10777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10779 ac_res=`eval 'as_val=${'$as_ac_Header'}
10780 $as_echo "$as_val"'`
10781 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10782 $as_echo "$ac_res" >&6; }
10783 as_val=`eval 'as_val=${'$as_ac_Header'}
10784 $as_echo "$as_val"'`
10785 if test "x$as_val" = x""yes; then
10786 cat >>confdefs.h <<_ACEOF
10787 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10795 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10797 for ac_header in readline/readline.h
10799 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10801 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10802 $as_echo_n "checking for $ac_header... " >&6; }
10803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10804 $as_echo_n "(cached) " >&6
10806 ac_res=`eval 'as_val=${'$as_ac_Header'}
10807 $as_echo "$as_val"'`
10808 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10809 $as_echo "$ac_res" >&6; }
10811 # Is the header compilable?
10812 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10813 $as_echo_n "checking $ac_header usability... " >&6; }
10814 cat >conftest.$ac_ext <<_ACEOF
10817 cat confdefs.h >>conftest.$ac_ext
10818 cat >>conftest.$ac_ext <<_ACEOF
10819 /* end confdefs.h. */
10820 $ac_includes_default
10821 #include <$ac_header>
10823 rm -f conftest.$ac_objext
10824 if { (ac_try="$ac_compile"
10825 case "(($ac_try" in
10826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10827 *) ac_try_echo=$ac_try;;
10829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10830 $as_echo "$ac_try_echo") >&5
10831 (eval "$ac_compile") 2>conftest.er1
10833 grep -v '^ *+' conftest.er1 >conftest.err
10835 cat conftest.err >&5
10836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } && {
10838 test -z "$ac_c_werror_flag" ||
10839 test ! -s conftest.err
10840 } && test -s conftest.$ac_objext; then
10841 ac_header_compiler=yes
10843 $as_echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.$ac_ext >&5
10846 ac_header_compiler=no
10849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10850 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10851 $as_echo "$ac_header_compiler" >&6; }
10853 # Is the header present?
10854 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10855 $as_echo_n "checking $ac_header presence... " >&6; }
10856 cat >conftest.$ac_ext <<_ACEOF
10859 cat confdefs.h >>conftest.$ac_ext
10860 cat >>conftest.$ac_ext <<_ACEOF
10861 /* end confdefs.h. */
10862 #include <$ac_header>
10864 if { (ac_try="$ac_cpp conftest.$ac_ext"
10865 case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10870 $as_echo "$ac_try_echo") >&5
10871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10873 grep -v '^ *+' conftest.er1 >conftest.err
10875 cat conftest.err >&5
10876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } >/dev/null && {
10878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10879 test ! -s conftest.err
10881 ac_header_preproc=yes
10883 $as_echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10886 ac_header_preproc=no
10889 rm -f conftest.err conftest.$ac_ext
10890 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10891 $as_echo "$ac_header_preproc" >&6; }
10893 # So? What about this header?
10894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10897 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10899 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10900 ac_header_preproc=yes
10903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10904 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10906 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10908 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10910 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10912 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10914 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10916 ## ---------------------------------------- ##
10917 ## Report this to pgsql-bugs@postgresql.org ##
10918 ## ---------------------------------------- ##
10920 ) | sed "s/^/$as_me: WARNING: /" >&2
10923 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10924 $as_echo_n "checking for $ac_header... " >&6; }
10925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10926 $as_echo_n "(cached) " >&6
10928 eval "$as_ac_Header=\$ac_header_preproc"
10930 ac_res=`eval 'as_val=${'$as_ac_Header'}
10931 $as_echo "$as_val"'`
10932 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10933 $as_echo "$ac_res" >&6; }
10936 as_val=`eval 'as_val=${'$as_ac_Header'}
10937 $as_echo "$as_val"'`
10938 if test "x$as_val" = x""yes; then
10939 cat >>confdefs.h <<_ACEOF
10940 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10945 for ac_header in readline.h
10947 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10949 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10950 $as_echo_n "checking for $ac_header... " >&6; }
10951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10952 $as_echo_n "(cached) " >&6
10954 ac_res=`eval 'as_val=${'$as_ac_Header'}
10955 $as_echo "$as_val"'`
10956 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10957 $as_echo "$ac_res" >&6; }
10959 # Is the header compilable?
10960 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10961 $as_echo_n "checking $ac_header usability... " >&6; }
10962 cat >conftest.$ac_ext <<_ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10968 $ac_includes_default
10969 #include <$ac_header>
10971 rm -f conftest.$ac_objext
10972 if { (ac_try="$ac_compile"
10973 case "(($ac_try" in
10974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975 *) ac_try_echo=$ac_try;;
10977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10978 $as_echo "$ac_try_echo") >&5
10979 (eval "$ac_compile") 2>conftest.er1
10981 grep -v '^ *+' conftest.er1 >conftest.err
10983 cat conftest.err >&5
10984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } && {
10986 test -z "$ac_c_werror_flag" ||
10987 test ! -s conftest.err
10988 } && test -s conftest.$ac_objext; then
10989 ac_header_compiler=yes
10991 $as_echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10994 ac_header_compiler=no
10997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10998 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10999 $as_echo "$ac_header_compiler" >&6; }
11001 # Is the header present?
11002 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11003 $as_echo_n "checking $ac_header presence... " >&6; }
11004 cat >conftest.$ac_ext <<_ACEOF
11007 cat confdefs.h >>conftest.$ac_ext
11008 cat >>conftest.$ac_ext <<_ACEOF
11009 /* end confdefs.h. */
11010 #include <$ac_header>
11012 if { (ac_try="$ac_cpp conftest.$ac_ext"
11013 case "(($ac_try" in
11014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11015 *) ac_try_echo=$ac_try;;
11017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11018 $as_echo "$ac_try_echo") >&5
11019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11021 grep -v '^ *+' conftest.er1 >conftest.err
11023 cat conftest.err >&5
11024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); } >/dev/null && {
11026 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11027 test ! -s conftest.err
11029 ac_header_preproc=yes
11031 $as_echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.$ac_ext >&5
11034 ac_header_preproc=no
11037 rm -f conftest.err conftest.$ac_ext
11038 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11039 $as_echo "$ac_header_preproc" >&6; }
11041 # So? What about this header?
11042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11044 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11045 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11047 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11048 ac_header_preproc=yes
11051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11052 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11054 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11056 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11058 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11060 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11062 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11064 ## ---------------------------------------- ##
11065 ## Report this to pgsql-bugs@postgresql.org ##
11066 ## ---------------------------------------- ##
11068 ) | sed "s/^/$as_me: WARNING: /" >&2
11071 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11072 $as_echo_n "checking for $ac_header... " >&6; }
11073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11074 $as_echo_n "(cached) " >&6
11076 eval "$as_ac_Header=\$ac_header_preproc"
11078 ac_res=`eval 'as_val=${'$as_ac_Header'}
11079 $as_echo "$as_val"'`
11080 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11081 $as_echo "$ac_res" >&6; }
11084 as_val=`eval 'as_val=${'$as_ac_Header'}
11085 $as_echo "$as_val"'`
11086 if test "x$as_val" = x""yes; then
11087 cat >>confdefs.h <<_ACEOF
11088 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11092 { { $as_echo "$as_me:$LINENO: error: readline header not found
11093 If you have readline already installed, see config.log for details on the
11094 failure. It is possible the compiler isn't looking in the proper directory.
11095 Use --without-readline to disable readline support." >&5
11096 $as_echo "$as_me: error: readline header not found
11097 If you have readline already installed, see config.log for details on the
11098 failure. It is possible the compiler isn't looking in the proper directory.
11099 Use --without-readline to disable readline support." >&2;}
11100 { (exit 1); exit 1; }; }
11110 for ac_header in readline/history.h
11112 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11114 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11115 $as_echo_n "checking for $ac_header... " >&6; }
11116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11117 $as_echo_n "(cached) " >&6
11119 ac_res=`eval 'as_val=${'$as_ac_Header'}
11120 $as_echo "$as_val"'`
11121 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11122 $as_echo "$ac_res" >&6; }
11124 # Is the header compilable?
11125 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11126 $as_echo_n "checking $ac_header usability... " >&6; }
11127 cat >conftest.$ac_ext <<_ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11133 $ac_includes_default
11134 #include <$ac_header>
11136 rm -f conftest.$ac_objext
11137 if { (ac_try="$ac_compile"
11138 case "(($ac_try" in
11139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140 *) ac_try_echo=$ac_try;;
11142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11143 $as_echo "$ac_try_echo") >&5
11144 (eval "$ac_compile") 2>conftest.er1
11146 grep -v '^ *+' conftest.er1 >conftest.err
11148 cat conftest.err >&5
11149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); } && {
11151 test -z "$ac_c_werror_flag" ||
11152 test ! -s conftest.err
11153 } && test -s conftest.$ac_objext; then
11154 ac_header_compiler=yes
11156 $as_echo "$as_me: failed program was:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11159 ac_header_compiler=no
11162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11163 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11164 $as_echo "$ac_header_compiler" >&6; }
11166 # Is the header present?
11167 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11168 $as_echo_n "checking $ac_header presence... " >&6; }
11169 cat >conftest.$ac_ext <<_ACEOF
11172 cat confdefs.h >>conftest.$ac_ext
11173 cat >>conftest.$ac_ext <<_ACEOF
11174 /* end confdefs.h. */
11175 #include <$ac_header>
11177 if { (ac_try="$ac_cpp conftest.$ac_ext"
11178 case "(($ac_try" in
11179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180 *) ac_try_echo=$ac_try;;
11182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11183 $as_echo "$ac_try_echo") >&5
11184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11186 grep -v '^ *+' conftest.er1 >conftest.err
11188 cat conftest.err >&5
11189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); } >/dev/null && {
11191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11192 test ! -s conftest.err
11194 ac_header_preproc=yes
11196 $as_echo "$as_me: failed program was:" >&5
11197 sed 's/^/| /' conftest.$ac_ext >&5
11199 ac_header_preproc=no
11202 rm -f conftest.err conftest.$ac_ext
11203 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11204 $as_echo "$ac_header_preproc" >&6; }
11206 # So? What about this header?
11207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11210 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11212 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11213 ac_header_preproc=yes
11216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11217 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11219 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11221 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11223 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11225 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11227 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11229 ## ---------------------------------------- ##
11230 ## Report this to pgsql-bugs@postgresql.org ##
11231 ## ---------------------------------------- ##
11233 ) | sed "s/^/$as_me: WARNING: /" >&2
11236 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11237 $as_echo_n "checking for $ac_header... " >&6; }
11238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11239 $as_echo_n "(cached) " >&6
11241 eval "$as_ac_Header=\$ac_header_preproc"
11243 ac_res=`eval 'as_val=${'$as_ac_Header'}
11244 $as_echo "$as_val"'`
11245 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11246 $as_echo "$ac_res" >&6; }
11249 as_val=`eval 'as_val=${'$as_ac_Header'}
11250 $as_echo "$as_val"'`
11251 if test "x$as_val" = x""yes; then
11252 cat >>confdefs.h <<_ACEOF
11253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11258 for ac_header in history.h
11260 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11262 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11263 $as_echo_n "checking for $ac_header... " >&6; }
11264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11265 $as_echo_n "(cached) " >&6
11267 ac_res=`eval 'as_val=${'$as_ac_Header'}
11268 $as_echo "$as_val"'`
11269 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11270 $as_echo "$ac_res" >&6; }
11272 # Is the header compilable?
11273 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11274 $as_echo_n "checking $ac_header usability... " >&6; }
11275 cat >conftest.$ac_ext <<_ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11281 $ac_includes_default
11282 #include <$ac_header>
11284 rm -f conftest.$ac_objext
11285 if { (ac_try="$ac_compile"
11286 case "(($ac_try" in
11287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288 *) ac_try_echo=$ac_try;;
11290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11291 $as_echo "$ac_try_echo") >&5
11292 (eval "$ac_compile") 2>conftest.er1
11294 grep -v '^ *+' conftest.er1 >conftest.err
11296 cat conftest.err >&5
11297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } && {
11299 test -z "$ac_c_werror_flag" ||
11300 test ! -s conftest.err
11301 } && test -s conftest.$ac_objext; then
11302 ac_header_compiler=yes
11304 $as_echo "$as_me: failed program was:" >&5
11305 sed 's/^/| /' conftest.$ac_ext >&5
11307 ac_header_compiler=no
11310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11311 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11312 $as_echo "$ac_header_compiler" >&6; }
11314 # Is the header present?
11315 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11316 $as_echo_n "checking $ac_header presence... " >&6; }
11317 cat >conftest.$ac_ext <<_ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h. */
11323 #include <$ac_header>
11325 if { (ac_try="$ac_cpp conftest.$ac_ext"
11326 case "(($ac_try" in
11327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328 *) ac_try_echo=$ac_try;;
11330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11331 $as_echo "$ac_try_echo") >&5
11332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11334 grep -v '^ *+' conftest.er1 >conftest.err
11336 cat conftest.err >&5
11337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } >/dev/null && {
11339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11340 test ! -s conftest.err
11342 ac_header_preproc=yes
11344 $as_echo "$as_me: failed program was:" >&5
11345 sed 's/^/| /' conftest.$ac_ext >&5
11347 ac_header_preproc=no
11350 rm -f conftest.err conftest.$ac_ext
11351 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11352 $as_echo "$ac_header_preproc" >&6; }
11354 # So? What about this header?
11355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11358 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11360 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11361 ac_header_preproc=yes
11364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11365 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11367 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11369 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11371 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11373 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11375 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11377 ## ---------------------------------------- ##
11378 ## Report this to pgsql-bugs@postgresql.org ##
11379 ## ---------------------------------------- ##
11381 ) | sed "s/^/$as_me: WARNING: /" >&2
11384 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11385 $as_echo_n "checking for $ac_header... " >&6; }
11386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11387 $as_echo_n "(cached) " >&6
11389 eval "$as_ac_Header=\$ac_header_preproc"
11391 ac_res=`eval 'as_val=${'$as_ac_Header'}
11392 $as_echo "$as_val"'`
11393 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11394 $as_echo "$ac_res" >&6; }
11397 as_val=`eval 'as_val=${'$as_ac_Header'}
11398 $as_echo "$as_val"'`
11399 if test "x$as_val" = x""yes; then
11400 cat >>confdefs.h <<_ACEOF
11401 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11405 { { $as_echo "$as_me:$LINENO: error: history header not found
11406 If you have readline already installed, see config.log for details on the
11407 failure. It is possible the compiler isn't looking in the proper directory.
11408 Use --without-readline to disable readline support." >&5
11409 $as_echo "$as_me: error: history header not found
11410 If you have readline already installed, see config.log for details on the
11411 failure. It is possible the compiler isn't looking in the proper directory.
11412 Use --without-readline to disable readline support." >&2;}
11413 { (exit 1); exit 1; }; }
11424 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
11425 # Some installations of libedit usurp /usr/include/readline/, which seems
11426 # bad practice, since in combined installations readline will have its headers
11427 # there. We might have to resort to AC_EGREP checks to make sure we found
11428 # the proper header...
11430 for ac_header in editline/readline.h
11432 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11434 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11435 $as_echo_n "checking for $ac_header... " >&6; }
11436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11437 $as_echo_n "(cached) " >&6
11439 ac_res=`eval 'as_val=${'$as_ac_Header'}
11440 $as_echo "$as_val"'`
11441 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11442 $as_echo "$ac_res" >&6; }
11444 # Is the header compilable?
11445 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11446 $as_echo_n "checking $ac_header usability... " >&6; }
11447 cat >conftest.$ac_ext <<_ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h. */
11453 $ac_includes_default
11454 #include <$ac_header>
11456 rm -f conftest.$ac_objext
11457 if { (ac_try="$ac_compile"
11458 case "(($ac_try" in
11459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460 *) ac_try_echo=$ac_try;;
11462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11463 $as_echo "$ac_try_echo") >&5
11464 (eval "$ac_compile") 2>conftest.er1
11466 grep -v '^ *+' conftest.er1 >conftest.err
11468 cat conftest.err >&5
11469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); } && {
11471 test -z "$ac_c_werror_flag" ||
11472 test ! -s conftest.err
11473 } && test -s conftest.$ac_objext; then
11474 ac_header_compiler=yes
11476 $as_echo "$as_me: failed program was:" >&5
11477 sed 's/^/| /' conftest.$ac_ext >&5
11479 ac_header_compiler=no
11482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11483 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11484 $as_echo "$ac_header_compiler" >&6; }
11486 # Is the header present?
11487 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11488 $as_echo_n "checking $ac_header presence... " >&6; }
11489 cat >conftest.$ac_ext <<_ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h. */
11495 #include <$ac_header>
11497 if { (ac_try="$ac_cpp conftest.$ac_ext"
11498 case "(($ac_try" in
11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11503 $as_echo "$ac_try_echo") >&5
11504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11506 grep -v '^ *+' conftest.er1 >conftest.err
11508 cat conftest.err >&5
11509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } >/dev/null && {
11511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11512 test ! -s conftest.err
11514 ac_header_preproc=yes
11516 $as_echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11519 ac_header_preproc=no
11522 rm -f conftest.err conftest.$ac_ext
11523 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11524 $as_echo "$ac_header_preproc" >&6; }
11526 # So? What about this header?
11527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11530 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11532 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11533 ac_header_preproc=yes
11536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11537 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11539 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11541 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11543 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11545 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11547 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11549 ## ---------------------------------------- ##
11550 ## Report this to pgsql-bugs@postgresql.org ##
11551 ## ---------------------------------------- ##
11553 ) | sed "s/^/$as_me: WARNING: /" >&2
11556 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11557 $as_echo_n "checking for $ac_header... " >&6; }
11558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11559 $as_echo_n "(cached) " >&6
11561 eval "$as_ac_Header=\$ac_header_preproc"
11563 ac_res=`eval 'as_val=${'$as_ac_Header'}
11564 $as_echo "$as_val"'`
11565 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11566 $as_echo "$ac_res" >&6; }
11569 as_val=`eval 'as_val=${'$as_ac_Header'}
11570 $as_echo "$as_val"'`
11571 if test "x$as_val" = x""yes; then
11572 cat >>confdefs.h <<_ACEOF
11573 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11578 for ac_header in readline.h
11580 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11582 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11583 $as_echo_n "checking for $ac_header... " >&6; }
11584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11585 $as_echo_n "(cached) " >&6
11587 ac_res=`eval 'as_val=${'$as_ac_Header'}
11588 $as_echo "$as_val"'`
11589 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11590 $as_echo "$ac_res" >&6; }
11592 # Is the header compilable?
11593 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11594 $as_echo_n "checking $ac_header usability... " >&6; }
11595 cat >conftest.$ac_ext <<_ACEOF
11598 cat confdefs.h >>conftest.$ac_ext
11599 cat >>conftest.$ac_ext <<_ACEOF
11600 /* end confdefs.h. */
11601 $ac_includes_default
11602 #include <$ac_header>
11604 rm -f conftest.$ac_objext
11605 if { (ac_try="$ac_compile"
11606 case "(($ac_try" in
11607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11608 *) ac_try_echo=$ac_try;;
11610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11611 $as_echo "$ac_try_echo") >&5
11612 (eval "$ac_compile") 2>conftest.er1
11614 grep -v '^ *+' conftest.er1 >conftest.err
11616 cat conftest.err >&5
11617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); } && {
11619 test -z "$ac_c_werror_flag" ||
11620 test ! -s conftest.err
11621 } && test -s conftest.$ac_objext; then
11622 ac_header_compiler=yes
11624 $as_echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11627 ac_header_compiler=no
11630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11631 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11632 $as_echo "$ac_header_compiler" >&6; }
11634 # Is the header present?
11635 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11636 $as_echo_n "checking $ac_header presence... " >&6; }
11637 cat >conftest.$ac_ext <<_ACEOF
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h. */
11643 #include <$ac_header>
11645 if { (ac_try="$ac_cpp conftest.$ac_ext"
11646 case "(($ac_try" in
11647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11648 *) ac_try_echo=$ac_try;;
11650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11651 $as_echo "$ac_try_echo") >&5
11652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11654 grep -v '^ *+' conftest.er1 >conftest.err
11656 cat conftest.err >&5
11657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } >/dev/null && {
11659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11660 test ! -s conftest.err
11662 ac_header_preproc=yes
11664 $as_echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11667 ac_header_preproc=no
11670 rm -f conftest.err conftest.$ac_ext
11671 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11672 $as_echo "$ac_header_preproc" >&6; }
11674 # So? What about this header?
11675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11678 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11680 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11681 ac_header_preproc=yes
11684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11685 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11687 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11689 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11691 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11693 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11695 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11697 ## ---------------------------------------- ##
11698 ## Report this to pgsql-bugs@postgresql.org ##
11699 ## ---------------------------------------- ##
11701 ) | sed "s/^/$as_me: WARNING: /" >&2
11704 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11705 $as_echo_n "checking for $ac_header... " >&6; }
11706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11707 $as_echo_n "(cached) " >&6
11709 eval "$as_ac_Header=\$ac_header_preproc"
11711 ac_res=`eval 'as_val=${'$as_ac_Header'}
11712 $as_echo "$as_val"'`
11713 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11714 $as_echo "$ac_res" >&6; }
11717 as_val=`eval 'as_val=${'$as_ac_Header'}
11718 $as_echo "$as_val"'`
11719 if test "x$as_val" = x""yes; then
11720 cat >>confdefs.h <<_ACEOF
11721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11726 for ac_header in readline/readline.h
11728 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11730 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11731 $as_echo_n "checking for $ac_header... " >&6; }
11732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11733 $as_echo_n "(cached) " >&6
11735 ac_res=`eval 'as_val=${'$as_ac_Header'}
11736 $as_echo "$as_val"'`
11737 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11738 $as_echo "$ac_res" >&6; }
11740 # Is the header compilable?
11741 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11742 $as_echo_n "checking $ac_header usability... " >&6; }
11743 cat >conftest.$ac_ext <<_ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h. */
11749 $ac_includes_default
11750 #include <$ac_header>
11752 rm -f conftest.$ac_objext
11753 if { (ac_try="$ac_compile"
11754 case "(($ac_try" in
11755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11756 *) ac_try_echo=$ac_try;;
11758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11759 $as_echo "$ac_try_echo") >&5
11760 (eval "$ac_compile") 2>conftest.er1
11762 grep -v '^ *+' conftest.er1 >conftest.err
11764 cat conftest.err >&5
11765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); } && {
11767 test -z "$ac_c_werror_flag" ||
11768 test ! -s conftest.err
11769 } && test -s conftest.$ac_objext; then
11770 ac_header_compiler=yes
11772 $as_echo "$as_me: failed program was:" >&5
11773 sed 's/^/| /' conftest.$ac_ext >&5
11775 ac_header_compiler=no
11778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11779 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11780 $as_echo "$ac_header_compiler" >&6; }
11782 # Is the header present?
11783 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11784 $as_echo_n "checking $ac_header presence... " >&6; }
11785 cat >conftest.$ac_ext <<_ACEOF
11788 cat confdefs.h >>conftest.$ac_ext
11789 cat >>conftest.$ac_ext <<_ACEOF
11790 /* end confdefs.h. */
11791 #include <$ac_header>
11793 if { (ac_try="$ac_cpp conftest.$ac_ext"
11794 case "(($ac_try" in
11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796 *) ac_try_echo=$ac_try;;
11798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11799 $as_echo "$ac_try_echo") >&5
11800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11802 grep -v '^ *+' conftest.er1 >conftest.err
11804 cat conftest.err >&5
11805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } >/dev/null && {
11807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11808 test ! -s conftest.err
11810 ac_header_preproc=yes
11812 $as_echo "$as_me: failed program was:" >&5
11813 sed 's/^/| /' conftest.$ac_ext >&5
11815 ac_header_preproc=no
11818 rm -f conftest.err conftest.$ac_ext
11819 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11820 $as_echo "$ac_header_preproc" >&6; }
11822 # So? What about this header?
11823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11826 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11828 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11829 ac_header_preproc=yes
11832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11833 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11835 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11837 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11839 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11841 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11843 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11845 ## ---------------------------------------- ##
11846 ## Report this to pgsql-bugs@postgresql.org ##
11847 ## ---------------------------------------- ##
11849 ) | sed "s/^/$as_me: WARNING: /" >&2
11852 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11853 $as_echo_n "checking for $ac_header... " >&6; }
11854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11855 $as_echo_n "(cached) " >&6
11857 eval "$as_ac_Header=\$ac_header_preproc"
11859 ac_res=`eval 'as_val=${'$as_ac_Header'}
11860 $as_echo "$as_val"'`
11861 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11862 $as_echo "$ac_res" >&6; }
11865 as_val=`eval 'as_val=${'$as_ac_Header'}
11866 $as_echo "$as_val"'`
11867 if test "x$as_val" = x""yes; then
11868 cat >>confdefs.h <<_ACEOF
11869 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11873 { { $as_echo "$as_me:$LINENO: error: readline header not found
11874 If you have libedit already installed, see config.log for details on the
11875 failure. It is possible the compiler isn't looking in the proper directory.
11876 Use --without-readline to disable libedit support." >&5
11877 $as_echo "$as_me: error: readline header not found
11878 If you have libedit already installed, see config.log for details on the
11879 failure. It is possible the compiler isn't looking in the proper directory.
11880 Use --without-readline to disable libedit support." >&2;}
11881 { (exit 1); exit 1; }; }
11894 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11895 # not be there at all. Hence, don't complain if not found. We must check
11896 # though, since in yet other versions it is an independent header.
11898 for ac_header in editline/history.h
11900 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11902 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11903 $as_echo_n "checking for $ac_header... " >&6; }
11904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11905 $as_echo_n "(cached) " >&6
11907 ac_res=`eval 'as_val=${'$as_ac_Header'}
11908 $as_echo "$as_val"'`
11909 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11910 $as_echo "$ac_res" >&6; }
11912 # Is the header compilable?
11913 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11914 $as_echo_n "checking $ac_header usability... " >&6; }
11915 cat >conftest.$ac_ext <<_ACEOF
11918 cat confdefs.h >>conftest.$ac_ext
11919 cat >>conftest.$ac_ext <<_ACEOF
11920 /* end confdefs.h. */
11921 $ac_includes_default
11922 #include <$ac_header>
11924 rm -f conftest.$ac_objext
11925 if { (ac_try="$ac_compile"
11926 case "(($ac_try" in
11927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928 *) ac_try_echo=$ac_try;;
11930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11931 $as_echo "$ac_try_echo") >&5
11932 (eval "$ac_compile") 2>conftest.er1
11934 grep -v '^ *+' conftest.er1 >conftest.err
11936 cat conftest.err >&5
11937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); } && {
11939 test -z "$ac_c_werror_flag" ||
11940 test ! -s conftest.err
11941 } && test -s conftest.$ac_objext; then
11942 ac_header_compiler=yes
11944 $as_echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11947 ac_header_compiler=no
11950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11951 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11952 $as_echo "$ac_header_compiler" >&6; }
11954 # Is the header present?
11955 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11956 $as_echo_n "checking $ac_header presence... " >&6; }
11957 cat >conftest.$ac_ext <<_ACEOF
11960 cat confdefs.h >>conftest.$ac_ext
11961 cat >>conftest.$ac_ext <<_ACEOF
11962 /* end confdefs.h. */
11963 #include <$ac_header>
11965 if { (ac_try="$ac_cpp conftest.$ac_ext"
11966 case "(($ac_try" in
11967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968 *) ac_try_echo=$ac_try;;
11970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11971 $as_echo "$ac_try_echo") >&5
11972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11974 grep -v '^ *+' conftest.er1 >conftest.err
11976 cat conftest.err >&5
11977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } >/dev/null && {
11979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11980 test ! -s conftest.err
11982 ac_header_preproc=yes
11984 $as_echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11987 ac_header_preproc=no
11990 rm -f conftest.err conftest.$ac_ext
11991 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11992 $as_echo "$ac_header_preproc" >&6; }
11994 # So? What about this header?
11995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11998 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12000 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12001 ac_header_preproc=yes
12004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12005 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12007 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12009 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12011 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12013 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12015 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12017 ## ---------------------------------------- ##
12018 ## Report this to pgsql-bugs@postgresql.org ##
12019 ## ---------------------------------------- ##
12021 ) | sed "s/^/$as_me: WARNING: /" >&2
12024 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12025 $as_echo_n "checking for $ac_header... " >&6; }
12026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12027 $as_echo_n "(cached) " >&6
12029 eval "$as_ac_Header=\$ac_header_preproc"
12031 ac_res=`eval 'as_val=${'$as_ac_Header'}
12032 $as_echo "$as_val"'`
12033 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12034 $as_echo "$ac_res" >&6; }
12037 as_val=`eval 'as_val=${'$as_ac_Header'}
12038 $as_echo "$as_val"'`
12039 if test "x$as_val" = x""yes; then
12040 cat >>confdefs.h <<_ACEOF
12041 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12046 for ac_header in history.h
12048 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12050 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12051 $as_echo_n "checking for $ac_header... " >&6; }
12052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12053 $as_echo_n "(cached) " >&6
12055 ac_res=`eval 'as_val=${'$as_ac_Header'}
12056 $as_echo "$as_val"'`
12057 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12058 $as_echo "$ac_res" >&6; }
12060 # Is the header compilable?
12061 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12062 $as_echo_n "checking $ac_header usability... " >&6; }
12063 cat >conftest.$ac_ext <<_ACEOF
12066 cat confdefs.h >>conftest.$ac_ext
12067 cat >>conftest.$ac_ext <<_ACEOF
12068 /* end confdefs.h. */
12069 $ac_includes_default
12070 #include <$ac_header>
12072 rm -f conftest.$ac_objext
12073 if { (ac_try="$ac_compile"
12074 case "(($ac_try" in
12075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12076 *) ac_try_echo=$ac_try;;
12078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12079 $as_echo "$ac_try_echo") >&5
12080 (eval "$ac_compile") 2>conftest.er1
12082 grep -v '^ *+' conftest.er1 >conftest.err
12084 cat conftest.err >&5
12085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); } && {
12087 test -z "$ac_c_werror_flag" ||
12088 test ! -s conftest.err
12089 } && test -s conftest.$ac_objext; then
12090 ac_header_compiler=yes
12092 $as_echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.$ac_ext >&5
12095 ac_header_compiler=no
12098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12099 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12100 $as_echo "$ac_header_compiler" >&6; }
12102 # Is the header present?
12103 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12104 $as_echo_n "checking $ac_header presence... " >&6; }
12105 cat >conftest.$ac_ext <<_ACEOF
12108 cat confdefs.h >>conftest.$ac_ext
12109 cat >>conftest.$ac_ext <<_ACEOF
12110 /* end confdefs.h. */
12111 #include <$ac_header>
12113 if { (ac_try="$ac_cpp conftest.$ac_ext"
12114 case "(($ac_try" in
12115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116 *) ac_try_echo=$ac_try;;
12118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12119 $as_echo "$ac_try_echo") >&5
12120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12122 grep -v '^ *+' conftest.er1 >conftest.err
12124 cat conftest.err >&5
12125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } >/dev/null && {
12127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12128 test ! -s conftest.err
12130 ac_header_preproc=yes
12132 $as_echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.$ac_ext >&5
12135 ac_header_preproc=no
12138 rm -f conftest.err conftest.$ac_ext
12139 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12140 $as_echo "$ac_header_preproc" >&6; }
12142 # So? What about this header?
12143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12146 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12148 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12149 ac_header_preproc=yes
12152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12153 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12155 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12156 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12157 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12159 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12161 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12163 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12165 ## ---------------------------------------- ##
12166 ## Report this to pgsql-bugs@postgresql.org ##
12167 ## ---------------------------------------- ##
12169 ) | sed "s/^/$as_me: WARNING: /" >&2
12172 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12173 $as_echo_n "checking for $ac_header... " >&6; }
12174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12175 $as_echo_n "(cached) " >&6
12177 eval "$as_ac_Header=\$ac_header_preproc"
12179 ac_res=`eval 'as_val=${'$as_ac_Header'}
12180 $as_echo "$as_val"'`
12181 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12182 $as_echo "$ac_res" >&6; }
12185 as_val=`eval 'as_val=${'$as_ac_Header'}
12186 $as_echo "$as_val"'`
12187 if test "x$as_val" = x""yes; then
12188 cat >>confdefs.h <<_ACEOF
12189 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12194 for ac_header in readline/history.h
12196 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12198 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12199 $as_echo_n "checking for $ac_header... " >&6; }
12200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12201 $as_echo_n "(cached) " >&6
12203 ac_res=`eval 'as_val=${'$as_ac_Header'}
12204 $as_echo "$as_val"'`
12205 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12206 $as_echo "$ac_res" >&6; }
12208 # Is the header compilable?
12209 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12210 $as_echo_n "checking $ac_header usability... " >&6; }
12211 cat >conftest.$ac_ext <<_ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h. */
12217 $ac_includes_default
12218 #include <$ac_header>
12220 rm -f conftest.$ac_objext
12221 if { (ac_try="$ac_compile"
12222 case "(($ac_try" in
12223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12224 *) ac_try_echo=$ac_try;;
12226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12227 $as_echo "$ac_try_echo") >&5
12228 (eval "$ac_compile") 2>conftest.er1
12230 grep -v '^ *+' conftest.er1 >conftest.err
12232 cat conftest.err >&5
12233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); } && {
12235 test -z "$ac_c_werror_flag" ||
12236 test ! -s conftest.err
12237 } && test -s conftest.$ac_objext; then
12238 ac_header_compiler=yes
12240 $as_echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12243 ac_header_compiler=no
12246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12247 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12248 $as_echo "$ac_header_compiler" >&6; }
12250 # Is the header present?
12251 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12252 $as_echo_n "checking $ac_header presence... " >&6; }
12253 cat >conftest.$ac_ext <<_ACEOF
12256 cat confdefs.h >>conftest.$ac_ext
12257 cat >>conftest.$ac_ext <<_ACEOF
12258 /* end confdefs.h. */
12259 #include <$ac_header>
12261 if { (ac_try="$ac_cpp conftest.$ac_ext"
12262 case "(($ac_try" in
12263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12264 *) ac_try_echo=$ac_try;;
12266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12267 $as_echo "$ac_try_echo") >&5
12268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12270 grep -v '^ *+' conftest.er1 >conftest.err
12272 cat conftest.err >&5
12273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } >/dev/null && {
12275 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12276 test ! -s conftest.err
12278 ac_header_preproc=yes
12280 $as_echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12283 ac_header_preproc=no
12286 rm -f conftest.err conftest.$ac_ext
12287 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12288 $as_echo "$ac_header_preproc" >&6; }
12290 # So? What about this header?
12291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12294 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12296 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12297 ac_header_preproc=yes
12300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12301 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12303 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12305 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12307 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12309 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12311 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12313 ## ---------------------------------------- ##
12314 ## Report this to pgsql-bugs@postgresql.org ##
12315 ## ---------------------------------------- ##
12317 ) | sed "s/^/$as_me: WARNING: /" >&2
12320 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12321 $as_echo_n "checking for $ac_header... " >&6; }
12322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12323 $as_echo_n "(cached) " >&6
12325 eval "$as_ac_Header=\$ac_header_preproc"
12327 ac_res=`eval 'as_val=${'$as_ac_Header'}
12328 $as_echo "$as_val"'`
12329 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12330 $as_echo "$ac_res" >&6; }
12333 as_val=`eval 'as_val=${'$as_ac_Header'}
12334 $as_echo "$as_val"'`
12335 if test "x$as_val" = x""yes; then
12336 cat >>confdefs.h <<_ACEOF
12337 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12354 if test "$with_zlib" = yes; then
12355 if test "${ac_cv_header_zlib_h+set}" = set; then
12356 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12357 $as_echo_n "checking for zlib.h... " >&6; }
12358 if test "${ac_cv_header_zlib_h+set}" = set; then
12359 $as_echo_n "(cached) " >&6
12361 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12362 $as_echo "$ac_cv_header_zlib_h" >&6; }
12364 # Is the header compilable?
12365 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
12366 $as_echo_n "checking zlib.h usability... " >&6; }
12367 cat >conftest.$ac_ext <<_ACEOF
12370 cat confdefs.h >>conftest.$ac_ext
12371 cat >>conftest.$ac_ext <<_ACEOF
12372 /* end confdefs.h. */
12373 $ac_includes_default
12376 rm -f conftest.$ac_objext
12377 if { (ac_try="$ac_compile"
12378 case "(($ac_try" in
12379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380 *) ac_try_echo=$ac_try;;
12382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12383 $as_echo "$ac_try_echo") >&5
12384 (eval "$ac_compile") 2>conftest.er1
12386 grep -v '^ *+' conftest.er1 >conftest.err
12388 cat conftest.err >&5
12389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); } && {
12391 test -z "$ac_c_werror_flag" ||
12392 test ! -s conftest.err
12393 } && test -s conftest.$ac_objext; then
12394 ac_header_compiler=yes
12396 $as_echo "$as_me: failed program was:" >&5
12397 sed 's/^/| /' conftest.$ac_ext >&5
12399 ac_header_compiler=no
12402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12404 $as_echo "$ac_header_compiler" >&6; }
12406 # Is the header present?
12407 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
12408 $as_echo_n "checking zlib.h presence... " >&6; }
12409 cat >conftest.$ac_ext <<_ACEOF
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h. */
12417 if { (ac_try="$ac_cpp conftest.$ac_ext"
12418 case "(($ac_try" in
12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12423 $as_echo "$ac_try_echo") >&5
12424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12426 grep -v '^ *+' conftest.er1 >conftest.err
12428 cat conftest.err >&5
12429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); } >/dev/null && {
12431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12432 test ! -s conftest.err
12434 ac_header_preproc=yes
12436 $as_echo "$as_me: failed program was:" >&5
12437 sed 's/^/| /' conftest.$ac_ext >&5
12439 ac_header_preproc=no
12442 rm -f conftest.err conftest.$ac_ext
12443 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12444 $as_echo "$ac_header_preproc" >&6; }
12446 # So? What about this header?
12447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12449 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12450 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12451 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12452 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12453 ac_header_preproc=yes
12456 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12457 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12458 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
12459 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
12460 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12461 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12462 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
12463 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12464 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12465 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12466 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12467 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12469 ## ---------------------------------------- ##
12470 ## Report this to pgsql-bugs@postgresql.org ##
12471 ## ---------------------------------------- ##
12473 ) | sed "s/^/$as_me: WARNING: /" >&2
12476 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12477 $as_echo_n "checking for zlib.h... " >&6; }
12478 if test "${ac_cv_header_zlib_h+set}" = set; then
12479 $as_echo_n "(cached) " >&6
12481 ac_cv_header_zlib_h=$ac_header_preproc
12483 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12484 $as_echo "$ac_cv_header_zlib_h" >&6; }
12487 if test "x$ac_cv_header_zlib_h" = x""yes; then
12490 { { $as_echo "$as_me:$LINENO: error: zlib header not found
12491 If you have zlib already installed, see config.log for details on the
12492 failure. It is possible the compiler isn't looking in the proper directory.
12493 Use --without-zlib to disable zlib support." >&5
12494 $as_echo "$as_me: error: zlib header not found
12495 If you have zlib already installed, see config.log for details on the
12496 failure. It is possible the compiler isn't looking in the proper directory.
12497 Use --without-zlib to disable zlib support." >&2;}
12498 { (exit 1); exit 1; }; }
12504 if test "$with_gssapi" = yes ; then
12506 for ac_header in gssapi/gssapi.h
12508 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12510 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12511 $as_echo_n "checking for $ac_header... " >&6; }
12512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12513 $as_echo_n "(cached) " >&6
12515 ac_res=`eval 'as_val=${'$as_ac_Header'}
12516 $as_echo "$as_val"'`
12517 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12518 $as_echo "$ac_res" >&6; }
12520 # Is the header compilable?
12521 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12522 $as_echo_n "checking $ac_header usability... " >&6; }
12523 cat >conftest.$ac_ext <<_ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12529 $ac_includes_default
12530 #include <$ac_header>
12532 rm -f conftest.$ac_objext
12533 if { (ac_try="$ac_compile"
12534 case "(($ac_try" in
12535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12536 *) ac_try_echo=$ac_try;;
12538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12539 $as_echo "$ac_try_echo") >&5
12540 (eval "$ac_compile") 2>conftest.er1
12542 grep -v '^ *+' conftest.er1 >conftest.err
12544 cat conftest.err >&5
12545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); } && {
12547 test -z "$ac_c_werror_flag" ||
12548 test ! -s conftest.err
12549 } && test -s conftest.$ac_objext; then
12550 ac_header_compiler=yes
12552 $as_echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12555 ac_header_compiler=no
12558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12559 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12560 $as_echo "$ac_header_compiler" >&6; }
12562 # Is the header present?
12563 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12564 $as_echo_n "checking $ac_header presence... " >&6; }
12565 cat >conftest.$ac_ext <<_ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h. */
12571 #include <$ac_header>
12573 if { (ac_try="$ac_cpp conftest.$ac_ext"
12574 case "(($ac_try" in
12575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12576 *) ac_try_echo=$ac_try;;
12578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12579 $as_echo "$ac_try_echo") >&5
12580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12582 grep -v '^ *+' conftest.er1 >conftest.err
12584 cat conftest.err >&5
12585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } >/dev/null && {
12587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12588 test ! -s conftest.err
12590 ac_header_preproc=yes
12592 $as_echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12595 ac_header_preproc=no
12598 rm -f conftest.err conftest.$ac_ext
12599 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12600 $as_echo "$ac_header_preproc" >&6; }
12602 # So? What about this header?
12603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12606 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12608 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12609 ac_header_preproc=yes
12612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12613 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12615 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12617 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12619 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12621 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12623 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12625 ## ---------------------------------------- ##
12626 ## Report this to pgsql-bugs@postgresql.org ##
12627 ## ---------------------------------------- ##
12629 ) | sed "s/^/$as_me: WARNING: /" >&2
12632 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12633 $as_echo_n "checking for $ac_header... " >&6; }
12634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12635 $as_echo_n "(cached) " >&6
12637 eval "$as_ac_Header=\$ac_header_preproc"
12639 ac_res=`eval 'as_val=${'$as_ac_Header'}
12640 $as_echo "$as_val"'`
12641 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12642 $as_echo "$ac_res" >&6; }
12645 as_val=`eval 'as_val=${'$as_ac_Header'}
12646 $as_echo "$as_val"'`
12647 if test "x$as_val" = x""yes; then
12648 cat >>confdefs.h <<_ACEOF
12649 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12654 for ac_header in gssapi.h
12656 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12658 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12659 $as_echo_n "checking for $ac_header... " >&6; }
12660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12661 $as_echo_n "(cached) " >&6
12663 ac_res=`eval 'as_val=${'$as_ac_Header'}
12664 $as_echo "$as_val"'`
12665 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12666 $as_echo "$ac_res" >&6; }
12668 # Is the header compilable?
12669 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12670 $as_echo_n "checking $ac_header usability... " >&6; }
12671 cat >conftest.$ac_ext <<_ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h. */
12677 $ac_includes_default
12678 #include <$ac_header>
12680 rm -f conftest.$ac_objext
12681 if { (ac_try="$ac_compile"
12682 case "(($ac_try" in
12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12687 $as_echo "$ac_try_echo") >&5
12688 (eval "$ac_compile") 2>conftest.er1
12690 grep -v '^ *+' conftest.er1 >conftest.err
12692 cat conftest.err >&5
12693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); } && {
12695 test -z "$ac_c_werror_flag" ||
12696 test ! -s conftest.err
12697 } && test -s conftest.$ac_objext; then
12698 ac_header_compiler=yes
12700 $as_echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12703 ac_header_compiler=no
12706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12707 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12708 $as_echo "$ac_header_compiler" >&6; }
12710 # Is the header present?
12711 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12712 $as_echo_n "checking $ac_header presence... " >&6; }
12713 cat >conftest.$ac_ext <<_ACEOF
12716 cat confdefs.h >>conftest.$ac_ext
12717 cat >>conftest.$ac_ext <<_ACEOF
12718 /* end confdefs.h. */
12719 #include <$ac_header>
12721 if { (ac_try="$ac_cpp conftest.$ac_ext"
12722 case "(($ac_try" in
12723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12724 *) ac_try_echo=$ac_try;;
12726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12727 $as_echo "$ac_try_echo") >&5
12728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12730 grep -v '^ *+' conftest.er1 >conftest.err
12732 cat conftest.err >&5
12733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); } >/dev/null && {
12735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12736 test ! -s conftest.err
12738 ac_header_preproc=yes
12740 $as_echo "$as_me: failed program was:" >&5
12741 sed 's/^/| /' conftest.$ac_ext >&5
12743 ac_header_preproc=no
12746 rm -f conftest.err conftest.$ac_ext
12747 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12748 $as_echo "$ac_header_preproc" >&6; }
12750 # So? What about this header?
12751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12754 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12756 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12757 ac_header_preproc=yes
12760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12761 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12763 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12765 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12767 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12769 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12771 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12773 ## ---------------------------------------- ##
12774 ## Report this to pgsql-bugs@postgresql.org ##
12775 ## ---------------------------------------- ##
12777 ) | sed "s/^/$as_me: WARNING: /" >&2
12780 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12781 $as_echo_n "checking for $ac_header... " >&6; }
12782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12783 $as_echo_n "(cached) " >&6
12785 eval "$as_ac_Header=\$ac_header_preproc"
12787 ac_res=`eval 'as_val=${'$as_ac_Header'}
12788 $as_echo "$as_val"'`
12789 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12790 $as_echo "$ac_res" >&6; }
12793 as_val=`eval 'as_val=${'$as_ac_Header'}
12794 $as_echo "$as_val"'`
12795 if test "x$as_val" = x""yes; then
12796 cat >>confdefs.h <<_ACEOF
12797 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12801 { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12802 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12803 { (exit 1); exit 1; }; }
12814 if test "$with_krb5" = yes ; then
12815 if test "${ac_cv_header_krb5_h+set}" = set; then
12816 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12817 $as_echo_n "checking for krb5.h... " >&6; }
12818 if test "${ac_cv_header_krb5_h+set}" = set; then
12819 $as_echo_n "(cached) " >&6
12821 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12822 $as_echo "$ac_cv_header_krb5_h" >&6; }
12824 # Is the header compilable?
12825 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12826 $as_echo_n "checking krb5.h usability... " >&6; }
12827 cat >conftest.$ac_ext <<_ACEOF
12830 cat confdefs.h >>conftest.$ac_ext
12831 cat >>conftest.$ac_ext <<_ACEOF
12832 /* end confdefs.h. */
12833 $ac_includes_default
12836 rm -f conftest.$ac_objext
12837 if { (ac_try="$ac_compile"
12838 case "(($ac_try" in
12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12843 $as_echo "$ac_try_echo") >&5
12844 (eval "$ac_compile") 2>conftest.er1
12846 grep -v '^ *+' conftest.er1 >conftest.err
12848 cat conftest.err >&5
12849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } && {
12851 test -z "$ac_c_werror_flag" ||
12852 test ! -s conftest.err
12853 } && test -s conftest.$ac_objext; then
12854 ac_header_compiler=yes
12856 $as_echo "$as_me: failed program was:" >&5
12857 sed 's/^/| /' conftest.$ac_ext >&5
12859 ac_header_compiler=no
12862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12863 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12864 $as_echo "$ac_header_compiler" >&6; }
12866 # Is the header present?
12867 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12868 $as_echo_n "checking krb5.h presence... " >&6; }
12869 cat >conftest.$ac_ext <<_ACEOF
12872 cat confdefs.h >>conftest.$ac_ext
12873 cat >>conftest.$ac_ext <<_ACEOF
12874 /* end confdefs.h. */
12877 if { (ac_try="$ac_cpp conftest.$ac_ext"
12878 case "(($ac_try" in
12879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12880 *) ac_try_echo=$ac_try;;
12882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12883 $as_echo "$ac_try_echo") >&5
12884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12886 grep -v '^ *+' conftest.er1 >conftest.err
12888 cat conftest.err >&5
12889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); } >/dev/null && {
12891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12892 test ! -s conftest.err
12894 ac_header_preproc=yes
12896 $as_echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12899 ac_header_preproc=no
12902 rm -f conftest.err conftest.$ac_ext
12903 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12904 $as_echo "$ac_header_preproc" >&6; }
12906 # So? What about this header?
12907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12909 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12910 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12911 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12912 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12913 ac_header_preproc=yes
12916 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12917 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12918 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
12919 $as_echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
12920 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12921 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12922 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
12923 $as_echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
12924 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12925 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12926 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12927 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12929 ## ---------------------------------------- ##
12930 ## Report this to pgsql-bugs@postgresql.org ##
12931 ## ---------------------------------------- ##
12933 ) | sed "s/^/$as_me: WARNING: /" >&2
12936 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12937 $as_echo_n "checking for krb5.h... " >&6; }
12938 if test "${ac_cv_header_krb5_h+set}" = set; then
12939 $as_echo_n "(cached) " >&6
12941 ac_cv_header_krb5_h=$ac_header_preproc
12943 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12944 $as_echo "$ac_cv_header_krb5_h" >&6; }
12947 if test "x$ac_cv_header_krb5_h" = x""yes; then
12950 { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12951 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12952 { (exit 1); exit 1; }; }
12958 if test "$with_openssl" = yes ; then
12959 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12960 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12961 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12962 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12963 $as_echo_n "(cached) " >&6
12965 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12966 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12968 # Is the header compilable?
12969 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12970 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12971 cat >conftest.$ac_ext <<_ACEOF
12974 cat confdefs.h >>conftest.$ac_ext
12975 cat >>conftest.$ac_ext <<_ACEOF
12976 /* end confdefs.h. */
12977 $ac_includes_default
12978 #include <openssl/ssl.h>
12980 rm -f conftest.$ac_objext
12981 if { (ac_try="$ac_compile"
12982 case "(($ac_try" in
12983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984 *) ac_try_echo=$ac_try;;
12986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12987 $as_echo "$ac_try_echo") >&5
12988 (eval "$ac_compile") 2>conftest.er1
12990 grep -v '^ *+' conftest.er1 >conftest.err
12992 cat conftest.err >&5
12993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); } && {
12995 test -z "$ac_c_werror_flag" ||
12996 test ! -s conftest.err
12997 } && test -s conftest.$ac_objext; then
12998 ac_header_compiler=yes
13000 $as_echo "$as_me: failed program was:" >&5
13001 sed 's/^/| /' conftest.$ac_ext >&5
13003 ac_header_compiler=no
13006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13007 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13008 $as_echo "$ac_header_compiler" >&6; }
13010 # Is the header present?
13011 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
13012 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
13013 cat >conftest.$ac_ext <<_ACEOF
13016 cat confdefs.h >>conftest.$ac_ext
13017 cat >>conftest.$ac_ext <<_ACEOF
13018 /* end confdefs.h. */
13019 #include <openssl/ssl.h>
13021 if { (ac_try="$ac_cpp conftest.$ac_ext"
13022 case "(($ac_try" in
13023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13024 *) ac_try_echo=$ac_try;;
13026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13027 $as_echo "$ac_try_echo") >&5
13028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13030 grep -v '^ *+' conftest.er1 >conftest.err
13032 cat conftest.err >&5
13033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); } >/dev/null && {
13035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13036 test ! -s conftest.err
13038 ac_header_preproc=yes
13040 $as_echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.$ac_ext >&5
13043 ac_header_preproc=no
13046 rm -f conftest.err conftest.$ac_ext
13047 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13048 $as_echo "$ac_header_preproc" >&6; }
13050 # So? What about this header?
13051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13053 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
13054 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13055 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
13056 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
13057 ac_header_preproc=yes
13060 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
13061 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
13062 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
13063 $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
13064 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
13065 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
13066 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
13067 $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
13068 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
13069 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
13070 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
13071 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
13073 ## ---------------------------------------- ##
13074 ## Report this to pgsql-bugs@postgresql.org ##
13075 ## ---------------------------------------- ##
13077 ) | sed "s/^/$as_me: WARNING: /" >&2
13080 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
13081 $as_echo_n "checking for openssl/ssl.h... " >&6; }
13082 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
13083 $as_echo_n "(cached) " >&6
13085 ac_cv_header_openssl_ssl_h=$ac_header_preproc
13087 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
13088 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
13091 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
13094 { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
13095 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
13096 { (exit 1); exit 1; }; }
13100 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13101 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
13102 $as_echo_n "checking for openssl/err.h... " >&6; }
13103 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13104 $as_echo_n "(cached) " >&6
13106 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
13107 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
13109 # Is the header compilable?
13110 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
13111 $as_echo_n "checking openssl/err.h usability... " >&6; }
13112 cat >conftest.$ac_ext <<_ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13118 $ac_includes_default
13119 #include <openssl/err.h>
13121 rm -f conftest.$ac_objext
13122 if { (ac_try="$ac_compile"
13123 case "(($ac_try" in
13124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13125 *) ac_try_echo=$ac_try;;
13127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13128 $as_echo "$ac_try_echo") >&5
13129 (eval "$ac_compile") 2>conftest.er1
13131 grep -v '^ *+' conftest.er1 >conftest.err
13133 cat conftest.err >&5
13134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } && {
13136 test -z "$ac_c_werror_flag" ||
13137 test ! -s conftest.err
13138 } && test -s conftest.$ac_objext; then
13139 ac_header_compiler=yes
13141 $as_echo "$as_me: failed program was:" >&5
13142 sed 's/^/| /' conftest.$ac_ext >&5
13144 ac_header_compiler=no
13147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13148 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13149 $as_echo "$ac_header_compiler" >&6; }
13151 # Is the header present?
13152 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
13153 $as_echo_n "checking openssl/err.h presence... " >&6; }
13154 cat >conftest.$ac_ext <<_ACEOF
13157 cat confdefs.h >>conftest.$ac_ext
13158 cat >>conftest.$ac_ext <<_ACEOF
13159 /* end confdefs.h. */
13160 #include <openssl/err.h>
13162 if { (ac_try="$ac_cpp conftest.$ac_ext"
13163 case "(($ac_try" in
13164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13165 *) ac_try_echo=$ac_try;;
13167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13168 $as_echo "$ac_try_echo") >&5
13169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13171 grep -v '^ *+' conftest.er1 >conftest.err
13173 cat conftest.err >&5
13174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); } >/dev/null && {
13176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13177 test ! -s conftest.err
13179 ac_header_preproc=yes
13181 $as_echo "$as_me: failed program was:" >&5
13182 sed 's/^/| /' conftest.$ac_ext >&5
13184 ac_header_preproc=no
13187 rm -f conftest.err conftest.$ac_ext
13188 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13189 $as_echo "$ac_header_preproc" >&6; }
13191 # So? What about this header?
13192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13194 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
13195 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13196 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
13197 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
13198 ac_header_preproc=yes
13201 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
13202 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
13203 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
13204 $as_echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
13205 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
13206 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
13207 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
13208 $as_echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
13209 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
13210 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
13211 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
13212 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
13214 ## ---------------------------------------- ##
13215 ## Report this to pgsql-bugs@postgresql.org ##
13216 ## ---------------------------------------- ##
13218 ) | sed "s/^/$as_me: WARNING: /" >&2
13221 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
13222 $as_echo_n "checking for openssl/err.h... " >&6; }
13223 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13224 $as_echo_n "(cached) " >&6
13226 ac_cv_header_openssl_err_h=$ac_header_preproc
13228 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
13229 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
13232 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
13235 { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
13236 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
13237 { (exit 1); exit 1; }; }
13243 if test "$with_pam" = yes ; then
13245 for ac_header in security/pam_appl.h
13247 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13249 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13250 $as_echo_n "checking for $ac_header... " >&6; }
13251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13252 $as_echo_n "(cached) " >&6
13254 ac_res=`eval 'as_val=${'$as_ac_Header'}
13255 $as_echo "$as_val"'`
13256 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13257 $as_echo "$ac_res" >&6; }
13259 # Is the header compilable?
13260 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13261 $as_echo_n "checking $ac_header usability... " >&6; }
13262 cat >conftest.$ac_ext <<_ACEOF
13265 cat confdefs.h >>conftest.$ac_ext
13266 cat >>conftest.$ac_ext <<_ACEOF
13267 /* end confdefs.h. */
13268 $ac_includes_default
13269 #include <$ac_header>
13271 rm -f conftest.$ac_objext
13272 if { (ac_try="$ac_compile"
13273 case "(($ac_try" in
13274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13275 *) ac_try_echo=$ac_try;;
13277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13278 $as_echo "$ac_try_echo") >&5
13279 (eval "$ac_compile") 2>conftest.er1
13281 grep -v '^ *+' conftest.er1 >conftest.err
13283 cat conftest.err >&5
13284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); } && {
13286 test -z "$ac_c_werror_flag" ||
13287 test ! -s conftest.err
13288 } && test -s conftest.$ac_objext; then
13289 ac_header_compiler=yes
13291 $as_echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.$ac_ext >&5
13294 ac_header_compiler=no
13297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13298 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13299 $as_echo "$ac_header_compiler" >&6; }
13301 # Is the header present?
13302 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13303 $as_echo_n "checking $ac_header presence... " >&6; }
13304 cat >conftest.$ac_ext <<_ACEOF
13307 cat confdefs.h >>conftest.$ac_ext
13308 cat >>conftest.$ac_ext <<_ACEOF
13309 /* end confdefs.h. */
13310 #include <$ac_header>
13312 if { (ac_try="$ac_cpp conftest.$ac_ext"
13313 case "(($ac_try" in
13314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13315 *) ac_try_echo=$ac_try;;
13317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13318 $as_echo "$ac_try_echo") >&5
13319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13321 grep -v '^ *+' conftest.er1 >conftest.err
13323 cat conftest.err >&5
13324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } >/dev/null && {
13326 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13327 test ! -s conftest.err
13329 ac_header_preproc=yes
13331 $as_echo "$as_me: failed program was:" >&5
13332 sed 's/^/| /' conftest.$ac_ext >&5
13334 ac_header_preproc=no
13337 rm -f conftest.err conftest.$ac_ext
13338 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13339 $as_echo "$ac_header_preproc" >&6; }
13341 # So? What about this header?
13342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13345 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13346 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13347 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13348 ac_header_preproc=yes
13351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13352 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13354 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13356 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13358 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13360 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13362 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13364 ## ---------------------------------------- ##
13365 ## Report this to pgsql-bugs@postgresql.org ##
13366 ## ---------------------------------------- ##
13368 ) | sed "s/^/$as_me: WARNING: /" >&2
13371 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13372 $as_echo_n "checking for $ac_header... " >&6; }
13373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13374 $as_echo_n "(cached) " >&6
13376 eval "$as_ac_Header=\$ac_header_preproc"
13378 ac_res=`eval 'as_val=${'$as_ac_Header'}
13379 $as_echo "$as_val"'`
13380 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13381 $as_echo "$ac_res" >&6; }
13384 as_val=`eval 'as_val=${'$as_ac_Header'}
13385 $as_echo "$as_val"'`
13386 if test "x$as_val" = x""yes; then
13387 cat >>confdefs.h <<_ACEOF
13388 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13393 for ac_header in pam/pam_appl.h
13395 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13397 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13398 $as_echo_n "checking for $ac_header... " >&6; }
13399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13400 $as_echo_n "(cached) " >&6
13402 ac_res=`eval 'as_val=${'$as_ac_Header'}
13403 $as_echo "$as_val"'`
13404 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13405 $as_echo "$ac_res" >&6; }
13407 # Is the header compilable?
13408 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13409 $as_echo_n "checking $ac_header usability... " >&6; }
13410 cat >conftest.$ac_ext <<_ACEOF
13413 cat confdefs.h >>conftest.$ac_ext
13414 cat >>conftest.$ac_ext <<_ACEOF
13415 /* end confdefs.h. */
13416 $ac_includes_default
13417 #include <$ac_header>
13419 rm -f conftest.$ac_objext
13420 if { (ac_try="$ac_compile"
13421 case "(($ac_try" in
13422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423 *) ac_try_echo=$ac_try;;
13425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13426 $as_echo "$ac_try_echo") >&5
13427 (eval "$ac_compile") 2>conftest.er1
13429 grep -v '^ *+' conftest.er1 >conftest.err
13431 cat conftest.err >&5
13432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); } && {
13434 test -z "$ac_c_werror_flag" ||
13435 test ! -s conftest.err
13436 } && test -s conftest.$ac_objext; then
13437 ac_header_compiler=yes
13439 $as_echo "$as_me: failed program was:" >&5
13440 sed 's/^/| /' conftest.$ac_ext >&5
13442 ac_header_compiler=no
13445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13446 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13447 $as_echo "$ac_header_compiler" >&6; }
13449 # Is the header present?
13450 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13451 $as_echo_n "checking $ac_header presence... " >&6; }
13452 cat >conftest.$ac_ext <<_ACEOF
13455 cat confdefs.h >>conftest.$ac_ext
13456 cat >>conftest.$ac_ext <<_ACEOF
13457 /* end confdefs.h. */
13458 #include <$ac_header>
13460 if { (ac_try="$ac_cpp conftest.$ac_ext"
13461 case "(($ac_try" in
13462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13463 *) ac_try_echo=$ac_try;;
13465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13466 $as_echo "$ac_try_echo") >&5
13467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13469 grep -v '^ *+' conftest.er1 >conftest.err
13471 cat conftest.err >&5
13472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); } >/dev/null && {
13474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13475 test ! -s conftest.err
13477 ac_header_preproc=yes
13479 $as_echo "$as_me: failed program was:" >&5
13480 sed 's/^/| /' conftest.$ac_ext >&5
13482 ac_header_preproc=no
13485 rm -f conftest.err conftest.$ac_ext
13486 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13487 $as_echo "$ac_header_preproc" >&6; }
13489 # So? What about this header?
13490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13493 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13495 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13496 ac_header_preproc=yes
13499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13500 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13501 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13502 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13504 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13505 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13506 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13507 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13508 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13509 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13510 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13512 ## ---------------------------------------- ##
13513 ## Report this to pgsql-bugs@postgresql.org ##
13514 ## ---------------------------------------- ##
13516 ) | sed "s/^/$as_me: WARNING: /" >&2
13519 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13520 $as_echo_n "checking for $ac_header... " >&6; }
13521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13522 $as_echo_n "(cached) " >&6
13524 eval "$as_ac_Header=\$ac_header_preproc"
13526 ac_res=`eval 'as_val=${'$as_ac_Header'}
13527 $as_echo "$as_val"'`
13528 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13529 $as_echo "$ac_res" >&6; }
13532 as_val=`eval 'as_val=${'$as_ac_Header'}
13533 $as_echo "$as_val"'`
13534 if test "x$as_val" = x""yes; then
13535 cat >>confdefs.h <<_ACEOF
13536 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13540 { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13541 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13542 { (exit 1); exit 1; }; }
13553 if test "$with_libxml" = yes ; then
13554 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13555 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13556 $as_echo_n "checking for libxml/parser.h... " >&6; }
13557 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13558 $as_echo_n "(cached) " >&6
13560 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13561 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13563 # Is the header compilable?
13564 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13565 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13566 cat >conftest.$ac_ext <<_ACEOF
13569 cat confdefs.h >>conftest.$ac_ext
13570 cat >>conftest.$ac_ext <<_ACEOF
13571 /* end confdefs.h. */
13572 $ac_includes_default
13573 #include <libxml/parser.h>
13575 rm -f conftest.$ac_objext
13576 if { (ac_try="$ac_compile"
13577 case "(($ac_try" in
13578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13579 *) ac_try_echo=$ac_try;;
13581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13582 $as_echo "$ac_try_echo") >&5
13583 (eval "$ac_compile") 2>conftest.er1
13585 grep -v '^ *+' conftest.er1 >conftest.err
13587 cat conftest.err >&5
13588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } && {
13590 test -z "$ac_c_werror_flag" ||
13591 test ! -s conftest.err
13592 } && test -s conftest.$ac_objext; then
13593 ac_header_compiler=yes
13595 $as_echo "$as_me: failed program was:" >&5
13596 sed 's/^/| /' conftest.$ac_ext >&5
13598 ac_header_compiler=no
13601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13602 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13603 $as_echo "$ac_header_compiler" >&6; }
13605 # Is the header present?
13606 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13607 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13608 cat >conftest.$ac_ext <<_ACEOF
13611 cat confdefs.h >>conftest.$ac_ext
13612 cat >>conftest.$ac_ext <<_ACEOF
13613 /* end confdefs.h. */
13614 #include <libxml/parser.h>
13616 if { (ac_try="$ac_cpp conftest.$ac_ext"
13617 case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13622 $as_echo "$ac_try_echo") >&5
13623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13625 grep -v '^ *+' conftest.er1 >conftest.err
13627 cat conftest.err >&5
13628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); } >/dev/null && {
13630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13631 test ! -s conftest.err
13633 ac_header_preproc=yes
13635 $as_echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13638 ac_header_preproc=no
13641 rm -f conftest.err conftest.$ac_ext
13642 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13643 $as_echo "$ac_header_preproc" >&6; }
13645 # So? What about this header?
13646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13648 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13649 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13650 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13651 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13652 ac_header_preproc=yes
13655 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13656 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13657 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
13658 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
13659 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13660 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13661 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
13662 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
13663 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13664 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13665 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13666 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13668 ## ---------------------------------------- ##
13669 ## Report this to pgsql-bugs@postgresql.org ##
13670 ## ---------------------------------------- ##
13672 ) | sed "s/^/$as_me: WARNING: /" >&2
13675 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13676 $as_echo_n "checking for libxml/parser.h... " >&6; }
13677 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13678 $as_echo_n "(cached) " >&6
13680 ac_cv_header_libxml_parser_h=$ac_header_preproc
13682 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13683 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13686 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13689 { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13690 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13691 { (exit 1); exit 1; }; }
13697 if test "$with_libxslt" = yes ; then
13698 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13699 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13700 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13701 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13702 $as_echo_n "(cached) " >&6
13704 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13705 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13707 # Is the header compilable?
13708 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13709 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13710 cat >conftest.$ac_ext <<_ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h. */
13716 $ac_includes_default
13717 #include <libxslt/xslt.h>
13719 rm -f conftest.$ac_objext
13720 if { (ac_try="$ac_compile"
13721 case "(($ac_try" in
13722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723 *) ac_try_echo=$ac_try;;
13725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13726 $as_echo "$ac_try_echo") >&5
13727 (eval "$ac_compile") 2>conftest.er1
13729 grep -v '^ *+' conftest.er1 >conftest.err
13731 cat conftest.err >&5
13732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); } && {
13734 test -z "$ac_c_werror_flag" ||
13735 test ! -s conftest.err
13736 } && test -s conftest.$ac_objext; then
13737 ac_header_compiler=yes
13739 $as_echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13742 ac_header_compiler=no
13745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13746 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13747 $as_echo "$ac_header_compiler" >&6; }
13749 # Is the header present?
13750 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13751 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13752 cat >conftest.$ac_ext <<_ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13758 #include <libxslt/xslt.h>
13760 if { (ac_try="$ac_cpp conftest.$ac_ext"
13761 case "(($ac_try" in
13762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13766 $as_echo "$ac_try_echo") >&5
13767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13769 grep -v '^ *+' conftest.er1 >conftest.err
13771 cat conftest.err >&5
13772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); } >/dev/null && {
13774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13775 test ! -s conftest.err
13777 ac_header_preproc=yes
13779 $as_echo "$as_me: failed program was:" >&5
13780 sed 's/^/| /' conftest.$ac_ext >&5
13782 ac_header_preproc=no
13785 rm -f conftest.err conftest.$ac_ext
13786 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13787 $as_echo "$ac_header_preproc" >&6; }
13789 # So? What about this header?
13790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13792 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13793 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13794 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13795 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13796 ac_header_preproc=yes
13799 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13800 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13801 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
13802 $as_echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
13803 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13804 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13805 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
13806 $as_echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
13807 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13808 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13809 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13810 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13812 ## ---------------------------------------- ##
13813 ## Report this to pgsql-bugs@postgresql.org ##
13814 ## ---------------------------------------- ##
13816 ) | sed "s/^/$as_me: WARNING: /" >&2
13819 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13820 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13821 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13822 $as_echo_n "(cached) " >&6
13824 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13826 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13827 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13830 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13833 { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13834 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13835 { (exit 1); exit 1; }; }
13841 if test "$with_ldap" = yes ; then
13842 if test "$PORTNAME" != "win32"; then
13844 for ac_header in ldap.h
13846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13848 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13849 $as_echo_n "checking for $ac_header... " >&6; }
13850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13851 $as_echo_n "(cached) " >&6
13853 ac_res=`eval 'as_val=${'$as_ac_Header'}
13854 $as_echo "$as_val"'`
13855 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13856 $as_echo "$ac_res" >&6; }
13858 # Is the header compilable?
13859 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13860 $as_echo_n "checking $ac_header usability... " >&6; }
13861 cat >conftest.$ac_ext <<_ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h. */
13867 $ac_includes_default
13868 #include <$ac_header>
13870 rm -f conftest.$ac_objext
13871 if { (ac_try="$ac_compile"
13872 case "(($ac_try" in
13873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13874 *) ac_try_echo=$ac_try;;
13876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13877 $as_echo "$ac_try_echo") >&5
13878 (eval "$ac_compile") 2>conftest.er1
13880 grep -v '^ *+' conftest.er1 >conftest.err
13882 cat conftest.err >&5
13883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); } && {
13885 test -z "$ac_c_werror_flag" ||
13886 test ! -s conftest.err
13887 } && test -s conftest.$ac_objext; then
13888 ac_header_compiler=yes
13890 $as_echo "$as_me: failed program was:" >&5
13891 sed 's/^/| /' conftest.$ac_ext >&5
13893 ac_header_compiler=no
13896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13897 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13898 $as_echo "$ac_header_compiler" >&6; }
13900 # Is the header present?
13901 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13902 $as_echo_n "checking $ac_header presence... " >&6; }
13903 cat >conftest.$ac_ext <<_ACEOF
13906 cat confdefs.h >>conftest.$ac_ext
13907 cat >>conftest.$ac_ext <<_ACEOF
13908 /* end confdefs.h. */
13909 #include <$ac_header>
13911 if { (ac_try="$ac_cpp conftest.$ac_ext"
13912 case "(($ac_try" in
13913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13914 *) ac_try_echo=$ac_try;;
13916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13917 $as_echo "$ac_try_echo") >&5
13918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13920 grep -v '^ *+' conftest.er1 >conftest.err
13922 cat conftest.err >&5
13923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); } >/dev/null && {
13925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13926 test ! -s conftest.err
13928 ac_header_preproc=yes
13930 $as_echo "$as_me: failed program was:" >&5
13931 sed 's/^/| /' conftest.$ac_ext >&5
13933 ac_header_preproc=no
13936 rm -f conftest.err conftest.$ac_ext
13937 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13938 $as_echo "$ac_header_preproc" >&6; }
13940 # So? What about this header?
13941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13944 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13946 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13947 ac_header_preproc=yes
13950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13951 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13952 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13953 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13954 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13955 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13956 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13957 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13958 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13959 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13960 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13961 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13963 ## ---------------------------------------- ##
13964 ## Report this to pgsql-bugs@postgresql.org ##
13965 ## ---------------------------------------- ##
13967 ) | sed "s/^/$as_me: WARNING: /" >&2
13970 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13971 $as_echo_n "checking for $ac_header... " >&6; }
13972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13973 $as_echo_n "(cached) " >&6
13975 eval "$as_ac_Header=\$ac_header_preproc"
13977 ac_res=`eval 'as_val=${'$as_ac_Header'}
13978 $as_echo "$as_val"'`
13979 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13980 $as_echo "$ac_res" >&6; }
13983 as_val=`eval 'as_val=${'$as_ac_Header'}
13984 $as_echo "$as_val"'`
13985 if test "x$as_val" = x""yes; then
13986 cat >>confdefs.h <<_ACEOF
13987 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13991 { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13992 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13993 { (exit 1); exit 1; }; }
14000 for ac_header in winldap.h
14002 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14003 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14004 $as_echo_n "checking for $ac_header... " >&6; }
14005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14006 $as_echo_n "(cached) " >&6
14008 cat >conftest.$ac_ext <<_ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h. */
14014 $ac_includes_default
14015 #include <windows.h>
14018 #include <$ac_header>
14020 rm -f conftest.$ac_objext
14021 if { (ac_try="$ac_compile"
14022 case "(($ac_try" in
14023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14024 *) ac_try_echo=$ac_try;;
14026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14027 $as_echo "$ac_try_echo") >&5
14028 (eval "$ac_compile") 2>conftest.er1
14030 grep -v '^ *+' conftest.er1 >conftest.err
14032 cat conftest.err >&5
14033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); } && {
14035 test -z "$ac_c_werror_flag" ||
14036 test ! -s conftest.err
14037 } && test -s conftest.$ac_objext; then
14038 eval "$as_ac_Header=yes"
14040 $as_echo "$as_me: failed program was:" >&5
14041 sed 's/^/| /' conftest.$ac_ext >&5
14043 eval "$as_ac_Header=no"
14046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14048 ac_res=`eval 'as_val=${'$as_ac_Header'}
14049 $as_echo "$as_val"'`
14050 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14051 $as_echo "$ac_res" >&6; }
14052 as_val=`eval 'as_val=${'$as_ac_Header'}
14053 $as_echo "$as_val"'`
14054 if test "x$as_val" = x""yes; then
14055 cat >>confdefs.h <<_ACEOF
14056 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14060 { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
14061 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
14062 { (exit 1); exit 1; }; }
14070 if test "$with_bonjour" = yes ; then
14071 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14072 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
14073 $as_echo_n "checking for dns_sd.h... " >&6; }
14074 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14075 $as_echo_n "(cached) " >&6
14077 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14078 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14080 # Is the header compilable?
14081 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
14082 $as_echo_n "checking dns_sd.h usability... " >&6; }
14083 cat >conftest.$ac_ext <<_ACEOF
14086 cat confdefs.h >>conftest.$ac_ext
14087 cat >>conftest.$ac_ext <<_ACEOF
14088 /* end confdefs.h. */
14089 $ac_includes_default
14090 #include <dns_sd.h>
14092 rm -f conftest.$ac_objext
14093 if { (ac_try="$ac_compile"
14094 case "(($ac_try" in
14095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096 *) ac_try_echo=$ac_try;;
14098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14099 $as_echo "$ac_try_echo") >&5
14100 (eval "$ac_compile") 2>conftest.er1
14102 grep -v '^ *+' conftest.er1 >conftest.err
14104 cat conftest.err >&5
14105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); } && {
14107 test -z "$ac_c_werror_flag" ||
14108 test ! -s conftest.err
14109 } && test -s conftest.$ac_objext; then
14110 ac_header_compiler=yes
14112 $as_echo "$as_me: failed program was:" >&5
14113 sed 's/^/| /' conftest.$ac_ext >&5
14115 ac_header_compiler=no
14118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14119 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14120 $as_echo "$ac_header_compiler" >&6; }
14122 # Is the header present?
14123 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
14124 $as_echo_n "checking dns_sd.h presence... " >&6; }
14125 cat >conftest.$ac_ext <<_ACEOF
14128 cat confdefs.h >>conftest.$ac_ext
14129 cat >>conftest.$ac_ext <<_ACEOF
14130 /* end confdefs.h. */
14131 #include <dns_sd.h>
14133 if { (ac_try="$ac_cpp conftest.$ac_ext"
14134 case "(($ac_try" in
14135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136 *) ac_try_echo=$ac_try;;
14138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14139 $as_echo "$ac_try_echo") >&5
14140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14142 grep -v '^ *+' conftest.er1 >conftest.err
14144 cat conftest.err >&5
14145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } >/dev/null && {
14147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14148 test ! -s conftest.err
14150 ac_header_preproc=yes
14152 $as_echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.$ac_ext >&5
14155 ac_header_preproc=no
14158 rm -f conftest.err conftest.$ac_ext
14159 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14160 $as_echo "$ac_header_preproc" >&6; }
14162 # So? What about this header?
14163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14165 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
14166 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14167 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
14168 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
14169 ac_header_preproc=yes
14172 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
14173 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
14174 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: check for missing prerequisite headers?" >&5
14175 $as_echo "$as_me: WARNING: dns_sd.h: check for missing prerequisite headers?" >&2;}
14176 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
14177 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
14178 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&5
14179 $as_echo "$as_me: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&2;}
14180 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
14181 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
14182 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
14183 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
14185 ## ---------------------------------------- ##
14186 ## Report this to pgsql-bugs@postgresql.org ##
14187 ## ---------------------------------------- ##
14189 ) | sed "s/^/$as_me: WARNING: /" >&2
14192 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
14193 $as_echo_n "checking for dns_sd.h... " >&6; }
14194 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14195 $as_echo_n "(cached) " >&6
14197 ac_cv_header_dns_sd_h=$ac_header_preproc
14199 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14200 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14203 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
14206 { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
14207 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
14208 { (exit 1); exit 1; }; }
14214 # for contrib/uuid-ossp
14215 if test "$with_ossp_uuid" = yes ; then
14217 for ac_header in ossp/uuid.h
14219 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14221 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14222 $as_echo_n "checking for $ac_header... " >&6; }
14223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14224 $as_echo_n "(cached) " >&6
14226 ac_res=`eval 'as_val=${'$as_ac_Header'}
14227 $as_echo "$as_val"'`
14228 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14229 $as_echo "$ac_res" >&6; }
14231 # Is the header compilable?
14232 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14233 $as_echo_n "checking $ac_header usability... " >&6; }
14234 cat >conftest.$ac_ext <<_ACEOF
14237 cat confdefs.h >>conftest.$ac_ext
14238 cat >>conftest.$ac_ext <<_ACEOF
14239 /* end confdefs.h. */
14240 $ac_includes_default
14241 #include <$ac_header>
14243 rm -f conftest.$ac_objext
14244 if { (ac_try="$ac_compile"
14245 case "(($ac_try" in
14246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14247 *) ac_try_echo=$ac_try;;
14249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14250 $as_echo "$ac_try_echo") >&5
14251 (eval "$ac_compile") 2>conftest.er1
14253 grep -v '^ *+' conftest.er1 >conftest.err
14255 cat conftest.err >&5
14256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } && {
14258 test -z "$ac_c_werror_flag" ||
14259 test ! -s conftest.err
14260 } && test -s conftest.$ac_objext; then
14261 ac_header_compiler=yes
14263 $as_echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14266 ac_header_compiler=no
14269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14270 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14271 $as_echo "$ac_header_compiler" >&6; }
14273 # Is the header present?
14274 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14275 $as_echo_n "checking $ac_header presence... " >&6; }
14276 cat >conftest.$ac_ext <<_ACEOF
14279 cat confdefs.h >>conftest.$ac_ext
14280 cat >>conftest.$ac_ext <<_ACEOF
14281 /* end confdefs.h. */
14282 #include <$ac_header>
14284 if { (ac_try="$ac_cpp conftest.$ac_ext"
14285 case "(($ac_try" in
14286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14287 *) ac_try_echo=$ac_try;;
14289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14290 $as_echo "$ac_try_echo") >&5
14291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14293 grep -v '^ *+' conftest.er1 >conftest.err
14295 cat conftest.err >&5
14296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); } >/dev/null && {
14298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14299 test ! -s conftest.err
14301 ac_header_preproc=yes
14303 $as_echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.$ac_ext >&5
14306 ac_header_preproc=no
14309 rm -f conftest.err conftest.$ac_ext
14310 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14311 $as_echo "$ac_header_preproc" >&6; }
14313 # So? What about this header?
14314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14317 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14319 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14320 ac_header_preproc=yes
14323 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14324 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14325 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14326 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14328 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14330 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14332 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14334 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14336 ## ---------------------------------------- ##
14337 ## Report this to pgsql-bugs@postgresql.org ##
14338 ## ---------------------------------------- ##
14340 ) | sed "s/^/$as_me: WARNING: /" >&2
14343 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14344 $as_echo_n "checking for $ac_header... " >&6; }
14345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14346 $as_echo_n "(cached) " >&6
14348 eval "$as_ac_Header=\$ac_header_preproc"
14350 ac_res=`eval 'as_val=${'$as_ac_Header'}
14351 $as_echo "$as_val"'`
14352 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14353 $as_echo "$ac_res" >&6; }
14356 as_val=`eval 'as_val=${'$as_ac_Header'}
14357 $as_echo "$as_val"'`
14358 if test "x$as_val" = x""yes; then
14359 cat >>confdefs.h <<_ACEOF
14360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14366 for ac_header in uuid.h
14368 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14370 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14371 $as_echo_n "checking for $ac_header... " >&6; }
14372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14373 $as_echo_n "(cached) " >&6
14375 ac_res=`eval 'as_val=${'$as_ac_Header'}
14376 $as_echo "$as_val"'`
14377 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14378 $as_echo "$ac_res" >&6; }
14380 # Is the header compilable?
14381 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14382 $as_echo_n "checking $ac_header usability... " >&6; }
14383 cat >conftest.$ac_ext <<_ACEOF
14386 cat confdefs.h >>conftest.$ac_ext
14387 cat >>conftest.$ac_ext <<_ACEOF
14388 /* end confdefs.h. */
14389 $ac_includes_default
14390 #include <$ac_header>
14392 rm -f conftest.$ac_objext
14393 if { (ac_try="$ac_compile"
14394 case "(($ac_try" in
14395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396 *) ac_try_echo=$ac_try;;
14398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14399 $as_echo "$ac_try_echo") >&5
14400 (eval "$ac_compile") 2>conftest.er1
14402 grep -v '^ *+' conftest.er1 >conftest.err
14404 cat conftest.err >&5
14405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } && {
14407 test -z "$ac_c_werror_flag" ||
14408 test ! -s conftest.err
14409 } && test -s conftest.$ac_objext; then
14410 ac_header_compiler=yes
14412 $as_echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14415 ac_header_compiler=no
14418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14419 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14420 $as_echo "$ac_header_compiler" >&6; }
14422 # Is the header present?
14423 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14424 $as_echo_n "checking $ac_header presence... " >&6; }
14425 cat >conftest.$ac_ext <<_ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h. */
14431 #include <$ac_header>
14433 if { (ac_try="$ac_cpp conftest.$ac_ext"
14434 case "(($ac_try" in
14435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14436 *) ac_try_echo=$ac_try;;
14438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14439 $as_echo "$ac_try_echo") >&5
14440 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14442 grep -v '^ *+' conftest.er1 >conftest.err
14444 cat conftest.err >&5
14445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } >/dev/null && {
14447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14448 test ! -s conftest.err
14450 ac_header_preproc=yes
14452 $as_echo "$as_me: failed program was:" >&5
14453 sed 's/^/| /' conftest.$ac_ext >&5
14455 ac_header_preproc=no
14458 rm -f conftest.err conftest.$ac_ext
14459 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14460 $as_echo "$ac_header_preproc" >&6; }
14462 # So? What about this header?
14463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14466 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14467 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14468 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14469 ac_header_preproc=yes
14472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14473 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14475 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14477 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14479 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14481 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14482 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14483 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14485 ## ---------------------------------------- ##
14486 ## Report this to pgsql-bugs@postgresql.org ##
14487 ## ---------------------------------------- ##
14489 ) | sed "s/^/$as_me: WARNING: /" >&2
14492 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14493 $as_echo_n "checking for $ac_header... " >&6; }
14494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14495 $as_echo_n "(cached) " >&6
14497 eval "$as_ac_Header=\$ac_header_preproc"
14499 ac_res=`eval 'as_val=${'$as_ac_Header'}
14500 $as_echo "$as_val"'`
14501 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14502 $as_echo "$ac_res" >&6; }
14505 as_val=`eval 'as_val=${'$as_ac_Header'}
14506 $as_echo "$as_val"'`
14507 if test "x$as_val" = x""yes; then
14508 cat >>confdefs.h <<_ACEOF
14509 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14513 { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14514 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14515 { (exit 1); exit 1; }; }
14526 if test "$PORTNAME" = "win32" ; then
14528 for ac_header in crtdefs.h
14530 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14532 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14533 $as_echo_n "checking for $ac_header... " >&6; }
14534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14535 $as_echo_n "(cached) " >&6
14537 ac_res=`eval 'as_val=${'$as_ac_Header'}
14538 $as_echo "$as_val"'`
14539 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14540 $as_echo "$ac_res" >&6; }
14542 # Is the header compilable?
14543 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14544 $as_echo_n "checking $ac_header usability... " >&6; }
14545 cat >conftest.$ac_ext <<_ACEOF
14548 cat confdefs.h >>conftest.$ac_ext
14549 cat >>conftest.$ac_ext <<_ACEOF
14550 /* end confdefs.h. */
14551 $ac_includes_default
14552 #include <$ac_header>
14554 rm -f conftest.$ac_objext
14555 if { (ac_try="$ac_compile"
14556 case "(($ac_try" in
14557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14558 *) ac_try_echo=$ac_try;;
14560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14561 $as_echo "$ac_try_echo") >&5
14562 (eval "$ac_compile") 2>conftest.er1
14564 grep -v '^ *+' conftest.er1 >conftest.err
14566 cat conftest.err >&5
14567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); } && {
14569 test -z "$ac_c_werror_flag" ||
14570 test ! -s conftest.err
14571 } && test -s conftest.$ac_objext; then
14572 ac_header_compiler=yes
14574 $as_echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.$ac_ext >&5
14577 ac_header_compiler=no
14580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14581 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14582 $as_echo "$ac_header_compiler" >&6; }
14584 # Is the header present?
14585 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14586 $as_echo_n "checking $ac_header presence... " >&6; }
14587 cat >conftest.$ac_ext <<_ACEOF
14590 cat confdefs.h >>conftest.$ac_ext
14591 cat >>conftest.$ac_ext <<_ACEOF
14592 /* end confdefs.h. */
14593 #include <$ac_header>
14595 if { (ac_try="$ac_cpp conftest.$ac_ext"
14596 case "(($ac_try" in
14597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598 *) ac_try_echo=$ac_try;;
14600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14601 $as_echo "$ac_try_echo") >&5
14602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14604 grep -v '^ *+' conftest.er1 >conftest.err
14606 cat conftest.err >&5
14607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } >/dev/null && {
14609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14610 test ! -s conftest.err
14612 ac_header_preproc=yes
14614 $as_echo "$as_me: failed program was:" >&5
14615 sed 's/^/| /' conftest.$ac_ext >&5
14617 ac_header_preproc=no
14620 rm -f conftest.err conftest.$ac_ext
14621 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14622 $as_echo "$ac_header_preproc" >&6; }
14624 # So? What about this header?
14625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14628 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14630 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14631 ac_header_preproc=yes
14634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14635 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14637 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14639 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14641 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14643 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14644 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14645 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14647 ## ---------------------------------------- ##
14648 ## Report this to pgsql-bugs@postgresql.org ##
14649 ## ---------------------------------------- ##
14651 ) | sed "s/^/$as_me: WARNING: /" >&2
14654 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14655 $as_echo_n "checking for $ac_header... " >&6; }
14656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14657 $as_echo_n "(cached) " >&6
14659 eval "$as_ac_Header=\$ac_header_preproc"
14661 ac_res=`eval 'as_val=${'$as_ac_Header'}
14662 $as_echo "$as_val"'`
14663 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14664 $as_echo "$ac_res" >&6; }
14667 as_val=`eval 'as_val=${'$as_ac_Header'}
14668 $as_echo "$as_val"'`
14669 if test "x$as_val" = x""yes; then
14670 cat >>confdefs.h <<_ACEOF
14671 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14681 ## Types, structures, compiler characteristics
14685 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14686 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14687 if test "${ac_cv_c_bigendian+set}" = set; then
14688 $as_echo_n "(cached) " >&6
14690 ac_cv_c_bigendian=unknown
14691 # See if we're dealing with a universal compiler.
14692 cat >conftest.$ac_ext <<_ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14698 #ifndef __APPLE_CC__
14699 not a universal capable compiler
14704 rm -f conftest.$ac_objext
14705 if { (ac_try="$ac_compile"
14706 case "(($ac_try" in
14707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14708 *) ac_try_echo=$ac_try;;
14710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14711 $as_echo "$ac_try_echo") >&5
14712 (eval "$ac_compile") 2>conftest.er1
14714 grep -v '^ *+' conftest.er1 >conftest.err
14716 cat conftest.err >&5
14717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); } && {
14719 test -z "$ac_c_werror_flag" ||
14720 test ! -s conftest.err
14721 } && test -s conftest.$ac_objext; then
14723 # Check for potential -arch flags. It is not universal unless
14724 # there are some -arch flags. Note that *ppc* also matches
14725 # ppc64. This check is also rather less than ideal.
14726 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14727 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14730 $as_echo "$as_me: failed program was:" >&5
14731 sed 's/^/| /' conftest.$ac_ext >&5
14736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14737 if test $ac_cv_c_bigendian = unknown; then
14738 # See if sys/param.h defines the BYTE_ORDER macro.
14739 cat >conftest.$ac_ext <<_ACEOF
14742 cat confdefs.h >>conftest.$ac_ext
14743 cat >>conftest.$ac_ext <<_ACEOF
14744 /* end confdefs.h. */
14745 #include <sys/types.h>
14746 #include <sys/param.h>
14751 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14752 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14754 bogus endian macros
14761 rm -f conftest.$ac_objext
14762 if { (ac_try="$ac_compile"
14763 case "(($ac_try" in
14764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14765 *) ac_try_echo=$ac_try;;
14767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14768 $as_echo "$ac_try_echo") >&5
14769 (eval "$ac_compile") 2>conftest.er1
14771 grep -v '^ *+' conftest.er1 >conftest.err
14773 cat conftest.err >&5
14774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); } && {
14776 test -z "$ac_c_werror_flag" ||
14777 test ! -s conftest.err
14778 } && test -s conftest.$ac_objext; then
14779 # It does; now see whether it defined to BIG_ENDIAN or not.
14780 cat >conftest.$ac_ext <<_ACEOF
14783 cat confdefs.h >>conftest.$ac_ext
14784 cat >>conftest.$ac_ext <<_ACEOF
14785 /* end confdefs.h. */
14786 #include <sys/types.h>
14787 #include <sys/param.h>
14792 #if BYTE_ORDER != BIG_ENDIAN
14800 rm -f conftest.$ac_objext
14801 if { (ac_try="$ac_compile"
14802 case "(($ac_try" in
14803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804 *) ac_try_echo=$ac_try;;
14806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14807 $as_echo "$ac_try_echo") >&5
14808 (eval "$ac_compile") 2>conftest.er1
14810 grep -v '^ *+' conftest.er1 >conftest.err
14812 cat conftest.err >&5
14813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } && {
14815 test -z "$ac_c_werror_flag" ||
14816 test ! -s conftest.err
14817 } && test -s conftest.$ac_objext; then
14818 ac_cv_c_bigendian=yes
14820 $as_echo "$as_me: failed program was:" >&5
14821 sed 's/^/| /' conftest.$ac_ext >&5
14823 ac_cv_c_bigendian=no
14826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14828 $as_echo "$as_me: failed program was:" >&5
14829 sed 's/^/| /' conftest.$ac_ext >&5
14834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14836 if test $ac_cv_c_bigendian = unknown; then
14837 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14838 cat >conftest.$ac_ext <<_ACEOF
14841 cat confdefs.h >>conftest.$ac_ext
14842 cat >>conftest.$ac_ext <<_ACEOF
14843 /* end confdefs.h. */
14844 #include <limits.h>
14849 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14850 bogus endian macros
14857 rm -f conftest.$ac_objext
14858 if { (ac_try="$ac_compile"
14859 case "(($ac_try" in
14860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14861 *) ac_try_echo=$ac_try;;
14863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14864 $as_echo "$ac_try_echo") >&5
14865 (eval "$ac_compile") 2>conftest.er1
14867 grep -v '^ *+' conftest.er1 >conftest.err
14869 cat conftest.err >&5
14870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); } && {
14872 test -z "$ac_c_werror_flag" ||
14873 test ! -s conftest.err
14874 } && test -s conftest.$ac_objext; then
14875 # It does; now see whether it defined to _BIG_ENDIAN or not.
14876 cat >conftest.$ac_ext <<_ACEOF
14879 cat confdefs.h >>conftest.$ac_ext
14880 cat >>conftest.$ac_ext <<_ACEOF
14881 /* end confdefs.h. */
14882 #include <limits.h>
14887 #ifndef _BIG_ENDIAN
14895 rm -f conftest.$ac_objext
14896 if { (ac_try="$ac_compile"
14897 case "(($ac_try" in
14898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899 *) ac_try_echo=$ac_try;;
14901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14902 $as_echo "$ac_try_echo") >&5
14903 (eval "$ac_compile") 2>conftest.er1
14905 grep -v '^ *+' conftest.er1 >conftest.err
14907 cat conftest.err >&5
14908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } && {
14910 test -z "$ac_c_werror_flag" ||
14911 test ! -s conftest.err
14912 } && test -s conftest.$ac_objext; then
14913 ac_cv_c_bigendian=yes
14915 $as_echo "$as_me: failed program was:" >&5
14916 sed 's/^/| /' conftest.$ac_ext >&5
14918 ac_cv_c_bigendian=no
14921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14923 $as_echo "$as_me: failed program was:" >&5
14924 sed 's/^/| /' conftest.$ac_ext >&5
14929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14931 if test $ac_cv_c_bigendian = unknown; then
14932 # Compile a test program.
14933 if test "$cross_compiling" = yes; then
14934 # Try to guess by grepping values from an object file.
14935 cat >conftest.$ac_ext <<_ACEOF
14938 cat confdefs.h >>conftest.$ac_ext
14939 cat >>conftest.$ac_ext <<_ACEOF
14940 /* end confdefs.h. */
14941 short int ascii_mm[] =
14942 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14943 short int ascii_ii[] =
14944 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14945 int use_ascii (int i) {
14946 return ascii_mm[i] + ascii_ii[i];
14948 short int ebcdic_ii[] =
14949 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14950 short int ebcdic_mm[] =
14951 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14952 int use_ebcdic (int i) {
14953 return ebcdic_mm[i] + ebcdic_ii[i];
14960 return use_ascii (foo) == use_ebcdic (foo);
14965 rm -f conftest.$ac_objext
14966 if { (ac_try="$ac_compile"
14967 case "(($ac_try" in
14968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14969 *) ac_try_echo=$ac_try;;
14971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14972 $as_echo "$ac_try_echo") >&5
14973 (eval "$ac_compile") 2>conftest.er1
14975 grep -v '^ *+' conftest.er1 >conftest.err
14977 cat conftest.err >&5
14978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); } && {
14980 test -z "$ac_c_werror_flag" ||
14981 test ! -s conftest.err
14982 } && test -s conftest.$ac_objext; then
14983 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14984 ac_cv_c_bigendian=yes
14986 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14987 if test "$ac_cv_c_bigendian" = unknown; then
14988 ac_cv_c_bigendian=no
14990 # finding both strings is unlikely to happen, but who knows?
14991 ac_cv_c_bigendian=unknown
14995 $as_echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.$ac_ext >&5
15001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15003 cat >conftest.$ac_ext <<_ACEOF
15006 cat confdefs.h >>conftest.$ac_ext
15007 cat >>conftest.$ac_ext <<_ACEOF
15008 /* end confdefs.h. */
15009 $ac_includes_default
15014 /* Are we little or big endian? From Harbison&Steele. */
15018 char c[sizeof (long int)];
15021 return u.c[sizeof (long int) - 1] == 1;
15027 rm -f conftest$ac_exeext
15028 if { (ac_try="$ac_link"
15029 case "(($ac_try" in
15030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15031 *) ac_try_echo=$ac_try;;
15033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15034 $as_echo "$ac_try_echo") >&5
15035 (eval "$ac_link") 2>&5
15037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15039 { (case "(($ac_try" in
15040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041 *) ac_try_echo=$ac_try;;
15043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15044 $as_echo "$ac_try_echo") >&5
15045 (eval "$ac_try") 2>&5
15047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; }; then
15049 ac_cv_c_bigendian=no
15051 $as_echo "$as_me: program exited with status $ac_status" >&5
15052 $as_echo "$as_me: failed program was:" >&5
15053 sed 's/^/| /' conftest.$ac_ext >&5
15055 ( exit $ac_status )
15056 ac_cv_c_bigendian=yes
15058 rm -rf conftest.dSYM
15059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15065 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15066 $as_echo "$ac_cv_c_bigendian" >&6; }
15067 case $ac_cv_c_bigendian in #(
15069 cat >>confdefs.h <<\_ACEOF
15070 #define WORDS_BIGENDIAN 1
15077 cat >>confdefs.h <<\_ACEOF
15078 #define AC_APPLE_UNIVERSAL_BUILD 1
15083 { { $as_echo "$as_me:$LINENO: error: unknown endianness
15084 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15085 $as_echo "$as_me: error: unknown endianness
15086 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15087 { (exit 1); exit 1; }; } ;;
15090 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15091 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15092 if test "${ac_cv_c_const+set}" = set; then
15093 $as_echo_n "(cached) " >&6
15095 cat >conftest.$ac_ext <<_ACEOF
15098 cat confdefs.h >>conftest.$ac_ext
15099 cat >>conftest.$ac_ext <<_ACEOF
15100 /* end confdefs.h. */
15105 /* FIXME: Include the comments suggested by Paul. */
15106 #ifndef __cplusplus
15107 /* Ultrix mips cc rejects this. */
15108 typedef int charset[2];
15110 /* SunOS 4.1.1 cc rejects this. */
15111 char const *const *pcpcc;
15113 /* NEC SVR4.0.2 mips cc rejects this. */
15114 struct point {int x, y;};
15115 static struct point const zero = {0,0};
15116 /* AIX XL C 1.02.0.0 rejects this.
15117 It does not let you subtract one const X* pointer from another in
15118 an arm of an if-expression whose if-part is not a constant
15120 const char *g = "string";
15121 pcpcc = &g + (g ? g-g : 0);
15122 /* HPUX 7.0 cc rejects these. */
15124 ppc = (char**) pcpcc;
15125 pcpcc = (char const *const *) ppc;
15126 { /* SCO 3.2v4 cc rejects this. */
15128 char const *s = 0 ? (char *) 0 : (char const *) 0;
15133 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15134 int x[] = {25, 17};
15135 const int *foo = &x[0];
15138 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15139 typedef const int *iptr;
15143 { /* AIX XL C 1.02.0.0 rejects this saying
15144 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15145 struct s { int j; const int *ap[3]; };
15146 struct s *b; b->j = 5;
15148 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15149 const int foo = 10;
15150 if (!foo) return 0;
15152 return !cs[0] && !zero.x;
15159 rm -f conftest.$ac_objext
15160 if { (ac_try="$ac_compile"
15161 case "(($ac_try" in
15162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163 *) ac_try_echo=$ac_try;;
15165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15166 $as_echo "$ac_try_echo") >&5
15167 (eval "$ac_compile") 2>conftest.er1
15169 grep -v '^ *+' conftest.er1 >conftest.err
15171 cat conftest.err >&5
15172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } && {
15174 test -z "$ac_c_werror_flag" ||
15175 test ! -s conftest.err
15176 } && test -s conftest.$ac_objext; then
15179 $as_echo "$as_me: failed program was:" >&5
15180 sed 's/^/| /' conftest.$ac_ext >&5
15185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15187 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15188 $as_echo "$ac_cv_c_const" >&6; }
15189 if test $ac_cv_c_const = no; then
15191 cat >>confdefs.h <<\_ACEOF
15197 { $as_echo "$as_me:$LINENO: checking for inline" >&5
15198 $as_echo_n "checking for inline... " >&6; }
15199 if test "${ac_cv_c_inline+set}" = set; then
15200 $as_echo_n "(cached) " >&6
15203 for ac_kw in inline __inline__ __inline; do
15204 cat >conftest.$ac_ext <<_ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h. */
15210 #ifndef __cplusplus
15212 static $ac_kw foo_t static_foo () {return 0; }
15213 $ac_kw foo_t foo () {return 0; }
15217 rm -f conftest.$ac_objext
15218 if { (ac_try="$ac_compile"
15219 case "(($ac_try" in
15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221 *) ac_try_echo=$ac_try;;
15223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15224 $as_echo "$ac_try_echo") >&5
15225 (eval "$ac_compile") 2>conftest.er1
15227 grep -v '^ *+' conftest.er1 >conftest.err
15229 cat conftest.err >&5
15230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); } && {
15232 test -z "$ac_c_werror_flag" ||
15233 test ! -s conftest.err
15234 } && test -s conftest.$ac_objext; then
15235 ac_cv_c_inline=$ac_kw
15237 $as_echo "$as_me: failed program was:" >&5
15238 sed 's/^/| /' conftest.$ac_ext >&5
15243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15244 test "$ac_cv_c_inline" != no && break
15248 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15249 $as_echo "$ac_cv_c_inline" >&6; }
15252 case $ac_cv_c_inline in
15255 case $ac_cv_c_inline in
15257 *) ac_val=$ac_cv_c_inline;;
15259 cat >>confdefs.h <<_ACEOF
15260 #ifndef __cplusplus
15261 #define inline $ac_val
15267 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
15268 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
15269 if test "${pgac_cv_c_inline_quietly+set}" = set; then
15270 $as_echo_n "(cached) " >&6
15272 pgac_cv_c_inline_quietly=no
15273 if test "$ac_cv_c_inline" != no; then
15274 pgac_c_inline_save_werror=$ac_c_werror_flag
15275 ac_c_werror_flag=yes
15276 cat >conftest.$ac_ext <<_ACEOF
15279 cat confdefs.h >>conftest.$ac_ext
15280 cat >>conftest.$ac_ext <<_ACEOF
15281 /* end confdefs.h. */
15282 static inline int fun () {return 0;}
15291 rm -f conftest.$ac_objext conftest$ac_exeext
15292 if { (ac_try="$ac_link"
15293 case "(($ac_try" in
15294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15295 *) ac_try_echo=$ac_try;;
15297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15298 $as_echo "$ac_try_echo") >&5
15299 (eval "$ac_link") 2>conftest.er1
15301 grep -v '^ *+' conftest.er1 >conftest.err
15303 cat conftest.err >&5
15304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); } && {
15306 test -z "$ac_c_werror_flag" ||
15307 test ! -s conftest.err
15308 } && test -s conftest$ac_exeext && {
15309 test "$cross_compiling" = yes ||
15310 $as_test_x conftest$ac_exeext
15312 pgac_cv_c_inline_quietly=yes
15314 $as_echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.$ac_ext >&5
15320 rm -rf conftest.dSYM
15321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15322 conftest$ac_exeext conftest.$ac_ext
15323 ac_c_werror_flag=$pgac_c_inline_save_werror
15326 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
15327 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
15328 if test "$pgac_cv_c_inline_quietly" != no; then
15330 cat >>confdefs.h <<_ACEOF
15331 #define PG_USE_INLINE 1
15336 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
15337 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
15338 if test "${ac_cv_c_stringize+set}" = set; then
15339 $as_echo_n "(cached) " >&6
15341 cat >conftest.$ac_ext <<_ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15349 char *s = x(teststring);
15351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15352 $EGREP "#teststring" >/dev/null 2>&1; then
15353 ac_cv_c_stringize=no
15355 ac_cv_c_stringize=yes
15360 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
15361 $as_echo "$ac_cv_c_stringize" >&6; }
15362 if test $ac_cv_c_stringize = yes; then
15364 cat >>confdefs.h <<\_ACEOF
15365 #define HAVE_STRINGIZE 1
15371 { $as_echo "$as_me:$LINENO: checking for flexible array members" >&5
15372 $as_echo_n "checking for flexible array members... " >&6; }
15373 if test "${ac_cv_c_flexmember+set}" = set; then
15374 $as_echo_n "(cached) " >&6
15376 cat >conftest.$ac_ext <<_ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h. */
15382 #include <stdlib.h>
15384 #include <stddef.h>
15385 struct s { int n; double d[]; };
15389 int m = getchar ();
15390 struct s *p = malloc (offsetof (struct s, d)
15391 + m * sizeof (double));
15393 return p->d != (double *) NULL;
15398 rm -f conftest.$ac_objext
15399 if { (ac_try="$ac_compile"
15400 case "(($ac_try" in
15401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402 *) ac_try_echo=$ac_try;;
15404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15405 $as_echo "$ac_try_echo") >&5
15406 (eval "$ac_compile") 2>conftest.er1
15408 grep -v '^ *+' conftest.er1 >conftest.err
15410 cat conftest.err >&5
15411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); } && {
15413 test -z "$ac_c_werror_flag" ||
15414 test ! -s conftest.err
15415 } && test -s conftest.$ac_objext; then
15416 ac_cv_c_flexmember=yes
15418 $as_echo "$as_me: failed program was:" >&5
15419 sed 's/^/| /' conftest.$ac_ext >&5
15421 ac_cv_c_flexmember=no
15424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15426 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
15427 $as_echo "$ac_cv_c_flexmember" >&6; }
15428 if test $ac_cv_c_flexmember = yes; then
15430 cat >>confdefs.h <<\_ACEOF
15431 #define FLEXIBLE_ARRAY_MEMBER /**/
15435 cat >>confdefs.h <<\_ACEOF
15436 #define FLEXIBLE_ARRAY_MEMBER 1
15441 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
15442 $as_echo_n "checking for signed types... " >&6; }
15443 if test "${pgac_cv_c_signed+set}" = set; then
15444 $as_echo_n "(cached) " >&6
15446 cat >conftest.$ac_ext <<_ACEOF
15449 cat confdefs.h >>conftest.$ac_ext
15450 cat >>conftest.$ac_ext <<_ACEOF
15451 /* end confdefs.h. */
15456 signed char c; signed short s; signed int i;
15461 rm -f conftest.$ac_objext
15462 if { (ac_try="$ac_compile"
15463 case "(($ac_try" in
15464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15465 *) ac_try_echo=$ac_try;;
15467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15468 $as_echo "$ac_try_echo") >&5
15469 (eval "$ac_compile") 2>conftest.er1
15471 grep -v '^ *+' conftest.er1 >conftest.err
15473 cat conftest.err >&5
15474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); } && {
15476 test -z "$ac_c_werror_flag" ||
15477 test ! -s conftest.err
15478 } && test -s conftest.$ac_objext; then
15479 pgac_cv_c_signed=yes
15481 $as_echo "$as_me: failed program was:" >&5
15482 sed 's/^/| /' conftest.$ac_ext >&5
15484 pgac_cv_c_signed=no
15487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15489 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
15490 $as_echo "$pgac_cv_c_signed" >&6; }
15491 if test x"$pgac_cv_c_signed" = xno ; then
15493 cat >>confdefs.h <<\_ACEOF
15494 #define signed /**/
15498 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
15499 $as_echo_n "checking for working volatile... " >&6; }
15500 if test "${ac_cv_c_volatile+set}" = set; then
15501 $as_echo_n "(cached) " >&6
15503 cat >conftest.$ac_ext <<_ACEOF
15506 cat confdefs.h >>conftest.$ac_ext
15507 cat >>conftest.$ac_ext <<_ACEOF
15508 /* end confdefs.h. */
15515 int * volatile y = (int *) 0;
15521 rm -f conftest.$ac_objext
15522 if { (ac_try="$ac_compile"
15523 case "(($ac_try" in
15524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15525 *) ac_try_echo=$ac_try;;
15527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15528 $as_echo "$ac_try_echo") >&5
15529 (eval "$ac_compile") 2>conftest.er1
15531 grep -v '^ *+' conftest.er1 >conftest.err
15533 cat conftest.err >&5
15534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); } && {
15536 test -z "$ac_c_werror_flag" ||
15537 test ! -s conftest.err
15538 } && test -s conftest.$ac_objext; then
15539 ac_cv_c_volatile=yes
15541 $as_echo "$as_me: failed program was:" >&5
15542 sed 's/^/| /' conftest.$ac_ext >&5
15544 ac_cv_c_volatile=no
15547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15549 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
15550 $as_echo "$ac_cv_c_volatile" >&6; }
15551 if test $ac_cv_c_volatile = no; then
15553 cat >>confdefs.h <<\_ACEOF
15554 #define volatile /**/
15559 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
15560 $as_echo_n "checking for __func__... " >&6; }
15561 if test "${pgac_cv_funcname_func_support+set}" = set; then
15562 $as_echo_n "(cached) " >&6
15564 cat >conftest.$ac_ext <<_ACEOF
15567 cat confdefs.h >>conftest.$ac_ext
15568 cat >>conftest.$ac_ext <<_ACEOF
15569 /* end confdefs.h. */
15574 printf("%s\n", __func__);
15579 rm -f conftest.$ac_objext
15580 if { (ac_try="$ac_compile"
15581 case "(($ac_try" in
15582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15583 *) ac_try_echo=$ac_try;;
15585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15586 $as_echo "$ac_try_echo") >&5
15587 (eval "$ac_compile") 2>conftest.er1
15589 grep -v '^ *+' conftest.er1 >conftest.err
15591 cat conftest.err >&5
15592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); } && {
15594 test -z "$ac_c_werror_flag" ||
15595 test ! -s conftest.err
15596 } && test -s conftest.$ac_objext; then
15597 pgac_cv_funcname_func_support=yes
15599 $as_echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15602 pgac_cv_funcname_func_support=no
15605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15607 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15608 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15609 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15611 cat >>confdefs.h <<\_ACEOF
15612 #define HAVE_FUNCNAME__FUNC 1
15616 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15617 $as_echo_n "checking for __FUNCTION__... " >&6; }
15618 if test "${pgac_cv_funcname_function_support+set}" = set; then
15619 $as_echo_n "(cached) " >&6
15621 cat >conftest.$ac_ext <<_ACEOF
15624 cat confdefs.h >>conftest.$ac_ext
15625 cat >>conftest.$ac_ext <<_ACEOF
15626 /* end confdefs.h. */
15631 printf("%s\n", __FUNCTION__);
15636 rm -f conftest.$ac_objext
15637 if { (ac_try="$ac_compile"
15638 case "(($ac_try" in
15639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640 *) ac_try_echo=$ac_try;;
15642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15643 $as_echo "$ac_try_echo") >&5
15644 (eval "$ac_compile") 2>conftest.er1
15646 grep -v '^ *+' conftest.er1 >conftest.err
15648 cat conftest.err >&5
15649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } && {
15651 test -z "$ac_c_werror_flag" ||
15652 test ! -s conftest.err
15653 } && test -s conftest.$ac_objext; then
15654 pgac_cv_funcname_function_support=yes
15656 $as_echo "$as_me: failed program was:" >&5
15657 sed 's/^/| /' conftest.$ac_ext >&5
15659 pgac_cv_funcname_function_support=no
15662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15664 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15665 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15666 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15668 cat >>confdefs.h <<\_ACEOF
15669 #define HAVE_FUNCNAME__FUNCTION 1
15674 { $as_echo "$as_me:$LINENO: checking for _Static_assert" >&5
15675 $as_echo_n "checking for _Static_assert... " >&6; }
15676 if test "${pgac_cv__static_assert+set}" = set; then
15677 $as_echo_n "(cached) " >&6
15679 cat >conftest.$ac_ext <<_ACEOF
15682 cat confdefs.h >>conftest.$ac_ext
15683 cat >>conftest.$ac_ext <<_ACEOF
15684 /* end confdefs.h. */
15689 ({ _Static_assert(1, "foo"); })
15694 rm -f conftest.$ac_objext conftest$ac_exeext
15695 if { (ac_try="$ac_link"
15696 case "(($ac_try" in
15697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15698 *) ac_try_echo=$ac_try;;
15700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15701 $as_echo "$ac_try_echo") >&5
15702 (eval "$ac_link") 2>conftest.er1
15704 grep -v '^ *+' conftest.er1 >conftest.err
15706 cat conftest.err >&5
15707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } && {
15709 test -z "$ac_c_werror_flag" ||
15710 test ! -s conftest.err
15711 } && test -s conftest$ac_exeext && {
15712 test "$cross_compiling" = yes ||
15713 $as_test_x conftest$ac_exeext
15715 pgac_cv__static_assert=yes
15717 $as_echo "$as_me: failed program was:" >&5
15718 sed 's/^/| /' conftest.$ac_ext >&5
15720 pgac_cv__static_assert=no
15723 rm -rf conftest.dSYM
15724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15725 conftest$ac_exeext conftest.$ac_ext
15727 { $as_echo "$as_me:$LINENO: result: $pgac_cv__static_assert" >&5
15728 $as_echo "$pgac_cv__static_assert" >&6; }
15729 if test x"$pgac_cv__static_assert" = xyes ; then
15731 cat >>confdefs.h <<\_ACEOF
15732 #define HAVE__STATIC_ASSERT 1
15736 { $as_echo "$as_me:$LINENO: checking for __builtin_types_compatible_p" >&5
15737 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
15738 if test "${pgac_cv__types_compatible+set}" = set; then
15739 $as_echo_n "(cached) " >&6
15741 cat >conftest.$ac_ext <<_ACEOF
15744 cat confdefs.h >>conftest.$ac_ext
15745 cat >>conftest.$ac_ext <<_ACEOF
15746 /* end confdefs.h. */
15751 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
15756 rm -f conftest.$ac_objext
15757 if { (ac_try="$ac_compile"
15758 case "(($ac_try" in
15759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760 *) ac_try_echo=$ac_try;;
15762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15763 $as_echo "$ac_try_echo") >&5
15764 (eval "$ac_compile") 2>conftest.er1
15766 grep -v '^ *+' conftest.er1 >conftest.err
15768 cat conftest.err >&5
15769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); } && {
15771 test -z "$ac_c_werror_flag" ||
15772 test ! -s conftest.err
15773 } && test -s conftest.$ac_objext; then
15774 pgac_cv__types_compatible=yes
15776 $as_echo "$as_me: failed program was:" >&5
15777 sed 's/^/| /' conftest.$ac_ext >&5
15779 pgac_cv__types_compatible=no
15782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15784 { $as_echo "$as_me:$LINENO: result: $pgac_cv__types_compatible" >&5
15785 $as_echo "$pgac_cv__types_compatible" >&6; }
15786 if test x"$pgac_cv__types_compatible" = xyes ; then
15788 cat >>confdefs.h <<\_ACEOF
15789 #define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1
15793 { $as_echo "$as_me:$LINENO: checking for __builtin_constant_p" >&5
15794 $as_echo_n "checking for __builtin_constant_p... " >&6; }
15795 if test "${pgac_cv__builtin_constant_p+set}" = set; then
15796 $as_echo_n "(cached) " >&6
15798 cat >conftest.$ac_ext <<_ACEOF
15801 cat confdefs.h >>conftest.$ac_ext
15802 cat >>conftest.$ac_ext <<_ACEOF
15803 /* end confdefs.h. */
15804 static int x; static int y[__builtin_constant_p(x) ? x : 1];
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 pgac_cv__builtin_constant_p=yes
15833 $as_echo "$as_me: failed program was:" >&5
15834 sed 's/^/| /' conftest.$ac_ext >&5
15836 pgac_cv__builtin_constant_p=no
15839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15841 { $as_echo "$as_me:$LINENO: result: $pgac_cv__builtin_constant_p" >&5
15842 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
15843 if test x"$pgac_cv__builtin_constant_p" = xyes ; then
15845 cat >>confdefs.h <<\_ACEOF
15846 #define HAVE__BUILTIN_CONSTANT_P 1
15850 { $as_echo "$as_me:$LINENO: checking for __builtin_unreachable" >&5
15851 $as_echo_n "checking for __builtin_unreachable... " >&6; }
15852 if test "${pgac_cv__builtin_unreachable+set}" = set; then
15853 $as_echo_n "(cached) " >&6
15855 cat >conftest.$ac_ext <<_ACEOF
15858 cat confdefs.h >>conftest.$ac_ext
15859 cat >>conftest.$ac_ext <<_ACEOF
15860 /* end confdefs.h. */
15865 __builtin_unreachable();
15870 rm -f conftest.$ac_objext conftest$ac_exeext
15871 if { (ac_try="$ac_link"
15872 case "(($ac_try" in
15873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15874 *) ac_try_echo=$ac_try;;
15876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15877 $as_echo "$ac_try_echo") >&5
15878 (eval "$ac_link") 2>conftest.er1
15880 grep -v '^ *+' conftest.er1 >conftest.err
15882 cat conftest.err >&5
15883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } && {
15885 test -z "$ac_c_werror_flag" ||
15886 test ! -s conftest.err
15887 } && test -s conftest$ac_exeext && {
15888 test "$cross_compiling" = yes ||
15889 $as_test_x conftest$ac_exeext
15891 pgac_cv__builtin_unreachable=yes
15893 $as_echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15896 pgac_cv__builtin_unreachable=no
15899 rm -rf conftest.dSYM
15900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15901 conftest$ac_exeext conftest.$ac_ext
15903 { $as_echo "$as_me:$LINENO: result: $pgac_cv__builtin_unreachable" >&5
15904 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
15905 if test x"$pgac_cv__builtin_unreachable" = xyes ; then
15907 cat >>confdefs.h <<\_ACEOF
15908 #define HAVE__BUILTIN_UNREACHABLE 1
15912 { $as_echo "$as_me:$LINENO: checking for __VA_ARGS__" >&5
15913 $as_echo_n "checking for __VA_ARGS__... " >&6; }
15914 if test "${pgac_cv__va_args+set}" = set; then
15915 $as_echo_n "(cached) " >&6
15917 cat >conftest.$ac_ext <<_ACEOF
15920 cat confdefs.h >>conftest.$ac_ext
15921 cat >>conftest.$ac_ext <<_ACEOF
15922 /* end confdefs.h. */
15927 #define debug(...) fprintf(stderr, __VA_ARGS__)
15928 debug("%s", "blarg");
15934 rm -f conftest.$ac_objext
15935 if { (ac_try="$ac_compile"
15936 case "(($ac_try" in
15937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938 *) ac_try_echo=$ac_try;;
15940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15941 $as_echo "$ac_try_echo") >&5
15942 (eval "$ac_compile") 2>conftest.er1
15944 grep -v '^ *+' conftest.er1 >conftest.err
15946 cat conftest.err >&5
15947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); } && {
15949 test -z "$ac_c_werror_flag" ||
15950 test ! -s conftest.err
15951 } && test -s conftest.$ac_objext; then
15952 pgac_cv__va_args=yes
15954 $as_echo "$as_me: failed program was:" >&5
15955 sed 's/^/| /' conftest.$ac_ext >&5
15957 pgac_cv__va_args=no
15960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15962 { $as_echo "$as_me:$LINENO: result: $pgac_cv__va_args" >&5
15963 $as_echo "$pgac_cv__va_args" >&6; }
15964 if test x"$pgac_cv__va_args" = xyes ; then
15966 cat >>confdefs.h <<\_ACEOF
15967 #define HAVE__VA_ARGS 1
15971 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
15972 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15973 if test "${ac_cv_struct_tm+set}" = set; then
15974 $as_echo_n "(cached) " >&6
15976 cat >conftest.$ac_ext <<_ACEOF
15979 cat confdefs.h >>conftest.$ac_ext
15980 cat >>conftest.$ac_ext <<_ACEOF
15981 /* end confdefs.h. */
15982 #include <sys/types.h>
15989 int *p = &tm.tm_sec;
15995 rm -f conftest.$ac_objext
15996 if { (ac_try="$ac_compile"
15997 case "(($ac_try" in
15998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15999 *) ac_try_echo=$ac_try;;
16001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16002 $as_echo "$ac_try_echo") >&5
16003 (eval "$ac_compile") 2>conftest.er1
16005 grep -v '^ *+' conftest.er1 >conftest.err
16007 cat conftest.err >&5
16008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); } && {
16010 test -z "$ac_c_werror_flag" ||
16011 test ! -s conftest.err
16012 } && test -s conftest.$ac_objext; then
16013 ac_cv_struct_tm=time.h
16015 $as_echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16018 ac_cv_struct_tm=sys/time.h
16021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16023 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16024 $as_echo "$ac_cv_struct_tm" >&6; }
16025 if test $ac_cv_struct_tm = sys/time.h; then
16027 cat >>confdefs.h <<\_ACEOF
16028 #define TM_IN_SYS_TIME 1
16033 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16034 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
16035 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16036 $as_echo_n "(cached) " >&6
16038 cat >conftest.$ac_ext <<_ACEOF
16041 cat confdefs.h >>conftest.$ac_ext
16042 cat >>conftest.$ac_ext <<_ACEOF
16043 /* end confdefs.h. */
16044 #include <sys/types.h>
16045 #include <$ac_cv_struct_tm>
16051 static struct tm ac_aggr;
16052 if (ac_aggr.tm_zone)
16058 rm -f conftest.$ac_objext
16059 if { (ac_try="$ac_compile"
16060 case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16065 $as_echo "$ac_try_echo") >&5
16066 (eval "$ac_compile") 2>conftest.er1
16068 grep -v '^ *+' conftest.er1 >conftest.err
16070 cat conftest.err >&5
16071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); } && {
16073 test -z "$ac_c_werror_flag" ||
16074 test ! -s conftest.err
16075 } && test -s conftest.$ac_objext; then
16076 ac_cv_member_struct_tm_tm_zone=yes
16078 $as_echo "$as_me: failed program was:" >&5
16079 sed 's/^/| /' conftest.$ac_ext >&5
16081 cat >conftest.$ac_ext <<_ACEOF
16084 cat confdefs.h >>conftest.$ac_ext
16085 cat >>conftest.$ac_ext <<_ACEOF
16086 /* end confdefs.h. */
16087 #include <sys/types.h>
16088 #include <$ac_cv_struct_tm>
16094 static struct tm ac_aggr;
16095 if (sizeof ac_aggr.tm_zone)
16101 rm -f conftest.$ac_objext
16102 if { (ac_try="$ac_compile"
16103 case "(($ac_try" in
16104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16105 *) ac_try_echo=$ac_try;;
16107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16108 $as_echo "$ac_try_echo") >&5
16109 (eval "$ac_compile") 2>conftest.er1
16111 grep -v '^ *+' conftest.er1 >conftest.err
16113 cat conftest.err >&5
16114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); } && {
16116 test -z "$ac_c_werror_flag" ||
16117 test ! -s conftest.err
16118 } && test -s conftest.$ac_objext; then
16119 ac_cv_member_struct_tm_tm_zone=yes
16121 $as_echo "$as_me: failed program was:" >&5
16122 sed 's/^/| /' conftest.$ac_ext >&5
16124 ac_cv_member_struct_tm_tm_zone=no
16127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16132 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16133 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
16134 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
16136 cat >>confdefs.h <<_ACEOF
16137 #define HAVE_STRUCT_TM_TM_ZONE 1
16143 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16145 cat >>confdefs.h <<\_ACEOF
16146 #define HAVE_TM_ZONE 1
16150 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
16151 $as_echo_n "checking for tzname... " >&6; }
16152 if test "${ac_cv_var_tzname+set}" = set; then
16153 $as_echo_n "(cached) " >&6
16155 cat >conftest.$ac_ext <<_ACEOF
16158 cat confdefs.h >>conftest.$ac_ext
16159 cat >>conftest.$ac_ext <<_ACEOF
16160 /* end confdefs.h. */
16162 #ifndef tzname /* For SGI. */
16163 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16174 rm -f conftest.$ac_objext conftest$ac_exeext
16175 if { (ac_try="$ac_link"
16176 case "(($ac_try" in
16177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16178 *) ac_try_echo=$ac_try;;
16180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16181 $as_echo "$ac_try_echo") >&5
16182 (eval "$ac_link") 2>conftest.er1
16184 grep -v '^ *+' conftest.er1 >conftest.err
16186 cat conftest.err >&5
16187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } && {
16189 test -z "$ac_c_werror_flag" ||
16190 test ! -s conftest.err
16191 } && test -s conftest$ac_exeext && {
16192 test "$cross_compiling" = yes ||
16193 $as_test_x conftest$ac_exeext
16195 ac_cv_var_tzname=yes
16197 $as_echo "$as_me: failed program was:" >&5
16198 sed 's/^/| /' conftest.$ac_ext >&5
16200 ac_cv_var_tzname=no
16203 rm -rf conftest.dSYM
16204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16205 conftest$ac_exeext conftest.$ac_ext
16207 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
16208 $as_echo "$ac_cv_var_tzname" >&6; }
16209 if test $ac_cv_var_tzname = yes; then
16211 cat >>confdefs.h <<\_ACEOF
16212 #define HAVE_TZNAME 1
16217 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
16218 $as_echo_n "checking for union semun... " >&6; }
16219 if test "${ac_cv_type_union_semun+set}" = set; then
16220 $as_echo_n "(cached) " >&6
16222 ac_cv_type_union_semun=no
16223 cat >conftest.$ac_ext <<_ACEOF
16226 cat confdefs.h >>conftest.$ac_ext
16227 cat >>conftest.$ac_ext <<_ACEOF
16228 /* end confdefs.h. */
16229 #include <sys/types.h>
16230 #include <sys/ipc.h>
16231 #include <sys/sem.h>
16236 if (sizeof (union semun))
16242 rm -f conftest.$ac_objext
16243 if { (ac_try="$ac_compile"
16244 case "(($ac_try" in
16245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246 *) ac_try_echo=$ac_try;;
16248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16249 $as_echo "$ac_try_echo") >&5
16250 (eval "$ac_compile") 2>conftest.er1
16252 grep -v '^ *+' conftest.er1 >conftest.err
16254 cat conftest.err >&5
16255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); } && {
16257 test -z "$ac_c_werror_flag" ||
16258 test ! -s conftest.err
16259 } && test -s conftest.$ac_objext; then
16260 cat >conftest.$ac_ext <<_ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h. */
16266 #include <sys/types.h>
16267 #include <sys/ipc.h>
16268 #include <sys/sem.h>
16273 if (sizeof ((union semun)))
16279 rm -f conftest.$ac_objext
16280 if { (ac_try="$ac_compile"
16281 case "(($ac_try" in
16282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283 *) ac_try_echo=$ac_try;;
16285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16286 $as_echo "$ac_try_echo") >&5
16287 (eval "$ac_compile") 2>conftest.er1
16289 grep -v '^ *+' conftest.er1 >conftest.err
16291 cat conftest.err >&5
16292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } && {
16294 test -z "$ac_c_werror_flag" ||
16295 test ! -s conftest.err
16296 } && test -s conftest.$ac_objext; then
16299 $as_echo "$as_me: failed program was:" >&5
16300 sed 's/^/| /' conftest.$ac_ext >&5
16302 ac_cv_type_union_semun=yes
16305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16307 $as_echo "$as_me: failed program was:" >&5
16308 sed 's/^/| /' conftest.$ac_ext >&5
16313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16315 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
16316 $as_echo "$ac_cv_type_union_semun" >&6; }
16317 if test "x$ac_cv_type_union_semun" = x""yes; then
16319 cat >>confdefs.h <<_ACEOF
16320 #define HAVE_UNION_SEMUN 1
16326 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
16327 $as_echo_n "checking for struct sockaddr_un... " >&6; }
16328 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
16329 $as_echo_n "(cached) " >&6
16331 ac_cv_type_struct_sockaddr_un=no
16332 cat >conftest.$ac_ext <<_ACEOF
16335 cat confdefs.h >>conftest.$ac_ext
16336 cat >>conftest.$ac_ext <<_ACEOF
16337 /* end confdefs.h. */
16338 #include <sys/types.h>
16339 #ifdef HAVE_SYS_UN_H
16340 #include <sys/un.h>
16347 if (sizeof (struct sockaddr_un))
16353 rm -f conftest.$ac_objext
16354 if { (ac_try="$ac_compile"
16355 case "(($ac_try" in
16356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16357 *) ac_try_echo=$ac_try;;
16359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16360 $as_echo "$ac_try_echo") >&5
16361 (eval "$ac_compile") 2>conftest.er1
16363 grep -v '^ *+' conftest.er1 >conftest.err
16365 cat conftest.err >&5
16366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367 (exit $ac_status); } && {
16368 test -z "$ac_c_werror_flag" ||
16369 test ! -s conftest.err
16370 } && test -s conftest.$ac_objext; then
16371 cat >conftest.$ac_ext <<_ACEOF
16374 cat confdefs.h >>conftest.$ac_ext
16375 cat >>conftest.$ac_ext <<_ACEOF
16376 /* end confdefs.h. */
16377 #include <sys/types.h>
16378 #ifdef HAVE_SYS_UN_H
16379 #include <sys/un.h>
16386 if (sizeof ((struct sockaddr_un)))
16392 rm -f conftest.$ac_objext
16393 if { (ac_try="$ac_compile"
16394 case "(($ac_try" in
16395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16396 *) ac_try_echo=$ac_try;;
16398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16399 $as_echo "$ac_try_echo") >&5
16400 (eval "$ac_compile") 2>conftest.er1
16402 grep -v '^ *+' conftest.er1 >conftest.err
16404 cat conftest.err >&5
16405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); } && {
16407 test -z "$ac_c_werror_flag" ||
16408 test ! -s conftest.err
16409 } && test -s conftest.$ac_objext; then
16412 $as_echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16415 ac_cv_type_struct_sockaddr_un=yes
16418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16420 $as_echo "$as_me: failed program was:" >&5
16421 sed 's/^/| /' conftest.$ac_ext >&5
16426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16428 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
16429 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
16430 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
16432 cat >>confdefs.h <<\_ACEOF
16433 #define HAVE_UNIX_SOCKETS 1
16438 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
16439 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
16440 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
16441 $as_echo_n "(cached) " >&6
16443 ac_cv_type_struct_sockaddr_storage=no
16444 cat >conftest.$ac_ext <<_ACEOF
16447 cat confdefs.h >>conftest.$ac_ext
16448 cat >>conftest.$ac_ext <<_ACEOF
16449 /* end confdefs.h. */
16450 #include <sys/types.h>
16451 #ifdef HAVE_SYS_SOCKET_H
16452 #include <sys/socket.h>
16459 if (sizeof (struct sockaddr_storage))
16465 rm -f conftest.$ac_objext
16466 if { (ac_try="$ac_compile"
16467 case "(($ac_try" in
16468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16469 *) ac_try_echo=$ac_try;;
16471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16472 $as_echo "$ac_try_echo") >&5
16473 (eval "$ac_compile") 2>conftest.er1
16475 grep -v '^ *+' conftest.er1 >conftest.err
16477 cat conftest.err >&5
16478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); } && {
16480 test -z "$ac_c_werror_flag" ||
16481 test ! -s conftest.err
16482 } && test -s conftest.$ac_objext; then
16483 cat >conftest.$ac_ext <<_ACEOF
16486 cat confdefs.h >>conftest.$ac_ext
16487 cat >>conftest.$ac_ext <<_ACEOF
16488 /* end confdefs.h. */
16489 #include <sys/types.h>
16490 #ifdef HAVE_SYS_SOCKET_H
16491 #include <sys/socket.h>
16498 if (sizeof ((struct sockaddr_storage)))
16504 rm -f conftest.$ac_objext
16505 if { (ac_try="$ac_compile"
16506 case "(($ac_try" in
16507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16508 *) ac_try_echo=$ac_try;;
16510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16511 $as_echo "$ac_try_echo") >&5
16512 (eval "$ac_compile") 2>conftest.er1
16514 grep -v '^ *+' conftest.er1 >conftest.err
16516 cat conftest.err >&5
16517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); } && {
16519 test -z "$ac_c_werror_flag" ||
16520 test ! -s conftest.err
16521 } && test -s conftest.$ac_objext; then
16524 $as_echo "$as_me: failed program was:" >&5
16525 sed 's/^/| /' conftest.$ac_ext >&5
16527 ac_cv_type_struct_sockaddr_storage=yes
16530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16532 $as_echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16540 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
16541 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
16542 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
16544 cat >>confdefs.h <<_ACEOF
16545 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
16551 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
16552 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
16553 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
16554 $as_echo_n "(cached) " >&6
16556 cat >conftest.$ac_ext <<_ACEOF
16559 cat confdefs.h >>conftest.$ac_ext
16560 cat >>conftest.$ac_ext <<_ACEOF
16561 /* end confdefs.h. */
16562 #include <sys/types.h>
16563 #ifdef HAVE_SYS_SOCKET_H
16564 #include <sys/socket.h>
16571 static struct sockaddr_storage ac_aggr;
16572 if (ac_aggr.ss_family)
16578 rm -f conftest.$ac_objext
16579 if { (ac_try="$ac_compile"
16580 case "(($ac_try" in
16581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582 *) ac_try_echo=$ac_try;;
16584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16585 $as_echo "$ac_try_echo") >&5
16586 (eval "$ac_compile") 2>conftest.er1
16588 grep -v '^ *+' conftest.er1 >conftest.err
16590 cat conftest.err >&5
16591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); } && {
16593 test -z "$ac_c_werror_flag" ||
16594 test ! -s conftest.err
16595 } && test -s conftest.$ac_objext; then
16596 ac_cv_member_struct_sockaddr_storage_ss_family=yes
16598 $as_echo "$as_me: failed program was:" >&5
16599 sed 's/^/| /' conftest.$ac_ext >&5
16601 cat >conftest.$ac_ext <<_ACEOF
16604 cat confdefs.h >>conftest.$ac_ext
16605 cat >>conftest.$ac_ext <<_ACEOF
16606 /* end confdefs.h. */
16607 #include <sys/types.h>
16608 #ifdef HAVE_SYS_SOCKET_H
16609 #include <sys/socket.h>
16616 static struct sockaddr_storage ac_aggr;
16617 if (sizeof ac_aggr.ss_family)
16623 rm -f conftest.$ac_objext
16624 if { (ac_try="$ac_compile"
16625 case "(($ac_try" in
16626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16627 *) ac_try_echo=$ac_try;;
16629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16630 $as_echo "$ac_try_echo") >&5
16631 (eval "$ac_compile") 2>conftest.er1
16633 grep -v '^ *+' conftest.er1 >conftest.err
16635 cat conftest.err >&5
16636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); } && {
16638 test -z "$ac_c_werror_flag" ||
16639 test ! -s conftest.err
16640 } && test -s conftest.$ac_objext; then
16641 ac_cv_member_struct_sockaddr_storage_ss_family=yes
16643 $as_echo "$as_me: failed program was:" >&5
16644 sed 's/^/| /' conftest.$ac_ext >&5
16646 ac_cv_member_struct_sockaddr_storage_ss_family=no
16649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16654 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
16655 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
16656 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
16658 cat >>confdefs.h <<_ACEOF
16659 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
16664 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
16665 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
16666 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
16667 $as_echo_n "(cached) " >&6
16669 cat >conftest.$ac_ext <<_ACEOF
16672 cat confdefs.h >>conftest.$ac_ext
16673 cat >>conftest.$ac_ext <<_ACEOF
16674 /* end confdefs.h. */
16675 #include <sys/types.h>
16676 #ifdef HAVE_SYS_SOCKET_H
16677 #include <sys/socket.h>
16684 static struct sockaddr_storage ac_aggr;
16685 if (ac_aggr.__ss_family)
16691 rm -f conftest.$ac_objext
16692 if { (ac_try="$ac_compile"
16693 case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16698 $as_echo "$ac_try_echo") >&5
16699 (eval "$ac_compile") 2>conftest.er1
16701 grep -v '^ *+' conftest.er1 >conftest.err
16703 cat conftest.err >&5
16704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } && {
16706 test -z "$ac_c_werror_flag" ||
16707 test ! -s conftest.err
16708 } && test -s conftest.$ac_objext; then
16709 ac_cv_member_struct_sockaddr_storage___ss_family=yes
16711 $as_echo "$as_me: failed program was:" >&5
16712 sed 's/^/| /' conftest.$ac_ext >&5
16714 cat >conftest.$ac_ext <<_ACEOF
16717 cat confdefs.h >>conftest.$ac_ext
16718 cat >>conftest.$ac_ext <<_ACEOF
16719 /* end confdefs.h. */
16720 #include <sys/types.h>
16721 #ifdef HAVE_SYS_SOCKET_H
16722 #include <sys/socket.h>
16729 static struct sockaddr_storage ac_aggr;
16730 if (sizeof ac_aggr.__ss_family)
16736 rm -f conftest.$ac_objext
16737 if { (ac_try="$ac_compile"
16738 case "(($ac_try" in
16739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740 *) ac_try_echo=$ac_try;;
16742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16743 $as_echo "$ac_try_echo") >&5
16744 (eval "$ac_compile") 2>conftest.er1
16746 grep -v '^ *+' conftest.er1 >conftest.err
16748 cat conftest.err >&5
16749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } && {
16751 test -z "$ac_c_werror_flag" ||
16752 test ! -s conftest.err
16753 } && test -s conftest.$ac_objext; then
16754 ac_cv_member_struct_sockaddr_storage___ss_family=yes
16756 $as_echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16759 ac_cv_member_struct_sockaddr_storage___ss_family=no
16762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16767 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
16768 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
16769 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
16771 cat >>confdefs.h <<_ACEOF
16772 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
16777 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
16778 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
16779 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
16780 $as_echo_n "(cached) " >&6
16782 cat >conftest.$ac_ext <<_ACEOF
16785 cat confdefs.h >>conftest.$ac_ext
16786 cat >>conftest.$ac_ext <<_ACEOF
16787 /* end confdefs.h. */
16788 #include <sys/types.h>
16789 #ifdef HAVE_SYS_SOCKET_H
16790 #include <sys/socket.h>
16797 static struct sockaddr_storage ac_aggr;
16798 if (ac_aggr.ss_len)
16804 rm -f conftest.$ac_objext
16805 if { (ac_try="$ac_compile"
16806 case "(($ac_try" in
16807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16808 *) ac_try_echo=$ac_try;;
16810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16811 $as_echo "$ac_try_echo") >&5
16812 (eval "$ac_compile") 2>conftest.er1
16814 grep -v '^ *+' conftest.er1 >conftest.err
16816 cat conftest.err >&5
16817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); } && {
16819 test -z "$ac_c_werror_flag" ||
16820 test ! -s conftest.err
16821 } && test -s conftest.$ac_objext; then
16822 ac_cv_member_struct_sockaddr_storage_ss_len=yes
16824 $as_echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.$ac_ext >&5
16827 cat >conftest.$ac_ext <<_ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h. */
16833 #include <sys/types.h>
16834 #ifdef HAVE_SYS_SOCKET_H
16835 #include <sys/socket.h>
16842 static struct sockaddr_storage ac_aggr;
16843 if (sizeof ac_aggr.ss_len)
16849 rm -f conftest.$ac_objext
16850 if { (ac_try="$ac_compile"
16851 case "(($ac_try" in
16852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853 *) ac_try_echo=$ac_try;;
16855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16856 $as_echo "$ac_try_echo") >&5
16857 (eval "$ac_compile") 2>conftest.er1
16859 grep -v '^ *+' conftest.er1 >conftest.err
16861 cat conftest.err >&5
16862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); } && {
16864 test -z "$ac_c_werror_flag" ||
16865 test ! -s conftest.err
16866 } && test -s conftest.$ac_objext; then
16867 ac_cv_member_struct_sockaddr_storage_ss_len=yes
16869 $as_echo "$as_me: failed program was:" >&5
16870 sed 's/^/| /' conftest.$ac_ext >&5
16872 ac_cv_member_struct_sockaddr_storage_ss_len=no
16875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16880 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
16881 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
16882 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
16884 cat >>confdefs.h <<_ACEOF
16885 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
16890 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
16891 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
16892 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
16893 $as_echo_n "(cached) " >&6
16895 cat >conftest.$ac_ext <<_ACEOF
16898 cat confdefs.h >>conftest.$ac_ext
16899 cat >>conftest.$ac_ext <<_ACEOF
16900 /* end confdefs.h. */
16901 #include <sys/types.h>
16902 #ifdef HAVE_SYS_SOCKET_H
16903 #include <sys/socket.h>
16910 static struct sockaddr_storage ac_aggr;
16911 if (ac_aggr.__ss_len)
16917 rm -f conftest.$ac_objext
16918 if { (ac_try="$ac_compile"
16919 case "(($ac_try" in
16920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921 *) ac_try_echo=$ac_try;;
16923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16924 $as_echo "$ac_try_echo") >&5
16925 (eval "$ac_compile") 2>conftest.er1
16927 grep -v '^ *+' conftest.er1 >conftest.err
16929 cat conftest.err >&5
16930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); } && {
16932 test -z "$ac_c_werror_flag" ||
16933 test ! -s conftest.err
16934 } && test -s conftest.$ac_objext; then
16935 ac_cv_member_struct_sockaddr_storage___ss_len=yes
16937 $as_echo "$as_me: failed program was:" >&5
16938 sed 's/^/| /' conftest.$ac_ext >&5
16940 cat >conftest.$ac_ext <<_ACEOF
16943 cat confdefs.h >>conftest.$ac_ext
16944 cat >>conftest.$ac_ext <<_ACEOF
16945 /* end confdefs.h. */
16946 #include <sys/types.h>
16947 #ifdef HAVE_SYS_SOCKET_H
16948 #include <sys/socket.h>
16955 static struct sockaddr_storage ac_aggr;
16956 if (sizeof ac_aggr.__ss_len)
16962 rm -f conftest.$ac_objext
16963 if { (ac_try="$ac_compile"
16964 case "(($ac_try" in
16965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966 *) ac_try_echo=$ac_try;;
16968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16969 $as_echo "$ac_try_echo") >&5
16970 (eval "$ac_compile") 2>conftest.er1
16972 grep -v '^ *+' conftest.er1 >conftest.err
16974 cat conftest.err >&5
16975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); } && {
16977 test -z "$ac_c_werror_flag" ||
16978 test ! -s conftest.err
16979 } && test -s conftest.$ac_objext; then
16980 ac_cv_member_struct_sockaddr_storage___ss_len=yes
16982 $as_echo "$as_me: failed program was:" >&5
16983 sed 's/^/| /' conftest.$ac_ext >&5
16985 ac_cv_member_struct_sockaddr_storage___ss_len=no
16988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16993 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
16994 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
16995 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
16997 cat >>confdefs.h <<_ACEOF
16998 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
17003 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
17004 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
17005 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
17006 $as_echo_n "(cached) " >&6
17008 cat >conftest.$ac_ext <<_ACEOF
17011 cat confdefs.h >>conftest.$ac_ext
17012 cat >>conftest.$ac_ext <<_ACEOF
17013 /* end confdefs.h. */
17014 #include <sys/types.h>
17015 #ifdef HAVE_SYS_SOCKET_H
17016 #include <sys/socket.h>
17023 static struct sockaddr ac_aggr;
17024 if (ac_aggr.sa_len)
17030 rm -f conftest.$ac_objext
17031 if { (ac_try="$ac_compile"
17032 case "(($ac_try" in
17033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17034 *) ac_try_echo=$ac_try;;
17036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17037 $as_echo "$ac_try_echo") >&5
17038 (eval "$ac_compile") 2>conftest.er1
17040 grep -v '^ *+' conftest.er1 >conftest.err
17042 cat conftest.err >&5
17043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); } && {
17045 test -z "$ac_c_werror_flag" ||
17046 test ! -s conftest.err
17047 } && test -s conftest.$ac_objext; then
17048 ac_cv_member_struct_sockaddr_sa_len=yes
17050 $as_echo "$as_me: failed program was:" >&5
17051 sed 's/^/| /' conftest.$ac_ext >&5
17053 cat >conftest.$ac_ext <<_ACEOF
17056 cat confdefs.h >>conftest.$ac_ext
17057 cat >>conftest.$ac_ext <<_ACEOF
17058 /* end confdefs.h. */
17059 #include <sys/types.h>
17060 #ifdef HAVE_SYS_SOCKET_H
17061 #include <sys/socket.h>
17068 static struct sockaddr ac_aggr;
17069 if (sizeof ac_aggr.sa_len)
17075 rm -f conftest.$ac_objext
17076 if { (ac_try="$ac_compile"
17077 case "(($ac_try" in
17078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079 *) ac_try_echo=$ac_try;;
17081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17082 $as_echo "$ac_try_echo") >&5
17083 (eval "$ac_compile") 2>conftest.er1
17085 grep -v '^ *+' conftest.er1 >conftest.err
17087 cat conftest.err >&5
17088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } && {
17090 test -z "$ac_c_werror_flag" ||
17091 test ! -s conftest.err
17092 } && test -s conftest.$ac_objext; then
17093 ac_cv_member_struct_sockaddr_sa_len=yes
17095 $as_echo "$as_me: failed program was:" >&5
17096 sed 's/^/| /' conftest.$ac_ext >&5
17098 ac_cv_member_struct_sockaddr_sa_len=no
17101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17106 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
17107 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
17108 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
17110 cat >>confdefs.h <<_ACEOF
17111 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
17117 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
17118 $as_echo_n "checking for struct addrinfo... " >&6; }
17119 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
17120 $as_echo_n "(cached) " >&6
17122 ac_cv_type_struct_addrinfo=no
17123 cat >conftest.$ac_ext <<_ACEOF
17126 cat confdefs.h >>conftest.$ac_ext
17127 cat >>conftest.$ac_ext <<_ACEOF
17128 /* end confdefs.h. */
17129 #include <sys/types.h>
17130 #include <sys/socket.h>
17137 if (sizeof (struct addrinfo))
17143 rm -f conftest.$ac_objext
17144 if { (ac_try="$ac_compile"
17145 case "(($ac_try" in
17146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17147 *) ac_try_echo=$ac_try;;
17149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17150 $as_echo "$ac_try_echo") >&5
17151 (eval "$ac_compile") 2>conftest.er1
17153 grep -v '^ *+' conftest.er1 >conftest.err
17155 cat conftest.err >&5
17156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } && {
17158 test -z "$ac_c_werror_flag" ||
17159 test ! -s conftest.err
17160 } && test -s conftest.$ac_objext; then
17161 cat >conftest.$ac_ext <<_ACEOF
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h. */
17167 #include <sys/types.h>
17168 #include <sys/socket.h>
17175 if (sizeof ((struct addrinfo)))
17181 rm -f conftest.$ac_objext
17182 if { (ac_try="$ac_compile"
17183 case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17188 $as_echo "$ac_try_echo") >&5
17189 (eval "$ac_compile") 2>conftest.er1
17191 grep -v '^ *+' conftest.er1 >conftest.err
17193 cat conftest.err >&5
17194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } && {
17196 test -z "$ac_c_werror_flag" ||
17197 test ! -s conftest.err
17198 } && test -s conftest.$ac_objext; then
17201 $as_echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.$ac_ext >&5
17204 ac_cv_type_struct_addrinfo=yes
17207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17209 $as_echo "$as_me: failed program was:" >&5
17210 sed 's/^/| /' conftest.$ac_ext >&5
17215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17217 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
17218 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
17219 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
17221 cat >>confdefs.h <<_ACEOF
17222 #define HAVE_STRUCT_ADDRINFO 1
17229 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
17230 $as_echo_n "checking for intptr_t... " >&6; }
17231 if test "${ac_cv_type_intptr_t+set}" = set; then
17232 $as_echo_n "(cached) " >&6
17234 ac_cv_type_intptr_t=no
17235 cat >conftest.$ac_ext <<_ACEOF
17238 cat confdefs.h >>conftest.$ac_ext
17239 cat >>conftest.$ac_ext <<_ACEOF
17240 /* end confdefs.h. */
17241 $ac_includes_default
17245 if (sizeof (intptr_t))
17251 rm -f conftest.$ac_objext
17252 if { (ac_try="$ac_compile"
17253 case "(($ac_try" in
17254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255 *) ac_try_echo=$ac_try;;
17257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17258 $as_echo "$ac_try_echo") >&5
17259 (eval "$ac_compile") 2>conftest.er1
17261 grep -v '^ *+' conftest.er1 >conftest.err
17263 cat conftest.err >&5
17264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } && {
17266 test -z "$ac_c_werror_flag" ||
17267 test ! -s conftest.err
17268 } && test -s conftest.$ac_objext; then
17269 cat >conftest.$ac_ext <<_ACEOF
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h. */
17275 $ac_includes_default
17279 if (sizeof ((intptr_t)))
17285 rm -f conftest.$ac_objext
17286 if { (ac_try="$ac_compile"
17287 case "(($ac_try" in
17288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17289 *) ac_try_echo=$ac_try;;
17291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17292 $as_echo "$ac_try_echo") >&5
17293 (eval "$ac_compile") 2>conftest.er1
17295 grep -v '^ *+' conftest.er1 >conftest.err
17297 cat conftest.err >&5
17298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); } && {
17300 test -z "$ac_c_werror_flag" ||
17301 test ! -s conftest.err
17302 } && test -s conftest.$ac_objext; then
17305 $as_echo "$as_me: failed program was:" >&5
17306 sed 's/^/| /' conftest.$ac_ext >&5
17308 ac_cv_type_intptr_t=yes
17311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17313 $as_echo "$as_me: failed program was:" >&5
17314 sed 's/^/| /' conftest.$ac_ext >&5
17319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17321 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
17322 $as_echo "$ac_cv_type_intptr_t" >&6; }
17323 if test "x$ac_cv_type_intptr_t" = x""yes; then
17325 cat >>confdefs.h <<\_ACEOF
17326 #define HAVE_INTPTR_T 1
17330 for ac_type in 'int' 'long int' 'long long int'; do
17331 cat >conftest.$ac_ext <<_ACEOF
17334 cat confdefs.h >>conftest.$ac_ext
17335 cat >>conftest.$ac_ext <<_ACEOF
17336 /* end confdefs.h. */
17337 $ac_includes_default
17341 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17348 rm -f conftest.$ac_objext
17349 if { (ac_try="$ac_compile"
17350 case "(($ac_try" in
17351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17352 *) ac_try_echo=$ac_try;;
17354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17355 $as_echo "$ac_try_echo") >&5
17356 (eval "$ac_compile") 2>conftest.er1
17358 grep -v '^ *+' conftest.er1 >conftest.err
17360 cat conftest.err >&5
17361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); } && {
17363 test -z "$ac_c_werror_flag" ||
17364 test ! -s conftest.err
17365 } && test -s conftest.$ac_objext; then
17367 cat >>confdefs.h <<_ACEOF
17368 #define intptr_t $ac_type
17373 $as_echo "$as_me: failed program was:" >&5
17374 sed 's/^/| /' conftest.$ac_ext >&5
17379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17380 test -z "$ac_type" && break
17386 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
17387 $as_echo_n "checking for uintptr_t... " >&6; }
17388 if test "${ac_cv_type_uintptr_t+set}" = set; then
17389 $as_echo_n "(cached) " >&6
17391 ac_cv_type_uintptr_t=no
17392 cat >conftest.$ac_ext <<_ACEOF
17395 cat confdefs.h >>conftest.$ac_ext
17396 cat >>conftest.$ac_ext <<_ACEOF
17397 /* end confdefs.h. */
17398 $ac_includes_default
17402 if (sizeof (uintptr_t))
17408 rm -f conftest.$ac_objext
17409 if { (ac_try="$ac_compile"
17410 case "(($ac_try" in
17411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17412 *) ac_try_echo=$ac_try;;
17414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17415 $as_echo "$ac_try_echo") >&5
17416 (eval "$ac_compile") 2>conftest.er1
17418 grep -v '^ *+' conftest.er1 >conftest.err
17420 cat conftest.err >&5
17421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); } && {
17423 test -z "$ac_c_werror_flag" ||
17424 test ! -s conftest.err
17425 } && test -s conftest.$ac_objext; then
17426 cat >conftest.$ac_ext <<_ACEOF
17429 cat confdefs.h >>conftest.$ac_ext
17430 cat >>conftest.$ac_ext <<_ACEOF
17431 /* end confdefs.h. */
17432 $ac_includes_default
17436 if (sizeof ((uintptr_t)))
17442 rm -f conftest.$ac_objext
17443 if { (ac_try="$ac_compile"
17444 case "(($ac_try" in
17445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17446 *) ac_try_echo=$ac_try;;
17448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17449 $as_echo "$ac_try_echo") >&5
17450 (eval "$ac_compile") 2>conftest.er1
17452 grep -v '^ *+' conftest.er1 >conftest.err
17454 cat conftest.err >&5
17455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); } && {
17457 test -z "$ac_c_werror_flag" ||
17458 test ! -s conftest.err
17459 } && test -s conftest.$ac_objext; then
17462 $as_echo "$as_me: failed program was:" >&5
17463 sed 's/^/| /' conftest.$ac_ext >&5
17465 ac_cv_type_uintptr_t=yes
17468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17470 $as_echo "$as_me: failed program was:" >&5
17471 sed 's/^/| /' conftest.$ac_ext >&5
17476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17478 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
17479 $as_echo "$ac_cv_type_uintptr_t" >&6; }
17480 if test "x$ac_cv_type_uintptr_t" = x""yes; then
17482 cat >>confdefs.h <<\_ACEOF
17483 #define HAVE_UINTPTR_T 1
17487 for ac_type in 'unsigned int' 'unsigned long int' \
17488 'unsigned long long int'; do
17489 cat >conftest.$ac_ext <<_ACEOF
17492 cat confdefs.h >>conftest.$ac_ext
17493 cat >>conftest.$ac_ext <<_ACEOF
17494 /* end confdefs.h. */
17495 $ac_includes_default
17499 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17506 rm -f conftest.$ac_objext
17507 if { (ac_try="$ac_compile"
17508 case "(($ac_try" in
17509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17510 *) ac_try_echo=$ac_try;;
17512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17513 $as_echo "$ac_try_echo") >&5
17514 (eval "$ac_compile") 2>conftest.er1
17516 grep -v '^ *+' conftest.er1 >conftest.err
17518 cat conftest.err >&5
17519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); } && {
17521 test -z "$ac_c_werror_flag" ||
17522 test ! -s conftest.err
17523 } && test -s conftest.$ac_objext; then
17525 cat >>confdefs.h <<_ACEOF
17526 #define uintptr_t $ac_type
17531 $as_echo "$as_me: failed program was:" >&5
17532 sed 's/^/| /' conftest.$ac_ext >&5
17537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17538 test -z "$ac_type" && break
17544 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
17545 $as_echo_n "checking for long long int... " >&6; }
17546 if test "${ac_cv_type_long_long_int+set}" = set; then
17547 $as_echo_n "(cached) " >&6
17549 cat >conftest.$ac_ext <<_ACEOF
17553 cat confdefs.h >>conftest.$ac_ext
17554 cat >>conftest.$ac_ext <<_ACEOF
17555 /* end confdefs.h. */
17556 /* For now, do not test the preprocessor; as of 2007 there are too many
17557 implementations with broken preprocessors. Perhaps this can
17558 be revisited in 2012. In the meantime, code should not expect
17559 #if to work with literals wider than 32 bits. */
17560 /* Test literals. */
17561 long long int ll = 9223372036854775807ll;
17562 long long int nll = -9223372036854775807LL;
17563 unsigned long long int ull = 18446744073709551615ULL;
17564 /* Test constant expressions. */
17565 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17567 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17573 /* Test availability of runtime routines for shift and division. */
17574 long long int llmax = 9223372036854775807ll;
17575 unsigned long long int ullmax = 18446744073709551615ull;
17576 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17577 | (llmax / ll) | (llmax % ll)
17578 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17579 | (ullmax / ull) | (ullmax % ull));
17585 rm -f conftest.$ac_objext conftest$ac_exeext
17586 if { (ac_try="$ac_link"
17587 case "(($ac_try" in
17588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17589 *) ac_try_echo=$ac_try;;
17591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17592 $as_echo "$ac_try_echo") >&5
17593 (eval "$ac_link") 2>conftest.er1
17595 grep -v '^ *+' conftest.er1 >conftest.err
17597 cat conftest.err >&5
17598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); } && {
17600 test -z "$ac_c_werror_flag" ||
17601 test ! -s conftest.err
17602 } && test -s conftest$ac_exeext && {
17603 test "$cross_compiling" = yes ||
17604 $as_test_x conftest$ac_exeext
17606 if test "$cross_compiling" = yes; then
17607 ac_cv_type_long_long_int=yes
17609 cat >conftest.$ac_ext <<_ACEOF
17612 cat confdefs.h >>conftest.$ac_ext
17613 cat >>conftest.$ac_ext <<_ACEOF
17614 /* end confdefs.h. */
17615 #include <limits.h>
17618 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17619 # define LLONG_MAX (HALF - 1 + HALF)
17624 long long int n = 1;
17628 long long int m = n << i;
17631 if (LLONG_MAX / 2 < m)
17639 rm -f conftest$ac_exeext
17640 if { (ac_try="$ac_link"
17641 case "(($ac_try" in
17642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17643 *) ac_try_echo=$ac_try;;
17645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17646 $as_echo "$ac_try_echo") >&5
17647 (eval "$ac_link") 2>&5
17649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17651 { (case "(($ac_try" in
17652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17653 *) ac_try_echo=$ac_try;;
17655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17656 $as_echo "$ac_try_echo") >&5
17657 (eval "$ac_try") 2>&5
17659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); }; }; then
17661 ac_cv_type_long_long_int=yes
17663 $as_echo "$as_me: program exited with status $ac_status" >&5
17664 $as_echo "$as_me: failed program was:" >&5
17665 sed 's/^/| /' conftest.$ac_ext >&5
17667 ( exit $ac_status )
17668 ac_cv_type_long_long_int=no
17670 rm -rf conftest.dSYM
17671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17676 $as_echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.$ac_ext >&5
17679 ac_cv_type_long_long_int=no
17682 rm -rf conftest.dSYM
17683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17684 conftest$ac_exeext conftest.$ac_ext
17686 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17687 $as_echo "$ac_cv_type_long_long_int" >&6; }
17688 if test $ac_cv_type_long_long_int = yes; then
17690 cat >>confdefs.h <<\_ACEOF
17691 #define HAVE_LONG_LONG_INT 1
17697 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
17698 $as_echo_n "checking for locale_t... " >&6; }
17699 if test "${pgac_cv_type_locale_t+set}" = set; then
17700 $as_echo_n "(cached) " >&6
17702 cat >conftest.$ac_ext <<_ACEOF
17705 cat confdefs.h >>conftest.$ac_ext
17706 cat >>conftest.$ac_ext <<_ACEOF
17707 /* end confdefs.h. */
17708 #include <locale.h>
17718 rm -f conftest.$ac_objext
17719 if { (ac_try="$ac_compile"
17720 case "(($ac_try" in
17721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17725 $as_echo "$ac_try_echo") >&5
17726 (eval "$ac_compile") 2>conftest.er1
17728 grep -v '^ *+' conftest.er1 >conftest.err
17730 cat conftest.err >&5
17731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); } && {
17733 test -z "$ac_c_werror_flag" ||
17734 test ! -s conftest.err
17735 } && test -s conftest.$ac_objext; then
17736 pgac_cv_type_locale_t=yes
17738 $as_echo "$as_me: failed program was:" >&5
17739 sed 's/^/| /' conftest.$ac_ext >&5
17741 cat >conftest.$ac_ext <<_ACEOF
17744 cat confdefs.h >>conftest.$ac_ext
17745 cat >>conftest.$ac_ext <<_ACEOF
17746 /* end confdefs.h. */
17747 #include <xlocale.h>
17757 rm -f conftest.$ac_objext
17758 if { (ac_try="$ac_compile"
17759 case "(($ac_try" in
17760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17761 *) ac_try_echo=$ac_try;;
17763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17764 $as_echo "$ac_try_echo") >&5
17765 (eval "$ac_compile") 2>conftest.er1
17767 grep -v '^ *+' conftest.er1 >conftest.err
17769 cat conftest.err >&5
17770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); } && {
17772 test -z "$ac_c_werror_flag" ||
17773 test ! -s conftest.err
17774 } && test -s conftest.$ac_objext; then
17775 pgac_cv_type_locale_t='yes (in xlocale.h)'
17777 $as_echo "$as_me: failed program was:" >&5
17778 sed 's/^/| /' conftest.$ac_ext >&5
17780 pgac_cv_type_locale_t=no
17783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17788 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_locale_t" >&5
17789 $as_echo "$pgac_cv_type_locale_t" >&6; }
17790 if test "$pgac_cv_type_locale_t" != no; then
17792 cat >>confdefs.h <<\_ACEOF
17793 #define HAVE_LOCALE_T 1
17797 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
17799 cat >>confdefs.h <<\_ACEOF
17800 #define LOCALE_T_IN_XLOCALE 1
17805 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
17806 $as_echo_n "checking for struct cmsgcred... " >&6; }
17807 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
17808 $as_echo_n "(cached) " >&6
17810 ac_cv_type_struct_cmsgcred=no
17811 cat >conftest.$ac_ext <<_ACEOF
17814 cat confdefs.h >>conftest.$ac_ext
17815 cat >>conftest.$ac_ext <<_ACEOF
17816 /* end confdefs.h. */
17817 #include <sys/socket.h>
17818 #ifdef HAVE_SYS_UCRED_H
17819 #include <sys/ucred.h>
17825 if (sizeof (struct cmsgcred))
17831 rm -f conftest.$ac_objext
17832 if { (ac_try="$ac_compile"
17833 case "(($ac_try" in
17834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17835 *) ac_try_echo=$ac_try;;
17837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17838 $as_echo "$ac_try_echo") >&5
17839 (eval "$ac_compile") 2>conftest.er1
17841 grep -v '^ *+' conftest.er1 >conftest.err
17843 cat conftest.err >&5
17844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); } && {
17846 test -z "$ac_c_werror_flag" ||
17847 test ! -s conftest.err
17848 } && test -s conftest.$ac_objext; then
17849 cat >conftest.$ac_ext <<_ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h. */
17855 #include <sys/socket.h>
17856 #ifdef HAVE_SYS_UCRED_H
17857 #include <sys/ucred.h>
17863 if (sizeof ((struct cmsgcred)))
17869 rm -f conftest.$ac_objext
17870 if { (ac_try="$ac_compile"
17871 case "(($ac_try" in
17872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17873 *) ac_try_echo=$ac_try;;
17875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17876 $as_echo "$ac_try_echo") >&5
17877 (eval "$ac_compile") 2>conftest.er1
17879 grep -v '^ *+' conftest.er1 >conftest.err
17881 cat conftest.err >&5
17882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); } && {
17884 test -z "$ac_c_werror_flag" ||
17885 test ! -s conftest.err
17886 } && test -s conftest.$ac_objext; then
17889 $as_echo "$as_me: failed program was:" >&5
17890 sed 's/^/| /' conftest.$ac_ext >&5
17892 ac_cv_type_struct_cmsgcred=yes
17895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17897 $as_echo "$as_me: failed program was:" >&5
17898 sed 's/^/| /' conftest.$ac_ext >&5
17903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17905 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
17906 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
17907 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
17909 cat >>confdefs.h <<_ACEOF
17910 #define HAVE_STRUCT_CMSGCRED 1
17917 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
17918 $as_echo_n "checking for struct option... " >&6; }
17919 if test "${ac_cv_type_struct_option+set}" = set; then
17920 $as_echo_n "(cached) " >&6
17922 ac_cv_type_struct_option=no
17923 cat >conftest.$ac_ext <<_ACEOF
17926 cat confdefs.h >>conftest.$ac_ext
17927 cat >>conftest.$ac_ext <<_ACEOF
17928 /* end confdefs.h. */
17929 #ifdef HAVE_GETOPT_H
17930 #include <getopt.h>
17936 if (sizeof (struct option))
17942 rm -f conftest.$ac_objext
17943 if { (ac_try="$ac_compile"
17944 case "(($ac_try" in
17945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17946 *) ac_try_echo=$ac_try;;
17948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17949 $as_echo "$ac_try_echo") >&5
17950 (eval "$ac_compile") 2>conftest.er1
17952 grep -v '^ *+' conftest.er1 >conftest.err
17954 cat conftest.err >&5
17955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); } && {
17957 test -z "$ac_c_werror_flag" ||
17958 test ! -s conftest.err
17959 } && test -s conftest.$ac_objext; then
17960 cat >conftest.$ac_ext <<_ACEOF
17963 cat confdefs.h >>conftest.$ac_ext
17964 cat >>conftest.$ac_ext <<_ACEOF
17965 /* end confdefs.h. */
17966 #ifdef HAVE_GETOPT_H
17967 #include <getopt.h>
17973 if (sizeof ((struct option)))
17979 rm -f conftest.$ac_objext
17980 if { (ac_try="$ac_compile"
17981 case "(($ac_try" in
17982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17983 *) ac_try_echo=$ac_try;;
17985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17986 $as_echo "$ac_try_echo") >&5
17987 (eval "$ac_compile") 2>conftest.er1
17989 grep -v '^ *+' conftest.er1 >conftest.err
17991 cat conftest.err >&5
17992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); } && {
17994 test -z "$ac_c_werror_flag" ||
17995 test ! -s conftest.err
17996 } && test -s conftest.$ac_objext; then
17999 $as_echo "$as_me: failed program was:" >&5
18000 sed 's/^/| /' conftest.$ac_ext >&5
18002 ac_cv_type_struct_option=yes
18005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18007 $as_echo "$as_me: failed program was:" >&5
18008 sed 's/^/| /' conftest.$ac_ext >&5
18013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18015 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
18016 $as_echo "$ac_cv_type_struct_option" >&6; }
18017 if test "x$ac_cv_type_struct_option" = x""yes; then
18019 cat >>confdefs.h <<_ACEOF
18020 #define HAVE_STRUCT_OPTION 1
18027 if test "$with_zlib" = yes; then
18028 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
18029 # did not). While we could work around the lack of z_streamp, it
18030 # seems unwise to encourage people to use such old zlib versions...
18031 { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
18032 $as_echo_n "checking for z_streamp... " >&6; }
18033 if test "${ac_cv_type_z_streamp+set}" = set; then
18034 $as_echo_n "(cached) " >&6
18036 ac_cv_type_z_streamp=no
18037 cat >conftest.$ac_ext <<_ACEOF
18040 cat confdefs.h >>conftest.$ac_ext
18041 cat >>conftest.$ac_ext <<_ACEOF
18042 /* end confdefs.h. */
18048 if (sizeof (z_streamp))
18054 rm -f conftest.$ac_objext
18055 if { (ac_try="$ac_compile"
18056 case "(($ac_try" in
18057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18058 *) ac_try_echo=$ac_try;;
18060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18061 $as_echo "$ac_try_echo") >&5
18062 (eval "$ac_compile") 2>conftest.er1
18064 grep -v '^ *+' conftest.er1 >conftest.err
18066 cat conftest.err >&5
18067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); } && {
18069 test -z "$ac_c_werror_flag" ||
18070 test ! -s conftest.err
18071 } && test -s conftest.$ac_objext; then
18072 cat >conftest.$ac_ext <<_ACEOF
18075 cat confdefs.h >>conftest.$ac_ext
18076 cat >>conftest.$ac_ext <<_ACEOF
18077 /* end confdefs.h. */
18083 if (sizeof ((z_streamp)))
18089 rm -f conftest.$ac_objext
18090 if { (ac_try="$ac_compile"
18091 case "(($ac_try" in
18092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18093 *) ac_try_echo=$ac_try;;
18095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18096 $as_echo "$ac_try_echo") >&5
18097 (eval "$ac_compile") 2>conftest.er1
18099 grep -v '^ *+' conftest.er1 >conftest.err
18101 cat conftest.err >&5
18102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); } && {
18104 test -z "$ac_c_werror_flag" ||
18105 test ! -s conftest.err
18106 } && test -s conftest.$ac_objext; then
18109 $as_echo "$as_me: failed program was:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18112 ac_cv_type_z_streamp=yes
18115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18117 $as_echo "$as_me: failed program was:" >&5
18118 sed 's/^/| /' conftest.$ac_ext >&5
18123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18125 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
18126 $as_echo "$ac_cv_type_z_streamp" >&6; }
18127 if test "x$ac_cv_type_z_streamp" = x""yes; then
18130 { { $as_echo "$as_me:$LINENO: error: zlib version is too old
18131 Use --without-zlib to disable zlib support." >&5
18132 $as_echo "$as_me: error: zlib version is too old
18133 Use --without-zlib to disable zlib support." >&2;}
18134 { (exit 1); exit 1; }; }
18139 if test "$with_krb5" = yes; then
18140 # Check for differences between MIT and Heimdal (KTH) releases
18141 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
18142 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
18143 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
18144 $as_echo_n "(cached) " >&6
18146 cat >conftest.$ac_ext <<_ACEOF
18149 cat confdefs.h >>conftest.$ac_ext
18150 cat >>conftest.$ac_ext <<_ACEOF
18151 /* end confdefs.h. */
18157 static krb5_ticket ac_aggr;
18158 if (ac_aggr.enc_part2)
18164 rm -f conftest.$ac_objext
18165 if { (ac_try="$ac_compile"
18166 case "(($ac_try" in
18167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18171 $as_echo "$ac_try_echo") >&5
18172 (eval "$ac_compile") 2>conftest.er1
18174 grep -v '^ *+' conftest.er1 >conftest.err
18176 cat conftest.err >&5
18177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); } && {
18179 test -z "$ac_c_werror_flag" ||
18180 test ! -s conftest.err
18181 } && test -s conftest.$ac_objext; then
18182 ac_cv_member_krb5_ticket_enc_part2=yes
18184 $as_echo "$as_me: failed program was:" >&5
18185 sed 's/^/| /' conftest.$ac_ext >&5
18187 cat >conftest.$ac_ext <<_ACEOF
18190 cat confdefs.h >>conftest.$ac_ext
18191 cat >>conftest.$ac_ext <<_ACEOF
18192 /* end confdefs.h. */
18198 static krb5_ticket ac_aggr;
18199 if (sizeof ac_aggr.enc_part2)
18205 rm -f conftest.$ac_objext
18206 if { (ac_try="$ac_compile"
18207 case "(($ac_try" in
18208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209 *) ac_try_echo=$ac_try;;
18211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18212 $as_echo "$ac_try_echo") >&5
18213 (eval "$ac_compile") 2>conftest.er1
18215 grep -v '^ *+' conftest.er1 >conftest.err
18217 cat conftest.err >&5
18218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); } && {
18220 test -z "$ac_c_werror_flag" ||
18221 test ! -s conftest.err
18222 } && test -s conftest.$ac_objext; then
18223 ac_cv_member_krb5_ticket_enc_part2=yes
18225 $as_echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18228 ac_cv_member_krb5_ticket_enc_part2=no
18231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18236 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
18237 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
18238 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
18240 cat >>confdefs.h <<_ACEOF
18241 #define HAVE_KRB5_TICKET_ENC_PART2 1
18246 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
18247 $as_echo_n "checking for krb5_ticket.client... " >&6; }
18248 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
18249 $as_echo_n "(cached) " >&6
18251 cat >conftest.$ac_ext <<_ACEOF
18254 cat confdefs.h >>conftest.$ac_ext
18255 cat >>conftest.$ac_ext <<_ACEOF
18256 /* end confdefs.h. */
18262 static krb5_ticket ac_aggr;
18263 if (ac_aggr.client)
18269 rm -f conftest.$ac_objext
18270 if { (ac_try="$ac_compile"
18271 case "(($ac_try" in
18272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18273 *) ac_try_echo=$ac_try;;
18275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18276 $as_echo "$ac_try_echo") >&5
18277 (eval "$ac_compile") 2>conftest.er1
18279 grep -v '^ *+' conftest.er1 >conftest.err
18281 cat conftest.err >&5
18282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); } && {
18284 test -z "$ac_c_werror_flag" ||
18285 test ! -s conftest.err
18286 } && test -s conftest.$ac_objext; then
18287 ac_cv_member_krb5_ticket_client=yes
18289 $as_echo "$as_me: failed program was:" >&5
18290 sed 's/^/| /' conftest.$ac_ext >&5
18292 cat >conftest.$ac_ext <<_ACEOF
18295 cat confdefs.h >>conftest.$ac_ext
18296 cat >>conftest.$ac_ext <<_ACEOF
18297 /* end confdefs.h. */
18303 static krb5_ticket ac_aggr;
18304 if (sizeof ac_aggr.client)
18310 rm -f conftest.$ac_objext
18311 if { (ac_try="$ac_compile"
18312 case "(($ac_try" in
18313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18314 *) ac_try_echo=$ac_try;;
18316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18317 $as_echo "$ac_try_echo") >&5
18318 (eval "$ac_compile") 2>conftest.er1
18320 grep -v '^ *+' conftest.er1 >conftest.err
18322 cat conftest.err >&5
18323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); } && {
18325 test -z "$ac_c_werror_flag" ||
18326 test ! -s conftest.err
18327 } && test -s conftest.$ac_objext; then
18328 ac_cv_member_krb5_ticket_client=yes
18330 $as_echo "$as_me: failed program was:" >&5
18331 sed 's/^/| /' conftest.$ac_ext >&5
18333 ac_cv_member_krb5_ticket_client=no
18336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18341 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
18342 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
18343 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
18345 cat >>confdefs.h <<_ACEOF
18346 #define HAVE_KRB5_TICKET_CLIENT 1
18351 { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
18352 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
18353 { (exit 1); exit 1; }; }
18358 { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
18359 $as_echo_n "checking for krb5_error.text.data... " >&6; }
18360 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
18361 $as_echo_n "(cached) " >&6
18363 cat >conftest.$ac_ext <<_ACEOF
18366 cat confdefs.h >>conftest.$ac_ext
18367 cat >>conftest.$ac_ext <<_ACEOF
18368 /* end confdefs.h. */
18374 static krb5_error ac_aggr;
18375 if (ac_aggr.text.data)
18381 rm -f conftest.$ac_objext
18382 if { (ac_try="$ac_compile"
18383 case "(($ac_try" in
18384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18385 *) ac_try_echo=$ac_try;;
18387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18388 $as_echo "$ac_try_echo") >&5
18389 (eval "$ac_compile") 2>conftest.er1
18391 grep -v '^ *+' conftest.er1 >conftest.err
18393 cat conftest.err >&5
18394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); } && {
18396 test -z "$ac_c_werror_flag" ||
18397 test ! -s conftest.err
18398 } && test -s conftest.$ac_objext; then
18399 ac_cv_member_krb5_error_text_data=yes
18401 $as_echo "$as_me: failed program was:" >&5
18402 sed 's/^/| /' conftest.$ac_ext >&5
18404 cat >conftest.$ac_ext <<_ACEOF
18407 cat confdefs.h >>conftest.$ac_ext
18408 cat >>conftest.$ac_ext <<_ACEOF
18409 /* end confdefs.h. */
18415 static krb5_error ac_aggr;
18416 if (sizeof ac_aggr.text.data)
18422 rm -f conftest.$ac_objext
18423 if { (ac_try="$ac_compile"
18424 case "(($ac_try" in
18425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426 *) ac_try_echo=$ac_try;;
18428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18429 $as_echo "$ac_try_echo") >&5
18430 (eval "$ac_compile") 2>conftest.er1
18432 grep -v '^ *+' conftest.er1 >conftest.err
18434 cat conftest.err >&5
18435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); } && {
18437 test -z "$ac_c_werror_flag" ||
18438 test ! -s conftest.err
18439 } && test -s conftest.$ac_objext; then
18440 ac_cv_member_krb5_error_text_data=yes
18442 $as_echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18445 ac_cv_member_krb5_error_text_data=no
18448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18453 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
18454 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
18455 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
18457 cat >>confdefs.h <<_ACEOF
18458 #define HAVE_KRB5_ERROR_TEXT_DATA 1
18463 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
18464 $as_echo_n "checking for krb5_error.e_data... " >&6; }
18465 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
18466 $as_echo_n "(cached) " >&6
18468 cat >conftest.$ac_ext <<_ACEOF
18471 cat confdefs.h >>conftest.$ac_ext
18472 cat >>conftest.$ac_ext <<_ACEOF
18473 /* end confdefs.h. */
18479 static krb5_error ac_aggr;
18480 if (ac_aggr.e_data)
18486 rm -f conftest.$ac_objext
18487 if { (ac_try="$ac_compile"
18488 case "(($ac_try" in
18489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18490 *) ac_try_echo=$ac_try;;
18492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18493 $as_echo "$ac_try_echo") >&5
18494 (eval "$ac_compile") 2>conftest.er1
18496 grep -v '^ *+' conftest.er1 >conftest.err
18498 cat conftest.err >&5
18499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); } && {
18501 test -z "$ac_c_werror_flag" ||
18502 test ! -s conftest.err
18503 } && test -s conftest.$ac_objext; then
18504 ac_cv_member_krb5_error_e_data=yes
18506 $as_echo "$as_me: failed program was:" >&5
18507 sed 's/^/| /' conftest.$ac_ext >&5
18509 cat >conftest.$ac_ext <<_ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h. */
18520 static krb5_error ac_aggr;
18521 if (sizeof ac_aggr.e_data)
18527 rm -f conftest.$ac_objext
18528 if { (ac_try="$ac_compile"
18529 case "(($ac_try" in
18530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18531 *) ac_try_echo=$ac_try;;
18533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18534 $as_echo "$ac_try_echo") >&5
18535 (eval "$ac_compile") 2>conftest.er1
18537 grep -v '^ *+' conftest.er1 >conftest.err
18539 cat conftest.err >&5
18540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } && {
18542 test -z "$ac_c_werror_flag" ||
18543 test ! -s conftest.err
18544 } && test -s conftest.$ac_objext; then
18545 ac_cv_member_krb5_error_e_data=yes
18547 $as_echo "$as_me: failed program was:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18550 ac_cv_member_krb5_error_e_data=no
18553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18558 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
18559 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
18560 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
18562 cat >>confdefs.h <<_ACEOF
18563 #define HAVE_KRB5_ERROR_E_DATA 1
18568 { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
18569 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
18570 { (exit 1); exit 1; }; }
18576 # Win32 requires headers to be loaded for __stdcall, so can't use
18577 # AC_CHECK_FUNCS here.
18578 { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
18579 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
18580 cat >conftest.$ac_ext <<_ACEOF
18583 cat confdefs.h >>conftest.$ac_ext
18584 cat >>conftest.$ac_ext <<_ACEOF
18585 /* end confdefs.h. */
18590 krb5_free_unparsed_name(NULL,NULL);
18595 rm -f conftest.$ac_objext conftest$ac_exeext
18596 if { (ac_try="$ac_link"
18597 case "(($ac_try" in
18598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18599 *) ac_try_echo=$ac_try;;
18601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18602 $as_echo "$ac_try_echo") >&5
18603 (eval "$ac_link") 2>conftest.er1
18605 grep -v '^ *+' conftest.er1 >conftest.err
18607 cat conftest.err >&5
18608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); } && {
18610 test -z "$ac_c_werror_flag" ||
18611 test ! -s conftest.err
18612 } && test -s conftest$ac_exeext && {
18613 test "$cross_compiling" = yes ||
18614 $as_test_x conftest$ac_exeext
18617 cat >>confdefs.h <<\_ACEOF
18618 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
18621 { $as_echo "$as_me:$LINENO: result: yes" >&5
18622 $as_echo "yes" >&6; }
18624 $as_echo "$as_me: failed program was:" >&5
18625 sed 's/^/| /' conftest.$ac_ext >&5
18627 { $as_echo "$as_me:$LINENO: result: no" >&5
18628 $as_echo "no" >&6; }
18631 rm -rf conftest.dSYM
18632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18633 conftest$ac_exeext conftest.$ac_ext
18636 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
18639 { $as_echo "$as_me:$LINENO: checking whether assembler supports lwarx hint bit" >&5
18640 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
18641 cat >conftest.$ac_ext <<_ACEOF
18644 cat confdefs.h >>conftest.$ac_ext
18645 cat >>conftest.$ac_ext <<_ACEOF
18646 /* end confdefs.h. */
18651 int a = 0; int *p = &a; int r;
18652 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
18657 rm -f conftest.$ac_objext
18658 if { (ac_try="$ac_compile"
18659 case "(($ac_try" in
18660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18661 *) ac_try_echo=$ac_try;;
18663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18664 $as_echo "$ac_try_echo") >&5
18665 (eval "$ac_compile") 2>conftest.er1
18667 grep -v '^ *+' conftest.er1 >conftest.err
18669 cat conftest.err >&5
18670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); } && {
18672 test -z "$ac_c_werror_flag" ||
18673 test ! -s conftest.err
18674 } && test -s conftest.$ac_objext; then
18675 pgac_cv_have_ppc_mutex_hint=yes
18677 $as_echo "$as_me: failed program was:" >&5
18678 sed 's/^/| /' conftest.$ac_ext >&5
18680 pgac_cv_have_ppc_mutex_hint=no
18683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18684 { $as_echo "$as_me:$LINENO: result: $pgac_cv_have_ppc_mutex_hint" >&5
18685 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
18686 if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
18688 cat >>confdefs.h <<\_ACEOF
18689 #define HAVE_PPC_LWARX_MUTEX_HINT 1
18696 # Check largefile support. You might think this is a system service not a
18697 # compiler characteristic, but you'd be wrong. We must check this before
18698 # probing existence of related functions such as fseeko, since the largefile
18699 # defines can affect what is generated for that.
18700 if test "$PORTNAME" != "win32"; then
18701 # Check whether --enable-largefile was given.
18702 if test "${enable_largefile+set}" = set; then
18703 enableval=$enable_largefile;
18706 if test "$enable_largefile" != no; then
18708 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18709 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18710 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18711 $as_echo_n "(cached) " >&6
18713 ac_cv_sys_largefile_CC=no
18714 if test "$GCC" != yes; then
18717 # IRIX 6.2 and later do not support large files by default,
18718 # so use the C compiler's -n32 option if that helps.
18719 cat >conftest.$ac_ext <<_ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h. */
18725 #include <sys/types.h>
18726 /* Check that off_t can represent 2**63 - 1 correctly.
18727 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18728 since some C++ compilers masquerading as C compilers
18729 incorrectly reject 9223372036854775807. */
18730 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18731 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18732 && LARGE_OFF_T % 2147483647 == 1)
18742 rm -f conftest.$ac_objext
18743 if { (ac_try="$ac_compile"
18744 case "(($ac_try" in
18745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18746 *) ac_try_echo=$ac_try;;
18748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18749 $as_echo "$ac_try_echo") >&5
18750 (eval "$ac_compile") 2>conftest.er1
18752 grep -v '^ *+' conftest.er1 >conftest.err
18754 cat conftest.err >&5
18755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); } && {
18757 test -z "$ac_c_werror_flag" ||
18758 test ! -s conftest.err
18759 } && test -s conftest.$ac_objext; then
18762 $as_echo "$as_me: failed program was:" >&5
18763 sed 's/^/| /' conftest.$ac_ext >&5
18768 rm -f core conftest.err conftest.$ac_objext
18770 rm -f conftest.$ac_objext
18771 if { (ac_try="$ac_compile"
18772 case "(($ac_try" in
18773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18774 *) ac_try_echo=$ac_try;;
18776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18777 $as_echo "$ac_try_echo") >&5
18778 (eval "$ac_compile") 2>conftest.er1
18780 grep -v '^ *+' conftest.er1 >conftest.err
18782 cat conftest.err >&5
18783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); } && {
18785 test -z "$ac_c_werror_flag" ||
18786 test ! -s conftest.err
18787 } && test -s conftest.$ac_objext; then
18788 ac_cv_sys_largefile_CC=' -n32'; break
18790 $as_echo "$as_me: failed program was:" >&5
18791 sed 's/^/| /' conftest.$ac_ext >&5
18796 rm -f core conftest.err conftest.$ac_objext
18800 rm -f conftest.$ac_ext
18803 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18804 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18805 if test "$ac_cv_sys_largefile_CC" != no; then
18806 CC=$CC$ac_cv_sys_largefile_CC
18809 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18810 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18811 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18812 $as_echo_n "(cached) " >&6
18815 cat >conftest.$ac_ext <<_ACEOF
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h. */
18821 #include <sys/types.h>
18822 /* Check that off_t can represent 2**63 - 1 correctly.
18823 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18824 since some C++ compilers masquerading as C compilers
18825 incorrectly reject 9223372036854775807. */
18826 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18827 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18828 && LARGE_OFF_T % 2147483647 == 1)
18838 rm -f conftest.$ac_objext
18839 if { (ac_try="$ac_compile"
18840 case "(($ac_try" in
18841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842 *) ac_try_echo=$ac_try;;
18844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18845 $as_echo "$ac_try_echo") >&5
18846 (eval "$ac_compile") 2>conftest.er1
18848 grep -v '^ *+' conftest.er1 >conftest.err
18850 cat conftest.err >&5
18851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); } && {
18853 test -z "$ac_c_werror_flag" ||
18854 test ! -s conftest.err
18855 } && test -s conftest.$ac_objext; then
18856 ac_cv_sys_file_offset_bits=no; break
18858 $as_echo "$as_me: failed program was:" >&5
18859 sed 's/^/| /' conftest.$ac_ext >&5
18864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18865 cat >conftest.$ac_ext <<_ACEOF
18868 cat confdefs.h >>conftest.$ac_ext
18869 cat >>conftest.$ac_ext <<_ACEOF
18870 /* end confdefs.h. */
18871 #define _FILE_OFFSET_BITS 64
18872 #include <sys/types.h>
18873 /* Check that off_t can represent 2**63 - 1 correctly.
18874 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18875 since some C++ compilers masquerading as C compilers
18876 incorrectly reject 9223372036854775807. */
18877 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18878 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18879 && LARGE_OFF_T % 2147483647 == 1)
18889 rm -f conftest.$ac_objext
18890 if { (ac_try="$ac_compile"
18891 case "(($ac_try" in
18892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893 *) ac_try_echo=$ac_try;;
18895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18896 $as_echo "$ac_try_echo") >&5
18897 (eval "$ac_compile") 2>conftest.er1
18899 grep -v '^ *+' conftest.er1 >conftest.err
18901 cat conftest.err >&5
18902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); } && {
18904 test -z "$ac_c_werror_flag" ||
18905 test ! -s conftest.err
18906 } && test -s conftest.$ac_objext; then
18907 ac_cv_sys_file_offset_bits=64; break
18909 $as_echo "$as_me: failed program was:" >&5
18910 sed 's/^/| /' conftest.$ac_ext >&5
18915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18916 ac_cv_sys_file_offset_bits=unknown
18920 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18921 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18922 case $ac_cv_sys_file_offset_bits in #(
18925 cat >>confdefs.h <<_ACEOF
18926 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18931 if test $ac_cv_sys_file_offset_bits = unknown; then
18932 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18933 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18934 if test "${ac_cv_sys_large_files+set}" = set; then
18935 $as_echo_n "(cached) " >&6
18938 cat >conftest.$ac_ext <<_ACEOF
18941 cat confdefs.h >>conftest.$ac_ext
18942 cat >>conftest.$ac_ext <<_ACEOF
18943 /* end confdefs.h. */
18944 #include <sys/types.h>
18945 /* Check that off_t can represent 2**63 - 1 correctly.
18946 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18947 since some C++ compilers masquerading as C compilers
18948 incorrectly reject 9223372036854775807. */
18949 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18950 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18951 && LARGE_OFF_T % 2147483647 == 1)
18961 rm -f conftest.$ac_objext
18962 if { (ac_try="$ac_compile"
18963 case "(($ac_try" in
18964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965 *) ac_try_echo=$ac_try;;
18967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18968 $as_echo "$ac_try_echo") >&5
18969 (eval "$ac_compile") 2>conftest.er1
18971 grep -v '^ *+' conftest.er1 >conftest.err
18973 cat conftest.err >&5
18974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); } && {
18976 test -z "$ac_c_werror_flag" ||
18977 test ! -s conftest.err
18978 } && test -s conftest.$ac_objext; then
18979 ac_cv_sys_large_files=no; break
18981 $as_echo "$as_me: failed program was:" >&5
18982 sed 's/^/| /' conftest.$ac_ext >&5
18987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18988 cat >conftest.$ac_ext <<_ACEOF
18991 cat confdefs.h >>conftest.$ac_ext
18992 cat >>conftest.$ac_ext <<_ACEOF
18993 /* end confdefs.h. */
18994 #define _LARGE_FILES 1
18995 #include <sys/types.h>
18996 /* Check that off_t can represent 2**63 - 1 correctly.
18997 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18998 since some C++ compilers masquerading as C compilers
18999 incorrectly reject 9223372036854775807. */
19000 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19001 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19002 && LARGE_OFF_T % 2147483647 == 1)
19012 rm -f conftest.$ac_objext
19013 if { (ac_try="$ac_compile"
19014 case "(($ac_try" in
19015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19016 *) ac_try_echo=$ac_try;;
19018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19019 $as_echo "$ac_try_echo") >&5
19020 (eval "$ac_compile") 2>conftest.er1
19022 grep -v '^ *+' conftest.er1 >conftest.err
19024 cat conftest.err >&5
19025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } && {
19027 test -z "$ac_c_werror_flag" ||
19028 test ! -s conftest.err
19029 } && test -s conftest.$ac_objext; then
19030 ac_cv_sys_large_files=1; break
19032 $as_echo "$as_me: failed program was:" >&5
19033 sed 's/^/| /' conftest.$ac_ext >&5
19038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19039 ac_cv_sys_large_files=unknown
19043 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19044 $as_echo "$ac_cv_sys_large_files" >&6; }
19045 case $ac_cv_sys_large_files in #(
19048 cat >>confdefs.h <<_ACEOF
19049 #define _LARGE_FILES $ac_cv_sys_large_files
19059 # Check for largefile support (must be after AC_SYS_LARGEFILE)
19060 # The cast to long int works around a bug in the HP C Compiler
19061 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19062 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19063 # This bug is HP SR number 8606223364.
19064 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
19065 $as_echo_n "checking size of off_t... " >&6; }
19066 if test "${ac_cv_sizeof_off_t+set}" = set; then
19067 $as_echo_n "(cached) " >&6
19069 if test "$cross_compiling" = yes; then
19070 # Depending upon the size, compute the lo and hi bounds.
19071 cat >conftest.$ac_ext <<_ACEOF
19074 cat confdefs.h >>conftest.$ac_ext
19075 cat >>conftest.$ac_ext <<_ACEOF
19076 /* end confdefs.h. */
19077 $ac_includes_default
19081 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
19088 rm -f conftest.$ac_objext
19089 if { (ac_try="$ac_compile"
19090 case "(($ac_try" in
19091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19095 $as_echo "$ac_try_echo") >&5
19096 (eval "$ac_compile") 2>conftest.er1
19098 grep -v '^ *+' conftest.er1 >conftest.err
19100 cat conftest.err >&5
19101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } && {
19103 test -z "$ac_c_werror_flag" ||
19104 test ! -s conftest.err
19105 } && test -s conftest.$ac_objext; then
19108 cat >conftest.$ac_ext <<_ACEOF
19111 cat confdefs.h >>conftest.$ac_ext
19112 cat >>conftest.$ac_ext <<_ACEOF
19113 /* end confdefs.h. */
19114 $ac_includes_default
19118 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
19125 rm -f conftest.$ac_objext
19126 if { (ac_try="$ac_compile"
19127 case "(($ac_try" in
19128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19129 *) ac_try_echo=$ac_try;;
19131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19132 $as_echo "$ac_try_echo") >&5
19133 (eval "$ac_compile") 2>conftest.er1
19135 grep -v '^ *+' conftest.er1 >conftest.err
19137 cat conftest.err >&5
19138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); } && {
19140 test -z "$ac_c_werror_flag" ||
19141 test ! -s conftest.err
19142 } && test -s conftest.$ac_objext; then
19143 ac_hi=$ac_mid; break
19145 $as_echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19148 ac_lo=`expr $ac_mid + 1`
19149 if test $ac_lo -le $ac_mid; then
19153 ac_mid=`expr 2 '*' $ac_mid + 1`
19156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19159 $as_echo "$as_me: failed program was:" >&5
19160 sed 's/^/| /' conftest.$ac_ext >&5
19162 cat >conftest.$ac_ext <<_ACEOF
19165 cat confdefs.h >>conftest.$ac_ext
19166 cat >>conftest.$ac_ext <<_ACEOF
19167 /* end confdefs.h. */
19168 $ac_includes_default
19172 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
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
19199 cat >conftest.$ac_ext <<_ACEOF
19202 cat confdefs.h >>conftest.$ac_ext
19203 cat >>conftest.$ac_ext <<_ACEOF
19204 /* end confdefs.h. */
19205 $ac_includes_default
19209 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
19216 rm -f conftest.$ac_objext
19217 if { (ac_try="$ac_compile"
19218 case "(($ac_try" in
19219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220 *) ac_try_echo=$ac_try;;
19222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19223 $as_echo "$ac_try_echo") >&5
19224 (eval "$ac_compile") 2>conftest.er1
19226 grep -v '^ *+' conftest.er1 >conftest.err
19228 cat conftest.err >&5
19229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); } && {
19231 test -z "$ac_c_werror_flag" ||
19232 test ! -s conftest.err
19233 } && test -s conftest.$ac_objext; then
19234 ac_lo=$ac_mid; break
19236 $as_echo "$as_me: failed program was:" >&5
19237 sed 's/^/| /' conftest.$ac_ext >&5
19239 ac_hi=`expr '(' $ac_mid ')' - 1`
19240 if test $ac_mid -le $ac_hi; then
19244 ac_mid=`expr 2 '*' $ac_mid`
19247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19250 $as_echo "$as_me: failed program was:" >&5
19251 sed 's/^/| /' conftest.$ac_ext >&5
19256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19260 # Binary search between lo and hi bounds.
19261 while test "x$ac_lo" != "x$ac_hi"; do
19262 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19263 cat >conftest.$ac_ext <<_ACEOF
19266 cat confdefs.h >>conftest.$ac_ext
19267 cat >>conftest.$ac_ext <<_ACEOF
19268 /* end confdefs.h. */
19269 $ac_includes_default
19273 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
19280 rm -f conftest.$ac_objext
19281 if { (ac_try="$ac_compile"
19282 case "(($ac_try" in
19283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284 *) ac_try_echo=$ac_try;;
19286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19287 $as_echo "$ac_try_echo") >&5
19288 (eval "$ac_compile") 2>conftest.er1
19290 grep -v '^ *+' conftest.er1 >conftest.err
19292 cat conftest.err >&5
19293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); } && {
19295 test -z "$ac_c_werror_flag" ||
19296 test ! -s conftest.err
19297 } && test -s conftest.$ac_objext; then
19300 $as_echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19303 ac_lo=`expr '(' $ac_mid ')' + 1`
19306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19309 ?*) ac_cv_sizeof_off_t=$ac_lo;;
19310 '') if test "$ac_cv_type_off_t" = yes; then
19311 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19313 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
19314 See \`config.log' for more details." >&5
19315 $as_echo "$as_me: error: cannot compute sizeof (off_t)
19316 See \`config.log' for more details." >&2;}
19317 { (exit 77); exit 77; }; }; }
19319 ac_cv_sizeof_off_t=0
19323 cat >conftest.$ac_ext <<_ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h. */
19329 $ac_includes_default
19330 static long int longval () { return (long int) (sizeof (off_t)); }
19331 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
19333 #include <stdlib.h>
19338 FILE *f = fopen ("conftest.val", "w");
19341 if (((long int) (sizeof (off_t))) < 0)
19343 long int i = longval ();
19344 if (i != ((long int) (sizeof (off_t))))
19346 fprintf (f, "%ld", i);
19350 unsigned long int i = ulongval ();
19351 if (i != ((long int) (sizeof (off_t))))
19353 fprintf (f, "%lu", i);
19355 /* Do not output a trailing newline, as this causes \r\n confusion
19356 on some platforms. */
19357 return ferror (f) || fclose (f) != 0;
19363 rm -f conftest$ac_exeext
19364 if { (ac_try="$ac_link"
19365 case "(($ac_try" in
19366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19367 *) ac_try_echo=$ac_try;;
19369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19370 $as_echo "$ac_try_echo") >&5
19371 (eval "$ac_link") 2>&5
19373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19375 { (case "(($ac_try" in
19376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19377 *) ac_try_echo=$ac_try;;
19379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19380 $as_echo "$ac_try_echo") >&5
19381 (eval "$ac_try") 2>&5
19383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; }; then
19385 ac_cv_sizeof_off_t=`cat conftest.val`
19387 $as_echo "$as_me: program exited with status $ac_status" >&5
19388 $as_echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19391 ( exit $ac_status )
19392 if test "$ac_cv_type_off_t" = yes; then
19393 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19395 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
19396 See \`config.log' for more details." >&5
19397 $as_echo "$as_me: error: cannot compute sizeof (off_t)
19398 See \`config.log' for more details." >&2;}
19399 { (exit 77); exit 77; }; }; }
19401 ac_cv_sizeof_off_t=0
19404 rm -rf conftest.dSYM
19405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19409 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
19410 $as_echo "$ac_cv_sizeof_off_t" >&6; }
19414 cat >>confdefs.h <<_ACEOF
19415 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
19420 # If we don't have largefile support, can't handle segsize >= 2GB.
19421 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
19422 { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
19423 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
19424 { (exit 1); exit 1; }; }
19429 ## Functions, global variables
19432 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
19433 $as_echo_n "checking for int timezone... " >&6; }
19434 if test "${pgac_cv_var_int_timezone+set}" = set; then
19435 $as_echo_n "(cached) " >&6
19437 cat >conftest.$ac_ext <<_ACEOF
19440 cat confdefs.h >>conftest.$ac_ext
19441 cat >>conftest.$ac_ext <<_ACEOF
19442 /* end confdefs.h. */
19449 res = timezone / 60;
19451 res = _timezone / 60;
19457 rm -f conftest.$ac_objext conftest$ac_exeext
19458 if { (ac_try="$ac_link"
19459 case "(($ac_try" in
19460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461 *) ac_try_echo=$ac_try;;
19463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19464 $as_echo "$ac_try_echo") >&5
19465 (eval "$ac_link") 2>conftest.er1
19467 grep -v '^ *+' conftest.er1 >conftest.err
19469 cat conftest.err >&5
19470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); } && {
19472 test -z "$ac_c_werror_flag" ||
19473 test ! -s conftest.err
19474 } && test -s conftest$ac_exeext && {
19475 test "$cross_compiling" = yes ||
19476 $as_test_x conftest$ac_exeext
19478 pgac_cv_var_int_timezone=yes
19480 $as_echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19483 pgac_cv_var_int_timezone=no
19486 rm -rf conftest.dSYM
19487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19488 conftest$ac_exeext conftest.$ac_ext
19490 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
19491 $as_echo "$pgac_cv_var_int_timezone" >&6; }
19492 if test x"$pgac_cv_var_int_timezone" = xyes ; then
19494 cat >>confdefs.h <<\_ACEOF
19495 #define HAVE_INT_TIMEZONE 1
19499 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
19500 $as_echo_n "checking types of arguments for accept()... " >&6; }
19501 if test "${ac_cv_func_accept_return+set}" = set; then
19502 $as_echo_n "(cached) " >&6
19504 if test "${ac_cv_func_accept_arg1+set}" = set; then
19505 $as_echo_n "(cached) " >&6
19507 if test "${ac_cv_func_accept_arg2+set}" = set; then
19508 $as_echo_n "(cached) " >&6
19510 if test "${ac_cv_func_accept_arg3+set}" = set; then
19511 $as_echo_n "(cached) " >&6
19513 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
19514 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
19515 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
19516 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
19517 cat >conftest.$ac_ext <<_ACEOF
19520 cat confdefs.h >>conftest.$ac_ext
19521 cat >>conftest.$ac_ext <<_ACEOF
19522 /* end confdefs.h. */
19523 #ifdef HAVE_SYS_TYPES_H
19524 #include <sys/types.h>
19526 #ifdef HAVE_SYS_SOCKET_H
19527 #include <sys/socket.h>
19529 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
19538 rm -f conftest.$ac_objext
19539 if { (ac_try="$ac_compile"
19540 case "(($ac_try" in
19541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542 *) ac_try_echo=$ac_try;;
19544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19545 $as_echo "$ac_try_echo") >&5
19546 (eval "$ac_compile") 2>conftest.er1
19548 grep -v '^ *+' conftest.er1 >conftest.err
19550 cat conftest.err >&5
19551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); } && {
19553 test -z "$ac_c_werror_flag" ||
19554 test ! -s conftest.err
19555 } && test -s conftest.$ac_objext; then
19556 ac_not_found=no; break 4
19558 $as_echo "$as_me: failed program was:" >&5
19559 sed 's/^/| /' conftest.$ac_ext >&5
19564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19569 if test "$ac_not_found" = yes; then
19570 { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
19571 $as_echo "$as_me: error: could not determine argument types" >&2;}
19572 { (exit 1); exit 1; }; }
19574 if test "$ac_cv_func_accept_arg3" = "void"; then
19575 ac_cv_func_accept_arg3=int
19585 { $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
19586 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
19588 cat >>confdefs.h <<_ACEOF
19589 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
19593 cat >>confdefs.h <<_ACEOF
19594 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
19598 cat >>confdefs.h <<_ACEOF
19599 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
19603 cat >>confdefs.h <<_ACEOF
19604 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
19608 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
19609 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
19610 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
19611 $as_echo_n "(cached) " >&6
19613 cat >conftest.$ac_ext <<_ACEOF
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h. */
19619 #include <sys/time.h>
19623 struct timeval *tp;
19624 struct timezone *tzp;
19625 gettimeofday(tp,tzp);
19630 rm -f conftest.$ac_objext
19631 if { (ac_try="$ac_compile"
19632 case "(($ac_try" in
19633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634 *) ac_try_echo=$ac_try;;
19636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19637 $as_echo "$ac_try_echo") >&5
19638 (eval "$ac_compile") 2>conftest.er1
19640 grep -v '^ *+' conftest.er1 >conftest.err
19642 cat conftest.err >&5
19643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); } && {
19645 test -z "$ac_c_werror_flag" ||
19646 test ! -s conftest.err
19647 } && test -s conftest.$ac_objext; then
19648 pgac_cv_func_gettimeofday_1arg=no
19650 $as_echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19653 pgac_cv_func_gettimeofday_1arg=yes
19656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19658 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
19659 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
19660 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
19662 cat >>confdefs.h <<\_ACEOF
19663 #define GETTIMEOFDAY_1ARG 1
19670 # Some versions of libedit contain strlcpy(), setproctitle(), and other
19671 # symbols that that library has no business exposing to the world. Pending
19672 # acquisition of a clue by those developers, ignore libedit (including its
19673 # possible alias of libreadline) while checking for everything else.
19674 LIBS_including_readline="$LIBS"
19675 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
19698 for ac_func in cbrt dlopen fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll pstat readlink setproctitle setsid sigprocmask symlink sync_file_range towlower utime utimes wcstombs wcstombs_l
19700 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19701 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19702 $as_echo_n "checking for $ac_func... " >&6; }
19703 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19704 $as_echo_n "(cached) " >&6
19706 cat >conftest.$ac_ext <<_ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h. */
19712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19714 #define $ac_func innocuous_$ac_func
19716 /* System header to define __stub macros and hopefully few prototypes,
19717 which can conflict with char $ac_func (); below.
19718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19719 <limits.h> exists even on freestanding compilers. */
19722 # include <limits.h>
19724 # include <assert.h>
19729 /* Override any GCC internal prototype to avoid an error.
19730 Use char because int might match the return type of a GCC
19731 builtin and then its argument prototype would still apply. */
19736 /* The GNU C library defines this for functions which it implements
19737 to always fail with ENOSYS. Some functions are actually named
19738 something starting with __ and the normal name is an alias. */
19739 #if defined __stub_$ac_func || defined __stub___$ac_func
19746 return $ac_func ();
19751 rm -f conftest.$ac_objext conftest$ac_exeext
19752 if { (ac_try="$ac_link"
19753 case "(($ac_try" in
19754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19755 *) ac_try_echo=$ac_try;;
19757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19758 $as_echo "$ac_try_echo") >&5
19759 (eval "$ac_link") 2>conftest.er1
19761 grep -v '^ *+' conftest.er1 >conftest.err
19763 cat conftest.err >&5
19764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 (exit $ac_status); } && {
19766 test -z "$ac_c_werror_flag" ||
19767 test ! -s conftest.err
19768 } && test -s conftest$ac_exeext && {
19769 test "$cross_compiling" = yes ||
19770 $as_test_x conftest$ac_exeext
19772 eval "$as_ac_var=yes"
19774 $as_echo "$as_me: failed program was:" >&5
19775 sed 's/^/| /' conftest.$ac_ext >&5
19777 eval "$as_ac_var=no"
19780 rm -rf conftest.dSYM
19781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19782 conftest$ac_exeext conftest.$ac_ext
19784 ac_res=`eval 'as_val=${'$as_ac_var'}
19785 $as_echo "$as_val"'`
19786 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19787 $as_echo "$ac_res" >&6; }
19788 as_val=`eval 'as_val=${'$as_ac_var'}
19789 $as_echo "$as_val"'`
19790 if test "x$as_val" = x""yes; then
19791 cat >>confdefs.h <<_ACEOF
19792 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19800 for ac_func in fseeko
19802 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19803 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19804 $as_echo_n "checking for $ac_func... " >&6; }
19805 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19806 $as_echo_n "(cached) " >&6
19808 cat >conftest.$ac_ext <<_ACEOF
19811 cat confdefs.h >>conftest.$ac_ext
19812 cat >>conftest.$ac_ext <<_ACEOF
19813 /* end confdefs.h. */
19814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19816 #define $ac_func innocuous_$ac_func
19818 /* System header to define __stub macros and hopefully few prototypes,
19819 which can conflict with char $ac_func (); below.
19820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19821 <limits.h> exists even on freestanding compilers. */
19824 # include <limits.h>
19826 # include <assert.h>
19831 /* Override any GCC internal prototype to avoid an error.
19832 Use char because int might match the return type of a GCC
19833 builtin and then its argument prototype would still apply. */
19838 /* The GNU C library defines this for functions which it implements
19839 to always fail with ENOSYS. Some functions are actually named
19840 something starting with __ and the normal name is an alias. */
19841 #if defined __stub_$ac_func || defined __stub___$ac_func
19848 return $ac_func ();
19853 rm -f conftest.$ac_objext conftest$ac_exeext
19854 if { (ac_try="$ac_link"
19855 case "(($ac_try" in
19856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857 *) ac_try_echo=$ac_try;;
19859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19860 $as_echo "$ac_try_echo") >&5
19861 (eval "$ac_link") 2>conftest.er1
19863 grep -v '^ *+' conftest.er1 >conftest.err
19865 cat conftest.err >&5
19866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); } && {
19868 test -z "$ac_c_werror_flag" ||
19869 test ! -s conftest.err
19870 } && test -s conftest$ac_exeext && {
19871 test "$cross_compiling" = yes ||
19872 $as_test_x conftest$ac_exeext
19874 eval "$as_ac_var=yes"
19876 $as_echo "$as_me: failed program was:" >&5
19877 sed 's/^/| /' conftest.$ac_ext >&5
19879 eval "$as_ac_var=no"
19882 rm -rf conftest.dSYM
19883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19884 conftest$ac_exeext conftest.$ac_ext
19886 ac_res=`eval 'as_val=${'$as_ac_var'}
19887 $as_echo "$as_val"'`
19888 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19889 $as_echo "$ac_res" >&6; }
19890 as_val=`eval 'as_val=${'$as_ac_var'}
19891 $as_echo "$as_val"'`
19892 if test "x$as_val" = x""yes; then
19893 cat >>confdefs.h <<_ACEOF
19894 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19898 case " $LIBOBJS " in
19899 *" $ac_func.$ac_objext "* ) ;;
19900 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19909 # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
19910 # Mingw uses macros to access Win32 API calls
19913 cat >>confdefs.h <<\_ACEOF
19914 #define HAVE_FSEEKO 1
19917 ac_cv_func_fseeko=yes;;
19919 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19920 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19921 if test "${ac_cv_sys_largefile_source+set}" = set; then
19922 $as_echo_n "(cached) " >&6
19925 cat >conftest.$ac_ext <<_ACEOF
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h. */
19931 #include <sys/types.h> /* for off_t */
19936 int (*fp) (FILE *, off_t, int) = fseeko;
19937 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19942 rm -f conftest.$ac_objext conftest$ac_exeext
19943 if { (ac_try="$ac_link"
19944 case "(($ac_try" in
19945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19946 *) ac_try_echo=$ac_try;;
19948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19949 $as_echo "$ac_try_echo") >&5
19950 (eval "$ac_link") 2>conftest.er1
19952 grep -v '^ *+' conftest.er1 >conftest.err
19954 cat conftest.err >&5
19955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); } && {
19957 test -z "$ac_c_werror_flag" ||
19958 test ! -s conftest.err
19959 } && test -s conftest$ac_exeext && {
19960 test "$cross_compiling" = yes ||
19961 $as_test_x conftest$ac_exeext
19963 ac_cv_sys_largefile_source=no; break
19965 $as_echo "$as_me: failed program was:" >&5
19966 sed 's/^/| /' conftest.$ac_ext >&5
19971 rm -rf conftest.dSYM
19972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19973 conftest$ac_exeext conftest.$ac_ext
19974 cat >conftest.$ac_ext <<_ACEOF
19977 cat confdefs.h >>conftest.$ac_ext
19978 cat >>conftest.$ac_ext <<_ACEOF
19979 /* end confdefs.h. */
19980 #define _LARGEFILE_SOURCE 1
19981 #include <sys/types.h> /* for off_t */
19986 int (*fp) (FILE *, off_t, int) = fseeko;
19987 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19992 rm -f conftest.$ac_objext conftest$ac_exeext
19993 if { (ac_try="$ac_link"
19994 case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19999 $as_echo "$ac_try_echo") >&5
20000 (eval "$ac_link") 2>conftest.er1
20002 grep -v '^ *+' conftest.er1 >conftest.err
20004 cat conftest.err >&5
20005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } && {
20007 test -z "$ac_c_werror_flag" ||
20008 test ! -s conftest.err
20009 } && test -s conftest$ac_exeext && {
20010 test "$cross_compiling" = yes ||
20011 $as_test_x conftest$ac_exeext
20013 ac_cv_sys_largefile_source=1; break
20015 $as_echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20021 rm -rf conftest.dSYM
20022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20023 conftest$ac_exeext conftest.$ac_ext
20024 ac_cv_sys_largefile_source=unknown
20028 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20029 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20030 case $ac_cv_sys_largefile_source in #(
20033 cat >>confdefs.h <<_ACEOF
20034 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20040 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20041 # in glibc 2.1.3, but that breaks too many other things.
20042 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20043 if test $ac_cv_sys_largefile_source != unknown; then
20045 cat >>confdefs.h <<\_ACEOF
20046 #define HAVE_FSEEKO 1
20053 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
20054 # by calling it, 2009-04-02
20055 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
20056 if test "$PORTNAME" != "solaris"; then
20058 for ac_func in posix_fadvise
20060 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20061 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20062 $as_echo_n "checking for $ac_func... " >&6; }
20063 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20064 $as_echo_n "(cached) " >&6
20066 cat >conftest.$ac_ext <<_ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h. */
20072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20074 #define $ac_func innocuous_$ac_func
20076 /* System header to define __stub macros and hopefully few prototypes,
20077 which can conflict with char $ac_func (); below.
20078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20079 <limits.h> exists even on freestanding compilers. */
20082 # include <limits.h>
20084 # include <assert.h>
20089 /* Override any GCC internal prototype to avoid an error.
20090 Use char because int might match the return type of a GCC
20091 builtin and then its argument prototype would still apply. */
20096 /* The GNU C library defines this for functions which it implements
20097 to always fail with ENOSYS. Some functions are actually named
20098 something starting with __ and the normal name is an alias. */
20099 #if defined __stub_$ac_func || defined __stub___$ac_func
20106 return $ac_func ();
20111 rm -f conftest.$ac_objext conftest$ac_exeext
20112 if { (ac_try="$ac_link"
20113 case "(($ac_try" in
20114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115 *) ac_try_echo=$ac_try;;
20117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20118 $as_echo "$ac_try_echo") >&5
20119 (eval "$ac_link") 2>conftest.er1
20121 grep -v '^ *+' conftest.er1 >conftest.err
20123 cat conftest.err >&5
20124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); } && {
20126 test -z "$ac_c_werror_flag" ||
20127 test ! -s conftest.err
20128 } && test -s conftest$ac_exeext && {
20129 test "$cross_compiling" = yes ||
20130 $as_test_x conftest$ac_exeext
20132 eval "$as_ac_var=yes"
20134 $as_echo "$as_me: failed program was:" >&5
20135 sed 's/^/| /' conftest.$ac_ext >&5
20137 eval "$as_ac_var=no"
20140 rm -rf conftest.dSYM
20141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20142 conftest$ac_exeext conftest.$ac_ext
20144 ac_res=`eval 'as_val=${'$as_ac_var'}
20145 $as_echo "$as_val"'`
20146 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20147 $as_echo "$ac_res" >&6; }
20148 as_val=`eval 'as_val=${'$as_ac_var'}
20149 $as_echo "$as_val"'`
20150 if test "x$as_val" = x""yes; then
20151 cat >>confdefs.h <<_ACEOF
20152 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20158 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
20159 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
20160 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
20161 $as_echo_n "(cached) " >&6
20163 cat >conftest.$ac_ext <<_ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h. */
20174 #ifndef posix_fadvise
20175 (void) posix_fadvise;
20182 rm -f conftest.$ac_objext
20183 if { (ac_try="$ac_compile"
20184 case "(($ac_try" in
20185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20186 *) ac_try_echo=$ac_try;;
20188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20189 $as_echo "$ac_try_echo") >&5
20190 (eval "$ac_compile") 2>conftest.er1
20192 grep -v '^ *+' conftest.er1 >conftest.err
20194 cat conftest.err >&5
20195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); } && {
20197 test -z "$ac_c_werror_flag" ||
20198 test ! -s conftest.err
20199 } && test -s conftest.$ac_objext; then
20200 ac_cv_have_decl_posix_fadvise=yes
20202 $as_echo "$as_me: failed program was:" >&5
20203 sed 's/^/| /' conftest.$ac_ext >&5
20205 ac_cv_have_decl_posix_fadvise=no
20208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20210 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
20211 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
20212 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
20214 cat >>confdefs.h <<_ACEOF
20215 #define HAVE_DECL_POSIX_FADVISE 1
20220 cat >>confdefs.h <<_ACEOF
20221 #define HAVE_DECL_POSIX_FADVISE 0
20230 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
20231 $as_echo_n "checking whether fdatasync is declared... " >&6; }
20232 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
20233 $as_echo_n "(cached) " >&6
20235 cat >conftest.$ac_ext <<_ACEOF
20238 cat confdefs.h >>conftest.$ac_ext
20239 cat >>conftest.$ac_ext <<_ACEOF
20240 /* end confdefs.h. */
20241 #include <unistd.h>
20254 rm -f conftest.$ac_objext
20255 if { (ac_try="$ac_compile"
20256 case "(($ac_try" in
20257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258 *) ac_try_echo=$ac_try;;
20260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20261 $as_echo "$ac_try_echo") >&5
20262 (eval "$ac_compile") 2>conftest.er1
20264 grep -v '^ *+' conftest.er1 >conftest.err
20266 cat conftest.err >&5
20267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); } && {
20269 test -z "$ac_c_werror_flag" ||
20270 test ! -s conftest.err
20271 } && test -s conftest.$ac_objext; then
20272 ac_cv_have_decl_fdatasync=yes
20274 $as_echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20277 ac_cv_have_decl_fdatasync=no
20280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20282 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
20283 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
20284 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
20286 cat >>confdefs.h <<_ACEOF
20287 #define HAVE_DECL_FDATASYNC 1
20292 cat >>confdefs.h <<_ACEOF
20293 #define HAVE_DECL_FDATASYNC 0
20300 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
20301 $as_echo_n "checking whether strlcat is declared... " >&6; }
20302 if test "${ac_cv_have_decl_strlcat+set}" = set; then
20303 $as_echo_n "(cached) " >&6
20305 cat >conftest.$ac_ext <<_ACEOF
20308 cat confdefs.h >>conftest.$ac_ext
20309 cat >>conftest.$ac_ext <<_ACEOF
20310 /* end confdefs.h. */
20311 $ac_includes_default
20323 rm -f conftest.$ac_objext
20324 if { (ac_try="$ac_compile"
20325 case "(($ac_try" in
20326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20327 *) ac_try_echo=$ac_try;;
20329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20330 $as_echo "$ac_try_echo") >&5
20331 (eval "$ac_compile") 2>conftest.er1
20333 grep -v '^ *+' conftest.er1 >conftest.err
20335 cat conftest.err >&5
20336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); } && {
20338 test -z "$ac_c_werror_flag" ||
20339 test ! -s conftest.err
20340 } && test -s conftest.$ac_objext; then
20341 ac_cv_have_decl_strlcat=yes
20343 $as_echo "$as_me: failed program was:" >&5
20344 sed 's/^/| /' conftest.$ac_ext >&5
20346 ac_cv_have_decl_strlcat=no
20349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20351 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
20352 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
20353 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
20355 cat >>confdefs.h <<_ACEOF
20356 #define HAVE_DECL_STRLCAT 1
20361 cat >>confdefs.h <<_ACEOF
20362 #define HAVE_DECL_STRLCAT 0
20367 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
20368 $as_echo_n "checking whether strlcpy is declared... " >&6; }
20369 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
20370 $as_echo_n "(cached) " >&6
20372 cat >conftest.$ac_ext <<_ACEOF
20375 cat confdefs.h >>conftest.$ac_ext
20376 cat >>conftest.$ac_ext <<_ACEOF
20377 /* end confdefs.h. */
20378 $ac_includes_default
20390 rm -f conftest.$ac_objext
20391 if { (ac_try="$ac_compile"
20392 case "(($ac_try" in
20393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20394 *) ac_try_echo=$ac_try;;
20396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20397 $as_echo "$ac_try_echo") >&5
20398 (eval "$ac_compile") 2>conftest.er1
20400 grep -v '^ *+' conftest.er1 >conftest.err
20402 cat conftest.err >&5
20403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); } && {
20405 test -z "$ac_c_werror_flag" ||
20406 test ! -s conftest.err
20407 } && test -s conftest.$ac_objext; then
20408 ac_cv_have_decl_strlcpy=yes
20410 $as_echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20413 ac_cv_have_decl_strlcpy=no
20416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20418 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
20419 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
20420 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
20422 cat >>confdefs.h <<_ACEOF
20423 #define HAVE_DECL_STRLCPY 1
20428 cat >>confdefs.h <<_ACEOF
20429 #define HAVE_DECL_STRLCPY 0
20436 # This is probably only present on Darwin, but may as well check always
20437 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
20438 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
20439 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
20440 $as_echo_n "(cached) " >&6
20442 cat >conftest.$ac_ext <<_ACEOF
20445 cat confdefs.h >>conftest.$ac_ext
20446 cat >>conftest.$ac_ext <<_ACEOF
20447 /* end confdefs.h. */
20453 #ifndef F_FULLFSYNC
20454 (void) F_FULLFSYNC;
20461 rm -f conftest.$ac_objext
20462 if { (ac_try="$ac_compile"
20463 case "(($ac_try" in
20464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465 *) ac_try_echo=$ac_try;;
20467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20468 $as_echo "$ac_try_echo") >&5
20469 (eval "$ac_compile") 2>conftest.er1
20471 grep -v '^ *+' conftest.er1 >conftest.err
20473 cat conftest.err >&5
20474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); } && {
20476 test -z "$ac_c_werror_flag" ||
20477 test ! -s conftest.err
20478 } && test -s conftest.$ac_objext; then
20479 ac_cv_have_decl_F_FULLFSYNC=yes
20481 $as_echo "$as_me: failed program was:" >&5
20482 sed 's/^/| /' conftest.$ac_ext >&5
20484 ac_cv_have_decl_F_FULLFSYNC=no
20487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20489 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
20490 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
20491 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
20493 cat >>confdefs.h <<_ACEOF
20494 #define HAVE_DECL_F_FULLFSYNC 1
20499 cat >>confdefs.h <<_ACEOF
20500 #define HAVE_DECL_F_FULLFSYNC 0
20509 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
20510 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
20511 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
20512 $as_echo_n "(cached) " >&6
20514 ac_cv_type_struct_sockaddr_in6=no
20515 cat >conftest.$ac_ext <<_ACEOF
20518 cat confdefs.h >>conftest.$ac_ext
20519 cat >>conftest.$ac_ext <<_ACEOF
20520 /* end confdefs.h. */
20521 $ac_includes_default
20522 #include <netinet/in.h>
20527 if (sizeof (struct sockaddr_in6))
20533 rm -f conftest.$ac_objext
20534 if { (ac_try="$ac_compile"
20535 case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20540 $as_echo "$ac_try_echo") >&5
20541 (eval "$ac_compile") 2>conftest.er1
20543 grep -v '^ *+' conftest.er1 >conftest.err
20545 cat conftest.err >&5
20546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } && {
20548 test -z "$ac_c_werror_flag" ||
20549 test ! -s conftest.err
20550 } && test -s conftest.$ac_objext; then
20551 cat >conftest.$ac_ext <<_ACEOF
20554 cat confdefs.h >>conftest.$ac_ext
20555 cat >>conftest.$ac_ext <<_ACEOF
20556 /* end confdefs.h. */
20557 $ac_includes_default
20558 #include <netinet/in.h>
20563 if (sizeof ((struct sockaddr_in6)))
20569 rm -f conftest.$ac_objext
20570 if { (ac_try="$ac_compile"
20571 case "(($ac_try" in
20572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20573 *) ac_try_echo=$ac_try;;
20575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20576 $as_echo "$ac_try_echo") >&5
20577 (eval "$ac_compile") 2>conftest.er1
20579 grep -v '^ *+' conftest.er1 >conftest.err
20581 cat conftest.err >&5
20582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); } && {
20584 test -z "$ac_c_werror_flag" ||
20585 test ! -s conftest.err
20586 } && test -s conftest.$ac_objext; then
20589 $as_echo "$as_me: failed program was:" >&5
20590 sed 's/^/| /' conftest.$ac_ext >&5
20592 ac_cv_type_struct_sockaddr_in6=yes
20595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20597 $as_echo "$as_me: failed program was:" >&5
20598 sed 's/^/| /' conftest.$ac_ext >&5
20603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20605 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
20606 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
20607 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
20609 cat >>confdefs.h <<\_ACEOF
20610 #define HAVE_IPV6 1
20618 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
20619 $as_echo_n "checking for PS_STRINGS... " >&6; }
20620 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
20621 $as_echo_n "(cached) " >&6
20623 cat >conftest.$ac_ext <<_ACEOF
20626 cat confdefs.h >>conftest.$ac_ext
20627 cat >>conftest.$ac_ext <<_ACEOF
20628 /* end confdefs.h. */
20629 #include <machine/vmparam.h>
20630 #include <sys/exec.h>
20635 PS_STRINGS->ps_nargvstr = 1;
20636 PS_STRINGS->ps_argvstr = "foo";
20641 rm -f conftest.$ac_objext conftest$ac_exeext
20642 if { (ac_try="$ac_link"
20643 case "(($ac_try" in
20644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20645 *) ac_try_echo=$ac_try;;
20647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20648 $as_echo "$ac_try_echo") >&5
20649 (eval "$ac_link") 2>conftest.er1
20651 grep -v '^ *+' conftest.er1 >conftest.err
20653 cat conftest.err >&5
20654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); } && {
20656 test -z "$ac_c_werror_flag" ||
20657 test ! -s conftest.err
20658 } && test -s conftest$ac_exeext && {
20659 test "$cross_compiling" = yes ||
20660 $as_test_x conftest$ac_exeext
20662 pgac_cv_var_PS_STRINGS=yes
20664 $as_echo "$as_me: failed program was:" >&5
20665 sed 's/^/| /' conftest.$ac_ext >&5
20667 pgac_cv_var_PS_STRINGS=no
20670 rm -rf conftest.dSYM
20671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20672 conftest$ac_exeext conftest.$ac_ext
20674 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
20675 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
20676 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
20678 cat >>confdefs.h <<\_ACEOF
20679 #define HAVE_PS_STRINGS 1
20685 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
20686 # is missing. Yes, there are machines that have only one. We may
20687 # also decide to use snprintf.c if snprintf() is present but does not
20688 # have all the features we need --- see below.
20690 if test "$PORTNAME" = "win32"; then
20691 # Win32 gets snprintf.c built unconditionally.
20693 # To properly translate all NLS languages strings, we must support the
20694 # *printf() %$ format, which allows *printf() arguments to be selected
20695 # by position in the translated string.
20697 # libintl versions < 0.13 use the native *printf() functions, and Win32
20698 # *printf() doesn't understand %$, so we must use our /port versions,
20699 # which do understand %$. libintl versions >= 0.13 include their own
20700 # *printf versions on Win32. The libintl 0.13 release note text is:
20702 # C format strings with positions, as they arise when a translator
20703 # needs to reorder a sentence, are now supported on all platforms.
20704 # On those few platforms (NetBSD and Woe32) for which the native
20705 # printf()/fprintf()/... functions don't support such format
20706 # strings, replacements are provided through <libintl.h>.
20708 # We could use libintl >= 0.13's *printf() if we were sure that we had
20709 # a litint >= 0.13 at runtime, but seeing that there is no clean way
20710 # to guarantee that, it is best to just use our own, so we are sure to
20711 # get %$ support. In include/port.h we disable the *printf() macros
20712 # that might have been defined by libintl.
20714 # We do this unconditionally whether NLS is used or not so we are sure
20715 # that all Win32 libraries and binaries behave the same.
20716 pgac_need_repl_snprintf=yes
20718 pgac_need_repl_snprintf=no
20720 for ac_func in snprintf
20722 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20723 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20724 $as_echo_n "checking for $ac_func... " >&6; }
20725 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20726 $as_echo_n "(cached) " >&6
20728 cat >conftest.$ac_ext <<_ACEOF
20731 cat confdefs.h >>conftest.$ac_ext
20732 cat >>conftest.$ac_ext <<_ACEOF
20733 /* end confdefs.h. */
20734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20736 #define $ac_func innocuous_$ac_func
20738 /* System header to define __stub macros and hopefully few prototypes,
20739 which can conflict with char $ac_func (); below.
20740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20741 <limits.h> exists even on freestanding compilers. */
20744 # include <limits.h>
20746 # include <assert.h>
20751 /* Override any GCC internal prototype to avoid an error.
20752 Use char because int might match the return type of a GCC
20753 builtin and then its argument prototype would still apply. */
20758 /* The GNU C library defines this for functions which it implements
20759 to always fail with ENOSYS. Some functions are actually named
20760 something starting with __ and the normal name is an alias. */
20761 #if defined __stub_$ac_func || defined __stub___$ac_func
20768 return $ac_func ();
20773 rm -f conftest.$ac_objext conftest$ac_exeext
20774 if { (ac_try="$ac_link"
20775 case "(($ac_try" in
20776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777 *) ac_try_echo=$ac_try;;
20779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20780 $as_echo "$ac_try_echo") >&5
20781 (eval "$ac_link") 2>conftest.er1
20783 grep -v '^ *+' conftest.er1 >conftest.err
20785 cat conftest.err >&5
20786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } && {
20788 test -z "$ac_c_werror_flag" ||
20789 test ! -s conftest.err
20790 } && test -s conftest$ac_exeext && {
20791 test "$cross_compiling" = yes ||
20792 $as_test_x conftest$ac_exeext
20794 eval "$as_ac_var=yes"
20796 $as_echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.$ac_ext >&5
20799 eval "$as_ac_var=no"
20802 rm -rf conftest.dSYM
20803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20804 conftest$ac_exeext conftest.$ac_ext
20806 ac_res=`eval 'as_val=${'$as_ac_var'}
20807 $as_echo "$as_val"'`
20808 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20809 $as_echo "$ac_res" >&6; }
20810 as_val=`eval 'as_val=${'$as_ac_var'}
20811 $as_echo "$as_val"'`
20812 if test "x$as_val" = x""yes; then
20813 cat >>confdefs.h <<_ACEOF
20814 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20818 pgac_need_repl_snprintf=yes
20823 for ac_func in vsnprintf
20825 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20826 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20827 $as_echo_n "checking for $ac_func... " >&6; }
20828 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20829 $as_echo_n "(cached) " >&6
20831 cat >conftest.$ac_ext <<_ACEOF
20834 cat confdefs.h >>conftest.$ac_ext
20835 cat >>conftest.$ac_ext <<_ACEOF
20836 /* end confdefs.h. */
20837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20839 #define $ac_func innocuous_$ac_func
20841 /* System header to define __stub macros and hopefully few prototypes,
20842 which can conflict with char $ac_func (); below.
20843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20844 <limits.h> exists even on freestanding compilers. */
20847 # include <limits.h>
20849 # include <assert.h>
20854 /* Override any GCC internal prototype to avoid an error.
20855 Use char because int might match the return type of a GCC
20856 builtin and then its argument prototype would still apply. */
20861 /* The GNU C library defines this for functions which it implements
20862 to always fail with ENOSYS. Some functions are actually named
20863 something starting with __ and the normal name is an alias. */
20864 #if defined __stub_$ac_func || defined __stub___$ac_func
20871 return $ac_func ();
20876 rm -f conftest.$ac_objext conftest$ac_exeext
20877 if { (ac_try="$ac_link"
20878 case "(($ac_try" in
20879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20880 *) ac_try_echo=$ac_try;;
20882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20883 $as_echo "$ac_try_echo") >&5
20884 (eval "$ac_link") 2>conftest.er1
20886 grep -v '^ *+' conftest.er1 >conftest.err
20888 cat conftest.err >&5
20889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); } && {
20891 test -z "$ac_c_werror_flag" ||
20892 test ! -s conftest.err
20893 } && test -s conftest$ac_exeext && {
20894 test "$cross_compiling" = yes ||
20895 $as_test_x conftest$ac_exeext
20897 eval "$as_ac_var=yes"
20899 $as_echo "$as_me: failed program was:" >&5
20900 sed 's/^/| /' conftest.$ac_ext >&5
20902 eval "$as_ac_var=no"
20905 rm -rf conftest.dSYM
20906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20907 conftest$ac_exeext conftest.$ac_ext
20909 ac_res=`eval 'as_val=${'$as_ac_var'}
20910 $as_echo "$as_val"'`
20911 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20912 $as_echo "$ac_res" >&6; }
20913 as_val=`eval 'as_val=${'$as_ac_var'}
20914 $as_echo "$as_val"'`
20915 if test "x$as_val" = x""yes; then
20916 cat >>confdefs.h <<_ACEOF
20917 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20921 pgac_need_repl_snprintf=yes
20928 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
20929 # include/c.h will provide declarations. Note this is a separate test
20930 # from whether the functions exist in the C library --- there are
20931 # systems that have the functions but don't bother to declare them :-(
20933 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
20934 $as_echo_n "checking whether snprintf is declared... " >&6; }
20935 if test "${ac_cv_have_decl_snprintf+set}" = set; then
20936 $as_echo_n "(cached) " >&6
20938 cat >conftest.$ac_ext <<_ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h. */
20944 $ac_includes_default
20956 rm -f conftest.$ac_objext
20957 if { (ac_try="$ac_compile"
20958 case "(($ac_try" in
20959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20960 *) ac_try_echo=$ac_try;;
20962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20963 $as_echo "$ac_try_echo") >&5
20964 (eval "$ac_compile") 2>conftest.er1
20966 grep -v '^ *+' conftest.er1 >conftest.err
20968 cat conftest.err >&5
20969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); } && {
20971 test -z "$ac_c_werror_flag" ||
20972 test ! -s conftest.err
20973 } && test -s conftest.$ac_objext; then
20974 ac_cv_have_decl_snprintf=yes
20976 $as_echo "$as_me: failed program was:" >&5
20977 sed 's/^/| /' conftest.$ac_ext >&5
20979 ac_cv_have_decl_snprintf=no
20982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20984 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
20985 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
20986 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
20988 cat >>confdefs.h <<_ACEOF
20989 #define HAVE_DECL_SNPRINTF 1
20994 cat >>confdefs.h <<_ACEOF
20995 #define HAVE_DECL_SNPRINTF 0
21000 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
21001 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
21002 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
21003 $as_echo_n "(cached) " >&6
21005 cat >conftest.$ac_ext <<_ACEOF
21008 cat confdefs.h >>conftest.$ac_ext
21009 cat >>conftest.$ac_ext <<_ACEOF
21010 /* end confdefs.h. */
21011 $ac_includes_default
21023 rm -f conftest.$ac_objext
21024 if { (ac_try="$ac_compile"
21025 case "(($ac_try" in
21026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21027 *) ac_try_echo=$ac_try;;
21029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21030 $as_echo "$ac_try_echo") >&5
21031 (eval "$ac_compile") 2>conftest.er1
21033 grep -v '^ *+' conftest.er1 >conftest.err
21035 cat conftest.err >&5
21036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037 (exit $ac_status); } && {
21038 test -z "$ac_c_werror_flag" ||
21039 test ! -s conftest.err
21040 } && test -s conftest.$ac_objext; then
21041 ac_cv_have_decl_vsnprintf=yes
21043 $as_echo "$as_me: failed program was:" >&5
21044 sed 's/^/| /' conftest.$ac_ext >&5
21046 ac_cv_have_decl_vsnprintf=no
21049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21051 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
21052 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
21053 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
21055 cat >>confdefs.h <<_ACEOF
21056 #define HAVE_DECL_VSNPRINTF 1
21061 cat >>confdefs.h <<_ACEOF
21062 #define HAVE_DECL_VSNPRINTF 0
21071 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
21072 $as_echo_n "checking for isinf... " >&6; }
21073 if test "${ac_cv_func_isinf+set}" = set; then
21074 $as_echo_n "(cached) " >&6
21076 cat >conftest.$ac_ext <<_ACEOF
21079 cat confdefs.h >>conftest.$ac_ext
21080 cat >>conftest.$ac_ext <<_ACEOF
21081 /* end confdefs.h. */
21084 double glob_double;
21089 return isinf(glob_double) ? 0 : 1;
21094 rm -f conftest.$ac_objext conftest$ac_exeext
21095 if { (ac_try="$ac_link"
21096 case "(($ac_try" in
21097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21098 *) ac_try_echo=$ac_try;;
21100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21101 $as_echo "$ac_try_echo") >&5
21102 (eval "$ac_link") 2>conftest.er1
21104 grep -v '^ *+' conftest.er1 >conftest.err
21106 cat conftest.err >&5
21107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); } && {
21109 test -z "$ac_c_werror_flag" ||
21110 test ! -s conftest.err
21111 } && test -s conftest$ac_exeext && {
21112 test "$cross_compiling" = yes ||
21113 $as_test_x conftest$ac_exeext
21115 ac_cv_func_isinf=yes
21117 $as_echo "$as_me: failed program was:" >&5
21118 sed 's/^/| /' conftest.$ac_ext >&5
21120 ac_cv_func_isinf=no
21123 rm -rf conftest.dSYM
21124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21125 conftest$ac_exeext conftest.$ac_ext
21127 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
21128 $as_echo "$ac_cv_func_isinf" >&6; }
21130 if test $ac_cv_func_isinf = yes ; then
21132 cat >>confdefs.h <<\_ACEOF
21133 #define HAVE_ISINF 1
21137 case " $LIBOBJS " in
21138 *" isinf.$ac_objext "* ) ;;
21139 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
21143 # Look for a way to implement a substitute for isinf()
21148 for ac_func in fpclass fp_class fp_class_d class
21150 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21151 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21152 $as_echo_n "checking for $ac_func... " >&6; }
21153 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21154 $as_echo_n "(cached) " >&6
21156 cat >conftest.$ac_ext <<_ACEOF
21159 cat confdefs.h >>conftest.$ac_ext
21160 cat >>conftest.$ac_ext <<_ACEOF
21161 /* end confdefs.h. */
21162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21164 #define $ac_func innocuous_$ac_func
21166 /* System header to define __stub macros and hopefully few prototypes,
21167 which can conflict with char $ac_func (); below.
21168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21169 <limits.h> exists even on freestanding compilers. */
21172 # include <limits.h>
21174 # include <assert.h>
21179 /* Override any GCC internal prototype to avoid an error.
21180 Use char because int might match the return type of a GCC
21181 builtin and then its argument prototype would still apply. */
21186 /* The GNU C library defines this for functions which it implements
21187 to always fail with ENOSYS. Some functions are actually named
21188 something starting with __ and the normal name is an alias. */
21189 #if defined __stub_$ac_func || defined __stub___$ac_func
21196 return $ac_func ();
21201 rm -f conftest.$ac_objext conftest$ac_exeext
21202 if { (ac_try="$ac_link"
21203 case "(($ac_try" in
21204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21205 *) ac_try_echo=$ac_try;;
21207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21208 $as_echo "$ac_try_echo") >&5
21209 (eval "$ac_link") 2>conftest.er1
21211 grep -v '^ *+' conftest.er1 >conftest.err
21213 cat conftest.err >&5
21214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); } && {
21216 test -z "$ac_c_werror_flag" ||
21217 test ! -s conftest.err
21218 } && test -s conftest$ac_exeext && {
21219 test "$cross_compiling" = yes ||
21220 $as_test_x conftest$ac_exeext
21222 eval "$as_ac_var=yes"
21224 $as_echo "$as_me: failed program was:" >&5
21225 sed 's/^/| /' conftest.$ac_ext >&5
21227 eval "$as_ac_var=no"
21230 rm -rf conftest.dSYM
21231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21232 conftest$ac_exeext conftest.$ac_ext
21234 ac_res=`eval 'as_val=${'$as_ac_var'}
21235 $as_echo "$as_val"'`
21236 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21237 $as_echo "$ac_res" >&6; }
21238 as_val=`eval 'as_val=${'$as_ac_var'}
21239 $as_echo "$as_val"'`
21240 if test "x$as_val" = x""yes; then
21241 cat >>confdefs.h <<_ACEOF
21242 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21261 for ac_func in crypt fls getopt getrusage inet_aton random rint srandom strerror strlcat strlcpy
21263 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21264 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21265 $as_echo_n "checking for $ac_func... " >&6; }
21266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21267 $as_echo_n "(cached) " >&6
21269 cat >conftest.$ac_ext <<_ACEOF
21272 cat confdefs.h >>conftest.$ac_ext
21273 cat >>conftest.$ac_ext <<_ACEOF
21274 /* end confdefs.h. */
21275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21277 #define $ac_func innocuous_$ac_func
21279 /* System header to define __stub macros and hopefully few prototypes,
21280 which can conflict with char $ac_func (); below.
21281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21282 <limits.h> exists even on freestanding compilers. */
21285 # include <limits.h>
21287 # include <assert.h>
21292 /* Override any GCC internal prototype to avoid an error.
21293 Use char because int might match the return type of a GCC
21294 builtin and then its argument prototype would still apply. */
21299 /* The GNU C library defines this for functions which it implements
21300 to always fail with ENOSYS. Some functions are actually named
21301 something starting with __ and the normal name is an alias. */
21302 #if defined __stub_$ac_func || defined __stub___$ac_func
21309 return $ac_func ();
21314 rm -f conftest.$ac_objext conftest$ac_exeext
21315 if { (ac_try="$ac_link"
21316 case "(($ac_try" in
21317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21318 *) ac_try_echo=$ac_try;;
21320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21321 $as_echo "$ac_try_echo") >&5
21322 (eval "$ac_link") 2>conftest.er1
21324 grep -v '^ *+' conftest.er1 >conftest.err
21326 cat conftest.err >&5
21327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328 (exit $ac_status); } && {
21329 test -z "$ac_c_werror_flag" ||
21330 test ! -s conftest.err
21331 } && test -s conftest$ac_exeext && {
21332 test "$cross_compiling" = yes ||
21333 $as_test_x conftest$ac_exeext
21335 eval "$as_ac_var=yes"
21337 $as_echo "$as_me: failed program was:" >&5
21338 sed 's/^/| /' conftest.$ac_ext >&5
21340 eval "$as_ac_var=no"
21343 rm -rf conftest.dSYM
21344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21345 conftest$ac_exeext conftest.$ac_ext
21347 ac_res=`eval 'as_val=${'$as_ac_var'}
21348 $as_echo "$as_val"'`
21349 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21350 $as_echo "$ac_res" >&6; }
21351 as_val=`eval 'as_val=${'$as_ac_var'}
21352 $as_echo "$as_val"'`
21353 if test "x$as_val" = x""yes; then
21354 cat >>confdefs.h <<_ACEOF
21355 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21359 case " $LIBOBJS " in
21360 *" $ac_func.$ac_objext "* ) ;;
21361 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21372 # Windows uses a specialised env handler
21373 # and doesn't need a replacement getpeereid because it doesn't use
21377 cat >>confdefs.h <<\_ACEOF
21378 #define HAVE_UNSETENV 1
21382 cat >>confdefs.h <<\_ACEOF
21383 #define HAVE_GETPEEREID 1
21386 ac_cv_func_unsetenv=yes
21387 ac_cv_func_getpeereid=yes;;
21391 for ac_func in unsetenv getpeereid
21393 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21394 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21395 $as_echo_n "checking for $ac_func... " >&6; }
21396 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21397 $as_echo_n "(cached) " >&6
21399 cat >conftest.$ac_ext <<_ACEOF
21402 cat confdefs.h >>conftest.$ac_ext
21403 cat >>conftest.$ac_ext <<_ACEOF
21404 /* end confdefs.h. */
21405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21407 #define $ac_func innocuous_$ac_func
21409 /* System header to define __stub macros and hopefully few prototypes,
21410 which can conflict with char $ac_func (); below.
21411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21412 <limits.h> exists even on freestanding compilers. */
21415 # include <limits.h>
21417 # include <assert.h>
21422 /* Override any GCC internal prototype to avoid an error.
21423 Use char because int might match the return type of a GCC
21424 builtin and then its argument prototype would still apply. */
21429 /* The GNU C library defines this for functions which it implements
21430 to always fail with ENOSYS. Some functions are actually named
21431 something starting with __ and the normal name is an alias. */
21432 #if defined __stub_$ac_func || defined __stub___$ac_func
21439 return $ac_func ();
21444 rm -f conftest.$ac_objext conftest$ac_exeext
21445 if { (ac_try="$ac_link"
21446 case "(($ac_try" in
21447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21448 *) ac_try_echo=$ac_try;;
21450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21451 $as_echo "$ac_try_echo") >&5
21452 (eval "$ac_link") 2>conftest.er1
21454 grep -v '^ *+' conftest.er1 >conftest.err
21456 cat conftest.err >&5
21457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); } && {
21459 test -z "$ac_c_werror_flag" ||
21460 test ! -s conftest.err
21461 } && test -s conftest$ac_exeext && {
21462 test "$cross_compiling" = yes ||
21463 $as_test_x conftest$ac_exeext
21465 eval "$as_ac_var=yes"
21467 $as_echo "$as_me: failed program was:" >&5
21468 sed 's/^/| /' conftest.$ac_ext >&5
21470 eval "$as_ac_var=no"
21473 rm -rf conftest.dSYM
21474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21475 conftest$ac_exeext conftest.$ac_ext
21477 ac_res=`eval 'as_val=${'$as_ac_var'}
21478 $as_echo "$as_val"'`
21479 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21480 $as_echo "$ac_res" >&6; }
21481 as_val=`eval 'as_val=${'$as_ac_var'}
21482 $as_echo "$as_val"'`
21483 if test "x$as_val" = x""yes; then
21484 cat >>confdefs.h <<_ACEOF
21485 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21489 case " $LIBOBJS " in
21490 *" $ac_func.$ac_objext "* ) ;;
21491 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21502 # System's version of getaddrinfo(), if any, may be used only if we found
21503 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
21504 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
21505 # versions of getaddrinfo don't follow normal C call protocol. This is OK
21506 # because we want to use our own getaddrinfo.c on Windows anyway.)
21507 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
21509 for ac_func in getaddrinfo
21511 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21512 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21513 $as_echo_n "checking for $ac_func... " >&6; }
21514 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21515 $as_echo_n "(cached) " >&6
21517 cat >conftest.$ac_ext <<_ACEOF
21520 cat confdefs.h >>conftest.$ac_ext
21521 cat >>conftest.$ac_ext <<_ACEOF
21522 /* end confdefs.h. */
21523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21525 #define $ac_func innocuous_$ac_func
21527 /* System header to define __stub macros and hopefully few prototypes,
21528 which can conflict with char $ac_func (); below.
21529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21530 <limits.h> exists even on freestanding compilers. */
21533 # include <limits.h>
21535 # include <assert.h>
21540 /* Override any GCC internal prototype to avoid an error.
21541 Use char because int might match the return type of a GCC
21542 builtin and then its argument prototype would still apply. */
21547 /* The GNU C library defines this for functions which it implements
21548 to always fail with ENOSYS. Some functions are actually named
21549 something starting with __ and the normal name is an alias. */
21550 #if defined __stub_$ac_func || defined __stub___$ac_func
21557 return $ac_func ();
21562 rm -f conftest.$ac_objext conftest$ac_exeext
21563 if { (ac_try="$ac_link"
21564 case "(($ac_try" in
21565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21566 *) ac_try_echo=$ac_try;;
21568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21569 $as_echo "$ac_try_echo") >&5
21570 (eval "$ac_link") 2>conftest.er1
21572 grep -v '^ *+' conftest.er1 >conftest.err
21574 cat conftest.err >&5
21575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); } && {
21577 test -z "$ac_c_werror_flag" ||
21578 test ! -s conftest.err
21579 } && test -s conftest$ac_exeext && {
21580 test "$cross_compiling" = yes ||
21581 $as_test_x conftest$ac_exeext
21583 eval "$as_ac_var=yes"
21585 $as_echo "$as_me: failed program was:" >&5
21586 sed 's/^/| /' conftest.$ac_ext >&5
21588 eval "$as_ac_var=no"
21591 rm -rf conftest.dSYM
21592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21593 conftest$ac_exeext conftest.$ac_ext
21595 ac_res=`eval 'as_val=${'$as_ac_var'}
21596 $as_echo "$as_val"'`
21597 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21598 $as_echo "$ac_res" >&6; }
21599 as_val=`eval 'as_val=${'$as_ac_var'}
21600 $as_echo "$as_val"'`
21601 if test "x$as_val" = x""yes; then
21602 cat >>confdefs.h <<_ACEOF
21603 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21607 case " $LIBOBJS " in
21608 *" $ac_func.$ac_objext "* ) ;;
21609 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21618 case " $LIBOBJS " in
21619 *" getaddrinfo.$ac_objext "* ) ;;
21620 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21626 # Similarly, use system's getopt_long() only if system provides struct option.
21627 if test x"$ac_cv_type_struct_option" = xyes ; then
21629 for ac_func in getopt_long
21631 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21632 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21633 $as_echo_n "checking for $ac_func... " >&6; }
21634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21635 $as_echo_n "(cached) " >&6
21637 cat >conftest.$ac_ext <<_ACEOF
21640 cat confdefs.h >>conftest.$ac_ext
21641 cat >>conftest.$ac_ext <<_ACEOF
21642 /* end confdefs.h. */
21643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21645 #define $ac_func innocuous_$ac_func
21647 /* System header to define __stub macros and hopefully few prototypes,
21648 which can conflict with char $ac_func (); below.
21649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21650 <limits.h> exists even on freestanding compilers. */
21653 # include <limits.h>
21655 # include <assert.h>
21660 /* Override any GCC internal prototype to avoid an error.
21661 Use char because int might match the return type of a GCC
21662 builtin and then its argument prototype would still apply. */
21667 /* The GNU C library defines this for functions which it implements
21668 to always fail with ENOSYS. Some functions are actually named
21669 something starting with __ and the normal name is an alias. */
21670 #if defined __stub_$ac_func || defined __stub___$ac_func
21677 return $ac_func ();
21682 rm -f conftest.$ac_objext conftest$ac_exeext
21683 if { (ac_try="$ac_link"
21684 case "(($ac_try" in
21685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21686 *) ac_try_echo=$ac_try;;
21688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21689 $as_echo "$ac_try_echo") >&5
21690 (eval "$ac_link") 2>conftest.er1
21692 grep -v '^ *+' conftest.er1 >conftest.err
21694 cat conftest.err >&5
21695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); } && {
21697 test -z "$ac_c_werror_flag" ||
21698 test ! -s conftest.err
21699 } && test -s conftest$ac_exeext && {
21700 test "$cross_compiling" = yes ||
21701 $as_test_x conftest$ac_exeext
21703 eval "$as_ac_var=yes"
21705 $as_echo "$as_me: failed program was:" >&5
21706 sed 's/^/| /' conftest.$ac_ext >&5
21708 eval "$as_ac_var=no"
21711 rm -rf conftest.dSYM
21712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21713 conftest$ac_exeext conftest.$ac_ext
21715 ac_res=`eval 'as_val=${'$as_ac_var'}
21716 $as_echo "$as_val"'`
21717 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21718 $as_echo "$ac_res" >&6; }
21719 as_val=`eval 'as_val=${'$as_ac_var'}
21720 $as_echo "$as_val"'`
21721 if test "x$as_val" = x""yes; then
21722 cat >>confdefs.h <<_ACEOF
21723 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21727 case " $LIBOBJS " in
21728 *" $ac_func.$ac_objext "* ) ;;
21729 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21738 case " $LIBOBJS " in
21739 *" getopt_long.$ac_objext "* ) ;;
21740 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21746 # Solaris' getopt() doesn't do what we want for long options, so always use
21747 # our version on that platform.
21748 if test "$PORTNAME" = "solaris"; then
21749 case " $LIBOBJS " in
21750 *" getopt.$ac_objext "* ) ;;
21751 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21757 # mingw has adopted a GNU-centric interpretation of optind/optreset,
21758 # so always use our version on Windows.
21759 if test "$PORTNAME" = "win32"; then
21760 case " $LIBOBJS " in
21761 *" getopt.$ac_objext "* ) ;;
21762 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21766 case " $LIBOBJS " in
21767 *" getopt_long.$ac_objext "* ) ;;
21768 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21775 if test "$PORTNAME" = "win32"; then
21777 for ac_func in gettimeofday
21779 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21780 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21781 $as_echo_n "checking for $ac_func... " >&6; }
21782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21783 $as_echo_n "(cached) " >&6
21785 cat >conftest.$ac_ext <<_ACEOF
21788 cat confdefs.h >>conftest.$ac_ext
21789 cat >>conftest.$ac_ext <<_ACEOF
21790 /* end confdefs.h. */
21791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21793 #define $ac_func innocuous_$ac_func
21795 /* System header to define __stub macros and hopefully few prototypes,
21796 which can conflict with char $ac_func (); below.
21797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21798 <limits.h> exists even on freestanding compilers. */
21801 # include <limits.h>
21803 # include <assert.h>
21808 /* Override any GCC internal prototype to avoid an error.
21809 Use char because int might match the return type of a GCC
21810 builtin and then its argument prototype would still apply. */
21815 /* The GNU C library defines this for functions which it implements
21816 to always fail with ENOSYS. Some functions are actually named
21817 something starting with __ and the normal name is an alias. */
21818 #if defined __stub_$ac_func || defined __stub___$ac_func
21825 return $ac_func ();
21830 rm -f conftest.$ac_objext conftest$ac_exeext
21831 if { (ac_try="$ac_link"
21832 case "(($ac_try" in
21833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21834 *) ac_try_echo=$ac_try;;
21836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21837 $as_echo "$ac_try_echo") >&5
21838 (eval "$ac_link") 2>conftest.er1
21840 grep -v '^ *+' conftest.er1 >conftest.err
21842 cat conftest.err >&5
21843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); } && {
21845 test -z "$ac_c_werror_flag" ||
21846 test ! -s conftest.err
21847 } && test -s conftest$ac_exeext && {
21848 test "$cross_compiling" = yes ||
21849 $as_test_x conftest$ac_exeext
21851 eval "$as_ac_var=yes"
21853 $as_echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21856 eval "$as_ac_var=no"
21859 rm -rf conftest.dSYM
21860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21861 conftest$ac_exeext conftest.$ac_ext
21863 ac_res=`eval 'as_val=${'$as_ac_var'}
21864 $as_echo "$as_val"'`
21865 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21866 $as_echo "$ac_res" >&6; }
21867 as_val=`eval 'as_val=${'$as_ac_var'}
21868 $as_echo "$as_val"'`
21869 if test "x$as_val" = x""yes; then
21870 cat >>confdefs.h <<_ACEOF
21871 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21875 case " $LIBOBJS " in
21876 *" $ac_func.$ac_objext "* ) ;;
21877 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21885 case " $LIBOBJS " in
21886 *" kill.$ac_objext "* ) ;;
21887 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
21891 case " $LIBOBJS " in
21892 *" open.$ac_objext "* ) ;;
21893 *) LIBOBJS="$LIBOBJS open.$ac_objext"
21897 case " $LIBOBJS " in
21898 *" win32env.$ac_objext "* ) ;;
21899 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
21903 case " $LIBOBJS " in
21904 *" win32error.$ac_objext "* ) ;;
21905 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
21909 case " $LIBOBJS " in
21910 *" win32setlocale.$ac_objext "* ) ;;
21911 *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
21916 cat >>confdefs.h <<\_ACEOF
21917 #define HAVE_SYMLINK 1
21920 { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
21921 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
21922 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
21923 $as_echo_n "(cached) " >&6
21925 ac_cv_type_MINIDUMP_TYPE=no
21926 cat >conftest.$ac_ext <<_ACEOF
21929 cat confdefs.h >>conftest.$ac_ext
21930 cat >>conftest.$ac_ext <<_ACEOF
21931 /* end confdefs.h. */
21933 #define WIN32_LEAN_AND_MEAN
21934 #include <windows.h>
21935 #include <string.h>
21936 #include <dbghelp.h>
21941 if (sizeof (MINIDUMP_TYPE))
21947 rm -f conftest.$ac_objext
21948 if { (ac_try="$ac_compile"
21949 case "(($ac_try" in
21950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21951 *) ac_try_echo=$ac_try;;
21953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21954 $as_echo "$ac_try_echo") >&5
21955 (eval "$ac_compile") 2>conftest.er1
21957 grep -v '^ *+' conftest.er1 >conftest.err
21959 cat conftest.err >&5
21960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961 (exit $ac_status); } && {
21962 test -z "$ac_c_werror_flag" ||
21963 test ! -s conftest.err
21964 } && test -s conftest.$ac_objext; then
21965 cat >conftest.$ac_ext <<_ACEOF
21968 cat confdefs.h >>conftest.$ac_ext
21969 cat >>conftest.$ac_ext <<_ACEOF
21970 /* end confdefs.h. */
21972 #define WIN32_LEAN_AND_MEAN
21973 #include <windows.h>
21974 #include <string.h>
21975 #include <dbghelp.h>
21980 if (sizeof ((MINIDUMP_TYPE)))
21986 rm -f conftest.$ac_objext
21987 if { (ac_try="$ac_compile"
21988 case "(($ac_try" in
21989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990 *) ac_try_echo=$ac_try;;
21992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21993 $as_echo "$ac_try_echo") >&5
21994 (eval "$ac_compile") 2>conftest.er1
21996 grep -v '^ *+' conftest.er1 >conftest.err
21998 cat conftest.err >&5
21999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); } && {
22001 test -z "$ac_c_werror_flag" ||
22002 test ! -s conftest.err
22003 } && test -s conftest.$ac_objext; then
22006 $as_echo "$as_me: failed program was:" >&5
22007 sed 's/^/| /' conftest.$ac_ext >&5
22009 ac_cv_type_MINIDUMP_TYPE=yes
22012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22014 $as_echo "$as_me: failed program was:" >&5
22015 sed 's/^/| /' conftest.$ac_ext >&5
22020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22022 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
22023 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
22024 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
22026 cat >>confdefs.h <<_ACEOF
22027 #define HAVE_MINIDUMP_TYPE 1
22030 pgac_minidump_type=yes
22032 pgac_minidump_type=no
22036 if test x"$pgac_minidump_type" = x"yes" ; then
22037 have_win32_dbghelp=yes
22040 have_win32_dbghelp=no
22044 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
22045 $as_echo_n "checking for sigsetjmp... " >&6; }
22046 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
22047 $as_echo_n "(cached) " >&6
22049 cat >conftest.$ac_ext <<_ACEOF
22052 cat confdefs.h >>conftest.$ac_ext
22053 cat >>conftest.$ac_ext <<_ACEOF
22054 /* end confdefs.h. */
22055 #include <setjmp.h>
22059 sigjmp_buf x; sigsetjmp(x, 1);
22064 rm -f conftest.$ac_objext conftest$ac_exeext
22065 if { (ac_try="$ac_link"
22066 case "(($ac_try" in
22067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22068 *) ac_try_echo=$ac_try;;
22070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22071 $as_echo "$ac_try_echo") >&5
22072 (eval "$ac_link") 2>conftest.er1
22074 grep -v '^ *+' conftest.er1 >conftest.err
22076 cat conftest.err >&5
22077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078 (exit $ac_status); } && {
22079 test -z "$ac_c_werror_flag" ||
22080 test ! -s conftest.err
22081 } && test -s conftest$ac_exeext && {
22082 test "$cross_compiling" = yes ||
22083 $as_test_x conftest$ac_exeext
22085 pgac_cv_func_sigsetjmp=yes
22087 $as_echo "$as_me: failed program was:" >&5
22088 sed 's/^/| /' conftest.$ac_ext >&5
22090 pgac_cv_func_sigsetjmp=no
22093 rm -rf conftest.dSYM
22094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22095 conftest$ac_exeext conftest.$ac_ext
22097 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
22098 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
22099 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
22101 cat >>confdefs.h <<\_ACEOF
22102 #define HAVE_SIGSETJMP 1
22107 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
22108 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
22109 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
22110 $as_echo_n "(cached) " >&6
22112 cat >conftest.$ac_ext <<_ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h. */
22118 #include <signal.h>
22119 /* NetBSD declares sys_siglist in unistd.h. */
22120 #ifdef HAVE_UNISTD_H
22121 # include <unistd.h>
22128 #ifndef sys_siglist
22129 (void) sys_siglist;
22136 rm -f conftest.$ac_objext
22137 if { (ac_try="$ac_compile"
22138 case "(($ac_try" in
22139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22140 *) ac_try_echo=$ac_try;;
22142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22143 $as_echo "$ac_try_echo") >&5
22144 (eval "$ac_compile") 2>conftest.er1
22146 grep -v '^ *+' conftest.er1 >conftest.err
22148 cat conftest.err >&5
22149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150 (exit $ac_status); } && {
22151 test -z "$ac_c_werror_flag" ||
22152 test ! -s conftest.err
22153 } && test -s conftest.$ac_objext; then
22154 ac_cv_have_decl_sys_siglist=yes
22156 $as_echo "$as_me: failed program was:" >&5
22157 sed 's/^/| /' conftest.$ac_ext >&5
22159 ac_cv_have_decl_sys_siglist=no
22162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22164 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
22165 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
22166 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
22168 cat >>confdefs.h <<_ACEOF
22169 #define HAVE_DECL_SYS_SIGLIST 1
22174 cat >>confdefs.h <<_ACEOF
22175 #define HAVE_DECL_SYS_SIGLIST 0
22184 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
22185 $as_echo_n "checking for syslog... " >&6; }
22186 if test "${ac_cv_func_syslog+set}" = set; then
22187 $as_echo_n "(cached) " >&6
22189 cat >conftest.$ac_ext <<_ACEOF
22192 cat confdefs.h >>conftest.$ac_ext
22193 cat >>conftest.$ac_ext <<_ACEOF
22194 /* end confdefs.h. */
22195 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
22196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22197 #define syslog innocuous_syslog
22199 /* System header to define __stub macros and hopefully few prototypes,
22200 which can conflict with char syslog (); below.
22201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22202 <limits.h> exists even on freestanding compilers. */
22205 # include <limits.h>
22207 # include <assert.h>
22212 /* Override any GCC internal prototype to avoid an error.
22213 Use char because int might match the return type of a GCC
22214 builtin and then its argument prototype would still apply. */
22219 /* The GNU C library defines this for functions which it implements
22220 to always fail with ENOSYS. Some functions are actually named
22221 something starting with __ and the normal name is an alias. */
22222 #if defined __stub_syslog || defined __stub___syslog
22234 rm -f conftest.$ac_objext conftest$ac_exeext
22235 if { (ac_try="$ac_link"
22236 case "(($ac_try" in
22237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22238 *) ac_try_echo=$ac_try;;
22240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22241 $as_echo "$ac_try_echo") >&5
22242 (eval "$ac_link") 2>conftest.er1
22244 grep -v '^ *+' conftest.er1 >conftest.err
22246 cat conftest.err >&5
22247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); } && {
22249 test -z "$ac_c_werror_flag" ||
22250 test ! -s conftest.err
22251 } && test -s conftest$ac_exeext && {
22252 test "$cross_compiling" = yes ||
22253 $as_test_x conftest$ac_exeext
22255 ac_cv_func_syslog=yes
22257 $as_echo "$as_me: failed program was:" >&5
22258 sed 's/^/| /' conftest.$ac_ext >&5
22260 ac_cv_func_syslog=no
22263 rm -rf conftest.dSYM
22264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22265 conftest$ac_exeext conftest.$ac_ext
22267 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
22268 $as_echo "$ac_cv_func_syslog" >&6; }
22269 if test "x$ac_cv_func_syslog" = x""yes; then
22270 if test "${ac_cv_header_syslog_h+set}" = set; then
22271 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22272 $as_echo_n "checking for syslog.h... " >&6; }
22273 if test "${ac_cv_header_syslog_h+set}" = set; then
22274 $as_echo_n "(cached) " >&6
22276 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22277 $as_echo "$ac_cv_header_syslog_h" >&6; }
22279 # Is the header compilable?
22280 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
22281 $as_echo_n "checking syslog.h usability... " >&6; }
22282 cat >conftest.$ac_ext <<_ACEOF
22285 cat confdefs.h >>conftest.$ac_ext
22286 cat >>conftest.$ac_ext <<_ACEOF
22287 /* end confdefs.h. */
22288 $ac_includes_default
22289 #include <syslog.h>
22291 rm -f conftest.$ac_objext
22292 if { (ac_try="$ac_compile"
22293 case "(($ac_try" in
22294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22295 *) ac_try_echo=$ac_try;;
22297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22298 $as_echo "$ac_try_echo") >&5
22299 (eval "$ac_compile") 2>conftest.er1
22301 grep -v '^ *+' conftest.er1 >conftest.err
22303 cat conftest.err >&5
22304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305 (exit $ac_status); } && {
22306 test -z "$ac_c_werror_flag" ||
22307 test ! -s conftest.err
22308 } && test -s conftest.$ac_objext; then
22309 ac_header_compiler=yes
22311 $as_echo "$as_me: failed program was:" >&5
22312 sed 's/^/| /' conftest.$ac_ext >&5
22314 ac_header_compiler=no
22317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22318 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22319 $as_echo "$ac_header_compiler" >&6; }
22321 # Is the header present?
22322 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
22323 $as_echo_n "checking syslog.h presence... " >&6; }
22324 cat >conftest.$ac_ext <<_ACEOF
22327 cat confdefs.h >>conftest.$ac_ext
22328 cat >>conftest.$ac_ext <<_ACEOF
22329 /* end confdefs.h. */
22330 #include <syslog.h>
22332 if { (ac_try="$ac_cpp conftest.$ac_ext"
22333 case "(($ac_try" in
22334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22335 *) ac_try_echo=$ac_try;;
22337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22338 $as_echo "$ac_try_echo") >&5
22339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22341 grep -v '^ *+' conftest.er1 >conftest.err
22343 cat conftest.err >&5
22344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345 (exit $ac_status); } >/dev/null && {
22346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22347 test ! -s conftest.err
22349 ac_header_preproc=yes
22351 $as_echo "$as_me: failed program was:" >&5
22352 sed 's/^/| /' conftest.$ac_ext >&5
22354 ac_header_preproc=no
22357 rm -f conftest.err conftest.$ac_ext
22358 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22359 $as_echo "$ac_header_preproc" >&6; }
22361 # So? What about this header?
22362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22364 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
22365 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22366 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
22367 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
22368 ac_header_preproc=yes
22371 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
22372 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
22373 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
22374 $as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
22375 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
22376 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
22377 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
22378 $as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
22379 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
22380 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
22381 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
22382 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
22384 ## ---------------------------------------- ##
22385 ## Report this to pgsql-bugs@postgresql.org ##
22386 ## ---------------------------------------- ##
22388 ) | sed "s/^/$as_me: WARNING: /" >&2
22391 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22392 $as_echo_n "checking for syslog.h... " >&6; }
22393 if test "${ac_cv_header_syslog_h+set}" = set; then
22394 $as_echo_n "(cached) " >&6
22396 ac_cv_header_syslog_h=$ac_header_preproc
22398 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22399 $as_echo "$ac_cv_header_syslog_h" >&6; }
22402 if test "x$ac_cv_header_syslog_h" = x""yes; then
22404 cat >>confdefs.h <<\_ACEOF
22405 #define HAVE_SYSLOG 1
22414 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
22415 $as_echo_n "checking for opterr... " >&6; }
22416 if test "${pgac_cv_var_int_opterr+set}" = set; then
22417 $as_echo_n "(cached) " >&6
22419 cat >conftest.$ac_ext <<_ACEOF
22422 cat confdefs.h >>conftest.$ac_ext
22423 cat >>conftest.$ac_ext <<_ACEOF
22424 /* end confdefs.h. */
22425 #include <unistd.h>
22429 extern int opterr; opterr = 1;
22434 rm -f conftest.$ac_objext conftest$ac_exeext
22435 if { (ac_try="$ac_link"
22436 case "(($ac_try" in
22437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22438 *) ac_try_echo=$ac_try;;
22440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22441 $as_echo "$ac_try_echo") >&5
22442 (eval "$ac_link") 2>conftest.er1
22444 grep -v '^ *+' conftest.er1 >conftest.err
22446 cat conftest.err >&5
22447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448 (exit $ac_status); } && {
22449 test -z "$ac_c_werror_flag" ||
22450 test ! -s conftest.err
22451 } && test -s conftest$ac_exeext && {
22452 test "$cross_compiling" = yes ||
22453 $as_test_x conftest$ac_exeext
22455 pgac_cv_var_int_opterr=yes
22457 $as_echo "$as_me: failed program was:" >&5
22458 sed 's/^/| /' conftest.$ac_ext >&5
22460 pgac_cv_var_int_opterr=no
22463 rm -rf conftest.dSYM
22464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22465 conftest$ac_exeext conftest.$ac_ext
22467 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22468 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22469 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22471 cat >>confdefs.h <<\_ACEOF
22472 #define HAVE_INT_OPTERR 1
22477 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22478 $as_echo_n "checking for optreset... " >&6; }
22479 if test "${pgac_cv_var_int_optreset+set}" = set; then
22480 $as_echo_n "(cached) " >&6
22482 cat >conftest.$ac_ext <<_ACEOF
22485 cat confdefs.h >>conftest.$ac_ext
22486 cat >>conftest.$ac_ext <<_ACEOF
22487 /* end confdefs.h. */
22488 #include <unistd.h>
22492 extern int optreset; optreset = 1;
22497 rm -f conftest.$ac_objext conftest$ac_exeext
22498 if { (ac_try="$ac_link"
22499 case "(($ac_try" in
22500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22501 *) ac_try_echo=$ac_try;;
22503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22504 $as_echo "$ac_try_echo") >&5
22505 (eval "$ac_link") 2>conftest.er1
22507 grep -v '^ *+' conftest.er1 >conftest.err
22509 cat conftest.err >&5
22510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); } && {
22512 test -z "$ac_c_werror_flag" ||
22513 test ! -s conftest.err
22514 } && test -s conftest$ac_exeext && {
22515 test "$cross_compiling" = yes ||
22516 $as_test_x conftest$ac_exeext
22518 pgac_cv_var_int_optreset=yes
22520 $as_echo "$as_me: failed program was:" >&5
22521 sed 's/^/| /' conftest.$ac_ext >&5
22523 pgac_cv_var_int_optreset=no
22526 rm -rf conftest.dSYM
22527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22528 conftest$ac_exeext conftest.$ac_ext
22530 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22531 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22532 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22534 cat >>confdefs.h <<\_ACEOF
22535 #define HAVE_INT_OPTRESET 1
22542 for ac_func in strtoll strtoq
22544 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22545 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22546 $as_echo_n "checking for $ac_func... " >&6; }
22547 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22548 $as_echo_n "(cached) " >&6
22550 cat >conftest.$ac_ext <<_ACEOF
22553 cat confdefs.h >>conftest.$ac_ext
22554 cat >>conftest.$ac_ext <<_ACEOF
22555 /* end confdefs.h. */
22556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22558 #define $ac_func innocuous_$ac_func
22560 /* System header to define __stub macros and hopefully few prototypes,
22561 which can conflict with char $ac_func (); below.
22562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22563 <limits.h> exists even on freestanding compilers. */
22566 # include <limits.h>
22568 # include <assert.h>
22573 /* Override any GCC internal prototype to avoid an error.
22574 Use char because int might match the return type of a GCC
22575 builtin and then its argument prototype would still apply. */
22580 /* The GNU C library defines this for functions which it implements
22581 to always fail with ENOSYS. Some functions are actually named
22582 something starting with __ and the normal name is an alias. */
22583 #if defined __stub_$ac_func || defined __stub___$ac_func
22590 return $ac_func ();
22595 rm -f conftest.$ac_objext conftest$ac_exeext
22596 if { (ac_try="$ac_link"
22597 case "(($ac_try" in
22598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22599 *) ac_try_echo=$ac_try;;
22601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22602 $as_echo "$ac_try_echo") >&5
22603 (eval "$ac_link") 2>conftest.er1
22605 grep -v '^ *+' conftest.er1 >conftest.err
22607 cat conftest.err >&5
22608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609 (exit $ac_status); } && {
22610 test -z "$ac_c_werror_flag" ||
22611 test ! -s conftest.err
22612 } && test -s conftest$ac_exeext && {
22613 test "$cross_compiling" = yes ||
22614 $as_test_x conftest$ac_exeext
22616 eval "$as_ac_var=yes"
22618 $as_echo "$as_me: failed program was:" >&5
22619 sed 's/^/| /' conftest.$ac_ext >&5
22621 eval "$as_ac_var=no"
22624 rm -rf conftest.dSYM
22625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22626 conftest$ac_exeext conftest.$ac_ext
22628 ac_res=`eval 'as_val=${'$as_ac_var'}
22629 $as_echo "$as_val"'`
22630 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22631 $as_echo "$ac_res" >&6; }
22632 as_val=`eval 'as_val=${'$as_ac_var'}
22633 $as_echo "$as_val"'`
22634 if test "x$as_val" = x""yes; then
22635 cat >>confdefs.h <<_ACEOF
22636 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22644 for ac_func in strtoull strtouq
22646 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22647 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22648 $as_echo_n "checking for $ac_func... " >&6; }
22649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22650 $as_echo_n "(cached) " >&6
22652 cat >conftest.$ac_ext <<_ACEOF
22655 cat confdefs.h >>conftest.$ac_ext
22656 cat >>conftest.$ac_ext <<_ACEOF
22657 /* end confdefs.h. */
22658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22660 #define $ac_func innocuous_$ac_func
22662 /* System header to define __stub macros and hopefully few prototypes,
22663 which can conflict with char $ac_func (); below.
22664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22665 <limits.h> exists even on freestanding compilers. */
22668 # include <limits.h>
22670 # include <assert.h>
22675 /* Override any GCC internal prototype to avoid an error.
22676 Use char because int might match the return type of a GCC
22677 builtin and then its argument prototype would still apply. */
22682 /* The GNU C library defines this for functions which it implements
22683 to always fail with ENOSYS. Some functions are actually named
22684 something starting with __ and the normal name is an alias. */
22685 #if defined __stub_$ac_func || defined __stub___$ac_func
22692 return $ac_func ();
22697 rm -f conftest.$ac_objext conftest$ac_exeext
22698 if { (ac_try="$ac_link"
22699 case "(($ac_try" in
22700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22701 *) ac_try_echo=$ac_try;;
22703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22704 $as_echo "$ac_try_echo") >&5
22705 (eval "$ac_link") 2>conftest.er1
22707 grep -v '^ *+' conftest.er1 >conftest.err
22709 cat conftest.err >&5
22710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711 (exit $ac_status); } && {
22712 test -z "$ac_c_werror_flag" ||
22713 test ! -s conftest.err
22714 } && test -s conftest$ac_exeext && {
22715 test "$cross_compiling" = yes ||
22716 $as_test_x conftest$ac_exeext
22718 eval "$as_ac_var=yes"
22720 $as_echo "$as_me: failed program was:" >&5
22721 sed 's/^/| /' conftest.$ac_ext >&5
22723 eval "$as_ac_var=no"
22726 rm -rf conftest.dSYM
22727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22728 conftest$ac_exeext conftest.$ac_ext
22730 ac_res=`eval 'as_val=${'$as_ac_var'}
22731 $as_echo "$as_val"'`
22732 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22733 $as_echo "$ac_res" >&6; }
22734 as_val=`eval 'as_val=${'$as_ac_var'}
22735 $as_echo "$as_val"'`
22736 if test "x$as_val" = x""yes; then
22737 cat >>confdefs.h <<_ACEOF
22738 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22745 { $as_echo "$as_me:$LINENO: checking for builtin locking functions" >&5
22746 $as_echo_n "checking for builtin locking functions... " >&6; }
22747 if test "${pgac_cv_gcc_int_atomics+set}" = set; then
22748 $as_echo_n "(cached) " >&6
22750 cat >conftest.$ac_ext <<_ACEOF
22753 cat confdefs.h >>conftest.$ac_ext
22754 cat >>conftest.$ac_ext <<_ACEOF
22755 /* end confdefs.h. */
22761 __sync_lock_test_and_set(&lock, 1);
22762 __sync_lock_release(&lock);
22767 rm -f conftest.$ac_objext conftest$ac_exeext
22768 if { (ac_try="$ac_link"
22769 case "(($ac_try" in
22770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22771 *) ac_try_echo=$ac_try;;
22773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22774 $as_echo "$ac_try_echo") >&5
22775 (eval "$ac_link") 2>conftest.er1
22777 grep -v '^ *+' conftest.er1 >conftest.err
22779 cat conftest.err >&5
22780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781 (exit $ac_status); } && {
22782 test -z "$ac_c_werror_flag" ||
22783 test ! -s conftest.err
22784 } && test -s conftest$ac_exeext && {
22785 test "$cross_compiling" = yes ||
22786 $as_test_x conftest$ac_exeext
22788 pgac_cv_gcc_int_atomics="yes"
22790 $as_echo "$as_me: failed program was:" >&5
22791 sed 's/^/| /' conftest.$ac_ext >&5
22793 pgac_cv_gcc_int_atomics="no"
22796 rm -rf conftest.dSYM
22797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22798 conftest$ac_exeext conftest.$ac_ext
22800 { $as_echo "$as_me:$LINENO: result: $pgac_cv_gcc_int_atomics" >&5
22801 $as_echo "$pgac_cv_gcc_int_atomics" >&6; }
22802 if test x"$pgac_cv_gcc_int_atomics" = x"yes"; then
22804 cat >>confdefs.h <<\_ACEOF
22805 #define HAVE_GCC_INT_ATOMICS 1
22810 # Lastly, restore full LIBS list and check for readline/libedit symbols
22811 LIBS="$LIBS_including_readline"
22813 if test "$with_readline" = yes; then
22814 { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
22815 $as_echo_n "checking for rl_completion_append_character... " >&6; }
22816 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
22817 $as_echo_n "(cached) " >&6
22819 cat >conftest.$ac_ext <<_ACEOF
22822 cat confdefs.h >>conftest.$ac_ext
22823 cat >>conftest.$ac_ext <<_ACEOF
22824 /* end confdefs.h. */
22826 #ifdef HAVE_READLINE_READLINE_H
22827 # include <readline/readline.h>
22828 #elif defined(HAVE_READLINE_H)
22829 # include <readline.h>
22835 rl_completion_append_character = 'x';
22840 rm -f conftest.$ac_objext conftest$ac_exeext
22841 if { (ac_try="$ac_link"
22842 case "(($ac_try" in
22843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22844 *) ac_try_echo=$ac_try;;
22846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22847 $as_echo "$ac_try_echo") >&5
22848 (eval "$ac_link") 2>conftest.er1
22850 grep -v '^ *+' conftest.er1 >conftest.err
22852 cat conftest.err >&5
22853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854 (exit $ac_status); } && {
22855 test -z "$ac_c_werror_flag" ||
22856 test ! -s conftest.err
22857 } && test -s conftest$ac_exeext && {
22858 test "$cross_compiling" = yes ||
22859 $as_test_x conftest$ac_exeext
22861 pgac_cv_var_rl_completion_append_character=yes
22863 $as_echo "$as_me: failed program was:" >&5
22864 sed 's/^/| /' conftest.$ac_ext >&5
22866 pgac_cv_var_rl_completion_append_character=no
22869 rm -rf conftest.dSYM
22870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22871 conftest$ac_exeext conftest.$ac_ext
22873 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
22874 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
22875 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
22877 cat >>confdefs.h <<\_ACEOF
22878 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
22884 for ac_func in rl_completion_matches rl_filename_completion_function
22886 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22887 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22888 $as_echo_n "checking for $ac_func... " >&6; }
22889 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22890 $as_echo_n "(cached) " >&6
22892 cat >conftest.$ac_ext <<_ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h. */
22898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22900 #define $ac_func innocuous_$ac_func
22902 /* System header to define __stub macros and hopefully few prototypes,
22903 which can conflict with char $ac_func (); below.
22904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22905 <limits.h> exists even on freestanding compilers. */
22908 # include <limits.h>
22910 # include <assert.h>
22915 /* Override any GCC internal prototype to avoid an error.
22916 Use char because int might match the return type of a GCC
22917 builtin and then its argument prototype would still apply. */
22922 /* The GNU C library defines this for functions which it implements
22923 to always fail with ENOSYS. Some functions are actually named
22924 something starting with __ and the normal name is an alias. */
22925 #if defined __stub_$ac_func || defined __stub___$ac_func
22932 return $ac_func ();
22937 rm -f conftest.$ac_objext conftest$ac_exeext
22938 if { (ac_try="$ac_link"
22939 case "(($ac_try" in
22940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22941 *) ac_try_echo=$ac_try;;
22943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22944 $as_echo "$ac_try_echo") >&5
22945 (eval "$ac_link") 2>conftest.er1
22947 grep -v '^ *+' conftest.er1 >conftest.err
22949 cat conftest.err >&5
22950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); } && {
22952 test -z "$ac_c_werror_flag" ||
22953 test ! -s conftest.err
22954 } && test -s conftest$ac_exeext && {
22955 test "$cross_compiling" = yes ||
22956 $as_test_x conftest$ac_exeext
22958 eval "$as_ac_var=yes"
22960 $as_echo "$as_me: failed program was:" >&5
22961 sed 's/^/| /' conftest.$ac_ext >&5
22963 eval "$as_ac_var=no"
22966 rm -rf conftest.dSYM
22967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22968 conftest$ac_exeext conftest.$ac_ext
22970 ac_res=`eval 'as_val=${'$as_ac_var'}
22971 $as_echo "$as_val"'`
22972 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22973 $as_echo "$ac_res" >&6; }
22974 as_val=`eval 'as_val=${'$as_ac_var'}
22975 $as_echo "$as_val"'`
22976 if test "x$as_val" = x""yes; then
22977 cat >>confdefs.h <<_ACEOF
22978 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22986 for ac_func in append_history history_truncate_file
22988 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22989 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22990 $as_echo_n "checking for $ac_func... " >&6; }
22991 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22992 $as_echo_n "(cached) " >&6
22994 cat >conftest.$ac_ext <<_ACEOF
22997 cat confdefs.h >>conftest.$ac_ext
22998 cat >>conftest.$ac_ext <<_ACEOF
22999 /* end confdefs.h. */
23000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23002 #define $ac_func innocuous_$ac_func
23004 /* System header to define __stub macros and hopefully few prototypes,
23005 which can conflict with char $ac_func (); below.
23006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23007 <limits.h> exists even on freestanding compilers. */
23010 # include <limits.h>
23012 # include <assert.h>
23017 /* Override any GCC internal prototype to avoid an error.
23018 Use char because int might match the return type of a GCC
23019 builtin and then its argument prototype would still apply. */
23024 /* The GNU C library defines this for functions which it implements
23025 to always fail with ENOSYS. Some functions are actually named
23026 something starting with __ and the normal name is an alias. */
23027 #if defined __stub_$ac_func || defined __stub___$ac_func
23034 return $ac_func ();
23039 rm -f conftest.$ac_objext conftest$ac_exeext
23040 if { (ac_try="$ac_link"
23041 case "(($ac_try" in
23042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23043 *) ac_try_echo=$ac_try;;
23045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23046 $as_echo "$ac_try_echo") >&5
23047 (eval "$ac_link") 2>conftest.er1
23049 grep -v '^ *+' conftest.er1 >conftest.err
23051 cat conftest.err >&5
23052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053 (exit $ac_status); } && {
23054 test -z "$ac_c_werror_flag" ||
23055 test ! -s conftest.err
23056 } && test -s conftest$ac_exeext && {
23057 test "$cross_compiling" = yes ||
23058 $as_test_x conftest$ac_exeext
23060 eval "$as_ac_var=yes"
23062 $as_echo "$as_me: failed program was:" >&5
23063 sed 's/^/| /' conftest.$ac_ext >&5
23065 eval "$as_ac_var=no"
23068 rm -rf conftest.dSYM
23069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23070 conftest$ac_exeext conftest.$ac_ext
23072 ac_res=`eval 'as_val=${'$as_ac_var'}
23073 $as_echo "$as_val"'`
23074 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23075 $as_echo "$ac_res" >&6; }
23076 as_val=`eval 'as_val=${'$as_ac_var'}
23077 $as_echo "$as_val"'`
23078 if test "x$as_val" = x""yes; then
23079 cat >>confdefs.h <<_ACEOF
23080 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23092 # For each platform, we need to know about any special compile and link
23093 # libraries, and whether the normal C function names are thread-safe.
23094 # See the comment at the top of src/port/thread.c for more information.
23095 # WIN32 doesn't need the pthread tests; it always uses threads
23096 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
23101 ac_cpp='$CPP $CPPFLAGS'
23102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23108 # We used to check for pthread.h first, but this fails if pthread.h
23109 # requires special compiler flags (e.g. on True64 or Sequent).
23110 # It gets checked for in the link test anyway.
23112 # First of all, check if the user has set any of the PTHREAD_LIBS,
23113 # etcetera environment variables, and if threads linking works using
23115 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
23116 save_CFLAGS="$CFLAGS"
23117 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23119 LIBS="$PTHREAD_LIBS $LIBS"
23120 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
23121 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
23122 cat >conftest.$ac_ext <<_ACEOF
23125 cat confdefs.h >>conftest.$ac_ext
23126 cat >>conftest.$ac_ext <<_ACEOF
23127 /* end confdefs.h. */
23129 /* Override any GCC internal prototype to avoid an error.
23130 Use char because int might match the return type of a GCC
23131 builtin and then its argument prototype would still apply. */
23135 char pthread_join ();
23139 return pthread_join ();
23144 rm -f conftest.$ac_objext conftest$ac_exeext
23145 if { (ac_try="$ac_link"
23146 case "(($ac_try" in
23147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23148 *) ac_try_echo=$ac_try;;
23150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23151 $as_echo "$ac_try_echo") >&5
23152 (eval "$ac_link") 2>conftest.er1
23154 grep -v '^ *+' conftest.er1 >conftest.err
23156 cat conftest.err >&5
23157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158 (exit $ac_status); } && {
23159 test -z "$ac_c_werror_flag" ||
23160 test ! -s conftest.err
23161 } && test -s conftest$ac_exeext && {
23162 test "$cross_compiling" = yes ||
23163 $as_test_x conftest$ac_exeext
23167 $as_echo "$as_me: failed program was:" >&5
23168 sed 's/^/| /' conftest.$ac_ext >&5
23173 rm -rf conftest.dSYM
23174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23175 conftest$ac_exeext conftest.$ac_ext
23176 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23177 $as_echo "$acx_pthread_ok" >&6; }
23178 if test x"$acx_pthread_ok" = xno; then
23183 CFLAGS="$save_CFLAGS"
23186 # We must check for the threads library under a number of different
23187 # names; the ordering is very important because some systems
23188 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
23189 # libraries is broken (non-POSIX).
23191 # Create a list of thread flags to try. Items starting with a "-" are
23192 # C compiler flags, and other items are library names, except for "none"
23193 # which indicates that we try without any flags at all, and "pthread-config"
23194 # which is a program returning the flags for the Pth emulation library.
23196 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
23198 # The ordering *is* (sometimes) important. Some notes on the
23199 # individual items follow:
23201 # pthreads: AIX (must check this before -lpthread)
23202 # none: in case threads are in libc; should be tried before -Kthread and
23203 # other compiler flags to prevent continual compiler warnings
23204 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
23205 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
23206 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
23207 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
23208 # -pthreads: Solaris/gcc
23209 # -mthreads: Mingw32/gcc, Lynx/gcc
23210 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
23211 # doesn't hurt to check since this sometimes defines pthreads too;
23212 # also defines -D_REENTRANT)
23213 # pthread: Linux, etcetera
23214 # --thread-safe: KAI C++
23215 # pthread-config: use pthread-config program (for GNU Pth library)
23217 case "${host_cpu}-${host_os}" in
23220 # On Solaris (at least, for some versions), libc contains stubbed
23221 # (non-functional) versions of the pthreads routines, so link-based
23222 # tests will erroneously succeed. (We need to link with -pthread or
23223 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
23224 # a function called by this macro, so we could check for that, but
23225 # who knows whether they'll stub that too in a future libc.) So,
23226 # we'll just look for -pthreads and -lpthread first:
23228 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
23232 if test x"$acx_pthread_ok" = xno; then
23233 for flag in $acx_pthread_flags; do
23235 tryPTHREAD_CFLAGS=""
23239 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
23240 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
23244 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
23245 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
23246 tryPTHREAD_CFLAGS="$flag"
23250 # skip this if we already have flags defined, for PostgreSQL
23251 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
23252 # Extract the first word of "pthread-config", so it can be a program name with args.
23253 set dummy pthread-config; ac_word=$2
23254 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23255 $as_echo_n "checking for $ac_word... " >&6; }
23256 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
23257 $as_echo_n "(cached) " >&6
23259 if test -n "$acx_pthread_config"; then
23260 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
23262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23263 for as_dir in $PATH
23266 test -z "$as_dir" && as_dir=.
23267 for ac_exec_ext in '' $ac_executable_extensions; do
23268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23269 ac_cv_prog_acx_pthread_config="yes"
23270 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23277 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
23280 acx_pthread_config=$ac_cv_prog_acx_pthread_config
23281 if test -n "$acx_pthread_config"; then
23282 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
23283 $as_echo "$acx_pthread_config" >&6; }
23285 { $as_echo "$as_me:$LINENO: result: no" >&5
23286 $as_echo "no" >&6; }
23290 if test x"$acx_pthread_config" = xno; then continue; fi
23291 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
23292 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
23296 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
23297 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
23298 tryPTHREAD_LIBS="-l$flag"
23303 save_CFLAGS="$CFLAGS"
23304 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
23305 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
23307 # Check for various functions. We must include pthread.h,
23308 # since some functions may be macros. (On the Sequent, we
23309 # need a special flag -Kthread to make this header compile.)
23310 # We check for pthread_join because it is in -lpthread on IRIX
23311 # while pthread_create is in libc. We check for pthread_attr_init
23312 # due to DEC craziness with -lpthreads. We check for
23313 # pthread_cleanup_push because it is one of the few pthread
23314 # functions on Solaris that doesn't have a non-functional libc stub.
23315 # We try pthread_create on general principles.
23316 cat >conftest.$ac_ext <<_ACEOF
23319 cat confdefs.h >>conftest.$ac_ext
23320 cat >>conftest.$ac_ext <<_ACEOF
23321 /* end confdefs.h. */
23322 #include <pthread.h>
23326 pthread_t th; pthread_join(th, 0);
23327 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23328 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23333 rm -f conftest.$ac_objext conftest$ac_exeext
23334 if { (ac_try="$ac_link"
23335 case "(($ac_try" in
23336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23337 *) ac_try_echo=$ac_try;;
23339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23340 $as_echo "$ac_try_echo") >&5
23341 (eval "$ac_link") 2>conftest.er1
23343 grep -v '^ *+' conftest.er1 >conftest.err
23345 cat conftest.err >&5
23346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347 (exit $ac_status); } && {
23348 test -z "$ac_c_werror_flag" ||
23349 test ! -s conftest.err
23350 } && test -s conftest$ac_exeext && {
23351 test "$cross_compiling" = yes ||
23352 $as_test_x conftest$ac_exeext
23356 $as_echo "$as_me: failed program was:" >&5
23357 sed 's/^/| /' conftest.$ac_ext >&5
23362 rm -rf conftest.dSYM
23363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23364 conftest$ac_exeext conftest.$ac_ext
23366 if test "x$acx_pthread_ok" = xyes; then
23367 # Don't use options that are ignored by the compiler.
23368 # We find them by checking stderror.
23369 cat >conftest.$ac_ext <<_ACEOF
23371 main (int argc, char **argv)
23378 rm -f conftest.$ac_objext conftest$ac_exeext
23379 # Check both linking and compiling, because they might tolerate different options.
23380 if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
23381 # we continue with more flags because Linux needs -lpthread
23382 # for libpq builds on PostgreSQL. The test above only
23383 # tests for building binaries, not shared libraries.
23384 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
23385 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
23386 else acx_pthread_ok=no
23391 CFLAGS="$save_CFLAGS"
23393 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23394 $as_echo "$acx_pthread_ok" >&6; }
23398 # Various other checks:
23399 if test "x$acx_pthread_ok" = xyes; then
23401 LIBS="$PTHREAD_LIBS $LIBS"
23402 save_CFLAGS="$CFLAGS"
23403 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23405 # Detect AIX lossage: threads are created detached by default
23406 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
23407 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
23408 $as_echo_n "checking for joinable pthread attribute... " >&6; }
23409 cat >conftest.$ac_ext <<_ACEOF
23412 cat confdefs.h >>conftest.$ac_ext
23413 cat >>conftest.$ac_ext <<_ACEOF
23414 /* end confdefs.h. */
23415 #include <pthread.h>
23419 int attr=PTHREAD_CREATE_JOINABLE;
23424 rm -f conftest.$ac_objext conftest$ac_exeext
23425 if { (ac_try="$ac_link"
23426 case "(($ac_try" in
23427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23428 *) ac_try_echo=$ac_try;;
23430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23431 $as_echo "$ac_try_echo") >&5
23432 (eval "$ac_link") 2>conftest.er1
23434 grep -v '^ *+' conftest.er1 >conftest.err
23436 cat conftest.err >&5
23437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438 (exit $ac_status); } && {
23439 test -z "$ac_c_werror_flag" ||
23440 test ! -s conftest.err
23441 } && test -s conftest$ac_exeext && {
23442 test "$cross_compiling" = yes ||
23443 $as_test_x conftest$ac_exeext
23445 ok=PTHREAD_CREATE_JOINABLE
23447 $as_echo "$as_me: failed program was:" >&5
23448 sed 's/^/| /' conftest.$ac_ext >&5
23453 rm -rf conftest.dSYM
23454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23455 conftest$ac_exeext conftest.$ac_ext
23456 if test x"$ok" = xunknown; then
23457 cat >conftest.$ac_ext <<_ACEOF
23460 cat confdefs.h >>conftest.$ac_ext
23461 cat >>conftest.$ac_ext <<_ACEOF
23462 /* end confdefs.h. */
23463 #include <pthread.h>
23467 int attr=PTHREAD_CREATE_UNDETACHED;
23472 rm -f conftest.$ac_objext conftest$ac_exeext
23473 if { (ac_try="$ac_link"
23474 case "(($ac_try" in
23475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23476 *) ac_try_echo=$ac_try;;
23478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23479 $as_echo "$ac_try_echo") >&5
23480 (eval "$ac_link") 2>conftest.er1
23482 grep -v '^ *+' conftest.er1 >conftest.err
23484 cat conftest.err >&5
23485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486 (exit $ac_status); } && {
23487 test -z "$ac_c_werror_flag" ||
23488 test ! -s conftest.err
23489 } && test -s conftest$ac_exeext && {
23490 test "$cross_compiling" = yes ||
23491 $as_test_x conftest$ac_exeext
23493 ok=PTHREAD_CREATE_UNDETACHED
23495 $as_echo "$as_me: failed program was:" >&5
23496 sed 's/^/| /' conftest.$ac_ext >&5
23501 rm -rf conftest.dSYM
23502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23503 conftest$ac_exeext conftest.$ac_ext
23505 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
23507 cat >>confdefs.h <<\_ACEOF
23508 #define PTHREAD_CREATE_JOINABLE $ok
23512 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
23513 $as_echo "${ok}" >&6; }
23514 if test x"$ok" = xunknown; then
23515 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
23516 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
23519 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23520 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
23522 # We always add these in PostgreSQL
23523 # case "${host_cpu}-${host_os}" in
23524 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23525 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23527 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
23528 $as_echo "${flag}" >&6; }
23529 if test "x$flag" != xno; then
23530 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23534 CFLAGS="$save_CFLAGS"
23536 # Supporting cc_r would require a special CC in all places that
23537 # use libpq, and that is ugly, so we don't do it. Users can still
23538 # define their compiler as cc_r to do thread builds of everything.
23539 # More AIX lossage: must compile with cc_r
23540 # Extract the first word of "cc_r", so it can be a program name with args.
23541 set dummy cc_r; ac_word=$2
23542 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23543 $as_echo_n "checking for $ac_word... " >&6; }
23544 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23545 $as_echo_n "(cached) " >&6
23547 if test -n "$PTHREAD_CC"; then
23548 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23551 for as_dir in $PATH
23554 test -z "$as_dir" && as_dir=.
23555 for ac_exec_ext in '' $ac_executable_extensions; do
23556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23557 ac_cv_prog_PTHREAD_CC="cc_r"
23558 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23565 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23568 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23569 if test -n "$PTHREAD_CC"; then
23570 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23571 $as_echo "$PTHREAD_CC" >&6; }
23573 { $as_echo "$as_me:$LINENO: result: no" >&5
23574 $as_echo "no" >&6; }
23586 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23587 if test x"$acx_pthread_ok" = xyes; then
23589 cat >>confdefs.h <<\_ACEOF
23590 #define HAVE_PTHREAD 1
23599 ac_cpp='$CPP $CPPFLAGS'
23600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23606 # Some platforms use these, so just define them. They can't hurt if they
23607 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23608 # enables 5-arg getpwuid_r, among other things.
23609 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23612 # At this point, we don't want to muck with the compiler name for threading.
23613 # Let's see who fails, perhaps AIX. 2004-04-23
23614 if test "$PTHREAD_CC" != "$CC"; then
23615 { { $as_echo "$as_me:$LINENO: error:
23616 PostgreSQL does not support platforms that require a special compiler
23617 for thread safety; use --disable-thread-safety to disable thread safety." >&5
23618 $as_echo "$as_me: error:
23619 PostgreSQL does not support platforms that require a special compiler
23620 for thread safety; use --disable-thread-safety to disable thread safety." >&2;}
23621 { (exit 1); exit 1; }; }
23624 # Check for *_r functions
23627 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23628 LIBS="$LIBS $PTHREAD_LIBS"
23630 if test "$PORTNAME" != "win32"; then
23631 if test "${ac_cv_header_pthread_h+set}" = set; then
23632 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23633 $as_echo_n "checking for pthread.h... " >&6; }
23634 if test "${ac_cv_header_pthread_h+set}" = set; then
23635 $as_echo_n "(cached) " >&6
23637 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23638 $as_echo "$ac_cv_header_pthread_h" >&6; }
23640 # Is the header compilable?
23641 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23642 $as_echo_n "checking pthread.h usability... " >&6; }
23643 cat >conftest.$ac_ext <<_ACEOF
23646 cat confdefs.h >>conftest.$ac_ext
23647 cat >>conftest.$ac_ext <<_ACEOF
23648 /* end confdefs.h. */
23649 $ac_includes_default
23650 #include <pthread.h>
23652 rm -f conftest.$ac_objext
23653 if { (ac_try="$ac_compile"
23654 case "(($ac_try" in
23655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23656 *) ac_try_echo=$ac_try;;
23658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23659 $as_echo "$ac_try_echo") >&5
23660 (eval "$ac_compile") 2>conftest.er1
23662 grep -v '^ *+' conftest.er1 >conftest.err
23664 cat conftest.err >&5
23665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666 (exit $ac_status); } && {
23667 test -z "$ac_c_werror_flag" ||
23668 test ! -s conftest.err
23669 } && test -s conftest.$ac_objext; then
23670 ac_header_compiler=yes
23672 $as_echo "$as_me: failed program was:" >&5
23673 sed 's/^/| /' conftest.$ac_ext >&5
23675 ac_header_compiler=no
23678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23679 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23680 $as_echo "$ac_header_compiler" >&6; }
23682 # Is the header present?
23683 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23684 $as_echo_n "checking pthread.h presence... " >&6; }
23685 cat >conftest.$ac_ext <<_ACEOF
23688 cat confdefs.h >>conftest.$ac_ext
23689 cat >>conftest.$ac_ext <<_ACEOF
23690 /* end confdefs.h. */
23691 #include <pthread.h>
23693 if { (ac_try="$ac_cpp conftest.$ac_ext"
23694 case "(($ac_try" in
23695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23696 *) ac_try_echo=$ac_try;;
23698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23699 $as_echo "$ac_try_echo") >&5
23700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23702 grep -v '^ *+' conftest.er1 >conftest.err
23704 cat conftest.err >&5
23705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706 (exit $ac_status); } >/dev/null && {
23707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23708 test ! -s conftest.err
23710 ac_header_preproc=yes
23712 $as_echo "$as_me: failed program was:" >&5
23713 sed 's/^/| /' conftest.$ac_ext >&5
23715 ac_header_preproc=no
23718 rm -f conftest.err conftest.$ac_ext
23719 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23720 $as_echo "$ac_header_preproc" >&6; }
23722 # So? What about this header?
23723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23725 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23726 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23727 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23728 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23729 ac_header_preproc=yes
23732 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23733 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23734 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
23735 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
23736 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23737 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23738 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
23739 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
23740 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23741 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23742 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23743 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23745 ## ---------------------------------------- ##
23746 ## Report this to pgsql-bugs@postgresql.org ##
23747 ## ---------------------------------------- ##
23749 ) | sed "s/^/$as_me: WARNING: /" >&2
23752 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23753 $as_echo_n "checking for pthread.h... " >&6; }
23754 if test "${ac_cv_header_pthread_h+set}" = set; then
23755 $as_echo_n "(cached) " >&6
23757 ac_cv_header_pthread_h=$ac_header_preproc
23759 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23760 $as_echo "$ac_cv_header_pthread_h" >&6; }
23763 if test "x$ac_cv_header_pthread_h" = x""yes; then
23766 { { $as_echo "$as_me:$LINENO: error:
23767 pthread.h not found; use --disable-thread-safety to disable thread safety" >&5
23768 $as_echo "$as_me: error:
23769 pthread.h not found; use --disable-thread-safety to disable thread safety" >&2;}
23770 { (exit 1); exit 1; }; }
23779 for ac_func in strerror_r getpwuid_r gethostbyname_r
23781 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23782 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23783 $as_echo_n "checking for $ac_func... " >&6; }
23784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23785 $as_echo_n "(cached) " >&6
23787 cat >conftest.$ac_ext <<_ACEOF
23790 cat confdefs.h >>conftest.$ac_ext
23791 cat >>conftest.$ac_ext <<_ACEOF
23792 /* end confdefs.h. */
23793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23795 #define $ac_func innocuous_$ac_func
23797 /* System header to define __stub macros and hopefully few prototypes,
23798 which can conflict with char $ac_func (); below.
23799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23800 <limits.h> exists even on freestanding compilers. */
23803 # include <limits.h>
23805 # include <assert.h>
23810 /* Override any GCC internal prototype to avoid an error.
23811 Use char because int might match the return type of a GCC
23812 builtin and then its argument prototype would still apply. */
23817 /* The GNU C library defines this for functions which it implements
23818 to always fail with ENOSYS. Some functions are actually named
23819 something starting with __ and the normal name is an alias. */
23820 #if defined __stub_$ac_func || defined __stub___$ac_func
23827 return $ac_func ();
23832 rm -f conftest.$ac_objext conftest$ac_exeext
23833 if { (ac_try="$ac_link"
23834 case "(($ac_try" in
23835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23836 *) ac_try_echo=$ac_try;;
23838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23839 $as_echo "$ac_try_echo") >&5
23840 (eval "$ac_link") 2>conftest.er1
23842 grep -v '^ *+' conftest.er1 >conftest.err
23844 cat conftest.err >&5
23845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23846 (exit $ac_status); } && {
23847 test -z "$ac_c_werror_flag" ||
23848 test ! -s conftest.err
23849 } && test -s conftest$ac_exeext && {
23850 test "$cross_compiling" = yes ||
23851 $as_test_x conftest$ac_exeext
23853 eval "$as_ac_var=yes"
23855 $as_echo "$as_me: failed program was:" >&5
23856 sed 's/^/| /' conftest.$ac_ext >&5
23858 eval "$as_ac_var=no"
23861 rm -rf conftest.dSYM
23862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23863 conftest$ac_exeext conftest.$ac_ext
23865 ac_res=`eval 'as_val=${'$as_ac_var'}
23866 $as_echo "$as_val"'`
23867 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23868 $as_echo "$ac_res" >&6; }
23869 as_val=`eval 'as_val=${'$as_ac_var'}
23870 $as_echo "$as_val"'`
23871 if test "x$as_val" = x""yes; then
23872 cat >>confdefs.h <<_ACEOF
23873 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23880 # Do test here with the proper thread flags
23881 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23882 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23883 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23884 $as_echo_n "(cached) " >&6
23886 cat >conftest.$ac_ext <<_ACEOF
23889 cat confdefs.h >>conftest.$ac_ext
23890 cat >>conftest.$ac_ext <<_ACEOF
23891 /* end confdefs.h. */
23892 #include <sys/types.h>
23898 struct passwd *space;
23901 struct passwd **result;
23902 getpwuid_r(uid, space, buf, bufsize, result);
23907 rm -f conftest.$ac_objext
23908 if { (ac_try="$ac_compile"
23909 case "(($ac_try" in
23910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23911 *) ac_try_echo=$ac_try;;
23913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23914 $as_echo "$ac_try_echo") >&5
23915 (eval "$ac_compile") 2>conftest.er1
23917 grep -v '^ *+' conftest.er1 >conftest.err
23919 cat conftest.err >&5
23920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23921 (exit $ac_status); } && {
23922 test -z "$ac_c_werror_flag" ||
23923 test ! -s conftest.err
23924 } && test -s conftest.$ac_objext; then
23925 pgac_cv_func_getpwuid_r_5arg=yes
23927 $as_echo "$as_me: failed program was:" >&5
23928 sed 's/^/| /' conftest.$ac_ext >&5
23930 pgac_cv_func_getpwuid_r_5arg=no
23933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23935 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
23936 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
23937 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
23939 cat >>confdefs.h <<\_ACEOF
23940 #define GETPWUID_R_5ARG 1
23945 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
23946 $as_echo_n "checking whether strerror_r returns int... " >&6; }
23947 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
23948 $as_echo_n "(cached) " >&6
23950 cat >conftest.$ac_ext <<_ACEOF
23953 cat confdefs.h >>conftest.$ac_ext
23954 cat >>conftest.$ac_ext <<_ACEOF
23955 /* end confdefs.h. */
23956 #include <string.h>
23961 int strerror_r(int, char *, size_t);
23963 /* Older AIX has 'int' for the third argument so we don't test the args. */
23970 rm -f conftest.$ac_objext
23971 if { (ac_try="$ac_compile"
23972 case "(($ac_try" in
23973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23974 *) ac_try_echo=$ac_try;;
23976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23977 $as_echo "$ac_try_echo") >&5
23978 (eval "$ac_compile") 2>conftest.er1
23980 grep -v '^ *+' conftest.er1 >conftest.err
23982 cat conftest.err >&5
23983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984 (exit $ac_status); } && {
23985 test -z "$ac_c_werror_flag" ||
23986 test ! -s conftest.err
23987 } && test -s conftest.$ac_objext; then
23988 pgac_cv_func_strerror_r_int=yes
23990 $as_echo "$as_me: failed program was:" >&5
23991 sed 's/^/| /' conftest.$ac_ext >&5
23993 pgac_cv_func_strerror_r_int=no
23996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23998 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
23999 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
24000 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
24002 cat >>confdefs.h <<\_ACEOF
24003 #define STRERROR_R_INT 1
24013 # do not use values from template file
24022 # We can test for libldap_r only after we know PTHREAD_LIBS
24023 if test "$with_ldap" = yes ; then
24025 if test "$PORTNAME" != "win32"; then
24027 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
24028 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
24029 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
24030 $as_echo_n "(cached) " >&6
24032 ac_check_lib_save_LIBS=$LIBS
24033 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
24034 cat >conftest.$ac_ext <<_ACEOF
24037 cat confdefs.h >>conftest.$ac_ext
24038 cat >>conftest.$ac_ext <<_ACEOF
24039 /* end confdefs.h. */
24041 /* Override any GCC internal prototype to avoid an error.
24042 Use char because int might match the return type of a GCC
24043 builtin and then its argument prototype would still apply. */
24051 return ldap_bind ();
24056 rm -f conftest.$ac_objext conftest$ac_exeext
24057 if { (ac_try="$ac_link"
24058 case "(($ac_try" in
24059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24060 *) ac_try_echo=$ac_try;;
24062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24063 $as_echo "$ac_try_echo") >&5
24064 (eval "$ac_link") 2>conftest.er1
24066 grep -v '^ *+' conftest.er1 >conftest.err
24068 cat conftest.err >&5
24069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24070 (exit $ac_status); } && {
24071 test -z "$ac_c_werror_flag" ||
24072 test ! -s conftest.err
24073 } && test -s conftest$ac_exeext && {
24074 test "$cross_compiling" = yes ||
24075 $as_test_x conftest$ac_exeext
24077 ac_cv_lib_ldap_ldap_bind=yes
24079 $as_echo "$as_me: failed program was:" >&5
24080 sed 's/^/| /' conftest.$ac_ext >&5
24082 ac_cv_lib_ldap_ldap_bind=no
24085 rm -rf conftest.dSYM
24086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24087 conftest$ac_exeext conftest.$ac_ext
24088 LIBS=$ac_check_lib_save_LIBS
24090 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
24091 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
24092 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
24093 cat >>confdefs.h <<_ACEOF
24094 #define HAVE_LIBLDAP 1
24097 LIBS="-lldap $LIBS"
24100 { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
24101 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
24102 { (exit 1); exit 1; }; }
24105 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
24106 if test "$enable_thread_safety" = yes; then
24107 # on some platforms ldap_r fails to link without PTHREAD_LIBS
24109 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
24110 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
24111 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
24112 $as_echo_n "(cached) " >&6
24114 ac_check_lib_save_LIBS=$LIBS
24115 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
24116 cat >conftest.$ac_ext <<_ACEOF
24119 cat confdefs.h >>conftest.$ac_ext
24120 cat >>conftest.$ac_ext <<_ACEOF
24121 /* end confdefs.h. */
24123 /* Override any GCC internal prototype to avoid an error.
24124 Use char because int might match the return type of a GCC
24125 builtin and then its argument prototype would still apply. */
24129 char ldap_simple_bind ();
24133 return ldap_simple_bind ();
24138 rm -f conftest.$ac_objext conftest$ac_exeext
24139 if { (ac_try="$ac_link"
24140 case "(($ac_try" in
24141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24142 *) ac_try_echo=$ac_try;;
24144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24145 $as_echo "$ac_try_echo") >&5
24146 (eval "$ac_link") 2>conftest.er1
24148 grep -v '^ *+' conftest.er1 >conftest.err
24150 cat conftest.err >&5
24151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152 (exit $ac_status); } && {
24153 test -z "$ac_c_werror_flag" ||
24154 test ! -s conftest.err
24155 } && test -s conftest$ac_exeext && {
24156 test "$cross_compiling" = yes ||
24157 $as_test_x conftest$ac_exeext
24159 ac_cv_lib_ldap_r_ldap_simple_bind=yes
24161 $as_echo "$as_me: failed program was:" >&5
24162 sed 's/^/| /' conftest.$ac_ext >&5
24164 ac_cv_lib_ldap_r_ldap_simple_bind=no
24167 rm -rf conftest.dSYM
24168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24169 conftest$ac_exeext conftest.$ac_ext
24170 LIBS=$ac_check_lib_save_LIBS
24172 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
24173 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
24174 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
24175 cat >>confdefs.h <<_ACEOF
24176 #define HAVE_LIBLDAP_R 1
24179 LIBS="-lldap_r $LIBS"
24182 { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
24183 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
24184 { (exit 1); exit 1; }; }
24187 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
24189 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
24193 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
24194 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
24195 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
24196 $as_echo_n "(cached) " >&6
24198 ac_check_lib_save_LIBS=$LIBS
24199 LIBS="-lwldap32 $LIBS"
24200 cat >conftest.$ac_ext <<_ACEOF
24203 cat confdefs.h >>conftest.$ac_ext
24204 cat >>conftest.$ac_ext <<_ACEOF
24205 /* end confdefs.h. */
24207 /* Override any GCC internal prototype to avoid an error.
24208 Use char because int might match the return type of a GCC
24209 builtin and then its argument prototype would still apply. */
24217 return ldap_bind ();
24222 rm -f conftest.$ac_objext conftest$ac_exeext
24223 if { (ac_try="$ac_link"
24224 case "(($ac_try" in
24225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24226 *) ac_try_echo=$ac_try;;
24228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24229 $as_echo "$ac_try_echo") >&5
24230 (eval "$ac_link") 2>conftest.er1
24232 grep -v '^ *+' conftest.er1 >conftest.err
24234 cat conftest.err >&5
24235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24236 (exit $ac_status); } && {
24237 test -z "$ac_c_werror_flag" ||
24238 test ! -s conftest.err
24239 } && test -s conftest$ac_exeext && {
24240 test "$cross_compiling" = yes ||
24241 $as_test_x conftest$ac_exeext
24243 ac_cv_lib_wldap32_ldap_bind=yes
24245 $as_echo "$as_me: failed program was:" >&5
24246 sed 's/^/| /' conftest.$ac_ext >&5
24248 ac_cv_lib_wldap32_ldap_bind=no
24251 rm -rf conftest.dSYM
24252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24253 conftest$ac_exeext conftest.$ac_ext
24254 LIBS=$ac_check_lib_save_LIBS
24256 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
24257 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
24258 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
24259 cat >>confdefs.h <<_ACEOF
24260 #define HAVE_LIBWLDAP32 1
24263 LIBS="-lwldap32 $LIBS"
24266 { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
24267 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
24268 { (exit 1); exit 1; }; }
24271 LDAP_LIBS_FE="-lwldap32"
24272 LDAP_LIBS_BE="-lwldap32"
24280 # This test makes sure that run tests work at all. Sometimes a shared
24281 # library is found by the linker, but the runtime linker can't find it.
24282 # This check should come after all modifications of compiler or linker
24283 # variables, and before any other run tests.
24284 { $as_echo "$as_me:$LINENO: checking test program" >&5
24285 $as_echo_n "checking test program... " >&6; }
24286 if test "$cross_compiling" = yes; then
24287 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
24288 $as_echo "cross-compiling" >&6; }
24290 cat >conftest.$ac_ext <<_ACEOF
24293 cat confdefs.h >>conftest.$ac_ext
24294 cat >>conftest.$ac_ext <<_ACEOF
24295 /* end confdefs.h. */
24296 int main() { return 0; }
24298 rm -f conftest$ac_exeext
24299 if { (ac_try="$ac_link"
24300 case "(($ac_try" in
24301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24302 *) ac_try_echo=$ac_try;;
24304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24305 $as_echo "$ac_try_echo") >&5
24306 (eval "$ac_link") 2>&5
24308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24310 { (case "(($ac_try" in
24311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24312 *) ac_try_echo=$ac_try;;
24314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24315 $as_echo "$ac_try_echo") >&5
24316 (eval "$ac_try") 2>&5
24318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24319 (exit $ac_status); }; }; then
24320 { $as_echo "$as_me:$LINENO: result: ok" >&5
24321 $as_echo "ok" >&6; }
24323 $as_echo "$as_me: program exited with status $ac_status" >&5
24324 $as_echo "$as_me: failed program was:" >&5
24325 sed 's/^/| /' conftest.$ac_ext >&5
24327 ( exit $ac_status )
24328 { $as_echo "$as_me:$LINENO: result: failed" >&5
24329 $as_echo "failed" >&6; }
24330 { { $as_echo "$as_me:$LINENO: error:
24331 Could not execute a simple test program. This may be a problem
24332 related to locating shared libraries. Check the file 'config.log'
24333 for the exact reason." >&5
24334 $as_echo "$as_me: error:
24335 Could not execute a simple test program. This may be a problem
24336 related to locating shared libraries. Check the file 'config.log'
24337 for the exact reason." >&2;}
24338 { (exit 1); exit 1; }; }
24340 rm -rf conftest.dSYM
24341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24346 # --------------------
24347 # Run tests below here
24348 # --------------------
24350 # Force use of our snprintf if system's doesn't do arg control
24351 # See comment above at snprintf test for details.
24352 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
24353 { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
24354 $as_echo_n "checking whether printf supports argument control... " >&6; }
24355 if test "${pgac_cv_printf_arg_control+set}" = set; then
24356 $as_echo_n "(cached) " >&6
24358 if test "$cross_compiling" = yes; then
24359 pgac_cv_printf_arg_control=cross
24361 cat >conftest.$ac_ext <<_ACEOF
24364 cat confdefs.h >>conftest.$ac_ext
24365 cat >>conftest.$ac_ext <<_ACEOF
24366 /* end confdefs.h. */
24368 #include <string.h>
24374 /* can it swap arguments? */
24375 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
24376 if (strcmp(buf, "4 3") != 0)
24381 rm -f conftest$ac_exeext
24382 if { (ac_try="$ac_link"
24383 case "(($ac_try" in
24384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24385 *) ac_try_echo=$ac_try;;
24387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24388 $as_echo "$ac_try_echo") >&5
24389 (eval "$ac_link") 2>&5
24391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24393 { (case "(($ac_try" in
24394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24395 *) ac_try_echo=$ac_try;;
24397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24398 $as_echo "$ac_try_echo") >&5
24399 (eval "$ac_try") 2>&5
24401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24402 (exit $ac_status); }; }; then
24403 pgac_cv_printf_arg_control=yes
24405 $as_echo "$as_me: program exited with status $ac_status" >&5
24406 $as_echo "$as_me: failed program was:" >&5
24407 sed 's/^/| /' conftest.$ac_ext >&5
24409 ( exit $ac_status )
24410 pgac_cv_printf_arg_control=no
24412 rm -rf conftest.dSYM
24413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24419 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
24420 $as_echo "$pgac_cv_printf_arg_control" >&6; }
24422 if test $pgac_cv_printf_arg_control != yes ; then
24423 pgac_need_repl_snprintf=yes
24430 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
24431 $as_echo_n "checking whether long int is 64 bits... " >&6; }
24432 if test "${pgac_cv_type_long_int_64+set}" = set; then
24433 $as_echo_n "(cached) " >&6
24435 if test "$cross_compiling" = yes; then
24436 # If cross-compiling, check the size reported by the compiler and
24437 # trust that the arithmetic works.
24438 cat >conftest.$ac_ext <<_ACEOF
24441 cat confdefs.h >>conftest.$ac_ext
24442 cat >>conftest.$ac_ext <<_ACEOF
24443 /* end confdefs.h. */
24448 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
24455 rm -f conftest.$ac_objext
24456 if { (ac_try="$ac_compile"
24457 case "(($ac_try" in
24458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24459 *) ac_try_echo=$ac_try;;
24461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24462 $as_echo "$ac_try_echo") >&5
24463 (eval "$ac_compile") 2>conftest.er1
24465 grep -v '^ *+' conftest.er1 >conftest.err
24467 cat conftest.err >&5
24468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469 (exit $ac_status); } && {
24470 test -z "$ac_c_werror_flag" ||
24471 test ! -s conftest.err
24472 } && test -s conftest.$ac_objext; then
24473 pgac_cv_type_long_int_64=yes
24475 $as_echo "$as_me: failed program was:" >&5
24476 sed 's/^/| /' conftest.$ac_ext >&5
24478 pgac_cv_type_long_int_64=no
24481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24483 cat >conftest.$ac_ext <<_ACEOF
24486 cat confdefs.h >>conftest.$ac_ext
24487 cat >>conftest.$ac_ext <<_ACEOF
24488 /* end confdefs.h. */
24489 typedef long int ac_int64;
24492 * These are globals to discourage the compiler from folding all the
24493 * arithmetic tests down to compile-time constants.
24495 ac_int64 a = 20000001;
24496 ac_int64 b = 40000005;
24498 int does_int64_work()
24502 if (sizeof(ac_int64) != 8)
24503 return 0; /* definitely not the right size */
24505 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24513 exit(! does_int64_work());
24516 rm -f conftest$ac_exeext
24517 if { (ac_try="$ac_link"
24518 case "(($ac_try" in
24519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24520 *) ac_try_echo=$ac_try;;
24522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24523 $as_echo "$ac_try_echo") >&5
24524 (eval "$ac_link") 2>&5
24526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24528 { (case "(($ac_try" in
24529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24530 *) ac_try_echo=$ac_try;;
24532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24533 $as_echo "$ac_try_echo") >&5
24534 (eval "$ac_try") 2>&5
24536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537 (exit $ac_status); }; }; then
24538 pgac_cv_type_long_int_64=yes
24540 $as_echo "$as_me: program exited with status $ac_status" >&5
24541 $as_echo "$as_me: failed program was:" >&5
24542 sed 's/^/| /' conftest.$ac_ext >&5
24544 ( exit $ac_status )
24545 pgac_cv_type_long_int_64=no
24547 rm -rf conftest.dSYM
24548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24553 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
24554 $as_echo "$pgac_cv_type_long_int_64" >&6; }
24556 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
24557 if test x"$pgac_cv_type_long_int_64" = xyes ; then
24559 cat >>confdefs.h <<\_ACEOF
24560 #define HAVE_LONG_INT_64 1
24566 if test x"$HAVE_LONG_INT_64" = x"yes" ; then
24567 pg_int64_type="long int"
24569 { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24570 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24571 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24572 $as_echo_n "(cached) " >&6
24574 if test "$cross_compiling" = yes; then
24575 # If cross-compiling, check the size reported by the compiler and
24576 # trust that the arithmetic works.
24577 cat >conftest.$ac_ext <<_ACEOF
24580 cat confdefs.h >>conftest.$ac_ext
24581 cat >>conftest.$ac_ext <<_ACEOF
24582 /* end confdefs.h. */
24587 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24594 rm -f conftest.$ac_objext
24595 if { (ac_try="$ac_compile"
24596 case "(($ac_try" in
24597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24598 *) ac_try_echo=$ac_try;;
24600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24601 $as_echo "$ac_try_echo") >&5
24602 (eval "$ac_compile") 2>conftest.er1
24604 grep -v '^ *+' conftest.er1 >conftest.err
24606 cat conftest.err >&5
24607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608 (exit $ac_status); } && {
24609 test -z "$ac_c_werror_flag" ||
24610 test ! -s conftest.err
24611 } && test -s conftest.$ac_objext; then
24612 pgac_cv_type_long_long_int_64=yes
24614 $as_echo "$as_me: failed program was:" >&5
24615 sed 's/^/| /' conftest.$ac_ext >&5
24617 pgac_cv_type_long_long_int_64=no
24620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24622 cat >conftest.$ac_ext <<_ACEOF
24625 cat confdefs.h >>conftest.$ac_ext
24626 cat >>conftest.$ac_ext <<_ACEOF
24627 /* end confdefs.h. */
24628 typedef long long int ac_int64;
24631 * These are globals to discourage the compiler from folding all the
24632 * arithmetic tests down to compile-time constants.
24634 ac_int64 a = 20000001;
24635 ac_int64 b = 40000005;
24637 int does_int64_work()
24641 if (sizeof(ac_int64) != 8)
24642 return 0; /* definitely not the right size */
24644 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24652 exit(! does_int64_work());
24655 rm -f conftest$ac_exeext
24656 if { (ac_try="$ac_link"
24657 case "(($ac_try" in
24658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24659 *) ac_try_echo=$ac_try;;
24661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24662 $as_echo "$ac_try_echo") >&5
24663 (eval "$ac_link") 2>&5
24665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24667 { (case "(($ac_try" in
24668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24669 *) ac_try_echo=$ac_try;;
24671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24672 $as_echo "$ac_try_echo") >&5
24673 (eval "$ac_try") 2>&5
24675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676 (exit $ac_status); }; }; then
24677 pgac_cv_type_long_long_int_64=yes
24679 $as_echo "$as_me: program exited with status $ac_status" >&5
24680 $as_echo "$as_me: failed program was:" >&5
24681 sed 's/^/| /' conftest.$ac_ext >&5
24683 ( exit $ac_status )
24684 pgac_cv_type_long_long_int_64=no
24686 rm -rf conftest.dSYM
24687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24692 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24693 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24695 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24696 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24698 cat >>confdefs.h <<\_ACEOF
24699 #define HAVE_LONG_LONG_INT_64 1
24704 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
24705 pg_int64_type="long long int"
24707 { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24708 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24709 { (exit 1); exit 1; }; }
24714 cat >>confdefs.h <<_ACEOF
24715 #define PG_INT64_TYPE $pg_int64_type
24720 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24721 cat >conftest.$ac_ext <<_ACEOF
24724 cat confdefs.h >>conftest.$ac_ext
24725 cat >>conftest.$ac_ext <<_ACEOF
24726 /* end confdefs.h. */
24728 #define INT64CONST(x) x##LL
24729 long long int foo = INT64CONST(0x1234567890123456);
24739 rm -f conftest.$ac_objext
24740 if { (ac_try="$ac_compile"
24741 case "(($ac_try" in
24742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24743 *) ac_try_echo=$ac_try;;
24745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24746 $as_echo "$ac_try_echo") >&5
24747 (eval "$ac_compile") 2>conftest.er1
24749 grep -v '^ *+' conftest.er1 >conftest.err
24751 cat conftest.err >&5
24752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753 (exit $ac_status); } && {
24754 test -z "$ac_c_werror_flag" ||
24755 test ! -s conftest.err
24756 } && test -s conftest.$ac_objext; then
24758 cat >>confdefs.h <<\_ACEOF
24759 #define HAVE_LL_CONSTANTS 1
24763 $as_echo "$as_me: failed program was:" >&5
24764 sed 's/^/| /' conftest.$ac_ext >&5
24769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24773 # If we found "long int" is 64 bits, assume snprintf handles it. If
24774 # we found we need to use "long long int", better check. We cope with
24775 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
24776 # work, fall back to our own snprintf emulation (which we know uses %lld).
24778 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
24779 if test $pgac_need_repl_snprintf = no; then
24780 { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
24781 $as_echo_n "checking snprintf format for long long int... " >&6; }
24782 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
24783 $as_echo_n "(cached) " >&6
24785 for pgac_format in '%lld' '%qd' '%I64d'; do
24786 if test "$cross_compiling" = yes; then
24787 pgac_cv_snprintf_long_long_int_format=cross; break
24789 cat >conftest.$ac_ext <<_ACEOF
24792 cat confdefs.h >>conftest.$ac_ext
24793 cat >>conftest.$ac_ext <<_ACEOF
24794 /* end confdefs.h. */
24796 typedef long long int ac_int64;
24797 #define INT64_FORMAT "$pgac_format"
24799 ac_int64 a = 20000001;
24800 ac_int64 b = 40000005;
24802 int does_int64_snprintf_work()
24807 if (sizeof(ac_int64) != 8)
24808 return 0; /* doesn't look like the right size */
24811 snprintf(buf, 100, INT64_FORMAT, c);
24812 if (strcmp(buf, "800000140000005") != 0)
24813 return 0; /* either multiply or snprintf is busted */
24817 exit(! does_int64_snprintf_work());
24820 rm -f conftest$ac_exeext
24821 if { (ac_try="$ac_link"
24822 case "(($ac_try" in
24823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24824 *) ac_try_echo=$ac_try;;
24826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24827 $as_echo "$ac_try_echo") >&5
24828 (eval "$ac_link") 2>&5
24830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24832 { (case "(($ac_try" in
24833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24834 *) ac_try_echo=$ac_try;;
24836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24837 $as_echo "$ac_try_echo") >&5
24838 (eval "$ac_try") 2>&5
24840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841 (exit $ac_status); }; }; then
24842 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
24844 $as_echo "$as_me: program exited with status $ac_status" >&5
24845 $as_echo "$as_me: failed program was:" >&5
24846 sed 's/^/| /' conftest.$ac_ext >&5
24849 rm -rf conftest.dSYM
24850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24857 LONG_LONG_INT_FORMAT=''
24859 case $pgac_cv_snprintf_long_long_int_format in
24860 cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24861 $as_echo "cannot test (not on host machine)" >&6; };;
24862 ?*) { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24863 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24864 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24865 *) { $as_echo "$as_me:$LINENO: result: none" >&5
24866 $as_echo "none" >&6; };;
24868 if test "$LONG_LONG_INT_FORMAT" = ""; then
24869 # Force usage of our own snprintf, since system snprintf is broken
24870 pgac_need_repl_snprintf=yes
24871 LONG_LONG_INT_FORMAT='%lld'
24874 # Here if we previously decided we needed to use our own snprintf
24875 LONG_LONG_INT_FORMAT='%lld'
24877 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24878 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24879 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24881 # Here if we are not using 'long long int' at all
24882 INT64_FORMAT='"%ld"'
24883 UINT64_FORMAT='"%lu"'
24887 cat >>confdefs.h <<_ACEOF
24888 #define INT64_FORMAT $INT64_FORMAT
24893 cat >>confdefs.h <<_ACEOF
24894 #define UINT64_FORMAT $UINT64_FORMAT
24898 # Now we have checked all the reasons to replace snprintf
24899 if test $pgac_need_repl_snprintf = yes; then
24901 cat >>confdefs.h <<\_ACEOF
24902 #define USE_REPL_SNPRINTF 1
24905 case " $LIBOBJS " in
24906 *" snprintf.$ac_objext "* ) ;;
24907 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24913 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24914 # The cast to long int works around a bug in the HP C Compiler
24915 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24916 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24917 # This bug is HP SR number 8606223364.
24918 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24919 $as_echo_n "checking size of void *... " >&6; }
24920 if test "${ac_cv_sizeof_void_p+set}" = set; then
24921 $as_echo_n "(cached) " >&6
24923 if test "$cross_compiling" = yes; then
24924 # Depending upon the size, compute the lo and hi bounds.
24925 cat >conftest.$ac_ext <<_ACEOF
24928 cat confdefs.h >>conftest.$ac_ext
24929 cat >>conftest.$ac_ext <<_ACEOF
24930 /* end confdefs.h. */
24931 $ac_includes_default
24935 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
24942 rm -f conftest.$ac_objext
24943 if { (ac_try="$ac_compile"
24944 case "(($ac_try" in
24945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24946 *) ac_try_echo=$ac_try;;
24948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24949 $as_echo "$ac_try_echo") >&5
24950 (eval "$ac_compile") 2>conftest.er1
24952 grep -v '^ *+' conftest.er1 >conftest.err
24954 cat conftest.err >&5
24955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956 (exit $ac_status); } && {
24957 test -z "$ac_c_werror_flag" ||
24958 test ! -s conftest.err
24959 } && test -s conftest.$ac_objext; then
24962 cat >conftest.$ac_ext <<_ACEOF
24965 cat confdefs.h >>conftest.$ac_ext
24966 cat >>conftest.$ac_ext <<_ACEOF
24967 /* end confdefs.h. */
24968 $ac_includes_default
24972 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24979 rm -f conftest.$ac_objext
24980 if { (ac_try="$ac_compile"
24981 case "(($ac_try" in
24982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24983 *) ac_try_echo=$ac_try;;
24985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24986 $as_echo "$ac_try_echo") >&5
24987 (eval "$ac_compile") 2>conftest.er1
24989 grep -v '^ *+' conftest.er1 >conftest.err
24991 cat conftest.err >&5
24992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993 (exit $ac_status); } && {
24994 test -z "$ac_c_werror_flag" ||
24995 test ! -s conftest.err
24996 } && test -s conftest.$ac_objext; then
24997 ac_hi=$ac_mid; break
24999 $as_echo "$as_me: failed program was:" >&5
25000 sed 's/^/| /' conftest.$ac_ext >&5
25002 ac_lo=`expr $ac_mid + 1`
25003 if test $ac_lo -le $ac_mid; then
25007 ac_mid=`expr 2 '*' $ac_mid + 1`
25010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25013 $as_echo "$as_me: failed program was:" >&5
25014 sed 's/^/| /' conftest.$ac_ext >&5
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
25026 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
25033 rm -f conftest.$ac_objext
25034 if { (ac_try="$ac_compile"
25035 case "(($ac_try" in
25036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25037 *) ac_try_echo=$ac_try;;
25039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25040 $as_echo "$ac_try_echo") >&5
25041 (eval "$ac_compile") 2>conftest.er1
25043 grep -v '^ *+' conftest.er1 >conftest.err
25045 cat conftest.err >&5
25046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047 (exit $ac_status); } && {
25048 test -z "$ac_c_werror_flag" ||
25049 test ! -s conftest.err
25050 } && test -s conftest.$ac_objext; then
25053 cat >conftest.$ac_ext <<_ACEOF
25056 cat confdefs.h >>conftest.$ac_ext
25057 cat >>conftest.$ac_ext <<_ACEOF
25058 /* end confdefs.h. */
25059 $ac_includes_default
25063 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
25070 rm -f conftest.$ac_objext
25071 if { (ac_try="$ac_compile"
25072 case "(($ac_try" in
25073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25074 *) ac_try_echo=$ac_try;;
25076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25077 $as_echo "$ac_try_echo") >&5
25078 (eval "$ac_compile") 2>conftest.er1
25080 grep -v '^ *+' conftest.er1 >conftest.err
25082 cat conftest.err >&5
25083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25084 (exit $ac_status); } && {
25085 test -z "$ac_c_werror_flag" ||
25086 test ! -s conftest.err
25087 } && test -s conftest.$ac_objext; then
25088 ac_lo=$ac_mid; break
25090 $as_echo "$as_me: failed program was:" >&5
25091 sed 's/^/| /' conftest.$ac_ext >&5
25093 ac_hi=`expr '(' $ac_mid ')' - 1`
25094 if test $ac_mid -le $ac_hi; then
25098 ac_mid=`expr 2 '*' $ac_mid`
25101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25104 $as_echo "$as_me: failed program was:" >&5
25105 sed 's/^/| /' conftest.$ac_ext >&5
25110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25114 # Binary search between lo and hi bounds.
25115 while test "x$ac_lo" != "x$ac_hi"; do
25116 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25117 cat >conftest.$ac_ext <<_ACEOF
25120 cat confdefs.h >>conftest.$ac_ext
25121 cat >>conftest.$ac_ext <<_ACEOF
25122 /* end confdefs.h. */
25123 $ac_includes_default
25127 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
25134 rm -f conftest.$ac_objext
25135 if { (ac_try="$ac_compile"
25136 case "(($ac_try" in
25137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25138 *) ac_try_echo=$ac_try;;
25140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25141 $as_echo "$ac_try_echo") >&5
25142 (eval "$ac_compile") 2>conftest.er1
25144 grep -v '^ *+' conftest.er1 >conftest.err
25146 cat conftest.err >&5
25147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25148 (exit $ac_status); } && {
25149 test -z "$ac_c_werror_flag" ||
25150 test ! -s conftest.err
25151 } && test -s conftest.$ac_objext; then
25154 $as_echo "$as_me: failed program was:" >&5
25155 sed 's/^/| /' conftest.$ac_ext >&5
25157 ac_lo=`expr '(' $ac_mid ')' + 1`
25160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25163 ?*) ac_cv_sizeof_void_p=$ac_lo;;
25164 '') if test "$ac_cv_type_void_p" = yes; then
25165 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25167 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
25168 See \`config.log' for more details." >&5
25169 $as_echo "$as_me: error: cannot compute sizeof (void *)
25170 See \`config.log' for more details." >&2;}
25171 { (exit 77); exit 77; }; }; }
25173 ac_cv_sizeof_void_p=0
25177 cat >conftest.$ac_ext <<_ACEOF
25180 cat confdefs.h >>conftest.$ac_ext
25181 cat >>conftest.$ac_ext <<_ACEOF
25182 /* end confdefs.h. */
25183 $ac_includes_default
25184 static long int longval () { return (long int) (sizeof (void *)); }
25185 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
25187 #include <stdlib.h>
25192 FILE *f = fopen ("conftest.val", "w");
25195 if (((long int) (sizeof (void *))) < 0)
25197 long int i = longval ();
25198 if (i != ((long int) (sizeof (void *))))
25200 fprintf (f, "%ld", i);
25204 unsigned long int i = ulongval ();
25205 if (i != ((long int) (sizeof (void *))))
25207 fprintf (f, "%lu", i);
25209 /* Do not output a trailing newline, as this causes \r\n confusion
25210 on some platforms. */
25211 return ferror (f) || fclose (f) != 0;
25217 rm -f conftest$ac_exeext
25218 if { (ac_try="$ac_link"
25219 case "(($ac_try" in
25220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25221 *) ac_try_echo=$ac_try;;
25223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25224 $as_echo "$ac_try_echo") >&5
25225 (eval "$ac_link") 2>&5
25227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25229 { (case "(($ac_try" in
25230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25231 *) ac_try_echo=$ac_try;;
25233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25234 $as_echo "$ac_try_echo") >&5
25235 (eval "$ac_try") 2>&5
25237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238 (exit $ac_status); }; }; then
25239 ac_cv_sizeof_void_p=`cat conftest.val`
25241 $as_echo "$as_me: program exited with status $ac_status" >&5
25242 $as_echo "$as_me: failed program was:" >&5
25243 sed 's/^/| /' conftest.$ac_ext >&5
25245 ( exit $ac_status )
25246 if test "$ac_cv_type_void_p" = yes; then
25247 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25249 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
25250 See \`config.log' for more details." >&5
25251 $as_echo "$as_me: error: cannot compute sizeof (void *)
25252 See \`config.log' for more details." >&2;}
25253 { (exit 77); exit 77; }; }; }
25255 ac_cv_sizeof_void_p=0
25258 rm -rf conftest.dSYM
25259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25263 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
25264 $as_echo "$ac_cv_sizeof_void_p" >&6; }
25268 cat >>confdefs.h <<_ACEOF
25269 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
25273 # The cast to long int works around a bug in the HP C Compiler
25274 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25275 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25276 # This bug is HP SR number 8606223364.
25277 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
25278 $as_echo_n "checking size of size_t... " >&6; }
25279 if test "${ac_cv_sizeof_size_t+set}" = set; then
25280 $as_echo_n "(cached) " >&6
25282 if test "$cross_compiling" = yes; then
25283 # Depending upon the size, compute the lo and hi bounds.
25284 cat >conftest.$ac_ext <<_ACEOF
25287 cat confdefs.h >>conftest.$ac_ext
25288 cat >>conftest.$ac_ext <<_ACEOF
25289 /* end confdefs.h. */
25290 $ac_includes_default
25294 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
25301 rm -f conftest.$ac_objext
25302 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
25311 grep -v '^ *+' conftest.er1 >conftest.err
25313 cat conftest.err >&5
25314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25315 (exit $ac_status); } && {
25316 test -z "$ac_c_werror_flag" ||
25317 test ! -s conftest.err
25318 } && test -s conftest.$ac_objext; then
25321 cat >conftest.$ac_ext <<_ACEOF
25324 cat confdefs.h >>conftest.$ac_ext
25325 cat >>conftest.$ac_ext <<_ACEOF
25326 /* end confdefs.h. */
25327 $ac_includes_default
25331 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25338 rm -f conftest.$ac_objext
25339 if { (ac_try="$ac_compile"
25340 case "(($ac_try" in
25341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25342 *) ac_try_echo=$ac_try;;
25344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25345 $as_echo "$ac_try_echo") >&5
25346 (eval "$ac_compile") 2>conftest.er1
25348 grep -v '^ *+' conftest.er1 >conftest.err
25350 cat conftest.err >&5
25351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352 (exit $ac_status); } && {
25353 test -z "$ac_c_werror_flag" ||
25354 test ! -s conftest.err
25355 } && test -s conftest.$ac_objext; then
25356 ac_hi=$ac_mid; break
25358 $as_echo "$as_me: failed program was:" >&5
25359 sed 's/^/| /' conftest.$ac_ext >&5
25361 ac_lo=`expr $ac_mid + 1`
25362 if test $ac_lo -le $ac_mid; then
25366 ac_mid=`expr 2 '*' $ac_mid + 1`
25369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25372 $as_echo "$as_me: failed program was:" >&5
25373 sed 's/^/| /' conftest.$ac_ext >&5
25375 cat >conftest.$ac_ext <<_ACEOF
25378 cat confdefs.h >>conftest.$ac_ext
25379 cat >>conftest.$ac_ext <<_ACEOF
25380 /* end confdefs.h. */
25381 $ac_includes_default
25385 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
25392 rm -f conftest.$ac_objext
25393 if { (ac_try="$ac_compile"
25394 case "(($ac_try" in
25395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25396 *) ac_try_echo=$ac_try;;
25398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25399 $as_echo "$ac_try_echo") >&5
25400 (eval "$ac_compile") 2>conftest.er1
25402 grep -v '^ *+' conftest.er1 >conftest.err
25404 cat conftest.err >&5
25405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406 (exit $ac_status); } && {
25407 test -z "$ac_c_werror_flag" ||
25408 test ! -s conftest.err
25409 } && test -s conftest.$ac_objext; then
25412 cat >conftest.$ac_ext <<_ACEOF
25415 cat confdefs.h >>conftest.$ac_ext
25416 cat >>conftest.$ac_ext <<_ACEOF
25417 /* end confdefs.h. */
25418 $ac_includes_default
25422 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
25429 rm -f conftest.$ac_objext
25430 if { (ac_try="$ac_compile"
25431 case "(($ac_try" in
25432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25433 *) ac_try_echo=$ac_try;;
25435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25436 $as_echo "$ac_try_echo") >&5
25437 (eval "$ac_compile") 2>conftest.er1
25439 grep -v '^ *+' conftest.er1 >conftest.err
25441 cat conftest.err >&5
25442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25443 (exit $ac_status); } && {
25444 test -z "$ac_c_werror_flag" ||
25445 test ! -s conftest.err
25446 } && test -s conftest.$ac_objext; then
25447 ac_lo=$ac_mid; break
25449 $as_echo "$as_me: failed program was:" >&5
25450 sed 's/^/| /' conftest.$ac_ext >&5
25452 ac_hi=`expr '(' $ac_mid ')' - 1`
25453 if test $ac_mid -le $ac_hi; then
25457 ac_mid=`expr 2 '*' $ac_mid`
25460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25463 $as_echo "$as_me: failed program was:" >&5
25464 sed 's/^/| /' conftest.$ac_ext >&5
25469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25473 # Binary search between lo and hi bounds.
25474 while test "x$ac_lo" != "x$ac_hi"; do
25475 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25476 cat >conftest.$ac_ext <<_ACEOF
25479 cat confdefs.h >>conftest.$ac_ext
25480 cat >>conftest.$ac_ext <<_ACEOF
25481 /* end confdefs.h. */
25482 $ac_includes_default
25486 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25493 rm -f conftest.$ac_objext
25494 if { (ac_try="$ac_compile"
25495 case "(($ac_try" in
25496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25497 *) ac_try_echo=$ac_try;;
25499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25500 $as_echo "$ac_try_echo") >&5
25501 (eval "$ac_compile") 2>conftest.er1
25503 grep -v '^ *+' conftest.er1 >conftest.err
25505 cat conftest.err >&5
25506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507 (exit $ac_status); } && {
25508 test -z "$ac_c_werror_flag" ||
25509 test ! -s conftest.err
25510 } && test -s conftest.$ac_objext; then
25513 $as_echo "$as_me: failed program was:" >&5
25514 sed 's/^/| /' conftest.$ac_ext >&5
25516 ac_lo=`expr '(' $ac_mid ')' + 1`
25519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25522 ?*) ac_cv_sizeof_size_t=$ac_lo;;
25523 '') if test "$ac_cv_type_size_t" = yes; then
25524 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25526 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25527 See \`config.log' for more details." >&5
25528 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25529 See \`config.log' for more details." >&2;}
25530 { (exit 77); exit 77; }; }; }
25532 ac_cv_sizeof_size_t=0
25536 cat >conftest.$ac_ext <<_ACEOF
25539 cat confdefs.h >>conftest.$ac_ext
25540 cat >>conftest.$ac_ext <<_ACEOF
25541 /* end confdefs.h. */
25542 $ac_includes_default
25543 static long int longval () { return (long int) (sizeof (size_t)); }
25544 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
25546 #include <stdlib.h>
25551 FILE *f = fopen ("conftest.val", "w");
25554 if (((long int) (sizeof (size_t))) < 0)
25556 long int i = longval ();
25557 if (i != ((long int) (sizeof (size_t))))
25559 fprintf (f, "%ld", i);
25563 unsigned long int i = ulongval ();
25564 if (i != ((long int) (sizeof (size_t))))
25566 fprintf (f, "%lu", i);
25568 /* Do not output a trailing newline, as this causes \r\n confusion
25569 on some platforms. */
25570 return ferror (f) || fclose (f) != 0;
25576 rm -f conftest$ac_exeext
25577 if { (ac_try="$ac_link"
25578 case "(($ac_try" in
25579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25580 *) ac_try_echo=$ac_try;;
25582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25583 $as_echo "$ac_try_echo") >&5
25584 (eval "$ac_link") 2>&5
25586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25588 { (case "(($ac_try" in
25589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25590 *) ac_try_echo=$ac_try;;
25592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25593 $as_echo "$ac_try_echo") >&5
25594 (eval "$ac_try") 2>&5
25596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597 (exit $ac_status); }; }; then
25598 ac_cv_sizeof_size_t=`cat conftest.val`
25600 $as_echo "$as_me: program exited with status $ac_status" >&5
25601 $as_echo "$as_me: failed program was:" >&5
25602 sed 's/^/| /' conftest.$ac_ext >&5
25604 ( exit $ac_status )
25605 if test "$ac_cv_type_size_t" = yes; then
25606 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25608 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25609 See \`config.log' for more details." >&5
25610 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25611 See \`config.log' for more details." >&2;}
25612 { (exit 77); exit 77; }; }; }
25614 ac_cv_sizeof_size_t=0
25617 rm -rf conftest.dSYM
25618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25622 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25623 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25627 cat >>confdefs.h <<_ACEOF
25628 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25632 # The cast to long int works around a bug in the HP C Compiler
25633 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25634 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25635 # This bug is HP SR number 8606223364.
25636 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25637 $as_echo_n "checking size of long... " >&6; }
25638 if test "${ac_cv_sizeof_long+set}" = set; then
25639 $as_echo_n "(cached) " >&6
25641 if test "$cross_compiling" = yes; then
25642 # Depending upon the size, compute the lo and hi bounds.
25643 cat >conftest.$ac_ext <<_ACEOF
25646 cat confdefs.h >>conftest.$ac_ext
25647 cat >>conftest.$ac_ext <<_ACEOF
25648 /* end confdefs.h. */
25649 $ac_includes_default
25653 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25660 rm -f conftest.$ac_objext
25661 if { (ac_try="$ac_compile"
25662 case "(($ac_try" in
25663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25664 *) ac_try_echo=$ac_try;;
25666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25667 $as_echo "$ac_try_echo") >&5
25668 (eval "$ac_compile") 2>conftest.er1
25670 grep -v '^ *+' conftest.er1 >conftest.err
25672 cat conftest.err >&5
25673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674 (exit $ac_status); } && {
25675 test -z "$ac_c_werror_flag" ||
25676 test ! -s conftest.err
25677 } && test -s conftest.$ac_objext; then
25680 cat >conftest.$ac_ext <<_ACEOF
25683 cat confdefs.h >>conftest.$ac_ext
25684 cat >>conftest.$ac_ext <<_ACEOF
25685 /* end confdefs.h. */
25686 $ac_includes_default
25690 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25697 rm -f conftest.$ac_objext
25698 if { (ac_try="$ac_compile"
25699 case "(($ac_try" in
25700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25701 *) ac_try_echo=$ac_try;;
25703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25704 $as_echo "$ac_try_echo") >&5
25705 (eval "$ac_compile") 2>conftest.er1
25707 grep -v '^ *+' conftest.er1 >conftest.err
25709 cat conftest.err >&5
25710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711 (exit $ac_status); } && {
25712 test -z "$ac_c_werror_flag" ||
25713 test ! -s conftest.err
25714 } && test -s conftest.$ac_objext; then
25715 ac_hi=$ac_mid; break
25717 $as_echo "$as_me: failed program was:" >&5
25718 sed 's/^/| /' conftest.$ac_ext >&5
25720 ac_lo=`expr $ac_mid + 1`
25721 if test $ac_lo -le $ac_mid; then
25725 ac_mid=`expr 2 '*' $ac_mid + 1`
25728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25731 $as_echo "$as_me: failed program was:" >&5
25732 sed 's/^/| /' conftest.$ac_ext >&5
25734 cat >conftest.$ac_ext <<_ACEOF
25737 cat confdefs.h >>conftest.$ac_ext
25738 cat >>conftest.$ac_ext <<_ACEOF
25739 /* end confdefs.h. */
25740 $ac_includes_default
25744 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25751 rm -f conftest.$ac_objext
25752 if { (ac_try="$ac_compile"
25753 case "(($ac_try" in
25754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25755 *) ac_try_echo=$ac_try;;
25757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25758 $as_echo "$ac_try_echo") >&5
25759 (eval "$ac_compile") 2>conftest.er1
25761 grep -v '^ *+' conftest.er1 >conftest.err
25763 cat conftest.err >&5
25764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25765 (exit $ac_status); } && {
25766 test -z "$ac_c_werror_flag" ||
25767 test ! -s conftest.err
25768 } && test -s conftest.$ac_objext; then
25771 cat >conftest.$ac_ext <<_ACEOF
25774 cat confdefs.h >>conftest.$ac_ext
25775 cat >>conftest.$ac_ext <<_ACEOF
25776 /* end confdefs.h. */
25777 $ac_includes_default
25781 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
25788 rm -f conftest.$ac_objext
25789 if { (ac_try="$ac_compile"
25790 case "(($ac_try" in
25791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25792 *) ac_try_echo=$ac_try;;
25794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25795 $as_echo "$ac_try_echo") >&5
25796 (eval "$ac_compile") 2>conftest.er1
25798 grep -v '^ *+' conftest.er1 >conftest.err
25800 cat conftest.err >&5
25801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25802 (exit $ac_status); } && {
25803 test -z "$ac_c_werror_flag" ||
25804 test ! -s conftest.err
25805 } && test -s conftest.$ac_objext; then
25806 ac_lo=$ac_mid; break
25808 $as_echo "$as_me: failed program was:" >&5
25809 sed 's/^/| /' conftest.$ac_ext >&5
25811 ac_hi=`expr '(' $ac_mid ')' - 1`
25812 if test $ac_mid -le $ac_hi; then
25816 ac_mid=`expr 2 '*' $ac_mid`
25819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25822 $as_echo "$as_me: failed program was:" >&5
25823 sed 's/^/| /' conftest.$ac_ext >&5
25828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25832 # Binary search between lo and hi bounds.
25833 while test "x$ac_lo" != "x$ac_hi"; do
25834 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25835 cat >conftest.$ac_ext <<_ACEOF
25838 cat confdefs.h >>conftest.$ac_ext
25839 cat >>conftest.$ac_ext <<_ACEOF
25840 /* end confdefs.h. */
25841 $ac_includes_default
25845 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25852 rm -f conftest.$ac_objext
25853 if { (ac_try="$ac_compile"
25854 case "(($ac_try" in
25855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25856 *) ac_try_echo=$ac_try;;
25858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25859 $as_echo "$ac_try_echo") >&5
25860 (eval "$ac_compile") 2>conftest.er1
25862 grep -v '^ *+' conftest.er1 >conftest.err
25864 cat conftest.err >&5
25865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866 (exit $ac_status); } && {
25867 test -z "$ac_c_werror_flag" ||
25868 test ! -s conftest.err
25869 } && test -s conftest.$ac_objext; then
25872 $as_echo "$as_me: failed program was:" >&5
25873 sed 's/^/| /' conftest.$ac_ext >&5
25875 ac_lo=`expr '(' $ac_mid ')' + 1`
25878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25881 ?*) ac_cv_sizeof_long=$ac_lo;;
25882 '') if test "$ac_cv_type_long" = yes; then
25883 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25885 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25886 See \`config.log' for more details." >&5
25887 $as_echo "$as_me: error: cannot compute sizeof (long)
25888 See \`config.log' for more details." >&2;}
25889 { (exit 77); exit 77; }; }; }
25891 ac_cv_sizeof_long=0
25895 cat >conftest.$ac_ext <<_ACEOF
25898 cat confdefs.h >>conftest.$ac_ext
25899 cat >>conftest.$ac_ext <<_ACEOF
25900 /* end confdefs.h. */
25901 $ac_includes_default
25902 static long int longval () { return (long int) (sizeof (long)); }
25903 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25905 #include <stdlib.h>
25910 FILE *f = fopen ("conftest.val", "w");
25913 if (((long int) (sizeof (long))) < 0)
25915 long int i = longval ();
25916 if (i != ((long int) (sizeof (long))))
25918 fprintf (f, "%ld", i);
25922 unsigned long int i = ulongval ();
25923 if (i != ((long int) (sizeof (long))))
25925 fprintf (f, "%lu", i);
25927 /* Do not output a trailing newline, as this causes \r\n confusion
25928 on some platforms. */
25929 return ferror (f) || fclose (f) != 0;
25935 rm -f conftest$ac_exeext
25936 if { (ac_try="$ac_link"
25937 case "(($ac_try" in
25938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25939 *) ac_try_echo=$ac_try;;
25941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25942 $as_echo "$ac_try_echo") >&5
25943 (eval "$ac_link") 2>&5
25945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25947 { (case "(($ac_try" in
25948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25949 *) ac_try_echo=$ac_try;;
25951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25952 $as_echo "$ac_try_echo") >&5
25953 (eval "$ac_try") 2>&5
25955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956 (exit $ac_status); }; }; then
25957 ac_cv_sizeof_long=`cat conftest.val`
25959 $as_echo "$as_me: program exited with status $ac_status" >&5
25960 $as_echo "$as_me: failed program was:" >&5
25961 sed 's/^/| /' conftest.$ac_ext >&5
25963 ( exit $ac_status )
25964 if test "$ac_cv_type_long" = yes; then
25965 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25967 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25968 See \`config.log' for more details." >&5
25969 $as_echo "$as_me: error: cannot compute sizeof (long)
25970 See \`config.log' for more details." >&2;}
25971 { (exit 77); exit 77; }; }; }
25973 ac_cv_sizeof_long=0
25976 rm -rf conftest.dSYM
25977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25981 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25982 $as_echo "$ac_cv_sizeof_long" >&6; }
25986 cat >>confdefs.h <<_ACEOF
25987 #define SIZEOF_LONG $ac_cv_sizeof_long
25992 # Decide whether float4 is passed by value: user-selectable, enabled by default
25993 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25994 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25997 # Check whether --enable-float4-byval was given.
25998 if test "${enable_float4_byval+set}" = set; then
25999 enableval=$enable_float4_byval;
26003 cat >>confdefs.h <<\_ACEOF
26004 #define USE_FLOAT4_BYVAL 1
26007 float4passbyval=true
26010 float4passbyval=false
26013 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
26014 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
26015 { (exit 1); exit 1; }; }
26020 enable_float4_byval=yes
26022 cat >>confdefs.h <<\_ACEOF
26023 #define USE_FLOAT4_BYVAL 1
26026 float4passbyval=true
26030 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
26031 $as_echo "$enable_float4_byval" >&6; }
26033 cat >>confdefs.h <<_ACEOF
26034 #define FLOAT4PASSBYVAL $float4passbyval
26038 # Decide whether float8 is passed by value.
26039 # Note: this setting also controls int8 and related types such as timestamp.
26040 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
26041 # If not, trying to select it is an error.
26042 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
26043 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
26044 if test $ac_cv_sizeof_void_p -ge 8 ; then
26047 # Check whether --enable-float8-byval was given.
26048 if test "${enable_float8_byval+set}" = set; then
26049 enableval=$enable_float8_byval;
26058 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
26059 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
26060 { (exit 1); exit 1; }; }
26065 enable_float8_byval=yes
26073 # Check whether --enable-float8-byval was given.
26074 if test "${enable_float8_byval+set}" = set; then
26075 enableval=$enable_float8_byval;
26084 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
26085 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
26086 { (exit 1); exit 1; }; }
26091 enable_float8_byval=no
26096 if test "$enable_float8_byval" = yes ; then
26097 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
26098 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
26099 { (exit 1); exit 1; }; }
26102 if test "$enable_float8_byval" = yes ; then
26104 cat >>confdefs.h <<\_ACEOF
26105 #define USE_FLOAT8_BYVAL 1
26108 float8passbyval=true
26110 float8passbyval=false
26112 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
26113 $as_echo "$enable_float8_byval" >&6; }
26115 cat >>confdefs.h <<_ACEOF
26116 #define FLOAT8PASSBYVAL $float8passbyval
26120 # Determine memory alignment requirements for the basic C data types.
26122 # The cast to long int works around a bug in the HP C Compiler,
26123 # see AC_CHECK_SIZEOF for more information.
26124 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
26125 $as_echo_n "checking alignment of short... " >&6; }
26126 if test "${ac_cv_alignof_short+set}" = set; then
26127 $as_echo_n "(cached) " >&6
26129 if test "$cross_compiling" = yes; then
26130 # Depending upon the size, compute the lo and hi bounds.
26131 cat >conftest.$ac_ext <<_ACEOF
26134 cat confdefs.h >>conftest.$ac_ext
26135 cat >>conftest.$ac_ext <<_ACEOF
26136 /* end confdefs.h. */
26137 $ac_includes_default
26139 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26141 typedef struct { char x; short y; } ac__type_alignof_;
26145 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26152 rm -f conftest.$ac_objext
26153 if { (ac_try="$ac_compile"
26154 case "(($ac_try" in
26155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26156 *) ac_try_echo=$ac_try;;
26158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26159 $as_echo "$ac_try_echo") >&5
26160 (eval "$ac_compile") 2>conftest.er1
26162 grep -v '^ *+' conftest.er1 >conftest.err
26164 cat conftest.err >&5
26165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166 (exit $ac_status); } && {
26167 test -z "$ac_c_werror_flag" ||
26168 test ! -s conftest.err
26169 } && test -s conftest.$ac_objext; then
26172 cat >conftest.$ac_ext <<_ACEOF
26175 cat confdefs.h >>conftest.$ac_ext
26176 cat >>conftest.$ac_ext <<_ACEOF
26177 /* end confdefs.h. */
26178 $ac_includes_default
26180 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26182 typedef struct { char x; short y; } ac__type_alignof_;
26186 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26193 rm -f conftest.$ac_objext
26194 if { (ac_try="$ac_compile"
26195 case "(($ac_try" in
26196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26197 *) ac_try_echo=$ac_try;;
26199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26200 $as_echo "$ac_try_echo") >&5
26201 (eval "$ac_compile") 2>conftest.er1
26203 grep -v '^ *+' conftest.er1 >conftest.err
26205 cat conftest.err >&5
26206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26207 (exit $ac_status); } && {
26208 test -z "$ac_c_werror_flag" ||
26209 test ! -s conftest.err
26210 } && test -s conftest.$ac_objext; then
26211 ac_hi=$ac_mid; break
26213 $as_echo "$as_me: failed program was:" >&5
26214 sed 's/^/| /' conftest.$ac_ext >&5
26216 ac_lo=`expr $ac_mid + 1`
26217 if test $ac_lo -le $ac_mid; then
26221 ac_mid=`expr 2 '*' $ac_mid + 1`
26224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26227 $as_echo "$as_me: failed program was:" >&5
26228 sed 's/^/| /' conftest.$ac_ext >&5
26230 cat >conftest.$ac_ext <<_ACEOF
26233 cat confdefs.h >>conftest.$ac_ext
26234 cat >>conftest.$ac_ext <<_ACEOF
26235 /* end confdefs.h. */
26236 $ac_includes_default
26238 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26240 typedef struct { char x; short y; } ac__type_alignof_;
26244 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26251 rm -f conftest.$ac_objext
26252 if { (ac_try="$ac_compile"
26253 case "(($ac_try" in
26254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26255 *) ac_try_echo=$ac_try;;
26257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26258 $as_echo "$ac_try_echo") >&5
26259 (eval "$ac_compile") 2>conftest.er1
26261 grep -v '^ *+' conftest.er1 >conftest.err
26263 cat conftest.err >&5
26264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265 (exit $ac_status); } && {
26266 test -z "$ac_c_werror_flag" ||
26267 test ! -s conftest.err
26268 } && test -s conftest.$ac_objext; then
26271 cat >conftest.$ac_ext <<_ACEOF
26274 cat confdefs.h >>conftest.$ac_ext
26275 cat >>conftest.$ac_ext <<_ACEOF
26276 /* end confdefs.h. */
26277 $ac_includes_default
26279 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26281 typedef struct { char x; short y; } ac__type_alignof_;
26285 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26292 rm -f conftest.$ac_objext
26293 if { (ac_try="$ac_compile"
26294 case "(($ac_try" in
26295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26296 *) ac_try_echo=$ac_try;;
26298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26299 $as_echo "$ac_try_echo") >&5
26300 (eval "$ac_compile") 2>conftest.er1
26302 grep -v '^ *+' conftest.er1 >conftest.err
26304 cat conftest.err >&5
26305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306 (exit $ac_status); } && {
26307 test -z "$ac_c_werror_flag" ||
26308 test ! -s conftest.err
26309 } && test -s conftest.$ac_objext; then
26310 ac_lo=$ac_mid; break
26312 $as_echo "$as_me: failed program was:" >&5
26313 sed 's/^/| /' conftest.$ac_ext >&5
26315 ac_hi=`expr '(' $ac_mid ')' - 1`
26316 if test $ac_mid -le $ac_hi; then
26320 ac_mid=`expr 2 '*' $ac_mid`
26323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26326 $as_echo "$as_me: failed program was:" >&5
26327 sed 's/^/| /' conftest.$ac_ext >&5
26332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26336 # Binary search between lo and hi bounds.
26337 while test "x$ac_lo" != "x$ac_hi"; do
26338 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26339 cat >conftest.$ac_ext <<_ACEOF
26342 cat confdefs.h >>conftest.$ac_ext
26343 cat >>conftest.$ac_ext <<_ACEOF
26344 /* end confdefs.h. */
26345 $ac_includes_default
26347 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26349 typedef struct { char x; short y; } ac__type_alignof_;
26353 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26360 rm -f conftest.$ac_objext
26361 if { (ac_try="$ac_compile"
26362 case "(($ac_try" in
26363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26364 *) ac_try_echo=$ac_try;;
26366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26367 $as_echo "$ac_try_echo") >&5
26368 (eval "$ac_compile") 2>conftest.er1
26370 grep -v '^ *+' conftest.er1 >conftest.err
26372 cat conftest.err >&5
26373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26374 (exit $ac_status); } && {
26375 test -z "$ac_c_werror_flag" ||
26376 test ! -s conftest.err
26377 } && test -s conftest.$ac_objext; then
26380 $as_echo "$as_me: failed program was:" >&5
26381 sed 's/^/| /' conftest.$ac_ext >&5
26383 ac_lo=`expr '(' $ac_mid ')' + 1`
26386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26389 ?*) ac_cv_alignof_short=$ac_lo;;
26390 '') if test "$ac_cv_type_short" = yes; then
26391 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26393 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26394 See \`config.log' for more details." >&5
26395 $as_echo "$as_me: error: cannot compute alignment of short
26396 See \`config.log' for more details." >&2;}
26397 { (exit 77); exit 77; }; }; }
26399 ac_cv_alignof_short=0
26403 cat >conftest.$ac_ext <<_ACEOF
26406 cat confdefs.h >>conftest.$ac_ext
26407 cat >>conftest.$ac_ext <<_ACEOF
26408 /* end confdefs.h. */
26409 $ac_includes_default
26411 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26413 typedef struct { char x; short y; } ac__type_alignof_;
26414 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26415 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26417 #include <stdlib.h>
26422 FILE *f = fopen ("conftest.val", "w");
26425 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26427 long int i = longval ();
26428 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26430 fprintf (f, "%ld", i);
26434 unsigned long int i = ulongval ();
26435 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26437 fprintf (f, "%lu", i);
26439 /* Do not output a trailing newline, as this causes \r\n confusion
26440 on some platforms. */
26441 return ferror (f) || fclose (f) != 0;
26447 rm -f conftest$ac_exeext
26448 if { (ac_try="$ac_link"
26449 case "(($ac_try" in
26450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26451 *) ac_try_echo=$ac_try;;
26453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26454 $as_echo "$ac_try_echo") >&5
26455 (eval "$ac_link") 2>&5
26457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26459 { (case "(($ac_try" in
26460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26461 *) ac_try_echo=$ac_try;;
26463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26464 $as_echo "$ac_try_echo") >&5
26465 (eval "$ac_try") 2>&5
26467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26468 (exit $ac_status); }; }; then
26469 ac_cv_alignof_short=`cat conftest.val`
26471 $as_echo "$as_me: program exited with status $ac_status" >&5
26472 $as_echo "$as_me: failed program was:" >&5
26473 sed 's/^/| /' conftest.$ac_ext >&5
26475 ( exit $ac_status )
26476 if test "$ac_cv_type_short" = yes; then
26477 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26479 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26480 See \`config.log' for more details." >&5
26481 $as_echo "$as_me: error: cannot compute alignment of short
26482 See \`config.log' for more details." >&2;}
26483 { (exit 77); exit 77; }; }; }
26485 ac_cv_alignof_short=0
26488 rm -rf conftest.dSYM
26489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26493 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
26494 $as_echo "$ac_cv_alignof_short" >&6; }
26498 cat >>confdefs.h <<_ACEOF
26499 #define ALIGNOF_SHORT $ac_cv_alignof_short
26503 # The cast to long int works around a bug in the HP C Compiler,
26504 # see AC_CHECK_SIZEOF for more information.
26505 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
26506 $as_echo_n "checking alignment of int... " >&6; }
26507 if test "${ac_cv_alignof_int+set}" = set; then
26508 $as_echo_n "(cached) " >&6
26510 if test "$cross_compiling" = yes; then
26511 # Depending upon the size, compute the lo and hi bounds.
26512 cat >conftest.$ac_ext <<_ACEOF
26515 cat confdefs.h >>conftest.$ac_ext
26516 cat >>conftest.$ac_ext <<_ACEOF
26517 /* end confdefs.h. */
26518 $ac_includes_default
26520 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26522 typedef struct { char x; int y; } ac__type_alignof_;
26526 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26533 rm -f conftest.$ac_objext
26534 if { (ac_try="$ac_compile"
26535 case "(($ac_try" in
26536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26537 *) ac_try_echo=$ac_try;;
26539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26540 $as_echo "$ac_try_echo") >&5
26541 (eval "$ac_compile") 2>conftest.er1
26543 grep -v '^ *+' conftest.er1 >conftest.err
26545 cat conftest.err >&5
26546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26547 (exit $ac_status); } && {
26548 test -z "$ac_c_werror_flag" ||
26549 test ! -s conftest.err
26550 } && test -s conftest.$ac_objext; then
26553 cat >conftest.$ac_ext <<_ACEOF
26556 cat confdefs.h >>conftest.$ac_ext
26557 cat >>conftest.$ac_ext <<_ACEOF
26558 /* end confdefs.h. */
26559 $ac_includes_default
26561 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26563 typedef struct { char x; int y; } ac__type_alignof_;
26567 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26574 rm -f conftest.$ac_objext
26575 if { (ac_try="$ac_compile"
26576 case "(($ac_try" in
26577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26578 *) ac_try_echo=$ac_try;;
26580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26581 $as_echo "$ac_try_echo") >&5
26582 (eval "$ac_compile") 2>conftest.er1
26584 grep -v '^ *+' conftest.er1 >conftest.err
26586 cat conftest.err >&5
26587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26588 (exit $ac_status); } && {
26589 test -z "$ac_c_werror_flag" ||
26590 test ! -s conftest.err
26591 } && test -s conftest.$ac_objext; then
26592 ac_hi=$ac_mid; break
26594 $as_echo "$as_me: failed program was:" >&5
26595 sed 's/^/| /' conftest.$ac_ext >&5
26597 ac_lo=`expr $ac_mid + 1`
26598 if test $ac_lo -le $ac_mid; then
26602 ac_mid=`expr 2 '*' $ac_mid + 1`
26605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26608 $as_echo "$as_me: failed program was:" >&5
26609 sed 's/^/| /' conftest.$ac_ext >&5
26611 cat >conftest.$ac_ext <<_ACEOF
26614 cat confdefs.h >>conftest.$ac_ext
26615 cat >>conftest.$ac_ext <<_ACEOF
26616 /* end confdefs.h. */
26617 $ac_includes_default
26619 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26621 typedef struct { char x; int y; } ac__type_alignof_;
26625 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26632 rm -f conftest.$ac_objext
26633 if { (ac_try="$ac_compile"
26634 case "(($ac_try" in
26635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26636 *) ac_try_echo=$ac_try;;
26638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26639 $as_echo "$ac_try_echo") >&5
26640 (eval "$ac_compile") 2>conftest.er1
26642 grep -v '^ *+' conftest.er1 >conftest.err
26644 cat conftest.err >&5
26645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646 (exit $ac_status); } && {
26647 test -z "$ac_c_werror_flag" ||
26648 test ! -s conftest.err
26649 } && test -s conftest.$ac_objext; then
26652 cat >conftest.$ac_ext <<_ACEOF
26655 cat confdefs.h >>conftest.$ac_ext
26656 cat >>conftest.$ac_ext <<_ACEOF
26657 /* end confdefs.h. */
26658 $ac_includes_default
26660 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26662 typedef struct { char x; int y; } ac__type_alignof_;
26666 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26673 rm -f conftest.$ac_objext
26674 if { (ac_try="$ac_compile"
26675 case "(($ac_try" in
26676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26677 *) ac_try_echo=$ac_try;;
26679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26680 $as_echo "$ac_try_echo") >&5
26681 (eval "$ac_compile") 2>conftest.er1
26683 grep -v '^ *+' conftest.er1 >conftest.err
26685 cat conftest.err >&5
26686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26687 (exit $ac_status); } && {
26688 test -z "$ac_c_werror_flag" ||
26689 test ! -s conftest.err
26690 } && test -s conftest.$ac_objext; then
26691 ac_lo=$ac_mid; break
26693 $as_echo "$as_me: failed program was:" >&5
26694 sed 's/^/| /' conftest.$ac_ext >&5
26696 ac_hi=`expr '(' $ac_mid ')' - 1`
26697 if test $ac_mid -le $ac_hi; then
26701 ac_mid=`expr 2 '*' $ac_mid`
26704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26707 $as_echo "$as_me: failed program was:" >&5
26708 sed 's/^/| /' conftest.$ac_ext >&5
26713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26717 # Binary search between lo and hi bounds.
26718 while test "x$ac_lo" != "x$ac_hi"; do
26719 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26720 cat >conftest.$ac_ext <<_ACEOF
26723 cat confdefs.h >>conftest.$ac_ext
26724 cat >>conftest.$ac_ext <<_ACEOF
26725 /* end confdefs.h. */
26726 $ac_includes_default
26728 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26730 typedef struct { char x; int y; } ac__type_alignof_;
26734 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26741 rm -f conftest.$ac_objext
26742 if { (ac_try="$ac_compile"
26743 case "(($ac_try" in
26744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26745 *) ac_try_echo=$ac_try;;
26747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26748 $as_echo "$ac_try_echo") >&5
26749 (eval "$ac_compile") 2>conftest.er1
26751 grep -v '^ *+' conftest.er1 >conftest.err
26753 cat conftest.err >&5
26754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755 (exit $ac_status); } && {
26756 test -z "$ac_c_werror_flag" ||
26757 test ! -s conftest.err
26758 } && test -s conftest.$ac_objext; then
26761 $as_echo "$as_me: failed program was:" >&5
26762 sed 's/^/| /' conftest.$ac_ext >&5
26764 ac_lo=`expr '(' $ac_mid ')' + 1`
26767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26770 ?*) ac_cv_alignof_int=$ac_lo;;
26771 '') if test "$ac_cv_type_int" = yes; then
26772 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26774 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26775 See \`config.log' for more details." >&5
26776 $as_echo "$as_me: error: cannot compute alignment of int
26777 See \`config.log' for more details." >&2;}
26778 { (exit 77); exit 77; }; }; }
26780 ac_cv_alignof_int=0
26784 cat >conftest.$ac_ext <<_ACEOF
26787 cat confdefs.h >>conftest.$ac_ext
26788 cat >>conftest.$ac_ext <<_ACEOF
26789 /* end confdefs.h. */
26790 $ac_includes_default
26792 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26794 typedef struct { char x; int y; } ac__type_alignof_;
26795 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26796 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26798 #include <stdlib.h>
26803 FILE *f = fopen ("conftest.val", "w");
26806 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26808 long int i = longval ();
26809 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26811 fprintf (f, "%ld", i);
26815 unsigned long int i = ulongval ();
26816 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26818 fprintf (f, "%lu", i);
26820 /* Do not output a trailing newline, as this causes \r\n confusion
26821 on some platforms. */
26822 return ferror (f) || fclose (f) != 0;
26828 rm -f conftest$ac_exeext
26829 if { (ac_try="$ac_link"
26830 case "(($ac_try" in
26831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26832 *) ac_try_echo=$ac_try;;
26834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26835 $as_echo "$ac_try_echo") >&5
26836 (eval "$ac_link") 2>&5
26838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26840 { (case "(($ac_try" in
26841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26842 *) ac_try_echo=$ac_try;;
26844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26845 $as_echo "$ac_try_echo") >&5
26846 (eval "$ac_try") 2>&5
26848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849 (exit $ac_status); }; }; then
26850 ac_cv_alignof_int=`cat conftest.val`
26852 $as_echo "$as_me: program exited with status $ac_status" >&5
26853 $as_echo "$as_me: failed program was:" >&5
26854 sed 's/^/| /' conftest.$ac_ext >&5
26856 ( exit $ac_status )
26857 if test "$ac_cv_type_int" = yes; then
26858 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26860 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26861 See \`config.log' for more details." >&5
26862 $as_echo "$as_me: error: cannot compute alignment of int
26863 See \`config.log' for more details." >&2;}
26864 { (exit 77); exit 77; }; }; }
26866 ac_cv_alignof_int=0
26869 rm -rf conftest.dSYM
26870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26874 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26875 $as_echo "$ac_cv_alignof_int" >&6; }
26879 cat >>confdefs.h <<_ACEOF
26880 #define ALIGNOF_INT $ac_cv_alignof_int
26884 # The cast to long int works around a bug in the HP C Compiler,
26885 # see AC_CHECK_SIZEOF for more information.
26886 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26887 $as_echo_n "checking alignment of long... " >&6; }
26888 if test "${ac_cv_alignof_long+set}" = set; then
26889 $as_echo_n "(cached) " >&6
26891 if test "$cross_compiling" = yes; then
26892 # Depending upon the size, compute the lo and hi bounds.
26893 cat >conftest.$ac_ext <<_ACEOF
26896 cat confdefs.h >>conftest.$ac_ext
26897 cat >>conftest.$ac_ext <<_ACEOF
26898 /* end confdefs.h. */
26899 $ac_includes_default
26901 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26903 typedef struct { char x; long y; } ac__type_alignof_;
26907 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26914 rm -f conftest.$ac_objext
26915 if { (ac_try="$ac_compile"
26916 case "(($ac_try" in
26917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26918 *) ac_try_echo=$ac_try;;
26920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26921 $as_echo "$ac_try_echo") >&5
26922 (eval "$ac_compile") 2>conftest.er1
26924 grep -v '^ *+' conftest.er1 >conftest.err
26926 cat conftest.err >&5
26927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928 (exit $ac_status); } && {
26929 test -z "$ac_c_werror_flag" ||
26930 test ! -s conftest.err
26931 } && test -s conftest.$ac_objext; then
26934 cat >conftest.$ac_ext <<_ACEOF
26937 cat confdefs.h >>conftest.$ac_ext
26938 cat >>conftest.$ac_ext <<_ACEOF
26939 /* end confdefs.h. */
26940 $ac_includes_default
26942 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26944 typedef struct { char x; long y; } ac__type_alignof_;
26948 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26955 rm -f conftest.$ac_objext
26956 if { (ac_try="$ac_compile"
26957 case "(($ac_try" in
26958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26959 *) ac_try_echo=$ac_try;;
26961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26962 $as_echo "$ac_try_echo") >&5
26963 (eval "$ac_compile") 2>conftest.er1
26965 grep -v '^ *+' conftest.er1 >conftest.err
26967 cat conftest.err >&5
26968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26969 (exit $ac_status); } && {
26970 test -z "$ac_c_werror_flag" ||
26971 test ! -s conftest.err
26972 } && test -s conftest.$ac_objext; then
26973 ac_hi=$ac_mid; break
26975 $as_echo "$as_me: failed program was:" >&5
26976 sed 's/^/| /' conftest.$ac_ext >&5
26978 ac_lo=`expr $ac_mid + 1`
26979 if test $ac_lo -le $ac_mid; then
26983 ac_mid=`expr 2 '*' $ac_mid + 1`
26986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26989 $as_echo "$as_me: failed program was:" >&5
26990 sed 's/^/| /' conftest.$ac_ext >&5
26992 cat >conftest.$ac_ext <<_ACEOF
26995 cat confdefs.h >>conftest.$ac_ext
26996 cat >>conftest.$ac_ext <<_ACEOF
26997 /* end confdefs.h. */
26998 $ac_includes_default
27000 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27002 typedef struct { char x; long y; } ac__type_alignof_;
27006 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27013 rm -f conftest.$ac_objext
27014 if { (ac_try="$ac_compile"
27015 case "(($ac_try" in
27016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27017 *) ac_try_echo=$ac_try;;
27019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27020 $as_echo "$ac_try_echo") >&5
27021 (eval "$ac_compile") 2>conftest.er1
27023 grep -v '^ *+' conftest.er1 >conftest.err
27025 cat conftest.err >&5
27026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27027 (exit $ac_status); } && {
27028 test -z "$ac_c_werror_flag" ||
27029 test ! -s conftest.err
27030 } && test -s conftest.$ac_objext; then
27033 cat >conftest.$ac_ext <<_ACEOF
27036 cat confdefs.h >>conftest.$ac_ext
27037 cat >>conftest.$ac_ext <<_ACEOF
27038 /* end confdefs.h. */
27039 $ac_includes_default
27041 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27043 typedef struct { char x; long y; } ac__type_alignof_;
27047 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27054 rm -f conftest.$ac_objext
27055 if { (ac_try="$ac_compile"
27056 case "(($ac_try" in
27057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27058 *) ac_try_echo=$ac_try;;
27060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27061 $as_echo "$ac_try_echo") >&5
27062 (eval "$ac_compile") 2>conftest.er1
27064 grep -v '^ *+' conftest.er1 >conftest.err
27066 cat conftest.err >&5
27067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068 (exit $ac_status); } && {
27069 test -z "$ac_c_werror_flag" ||
27070 test ! -s conftest.err
27071 } && test -s conftest.$ac_objext; then
27072 ac_lo=$ac_mid; break
27074 $as_echo "$as_me: failed program was:" >&5
27075 sed 's/^/| /' conftest.$ac_ext >&5
27077 ac_hi=`expr '(' $ac_mid ')' - 1`
27078 if test $ac_mid -le $ac_hi; then
27082 ac_mid=`expr 2 '*' $ac_mid`
27085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27088 $as_echo "$as_me: failed program was:" >&5
27089 sed 's/^/| /' conftest.$ac_ext >&5
27094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27098 # Binary search between lo and hi bounds.
27099 while test "x$ac_lo" != "x$ac_hi"; do
27100 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27101 cat >conftest.$ac_ext <<_ACEOF
27104 cat confdefs.h >>conftest.$ac_ext
27105 cat >>conftest.$ac_ext <<_ACEOF
27106 /* end confdefs.h. */
27107 $ac_includes_default
27109 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27111 typedef struct { char x; long y; } ac__type_alignof_;
27115 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27122 rm -f conftest.$ac_objext
27123 if { (ac_try="$ac_compile"
27124 case "(($ac_try" in
27125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27126 *) ac_try_echo=$ac_try;;
27128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27129 $as_echo "$ac_try_echo") >&5
27130 (eval "$ac_compile") 2>conftest.er1
27132 grep -v '^ *+' conftest.er1 >conftest.err
27134 cat conftest.err >&5
27135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136 (exit $ac_status); } && {
27137 test -z "$ac_c_werror_flag" ||
27138 test ! -s conftest.err
27139 } && test -s conftest.$ac_objext; then
27142 $as_echo "$as_me: failed program was:" >&5
27143 sed 's/^/| /' conftest.$ac_ext >&5
27145 ac_lo=`expr '(' $ac_mid ')' + 1`
27148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27151 ?*) ac_cv_alignof_long=$ac_lo;;
27152 '') if test "$ac_cv_type_long" = yes; then
27153 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27155 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
27156 See \`config.log' for more details." >&5
27157 $as_echo "$as_me: error: cannot compute alignment of long
27158 See \`config.log' for more details." >&2;}
27159 { (exit 77); exit 77; }; }; }
27161 ac_cv_alignof_long=0
27165 cat >conftest.$ac_ext <<_ACEOF
27168 cat confdefs.h >>conftest.$ac_ext
27169 cat >>conftest.$ac_ext <<_ACEOF
27170 /* end confdefs.h. */
27171 $ac_includes_default
27173 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27175 typedef struct { char x; long y; } ac__type_alignof_;
27176 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27177 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27179 #include <stdlib.h>
27184 FILE *f = fopen ("conftest.val", "w");
27187 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27189 long int i = longval ();
27190 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27192 fprintf (f, "%ld", i);
27196 unsigned long int i = ulongval ();
27197 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27199 fprintf (f, "%lu", i);
27201 /* Do not output a trailing newline, as this causes \r\n confusion
27202 on some platforms. */
27203 return ferror (f) || fclose (f) != 0;
27209 rm -f conftest$ac_exeext
27210 if { (ac_try="$ac_link"
27211 case "(($ac_try" in
27212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27213 *) ac_try_echo=$ac_try;;
27215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27216 $as_echo "$ac_try_echo") >&5
27217 (eval "$ac_link") 2>&5
27219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27221 { (case "(($ac_try" in
27222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27223 *) ac_try_echo=$ac_try;;
27225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27226 $as_echo "$ac_try_echo") >&5
27227 (eval "$ac_try") 2>&5
27229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230 (exit $ac_status); }; }; then
27231 ac_cv_alignof_long=`cat conftest.val`
27233 $as_echo "$as_me: program exited with status $ac_status" >&5
27234 $as_echo "$as_me: failed program was:" >&5
27235 sed 's/^/| /' conftest.$ac_ext >&5
27237 ( exit $ac_status )
27238 if test "$ac_cv_type_long" = yes; then
27239 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27241 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
27242 See \`config.log' for more details." >&5
27243 $as_echo "$as_me: error: cannot compute alignment of long
27244 See \`config.log' for more details." >&2;}
27245 { (exit 77); exit 77; }; }; }
27247 ac_cv_alignof_long=0
27250 rm -rf conftest.dSYM
27251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27255 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
27256 $as_echo "$ac_cv_alignof_long" >&6; }
27260 cat >>confdefs.h <<_ACEOF
27261 #define ALIGNOF_LONG $ac_cv_alignof_long
27265 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
27266 # The cast to long int works around a bug in the HP C Compiler,
27267 # see AC_CHECK_SIZEOF for more information.
27268 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
27269 $as_echo_n "checking alignment of long long int... " >&6; }
27270 if test "${ac_cv_alignof_long_long_int+set}" = set; then
27271 $as_echo_n "(cached) " >&6
27273 if test "$cross_compiling" = yes; then
27274 # Depending upon the size, compute the lo and hi bounds.
27275 cat >conftest.$ac_ext <<_ACEOF
27278 cat confdefs.h >>conftest.$ac_ext
27279 cat >>conftest.$ac_ext <<_ACEOF
27280 /* end confdefs.h. */
27281 $ac_includes_default
27283 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27285 typedef struct { char x; long long int y; } ac__type_alignof_;
27289 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27296 rm -f conftest.$ac_objext
27297 if { (ac_try="$ac_compile"
27298 case "(($ac_try" in
27299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27300 *) ac_try_echo=$ac_try;;
27302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27303 $as_echo "$ac_try_echo") >&5
27304 (eval "$ac_compile") 2>conftest.er1
27306 grep -v '^ *+' conftest.er1 >conftest.err
27308 cat conftest.err >&5
27309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310 (exit $ac_status); } && {
27311 test -z "$ac_c_werror_flag" ||
27312 test ! -s conftest.err
27313 } && test -s conftest.$ac_objext; then
27316 cat >conftest.$ac_ext <<_ACEOF
27319 cat confdefs.h >>conftest.$ac_ext
27320 cat >>conftest.$ac_ext <<_ACEOF
27321 /* end confdefs.h. */
27322 $ac_includes_default
27324 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27326 typedef struct { char x; long long int y; } ac__type_alignof_;
27330 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27337 rm -f conftest.$ac_objext
27338 if { (ac_try="$ac_compile"
27339 case "(($ac_try" in
27340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27341 *) ac_try_echo=$ac_try;;
27343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27344 $as_echo "$ac_try_echo") >&5
27345 (eval "$ac_compile") 2>conftest.er1
27347 grep -v '^ *+' conftest.er1 >conftest.err
27349 cat conftest.err >&5
27350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27351 (exit $ac_status); } && {
27352 test -z "$ac_c_werror_flag" ||
27353 test ! -s conftest.err
27354 } && test -s conftest.$ac_objext; then
27355 ac_hi=$ac_mid; break
27357 $as_echo "$as_me: failed program was:" >&5
27358 sed 's/^/| /' conftest.$ac_ext >&5
27360 ac_lo=`expr $ac_mid + 1`
27361 if test $ac_lo -le $ac_mid; then
27365 ac_mid=`expr 2 '*' $ac_mid + 1`
27368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27371 $as_echo "$as_me: failed program was:" >&5
27372 sed 's/^/| /' conftest.$ac_ext >&5
27374 cat >conftest.$ac_ext <<_ACEOF
27377 cat confdefs.h >>conftest.$ac_ext
27378 cat >>conftest.$ac_ext <<_ACEOF
27379 /* end confdefs.h. */
27380 $ac_includes_default
27382 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27384 typedef struct { char x; long long int y; } ac__type_alignof_;
27388 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27395 rm -f conftest.$ac_objext
27396 if { (ac_try="$ac_compile"
27397 case "(($ac_try" in
27398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27399 *) ac_try_echo=$ac_try;;
27401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27402 $as_echo "$ac_try_echo") >&5
27403 (eval "$ac_compile") 2>conftest.er1
27405 grep -v '^ *+' conftest.er1 >conftest.err
27407 cat conftest.err >&5
27408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409 (exit $ac_status); } && {
27410 test -z "$ac_c_werror_flag" ||
27411 test ! -s conftest.err
27412 } && test -s conftest.$ac_objext; then
27415 cat >conftest.$ac_ext <<_ACEOF
27418 cat confdefs.h >>conftest.$ac_ext
27419 cat >>conftest.$ac_ext <<_ACEOF
27420 /* end confdefs.h. */
27421 $ac_includes_default
27423 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27425 typedef struct { char x; long long int y; } ac__type_alignof_;
27429 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27436 rm -f conftest.$ac_objext
27437 if { (ac_try="$ac_compile"
27438 case "(($ac_try" in
27439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27440 *) ac_try_echo=$ac_try;;
27442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27443 $as_echo "$ac_try_echo") >&5
27444 (eval "$ac_compile") 2>conftest.er1
27446 grep -v '^ *+' conftest.er1 >conftest.err
27448 cat conftest.err >&5
27449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27450 (exit $ac_status); } && {
27451 test -z "$ac_c_werror_flag" ||
27452 test ! -s conftest.err
27453 } && test -s conftest.$ac_objext; then
27454 ac_lo=$ac_mid; break
27456 $as_echo "$as_me: failed program was:" >&5
27457 sed 's/^/| /' conftest.$ac_ext >&5
27459 ac_hi=`expr '(' $ac_mid ')' - 1`
27460 if test $ac_mid -le $ac_hi; then
27464 ac_mid=`expr 2 '*' $ac_mid`
27467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27470 $as_echo "$as_me: failed program was:" >&5
27471 sed 's/^/| /' conftest.$ac_ext >&5
27476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27480 # Binary search between lo and hi bounds.
27481 while test "x$ac_lo" != "x$ac_hi"; do
27482 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27483 cat >conftest.$ac_ext <<_ACEOF
27486 cat confdefs.h >>conftest.$ac_ext
27487 cat >>conftest.$ac_ext <<_ACEOF
27488 /* end confdefs.h. */
27489 $ac_includes_default
27491 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27493 typedef struct { char x; long long int y; } ac__type_alignof_;
27497 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27504 rm -f conftest.$ac_objext
27505 if { (ac_try="$ac_compile"
27506 case "(($ac_try" in
27507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27508 *) ac_try_echo=$ac_try;;
27510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27511 $as_echo "$ac_try_echo") >&5
27512 (eval "$ac_compile") 2>conftest.er1
27514 grep -v '^ *+' conftest.er1 >conftest.err
27516 cat conftest.err >&5
27517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518 (exit $ac_status); } && {
27519 test -z "$ac_c_werror_flag" ||
27520 test ! -s conftest.err
27521 } && test -s conftest.$ac_objext; then
27524 $as_echo "$as_me: failed program was:" >&5
27525 sed 's/^/| /' conftest.$ac_ext >&5
27527 ac_lo=`expr '(' $ac_mid ')' + 1`
27530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27533 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
27534 '') if test "$ac_cv_type_long_long_int" = yes; then
27535 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27537 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27538 See \`config.log' for more details." >&5
27539 $as_echo "$as_me: error: cannot compute alignment of long long int
27540 See \`config.log' for more details." >&2;}
27541 { (exit 77); exit 77; }; }; }
27543 ac_cv_alignof_long_long_int=0
27547 cat >conftest.$ac_ext <<_ACEOF
27550 cat confdefs.h >>conftest.$ac_ext
27551 cat >>conftest.$ac_ext <<_ACEOF
27552 /* end confdefs.h. */
27553 $ac_includes_default
27555 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27557 typedef struct { char x; long long int y; } ac__type_alignof_;
27558 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27559 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27561 #include <stdlib.h>
27566 FILE *f = fopen ("conftest.val", "w");
27569 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27571 long int i = longval ();
27572 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27574 fprintf (f, "%ld", i);
27578 unsigned long int i = ulongval ();
27579 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27581 fprintf (f, "%lu", i);
27583 /* Do not output a trailing newline, as this causes \r\n confusion
27584 on some platforms. */
27585 return ferror (f) || fclose (f) != 0;
27591 rm -f conftest$ac_exeext
27592 if { (ac_try="$ac_link"
27593 case "(($ac_try" in
27594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27595 *) ac_try_echo=$ac_try;;
27597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27598 $as_echo "$ac_try_echo") >&5
27599 (eval "$ac_link") 2>&5
27601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27603 { (case "(($ac_try" in
27604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27605 *) ac_try_echo=$ac_try;;
27607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27608 $as_echo "$ac_try_echo") >&5
27609 (eval "$ac_try") 2>&5
27611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27612 (exit $ac_status); }; }; then
27613 ac_cv_alignof_long_long_int=`cat conftest.val`
27615 $as_echo "$as_me: program exited with status $ac_status" >&5
27616 $as_echo "$as_me: failed program was:" >&5
27617 sed 's/^/| /' conftest.$ac_ext >&5
27619 ( exit $ac_status )
27620 if test "$ac_cv_type_long_long_int" = yes; then
27621 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27623 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27624 See \`config.log' for more details." >&5
27625 $as_echo "$as_me: error: cannot compute alignment of long long int
27626 See \`config.log' for more details." >&2;}
27627 { (exit 77); exit 77; }; }; }
27629 ac_cv_alignof_long_long_int=0
27632 rm -rf conftest.dSYM
27633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27637 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27638 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27642 cat >>confdefs.h <<_ACEOF
27643 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27648 # The cast to long int works around a bug in the HP C Compiler,
27649 # see AC_CHECK_SIZEOF for more information.
27650 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27651 $as_echo_n "checking alignment of double... " >&6; }
27652 if test "${ac_cv_alignof_double+set}" = set; then
27653 $as_echo_n "(cached) " >&6
27655 if test "$cross_compiling" = yes; then
27656 # Depending upon the size, compute the lo and hi bounds.
27657 cat >conftest.$ac_ext <<_ACEOF
27660 cat confdefs.h >>conftest.$ac_ext
27661 cat >>conftest.$ac_ext <<_ACEOF
27662 /* end confdefs.h. */
27663 $ac_includes_default
27665 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27667 typedef struct { char x; double y; } ac__type_alignof_;
27671 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27678 rm -f conftest.$ac_objext
27679 if { (ac_try="$ac_compile"
27680 case "(($ac_try" in
27681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27682 *) ac_try_echo=$ac_try;;
27684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27685 $as_echo "$ac_try_echo") >&5
27686 (eval "$ac_compile") 2>conftest.er1
27688 grep -v '^ *+' conftest.er1 >conftest.err
27690 cat conftest.err >&5
27691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692 (exit $ac_status); } && {
27693 test -z "$ac_c_werror_flag" ||
27694 test ! -s conftest.err
27695 } && test -s conftest.$ac_objext; then
27698 cat >conftest.$ac_ext <<_ACEOF
27701 cat confdefs.h >>conftest.$ac_ext
27702 cat >>conftest.$ac_ext <<_ACEOF
27703 /* end confdefs.h. */
27704 $ac_includes_default
27706 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27708 typedef struct { char x; double y; } ac__type_alignof_;
27712 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27719 rm -f conftest.$ac_objext
27720 if { (ac_try="$ac_compile"
27721 case "(($ac_try" in
27722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27723 *) ac_try_echo=$ac_try;;
27725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27726 $as_echo "$ac_try_echo") >&5
27727 (eval "$ac_compile") 2>conftest.er1
27729 grep -v '^ *+' conftest.er1 >conftest.err
27731 cat conftest.err >&5
27732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27733 (exit $ac_status); } && {
27734 test -z "$ac_c_werror_flag" ||
27735 test ! -s conftest.err
27736 } && test -s conftest.$ac_objext; then
27737 ac_hi=$ac_mid; break
27739 $as_echo "$as_me: failed program was:" >&5
27740 sed 's/^/| /' conftest.$ac_ext >&5
27742 ac_lo=`expr $ac_mid + 1`
27743 if test $ac_lo -le $ac_mid; then
27747 ac_mid=`expr 2 '*' $ac_mid + 1`
27750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27753 $as_echo "$as_me: failed program was:" >&5
27754 sed 's/^/| /' conftest.$ac_ext >&5
27756 cat >conftest.$ac_ext <<_ACEOF
27759 cat confdefs.h >>conftest.$ac_ext
27760 cat >>conftest.$ac_ext <<_ACEOF
27761 /* end confdefs.h. */
27762 $ac_includes_default
27764 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27766 typedef struct { char x; double y; } ac__type_alignof_;
27770 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27777 rm -f conftest.$ac_objext
27778 if { (ac_try="$ac_compile"
27779 case "(($ac_try" in
27780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27781 *) ac_try_echo=$ac_try;;
27783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27784 $as_echo "$ac_try_echo") >&5
27785 (eval "$ac_compile") 2>conftest.er1
27787 grep -v '^ *+' conftest.er1 >conftest.err
27789 cat conftest.err >&5
27790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791 (exit $ac_status); } && {
27792 test -z "$ac_c_werror_flag" ||
27793 test ! -s conftest.err
27794 } && test -s conftest.$ac_objext; then
27797 cat >conftest.$ac_ext <<_ACEOF
27800 cat confdefs.h >>conftest.$ac_ext
27801 cat >>conftest.$ac_ext <<_ACEOF
27802 /* end confdefs.h. */
27803 $ac_includes_default
27805 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27807 typedef struct { char x; double y; } ac__type_alignof_;
27811 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27818 rm -f conftest.$ac_objext
27819 if { (ac_try="$ac_compile"
27820 case "(($ac_try" in
27821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27822 *) ac_try_echo=$ac_try;;
27824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27825 $as_echo "$ac_try_echo") >&5
27826 (eval "$ac_compile") 2>conftest.er1
27828 grep -v '^ *+' conftest.er1 >conftest.err
27830 cat conftest.err >&5
27831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27832 (exit $ac_status); } && {
27833 test -z "$ac_c_werror_flag" ||
27834 test ! -s conftest.err
27835 } && test -s conftest.$ac_objext; then
27836 ac_lo=$ac_mid; break
27838 $as_echo "$as_me: failed program was:" >&5
27839 sed 's/^/| /' conftest.$ac_ext >&5
27841 ac_hi=`expr '(' $ac_mid ')' - 1`
27842 if test $ac_mid -le $ac_hi; then
27846 ac_mid=`expr 2 '*' $ac_mid`
27849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27852 $as_echo "$as_me: failed program was:" >&5
27853 sed 's/^/| /' conftest.$ac_ext >&5
27858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27862 # Binary search between lo and hi bounds.
27863 while test "x$ac_lo" != "x$ac_hi"; do
27864 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27865 cat >conftest.$ac_ext <<_ACEOF
27868 cat confdefs.h >>conftest.$ac_ext
27869 cat >>conftest.$ac_ext <<_ACEOF
27870 /* end confdefs.h. */
27871 $ac_includes_default
27873 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27875 typedef struct { char x; double y; } ac__type_alignof_;
27879 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27886 rm -f conftest.$ac_objext
27887 if { (ac_try="$ac_compile"
27888 case "(($ac_try" in
27889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27890 *) ac_try_echo=$ac_try;;
27892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27893 $as_echo "$ac_try_echo") >&5
27894 (eval "$ac_compile") 2>conftest.er1
27896 grep -v '^ *+' conftest.er1 >conftest.err
27898 cat conftest.err >&5
27899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27900 (exit $ac_status); } && {
27901 test -z "$ac_c_werror_flag" ||
27902 test ! -s conftest.err
27903 } && test -s conftest.$ac_objext; then
27906 $as_echo "$as_me: failed program was:" >&5
27907 sed 's/^/| /' conftest.$ac_ext >&5
27909 ac_lo=`expr '(' $ac_mid ')' + 1`
27912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27915 ?*) ac_cv_alignof_double=$ac_lo;;
27916 '') if test "$ac_cv_type_double" = yes; then
27917 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27919 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27920 See \`config.log' for more details." >&5
27921 $as_echo "$as_me: error: cannot compute alignment of double
27922 See \`config.log' for more details." >&2;}
27923 { (exit 77); exit 77; }; }; }
27925 ac_cv_alignof_double=0
27929 cat >conftest.$ac_ext <<_ACEOF
27932 cat confdefs.h >>conftest.$ac_ext
27933 cat >>conftest.$ac_ext <<_ACEOF
27934 /* end confdefs.h. */
27935 $ac_includes_default
27937 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27939 typedef struct { char x; double y; } ac__type_alignof_;
27940 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27941 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27943 #include <stdlib.h>
27948 FILE *f = fopen ("conftest.val", "w");
27951 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27953 long int i = longval ();
27954 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27956 fprintf (f, "%ld", i);
27960 unsigned long int i = ulongval ();
27961 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27963 fprintf (f, "%lu", i);
27965 /* Do not output a trailing newline, as this causes \r\n confusion
27966 on some platforms. */
27967 return ferror (f) || fclose (f) != 0;
27973 rm -f conftest$ac_exeext
27974 if { (ac_try="$ac_link"
27975 case "(($ac_try" in
27976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27977 *) ac_try_echo=$ac_try;;
27979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27980 $as_echo "$ac_try_echo") >&5
27981 (eval "$ac_link") 2>&5
27983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27985 { (case "(($ac_try" in
27986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27987 *) ac_try_echo=$ac_try;;
27989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27990 $as_echo "$ac_try_echo") >&5
27991 (eval "$ac_try") 2>&5
27993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27994 (exit $ac_status); }; }; then
27995 ac_cv_alignof_double=`cat conftest.val`
27997 $as_echo "$as_me: program exited with status $ac_status" >&5
27998 $as_echo "$as_me: failed program was:" >&5
27999 sed 's/^/| /' conftest.$ac_ext >&5
28001 ( exit $ac_status )
28002 if test "$ac_cv_type_double" = yes; then
28003 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28005 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
28006 See \`config.log' for more details." >&5
28007 $as_echo "$as_me: error: cannot compute alignment of double
28008 See \`config.log' for more details." >&2;}
28009 { (exit 77); exit 77; }; }; }
28011 ac_cv_alignof_double=0
28014 rm -rf conftest.dSYM
28015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28019 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
28020 $as_echo "$ac_cv_alignof_double" >&6; }
28024 cat >>confdefs.h <<_ACEOF
28025 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
28030 # Compute maximum alignment of any basic type.
28031 # We assume long's alignment is at least as strong as char, short, or int;
28032 # but we must check long long (if it exists) and double.
28034 MAX_ALIGNOF=$ac_cv_alignof_long
28035 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
28036 MAX_ALIGNOF=$ac_cv_alignof_double
28038 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
28039 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
28042 cat >>confdefs.h <<_ACEOF
28043 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
28048 # Some platforms predefine the types int8, int16, etc. Only check
28049 # a (hopefully) representative subset.
28050 { $as_echo "$as_me:$LINENO: checking for int8" >&5
28051 $as_echo_n "checking for int8... " >&6; }
28052 if test "${ac_cv_type_int8+set}" = set; then
28053 $as_echo_n "(cached) " >&6
28056 cat >conftest.$ac_ext <<_ACEOF
28059 cat confdefs.h >>conftest.$ac_ext
28060 cat >>conftest.$ac_ext <<_ACEOF
28061 /* end confdefs.h. */
28073 rm -f conftest.$ac_objext
28074 if { (ac_try="$ac_compile"
28075 case "(($ac_try" in
28076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28077 *) ac_try_echo=$ac_try;;
28079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28080 $as_echo "$ac_try_echo") >&5
28081 (eval "$ac_compile") 2>conftest.er1
28083 grep -v '^ *+' conftest.er1 >conftest.err
28085 cat conftest.err >&5
28086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087 (exit $ac_status); } && {
28088 test -z "$ac_c_werror_flag" ||
28089 test ! -s conftest.err
28090 } && test -s conftest.$ac_objext; then
28091 cat >conftest.$ac_ext <<_ACEOF
28094 cat confdefs.h >>conftest.$ac_ext
28095 cat >>conftest.$ac_ext <<_ACEOF
28096 /* end confdefs.h. */
28102 if (sizeof ((int8)))
28108 rm -f conftest.$ac_objext
28109 if { (ac_try="$ac_compile"
28110 case "(($ac_try" in
28111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28112 *) ac_try_echo=$ac_try;;
28114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28115 $as_echo "$ac_try_echo") >&5
28116 (eval "$ac_compile") 2>conftest.er1
28118 grep -v '^ *+' conftest.er1 >conftest.err
28120 cat conftest.err >&5
28121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122 (exit $ac_status); } && {
28123 test -z "$ac_c_werror_flag" ||
28124 test ! -s conftest.err
28125 } && test -s conftest.$ac_objext; then
28128 $as_echo "$as_me: failed program was:" >&5
28129 sed 's/^/| /' conftest.$ac_ext >&5
28131 ac_cv_type_int8=yes
28134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28136 $as_echo "$as_me: failed program was:" >&5
28137 sed 's/^/| /' conftest.$ac_ext >&5
28142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28144 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
28145 $as_echo "$ac_cv_type_int8" >&6; }
28146 if test "x$ac_cv_type_int8" = x""yes; then
28148 cat >>confdefs.h <<_ACEOF
28149 #define HAVE_INT8 1
28154 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
28155 $as_echo_n "checking for uint8... " >&6; }
28156 if test "${ac_cv_type_uint8+set}" = set; then
28157 $as_echo_n "(cached) " >&6
28159 ac_cv_type_uint8=no
28160 cat >conftest.$ac_ext <<_ACEOF
28163 cat confdefs.h >>conftest.$ac_ext
28164 cat >>conftest.$ac_ext <<_ACEOF
28165 /* end confdefs.h. */
28171 if (sizeof (uint8))
28177 rm -f conftest.$ac_objext
28178 if { (ac_try="$ac_compile"
28179 case "(($ac_try" in
28180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28181 *) ac_try_echo=$ac_try;;
28183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28184 $as_echo "$ac_try_echo") >&5
28185 (eval "$ac_compile") 2>conftest.er1
28187 grep -v '^ *+' conftest.er1 >conftest.err
28189 cat conftest.err >&5
28190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191 (exit $ac_status); } && {
28192 test -z "$ac_c_werror_flag" ||
28193 test ! -s conftest.err
28194 } && test -s conftest.$ac_objext; then
28195 cat >conftest.$ac_ext <<_ACEOF
28198 cat confdefs.h >>conftest.$ac_ext
28199 cat >>conftest.$ac_ext <<_ACEOF
28200 /* end confdefs.h. */
28206 if (sizeof ((uint8)))
28212 rm -f conftest.$ac_objext
28213 if { (ac_try="$ac_compile"
28214 case "(($ac_try" in
28215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28216 *) ac_try_echo=$ac_try;;
28218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28219 $as_echo "$ac_try_echo") >&5
28220 (eval "$ac_compile") 2>conftest.er1
28222 grep -v '^ *+' conftest.er1 >conftest.err
28224 cat conftest.err >&5
28225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226 (exit $ac_status); } && {
28227 test -z "$ac_c_werror_flag" ||
28228 test ! -s conftest.err
28229 } && test -s conftest.$ac_objext; then
28232 $as_echo "$as_me: failed program was:" >&5
28233 sed 's/^/| /' conftest.$ac_ext >&5
28235 ac_cv_type_uint8=yes
28238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28240 $as_echo "$as_me: failed program was:" >&5
28241 sed 's/^/| /' conftest.$ac_ext >&5
28246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28248 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
28249 $as_echo "$ac_cv_type_uint8" >&6; }
28250 if test "x$ac_cv_type_uint8" = x""yes; then
28252 cat >>confdefs.h <<_ACEOF
28253 #define HAVE_UINT8 1
28258 { $as_echo "$as_me:$LINENO: checking for int64" >&5
28259 $as_echo_n "checking for int64... " >&6; }
28260 if test "${ac_cv_type_int64+set}" = set; then
28261 $as_echo_n "(cached) " >&6
28263 ac_cv_type_int64=no
28264 cat >conftest.$ac_ext <<_ACEOF
28267 cat confdefs.h >>conftest.$ac_ext
28268 cat >>conftest.$ac_ext <<_ACEOF
28269 /* end confdefs.h. */
28275 if (sizeof (int64))
28281 rm -f conftest.$ac_objext
28282 if { (ac_try="$ac_compile"
28283 case "(($ac_try" in
28284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28285 *) ac_try_echo=$ac_try;;
28287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28288 $as_echo "$ac_try_echo") >&5
28289 (eval "$ac_compile") 2>conftest.er1
28291 grep -v '^ *+' conftest.er1 >conftest.err
28293 cat conftest.err >&5
28294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28295 (exit $ac_status); } && {
28296 test -z "$ac_c_werror_flag" ||
28297 test ! -s conftest.err
28298 } && test -s conftest.$ac_objext; then
28299 cat >conftest.$ac_ext <<_ACEOF
28302 cat confdefs.h >>conftest.$ac_ext
28303 cat >>conftest.$ac_ext <<_ACEOF
28304 /* end confdefs.h. */
28310 if (sizeof ((int64)))
28316 rm -f conftest.$ac_objext
28317 if { (ac_try="$ac_compile"
28318 case "(($ac_try" in
28319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28320 *) ac_try_echo=$ac_try;;
28322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28323 $as_echo "$ac_try_echo") >&5
28324 (eval "$ac_compile") 2>conftest.er1
28326 grep -v '^ *+' conftest.er1 >conftest.err
28328 cat conftest.err >&5
28329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28330 (exit $ac_status); } && {
28331 test -z "$ac_c_werror_flag" ||
28332 test ! -s conftest.err
28333 } && test -s conftest.$ac_objext; then
28336 $as_echo "$as_me: failed program was:" >&5
28337 sed 's/^/| /' conftest.$ac_ext >&5
28339 ac_cv_type_int64=yes
28342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28344 $as_echo "$as_me: failed program was:" >&5
28345 sed 's/^/| /' conftest.$ac_ext >&5
28350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28352 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
28353 $as_echo "$ac_cv_type_int64" >&6; }
28354 if test "x$ac_cv_type_int64" = x""yes; then
28356 cat >>confdefs.h <<_ACEOF
28357 #define HAVE_INT64 1
28362 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
28363 $as_echo_n "checking for uint64... " >&6; }
28364 if test "${ac_cv_type_uint64+set}" = set; then
28365 $as_echo_n "(cached) " >&6
28367 ac_cv_type_uint64=no
28368 cat >conftest.$ac_ext <<_ACEOF
28371 cat confdefs.h >>conftest.$ac_ext
28372 cat >>conftest.$ac_ext <<_ACEOF
28373 /* end confdefs.h. */
28379 if (sizeof (uint64))
28385 rm -f conftest.$ac_objext
28386 if { (ac_try="$ac_compile"
28387 case "(($ac_try" in
28388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28389 *) ac_try_echo=$ac_try;;
28391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28392 $as_echo "$ac_try_echo") >&5
28393 (eval "$ac_compile") 2>conftest.er1
28395 grep -v '^ *+' conftest.er1 >conftest.err
28397 cat conftest.err >&5
28398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); } && {
28400 test -z "$ac_c_werror_flag" ||
28401 test ! -s conftest.err
28402 } && test -s conftest.$ac_objext; then
28403 cat >conftest.$ac_ext <<_ACEOF
28406 cat confdefs.h >>conftest.$ac_ext
28407 cat >>conftest.$ac_ext <<_ACEOF
28408 /* end confdefs.h. */
28414 if (sizeof ((uint64)))
28420 rm -f conftest.$ac_objext
28421 if { (ac_try="$ac_compile"
28422 case "(($ac_try" in
28423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28424 *) ac_try_echo=$ac_try;;
28426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28427 $as_echo "$ac_try_echo") >&5
28428 (eval "$ac_compile") 2>conftest.er1
28430 grep -v '^ *+' conftest.er1 >conftest.err
28432 cat conftest.err >&5
28433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28434 (exit $ac_status); } && {
28435 test -z "$ac_c_werror_flag" ||
28436 test ! -s conftest.err
28437 } && test -s conftest.$ac_objext; then
28440 $as_echo "$as_me: failed program was:" >&5
28441 sed 's/^/| /' conftest.$ac_ext >&5
28443 ac_cv_type_uint64=yes
28446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28448 $as_echo "$as_me: failed program was:" >&5
28449 sed 's/^/| /' conftest.$ac_ext >&5
28454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28456 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
28457 $as_echo "$ac_cv_type_uint64" >&6; }
28458 if test "x$ac_cv_type_uint64" = x""yes; then
28460 cat >>confdefs.h <<_ACEOF
28461 #define HAVE_UINT64 1
28468 # We also check for sig_atomic_t, which *should* be defined per ANSI
28469 # C, but is missing on some old platforms.
28470 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
28471 $as_echo_n "checking for sig_atomic_t... " >&6; }
28472 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28473 $as_echo_n "(cached) " >&6
28475 ac_cv_type_sig_atomic_t=no
28476 cat >conftest.$ac_ext <<_ACEOF
28479 cat confdefs.h >>conftest.$ac_ext
28480 cat >>conftest.$ac_ext <<_ACEOF
28481 /* end confdefs.h. */
28482 #include <signal.h>
28487 if (sizeof (sig_atomic_t))
28493 rm -f conftest.$ac_objext
28494 if { (ac_try="$ac_compile"
28495 case "(($ac_try" in
28496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28497 *) ac_try_echo=$ac_try;;
28499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28500 $as_echo "$ac_try_echo") >&5
28501 (eval "$ac_compile") 2>conftest.er1
28503 grep -v '^ *+' conftest.er1 >conftest.err
28505 cat conftest.err >&5
28506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28507 (exit $ac_status); } && {
28508 test -z "$ac_c_werror_flag" ||
28509 test ! -s conftest.err
28510 } && test -s conftest.$ac_objext; then
28511 cat >conftest.$ac_ext <<_ACEOF
28514 cat confdefs.h >>conftest.$ac_ext
28515 cat >>conftest.$ac_ext <<_ACEOF
28516 /* end confdefs.h. */
28517 #include <signal.h>
28522 if (sizeof ((sig_atomic_t)))
28528 rm -f conftest.$ac_objext
28529 if { (ac_try="$ac_compile"
28530 case "(($ac_try" in
28531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28532 *) ac_try_echo=$ac_try;;
28534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28535 $as_echo "$ac_try_echo") >&5
28536 (eval "$ac_compile") 2>conftest.er1
28538 grep -v '^ *+' conftest.er1 >conftest.err
28540 cat conftest.err >&5
28541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542 (exit $ac_status); } && {
28543 test -z "$ac_c_werror_flag" ||
28544 test ! -s conftest.err
28545 } && test -s conftest.$ac_objext; then
28548 $as_echo "$as_me: failed program was:" >&5
28549 sed 's/^/| /' conftest.$ac_ext >&5
28551 ac_cv_type_sig_atomic_t=yes
28554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28556 $as_echo "$as_me: failed program was:" >&5
28557 sed 's/^/| /' conftest.$ac_ext >&5
28562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28564 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28565 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28566 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28568 cat >>confdefs.h <<_ACEOF
28569 #define HAVE_SIG_ATOMIC_T 1
28577 if test "$PORTNAME" != "win32"
28579 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28580 $as_echo_n "checking for POSIX signal interface... " >&6; }
28581 if test "${pgac_cv_func_posix_signals+set}" = set; then
28582 $as_echo_n "(cached) " >&6
28584 cat >conftest.$ac_ext <<_ACEOF
28587 cat confdefs.h >>conftest.$ac_ext
28588 cat >>conftest.$ac_ext <<_ACEOF
28589 /* end confdefs.h. */
28590 #include <signal.h>
28595 struct sigaction act, oact;
28596 sigemptyset(&act.sa_mask);
28597 act.sa_flags = SA_RESTART;
28598 sigaction(0, &act, &oact);
28603 rm -f conftest.$ac_objext conftest$ac_exeext
28604 if { (ac_try="$ac_link"
28605 case "(($ac_try" in
28606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28607 *) ac_try_echo=$ac_try;;
28609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28610 $as_echo "$ac_try_echo") >&5
28611 (eval "$ac_link") 2>conftest.er1
28613 grep -v '^ *+' conftest.er1 >conftest.err
28615 cat conftest.err >&5
28616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617 (exit $ac_status); } && {
28618 test -z "$ac_c_werror_flag" ||
28619 test ! -s conftest.err
28620 } && test -s conftest$ac_exeext && {
28621 test "$cross_compiling" = yes ||
28622 $as_test_x conftest$ac_exeext
28624 pgac_cv_func_posix_signals=yes
28626 $as_echo "$as_me: failed program was:" >&5
28627 sed 's/^/| /' conftest.$ac_ext >&5
28629 pgac_cv_func_posix_signals=no
28632 rm -rf conftest.dSYM
28633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28634 conftest$ac_exeext conftest.$ac_ext
28636 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28637 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28638 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28640 cat >>confdefs.h <<\_ACEOF
28641 #define HAVE_POSIX_SIGNALS 1
28645 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28647 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28648 { { $as_echo "$as_me:$LINENO: error:
28649 Thread-safety requires POSIX signals, which are not supported by this
28650 operating system; use --disable-thread-safety to disable thread safety." >&5
28651 $as_echo "$as_me: error:
28652 Thread-safety requires POSIX signals, which are not supported by this
28653 operating system; use --disable-thread-safety to disable thread safety." >&2;}
28654 { (exit 1); exit 1; }; }
28658 # SunOS doesn't handle negative byte comparisons properly with +/- return
28659 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28660 $as_echo_n "checking for working memcmp... " >&6; }
28661 if test "${ac_cv_func_memcmp_working+set}" = set; then
28662 $as_echo_n "(cached) " >&6
28664 if test "$cross_compiling" = yes; then
28665 ac_cv_func_memcmp_working=no
28667 cat >conftest.$ac_ext <<_ACEOF
28670 cat confdefs.h >>conftest.$ac_ext
28671 cat >>conftest.$ac_ext <<_ACEOF
28672 /* end confdefs.h. */
28673 $ac_includes_default
28678 /* Some versions of memcmp are not 8-bit clean. */
28679 char c0 = '\100', c1 = '\200', c2 = '\201';
28680 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28683 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28684 or more and with at least one buffer not starting on a 4-byte boundary.
28685 William Lewis provided this test program. */
28690 for (i = 0; i < 4; i++)
28694 strcpy (a, "--------01111111");
28695 strcpy (b, "--------10000000");
28696 if (memcmp (a, b, 16) >= 0)
28706 rm -f conftest$ac_exeext
28707 if { (ac_try="$ac_link"
28708 case "(($ac_try" in
28709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28710 *) ac_try_echo=$ac_try;;
28712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28713 $as_echo "$ac_try_echo") >&5
28714 (eval "$ac_link") 2>&5
28716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28718 { (case "(($ac_try" in
28719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28720 *) ac_try_echo=$ac_try;;
28722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28723 $as_echo "$ac_try_echo") >&5
28724 (eval "$ac_try") 2>&5
28726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); }; }; then
28728 ac_cv_func_memcmp_working=yes
28730 $as_echo "$as_me: program exited with status $ac_status" >&5
28731 $as_echo "$as_me: failed program was:" >&5
28732 sed 's/^/| /' conftest.$ac_ext >&5
28734 ( exit $ac_status )
28735 ac_cv_func_memcmp_working=no
28737 rm -rf conftest.dSYM
28738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28743 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28744 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28745 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28746 *" memcmp.$ac_objext "* ) ;;
28747 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28754 # Select semaphore implementation type.
28755 if test "$PORTNAME" != "win32"; then
28756 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28758 cat >>confdefs.h <<\_ACEOF
28759 #define USE_NAMED_POSIX_SEMAPHORES 1
28762 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28764 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
28766 cat >>confdefs.h <<\_ACEOF
28767 #define USE_UNNAMED_POSIX_SEMAPHORES 1
28770 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28773 cat >>confdefs.h <<\_ACEOF
28774 #define USE_SYSV_SEMAPHORES 1
28777 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
28782 cat >>confdefs.h <<\_ACEOF
28783 #define USE_WIN32_SEMAPHORES 1
28786 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
28790 # Select shared-memory implementation type.
28791 if test "$PORTNAME" != "win32"; then
28793 cat >>confdefs.h <<\_ACEOF
28794 #define USE_SYSV_SHARED_MEMORY 1
28797 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
28800 cat >>confdefs.h <<\_ACEOF
28801 #define USE_WIN32_SHARED_MEMORY 1
28804 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
28807 # Select latch implementation type.
28808 if test "$PORTNAME" != "win32"; then
28809 LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
28811 LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
28814 # If not set in template file, set bytes to use libc memset()
28815 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
28816 MEMSET_LOOP_LIMIT=1024
28819 cat >>confdefs.h <<_ACEOF
28820 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
28825 if test "$enable_nls" = yes ; then
28827 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
28828 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
28829 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28830 $as_echo_n "(cached) " >&6
28832 ac_func_search_save_LIBS=$LIBS
28833 cat >conftest.$ac_ext <<_ACEOF
28836 cat confdefs.h >>conftest.$ac_ext
28837 cat >>conftest.$ac_ext <<_ACEOF
28838 /* end confdefs.h. */
28840 /* Override any GCC internal prototype to avoid an error.
28841 Use char because int might match the return type of a GCC
28842 builtin and then its argument prototype would still apply. */
28846 char bind_textdomain_codeset ();
28850 return bind_textdomain_codeset ();
28855 for ac_lib in '' intl; do
28856 if test -z "$ac_lib"; then
28857 ac_res="none required"
28860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28862 rm -f conftest.$ac_objext conftest$ac_exeext
28863 if { (ac_try="$ac_link"
28864 case "(($ac_try" in
28865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28866 *) ac_try_echo=$ac_try;;
28868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28869 $as_echo "$ac_try_echo") >&5
28870 (eval "$ac_link") 2>conftest.er1
28872 grep -v '^ *+' conftest.er1 >conftest.err
28874 cat conftest.err >&5
28875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876 (exit $ac_status); } && {
28877 test -z "$ac_c_werror_flag" ||
28878 test ! -s conftest.err
28879 } && test -s conftest$ac_exeext && {
28880 test "$cross_compiling" = yes ||
28881 $as_test_x conftest$ac_exeext
28883 ac_cv_search_bind_textdomain_codeset=$ac_res
28885 $as_echo "$as_me: failed program was:" >&5
28886 sed 's/^/| /' conftest.$ac_ext >&5
28891 rm -rf conftest.dSYM
28892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28894 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28898 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28901 ac_cv_search_bind_textdomain_codeset=no
28903 rm conftest.$ac_ext
28904 LIBS=$ac_func_search_save_LIBS
28906 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28907 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28908 ac_res=$ac_cv_search_bind_textdomain_codeset
28909 if test "$ac_res" != no; then
28910 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28913 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28914 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28915 { (exit 1); exit 1; }; }
28918 if test "${ac_cv_header_libintl_h+set}" = set; then
28919 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28920 $as_echo_n "checking for libintl.h... " >&6; }
28921 if test "${ac_cv_header_libintl_h+set}" = set; then
28922 $as_echo_n "(cached) " >&6
28924 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28925 $as_echo "$ac_cv_header_libintl_h" >&6; }
28927 # Is the header compilable?
28928 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28929 $as_echo_n "checking libintl.h usability... " >&6; }
28930 cat >conftest.$ac_ext <<_ACEOF
28933 cat confdefs.h >>conftest.$ac_ext
28934 cat >>conftest.$ac_ext <<_ACEOF
28935 /* end confdefs.h. */
28936 $ac_includes_default
28937 #include <libintl.h>
28939 rm -f conftest.$ac_objext
28940 if { (ac_try="$ac_compile"
28941 case "(($ac_try" in
28942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28943 *) ac_try_echo=$ac_try;;
28945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28946 $as_echo "$ac_try_echo") >&5
28947 (eval "$ac_compile") 2>conftest.er1
28949 grep -v '^ *+' conftest.er1 >conftest.err
28951 cat conftest.err >&5
28952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953 (exit $ac_status); } && {
28954 test -z "$ac_c_werror_flag" ||
28955 test ! -s conftest.err
28956 } && test -s conftest.$ac_objext; then
28957 ac_header_compiler=yes
28959 $as_echo "$as_me: failed program was:" >&5
28960 sed 's/^/| /' conftest.$ac_ext >&5
28962 ac_header_compiler=no
28965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28966 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28967 $as_echo "$ac_header_compiler" >&6; }
28969 # Is the header present?
28970 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28971 $as_echo_n "checking libintl.h presence... " >&6; }
28972 cat >conftest.$ac_ext <<_ACEOF
28975 cat confdefs.h >>conftest.$ac_ext
28976 cat >>conftest.$ac_ext <<_ACEOF
28977 /* end confdefs.h. */
28978 #include <libintl.h>
28980 if { (ac_try="$ac_cpp conftest.$ac_ext"
28981 case "(($ac_try" in
28982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28983 *) ac_try_echo=$ac_try;;
28985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28986 $as_echo "$ac_try_echo") >&5
28987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28989 grep -v '^ *+' conftest.er1 >conftest.err
28991 cat conftest.err >&5
28992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28993 (exit $ac_status); } >/dev/null && {
28994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28995 test ! -s conftest.err
28997 ac_header_preproc=yes
28999 $as_echo "$as_me: failed program was:" >&5
29000 sed 's/^/| /' conftest.$ac_ext >&5
29002 ac_header_preproc=no
29005 rm -f conftest.err conftest.$ac_ext
29006 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29007 $as_echo "$ac_header_preproc" >&6; }
29009 # So? What about this header?
29010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29012 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29013 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29014 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
29015 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
29016 ac_header_preproc=yes
29019 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
29020 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
29021 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
29022 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
29023 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
29024 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
29025 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
29026 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29027 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
29028 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
29029 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
29030 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
29032 ## ---------------------------------------- ##
29033 ## Report this to pgsql-bugs@postgresql.org ##
29034 ## ---------------------------------------- ##
29036 ) | sed "s/^/$as_me: WARNING: /" >&2
29039 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
29040 $as_echo_n "checking for libintl.h... " >&6; }
29041 if test "${ac_cv_header_libintl_h+set}" = set; then
29042 $as_echo_n "(cached) " >&6
29044 ac_cv_header_libintl_h=$ac_header_preproc
29046 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
29047 $as_echo "$ac_cv_header_libintl_h" >&6; }
29050 if test "x$ac_cv_header_libintl_h" = x""yes; then
29053 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
29054 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
29055 { (exit 1); exit 1; }; }
29059 for ac_prog in msgfmt
29061 # Extract the first word of "$ac_prog", so it can be a program name with args.
29062 set dummy $ac_prog; ac_word=$2
29063 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29064 $as_echo_n "checking for $ac_word... " >&6; }
29065 if test "${ac_cv_prog_MSGFMT+set}" = set; then
29066 $as_echo_n "(cached) " >&6
29068 if test -n "$MSGFMT"; then
29069 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
29071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29072 for as_dir in $PATH
29075 test -z "$as_dir" && as_dir=.
29076 for ac_exec_ext in '' $ac_executable_extensions; do
29077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29078 ac_cv_prog_MSGFMT="$ac_prog"
29079 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29088 MSGFMT=$ac_cv_prog_MSGFMT
29089 if test -n "$MSGFMT"; then
29090 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
29091 $as_echo "$MSGFMT" >&6; }
29093 { $as_echo "$as_me:$LINENO: result: no" >&5
29094 $as_echo "no" >&6; }
29098 test -n "$MSGFMT" && break
29101 if test -z "$MSGFMT"; then
29102 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
29103 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
29104 { (exit 1); exit 1; }; }
29106 for ac_prog in msgmerge
29108 # Extract the first word of "$ac_prog", so it can be a program name with args.
29109 set dummy $ac_prog; ac_word=$2
29110 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29111 $as_echo_n "checking for $ac_word... " >&6; }
29112 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
29113 $as_echo_n "(cached) " >&6
29115 if test -n "$MSGMERGE"; then
29116 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
29118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29119 for as_dir in $PATH
29122 test -z "$as_dir" && as_dir=.
29123 for ac_exec_ext in '' $ac_executable_extensions; do
29124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29125 ac_cv_prog_MSGMERGE="$ac_prog"
29126 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29135 MSGMERGE=$ac_cv_prog_MSGMERGE
29136 if test -n "$MSGMERGE"; then
29137 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
29138 $as_echo "$MSGMERGE" >&6; }
29140 { $as_echo "$as_me:$LINENO: result: no" >&5
29141 $as_echo "no" >&6; }
29145 test -n "$MSGMERGE" && break
29148 for ac_prog in xgettext
29150 # Extract the first word of "$ac_prog", so it can be a program name with args.
29151 set dummy $ac_prog; ac_word=$2
29152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29153 $as_echo_n "checking for $ac_word... " >&6; }
29154 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
29155 $as_echo_n "(cached) " >&6
29157 if test -n "$XGETTEXT"; then
29158 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
29160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29161 for as_dir in $PATH
29164 test -z "$as_dir" && as_dir=.
29165 for ac_exec_ext in '' $ac_executable_extensions; do
29166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29167 ac_cv_prog_XGETTEXT="$ac_prog"
29168 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29177 XGETTEXT=$ac_cv_prog_XGETTEXT
29178 if test -n "$XGETTEXT"; then
29179 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
29180 $as_echo "$XGETTEXT" >&6; }
29182 { $as_echo "$as_me:$LINENO: result: no" >&5
29183 $as_echo "no" >&6; }
29187 test -n "$XGETTEXT" && break
29193 # Check for Tcl configuration script tclConfig.sh
29194 if test "$with_tcl" = yes; then
29195 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
29197 # Extract the first word of "$ac_prog", so it can be a program name with args.
29198 set dummy $ac_prog; ac_word=$2
29199 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29200 $as_echo_n "checking for $ac_word... " >&6; }
29201 if test "${ac_cv_path_TCLSH+set}" = set; then
29202 $as_echo_n "(cached) " >&6
29206 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
29209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29210 for as_dir in $PATH
29213 test -z "$as_dir" && as_dir=.
29214 for ac_exec_ext in '' $ac_executable_extensions; do
29215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29216 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
29217 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29227 TCLSH=$ac_cv_path_TCLSH
29228 if test -n "$TCLSH"; then
29229 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
29230 $as_echo "$TCLSH" >&6; }
29232 { $as_echo "$as_me:$LINENO: result: no" >&5
29233 $as_echo "no" >&6; }
29237 test -n "$TCLSH" && break
29240 if test x"$TCLSH" = x""; then
29241 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
29242 $as_echo "$as_me: error: Tcl shell not found" >&2;}
29243 { (exit 1); exit 1; }; }
29246 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
29247 $as_echo_n "checking for tclConfig.sh... " >&6; }
29248 # Let user override test
29249 if test -z "$TCL_CONFIG_SH"; then
29250 pgac_test_dirs="$with_tclconfig"
29252 set X $pgac_test_dirs; shift
29253 if test $# -eq 0; then
29254 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
29255 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
29256 { (exit 1); exit 1; }; }
29257 set X `echo 'puts $auto_path' | $TCLSH`; shift
29261 if test -r "$pgac_dir/tclConfig.sh"; then
29262 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
29268 if test -z "$TCL_CONFIG_SH"; then
29269 { $as_echo "$as_me:$LINENO: result: no" >&5
29270 $as_echo "no" >&6; }
29271 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
29272 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
29273 { (exit 1); exit 1; }; }
29275 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
29276 $as_echo "$TCL_CONFIG_SH" >&6; }
29282 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
29283 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
29284 eval TCL_LIBS=\"$TCL_LIBS\"
29285 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
29286 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
29288 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
29289 ac_save_CPPFLAGS=$CPPFLAGS
29290 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
29291 if test "${ac_cv_header_tcl_h+set}" = set; then
29292 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29293 $as_echo_n "checking for tcl.h... " >&6; }
29294 if test "${ac_cv_header_tcl_h+set}" = set; then
29295 $as_echo_n "(cached) " >&6
29297 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29298 $as_echo "$ac_cv_header_tcl_h" >&6; }
29300 # Is the header compilable?
29301 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
29302 $as_echo_n "checking tcl.h usability... " >&6; }
29303 cat >conftest.$ac_ext <<_ACEOF
29306 cat confdefs.h >>conftest.$ac_ext
29307 cat >>conftest.$ac_ext <<_ACEOF
29308 /* end confdefs.h. */
29309 $ac_includes_default
29312 rm -f conftest.$ac_objext
29313 if { (ac_try="$ac_compile"
29314 case "(($ac_try" in
29315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29316 *) ac_try_echo=$ac_try;;
29318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29319 $as_echo "$ac_try_echo") >&5
29320 (eval "$ac_compile") 2>conftest.er1
29322 grep -v '^ *+' conftest.er1 >conftest.err
29324 cat conftest.err >&5
29325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326 (exit $ac_status); } && {
29327 test -z "$ac_c_werror_flag" ||
29328 test ! -s conftest.err
29329 } && test -s conftest.$ac_objext; then
29330 ac_header_compiler=yes
29332 $as_echo "$as_me: failed program was:" >&5
29333 sed 's/^/| /' conftest.$ac_ext >&5
29335 ac_header_compiler=no
29338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29339 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29340 $as_echo "$ac_header_compiler" >&6; }
29342 # Is the header present?
29343 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
29344 $as_echo_n "checking tcl.h presence... " >&6; }
29345 cat >conftest.$ac_ext <<_ACEOF
29348 cat confdefs.h >>conftest.$ac_ext
29349 cat >>conftest.$ac_ext <<_ACEOF
29350 /* end confdefs.h. */
29353 if { (ac_try="$ac_cpp conftest.$ac_ext"
29354 case "(($ac_try" in
29355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29356 *) ac_try_echo=$ac_try;;
29358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29359 $as_echo "$ac_try_echo") >&5
29360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29362 grep -v '^ *+' conftest.er1 >conftest.err
29364 cat conftest.err >&5
29365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29366 (exit $ac_status); } >/dev/null && {
29367 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29368 test ! -s conftest.err
29370 ac_header_preproc=yes
29372 $as_echo "$as_me: failed program was:" >&5
29373 sed 's/^/| /' conftest.$ac_ext >&5
29375 ac_header_preproc=no
29378 rm -f conftest.err conftest.$ac_ext
29379 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29380 $as_echo "$ac_header_preproc" >&6; }
29382 # So? What about this header?
29383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29385 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29386 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29387 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
29388 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
29389 ac_header_preproc=yes
29392 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
29393 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
29394 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
29395 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
29396 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
29397 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
29398 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
29399 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29400 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
29401 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
29402 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
29403 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
29405 ## ---------------------------------------- ##
29406 ## Report this to pgsql-bugs@postgresql.org ##
29407 ## ---------------------------------------- ##
29409 ) | sed "s/^/$as_me: WARNING: /" >&2
29412 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29413 $as_echo_n "checking for tcl.h... " >&6; }
29414 if test "${ac_cv_header_tcl_h+set}" = set; then
29415 $as_echo_n "(cached) " >&6
29417 ac_cv_header_tcl_h=$ac_header_preproc
29419 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29420 $as_echo "$ac_cv_header_tcl_h" >&6; }
29423 if test "x$ac_cv_header_tcl_h" = x""yes; then
29426 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
29427 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
29428 { (exit 1); exit 1; }; }
29432 CPPFLAGS=$ac_save_CPPFLAGS
29435 # check for <perl.h>
29436 if test "$with_perl" = yes; then
29437 ac_save_CPPFLAGS=$CPPFLAGS
29438 CPPFLAGS="$CPPFLAGS -I$perl_archlibexp/CORE"
29439 { $as_echo "$as_me:$LINENO: checking for perl.h" >&5
29440 $as_echo_n "checking for perl.h... " >&6; }
29441 if test "${ac_cv_header_perl_h+set}" = set; then
29442 $as_echo_n "(cached) " >&6
29444 cat >conftest.$ac_ext <<_ACEOF
29447 cat confdefs.h >>conftest.$ac_ext
29448 cat >>conftest.$ac_ext <<_ACEOF
29449 /* end confdefs.h. */
29450 #include <EXTERN.h>
29454 rm -f conftest.$ac_objext
29455 if { (ac_try="$ac_compile"
29456 case "(($ac_try" in
29457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29458 *) ac_try_echo=$ac_try;;
29460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29461 $as_echo "$ac_try_echo") >&5
29462 (eval "$ac_compile") 2>conftest.er1
29464 grep -v '^ *+' conftest.er1 >conftest.err
29466 cat conftest.err >&5
29467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468 (exit $ac_status); } && {
29469 test -z "$ac_c_werror_flag" ||
29470 test ! -s conftest.err
29471 } && test -s conftest.$ac_objext; then
29472 ac_cv_header_perl_h=yes
29474 $as_echo "$as_me: failed program was:" >&5
29475 sed 's/^/| /' conftest.$ac_ext >&5
29477 ac_cv_header_perl_h=no
29480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29482 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_perl_h" >&5
29483 $as_echo "$ac_cv_header_perl_h" >&6; }
29484 if test "x$ac_cv_header_perl_h" = x""yes; then
29487 { { $as_echo "$as_me:$LINENO: error: header file <perl.h> is required for Perl" >&5
29488 $as_echo "$as_me: error: header file <perl.h> is required for Perl" >&2;}
29489 { (exit 1); exit 1; }; }
29493 # While we're at it, check that we can link to libperl.
29494 # On most platforms, if perl.h is there then libperl.so will be too, but at
29495 # this writing Debian packages them separately. There is no known reason to
29496 # waste cycles on separate probes for the Tcl or Python libraries, though.
29497 pgac_save_LIBS=$LIBS
29498 LIBS="$perl_embed_ldflags"
29499 { $as_echo "$as_me:$LINENO: checking for libperl" >&5
29500 $as_echo_n "checking for libperl... " >&6; }
29501 cat >conftest.$ac_ext <<_ACEOF
29504 cat confdefs.h >>conftest.$ac_ext
29505 cat >>conftest.$ac_ext <<_ACEOF
29506 /* end confdefs.h. */
29508 #include <EXTERN.h>
29519 rm -f conftest.$ac_objext conftest$ac_exeext
29520 if { (ac_try="$ac_link"
29521 case "(($ac_try" in
29522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29523 *) ac_try_echo=$ac_try;;
29525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29526 $as_echo "$ac_try_echo") >&5
29527 (eval "$ac_link") 2>conftest.er1
29529 grep -v '^ *+' conftest.er1 >conftest.err
29531 cat conftest.err >&5
29532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29533 (exit $ac_status); } && {
29534 test -z "$ac_c_werror_flag" ||
29535 test ! -s conftest.err
29536 } && test -s conftest$ac_exeext && {
29537 test "$cross_compiling" = yes ||
29538 $as_test_x conftest$ac_exeext
29540 { $as_echo "$as_me:$LINENO: result: yes" >&5
29541 $as_echo "yes" >&6; }
29543 $as_echo "$as_me: failed program was:" >&5
29544 sed 's/^/| /' conftest.$ac_ext >&5
29546 { $as_echo "$as_me:$LINENO: result: no" >&5
29547 $as_echo "no" >&6; }
29548 { { $as_echo "$as_me:$LINENO: error: libperl library is required for Perl" >&5
29549 $as_echo "$as_me: error: libperl library is required for Perl" >&2;}
29550 { (exit 1); exit 1; }; }
29553 rm -rf conftest.dSYM
29554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29555 conftest$ac_exeext conftest.$ac_ext
29556 LIBS=$pgac_save_LIBS
29557 CPPFLAGS=$ac_save_CPPFLAGS
29560 # check for <Python.h>
29561 if test "$with_python" = yes; then
29562 ac_save_CPPFLAGS=$CPPFLAGS
29563 CPPFLAGS="$python_includespec $CPPFLAGS"
29564 if test "${ac_cv_header_Python_h+set}" = set; then
29565 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29566 $as_echo_n "checking for Python.h... " >&6; }
29567 if test "${ac_cv_header_Python_h+set}" = set; then
29568 $as_echo_n "(cached) " >&6
29570 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29571 $as_echo "$ac_cv_header_Python_h" >&6; }
29573 # Is the header compilable?
29574 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
29575 $as_echo_n "checking Python.h usability... " >&6; }
29576 cat >conftest.$ac_ext <<_ACEOF
29579 cat confdefs.h >>conftest.$ac_ext
29580 cat >>conftest.$ac_ext <<_ACEOF
29581 /* end confdefs.h. */
29582 $ac_includes_default
29583 #include <Python.h>
29585 rm -f conftest.$ac_objext
29586 if { (ac_try="$ac_compile"
29587 case "(($ac_try" in
29588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29589 *) ac_try_echo=$ac_try;;
29591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29592 $as_echo "$ac_try_echo") >&5
29593 (eval "$ac_compile") 2>conftest.er1
29595 grep -v '^ *+' conftest.er1 >conftest.err
29597 cat conftest.err >&5
29598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29599 (exit $ac_status); } && {
29600 test -z "$ac_c_werror_flag" ||
29601 test ! -s conftest.err
29602 } && test -s conftest.$ac_objext; then
29603 ac_header_compiler=yes
29605 $as_echo "$as_me: failed program was:" >&5
29606 sed 's/^/| /' conftest.$ac_ext >&5
29608 ac_header_compiler=no
29611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29612 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29613 $as_echo "$ac_header_compiler" >&6; }
29615 # Is the header present?
29616 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
29617 $as_echo_n "checking Python.h presence... " >&6; }
29618 cat >conftest.$ac_ext <<_ACEOF
29621 cat confdefs.h >>conftest.$ac_ext
29622 cat >>conftest.$ac_ext <<_ACEOF
29623 /* end confdefs.h. */
29624 #include <Python.h>
29626 if { (ac_try="$ac_cpp conftest.$ac_ext"
29627 case "(($ac_try" in
29628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29629 *) ac_try_echo=$ac_try;;
29631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29632 $as_echo "$ac_try_echo") >&5
29633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29635 grep -v '^ *+' conftest.er1 >conftest.err
29637 cat conftest.err >&5
29638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29639 (exit $ac_status); } >/dev/null && {
29640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29641 test ! -s conftest.err
29643 ac_header_preproc=yes
29645 $as_echo "$as_me: failed program was:" >&5
29646 sed 's/^/| /' conftest.$ac_ext >&5
29648 ac_header_preproc=no
29651 rm -f conftest.err conftest.$ac_ext
29652 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29653 $as_echo "$ac_header_preproc" >&6; }
29655 # So? What about this header?
29656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29658 { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
29659 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29660 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
29661 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
29662 ac_header_preproc=yes
29665 { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
29666 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
29667 { $as_echo "$as_me:$LINENO: WARNING: Python.h: check for missing prerequisite headers?" >&5
29668 $as_echo "$as_me: WARNING: Python.h: check for missing prerequisite headers?" >&2;}
29669 { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29670 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29671 { $as_echo "$as_me:$LINENO: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&5
29672 $as_echo "$as_me: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&2;}
29673 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29674 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29675 { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29676 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29678 ## ---------------------------------------- ##
29679 ## Report this to pgsql-bugs@postgresql.org ##
29680 ## ---------------------------------------- ##
29682 ) | sed "s/^/$as_me: WARNING: /" >&2
29685 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29686 $as_echo_n "checking for Python.h... " >&6; }
29687 if test "${ac_cv_header_Python_h+set}" = set; then
29688 $as_echo_n "(cached) " >&6
29690 ac_cv_header_Python_h=$ac_header_preproc
29692 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29693 $as_echo "$ac_cv_header_Python_h" >&6; }
29696 if test "x$ac_cv_header_Python_h" = x""yes; then
29699 { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29700 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29701 { (exit 1); exit 1; }; }
29705 CPPFLAGS=$ac_save_CPPFLAGS
29709 # Check for DocBook and tools
29711 for ac_prog in onsgmls nsgmls
29713 # Extract the first word of "$ac_prog", so it can be a program name with args.
29714 set dummy $ac_prog; ac_word=$2
29715 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29716 $as_echo_n "checking for $ac_word... " >&6; }
29717 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29718 $as_echo_n "(cached) " >&6
29720 if test -n "$NSGMLS"; then
29721 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29724 for as_dir in $PATH
29727 test -z "$as_dir" && as_dir=.
29728 for ac_exec_ext in '' $ac_executable_extensions; do
29729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29730 ac_cv_prog_NSGMLS="$ac_prog"
29731 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29740 NSGMLS=$ac_cv_prog_NSGMLS
29741 if test -n "$NSGMLS"; then
29742 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29743 $as_echo "$NSGMLS" >&6; }
29745 { $as_echo "$as_me:$LINENO: result: no" >&5
29746 $as_echo "no" >&6; }
29750 test -n "$NSGMLS" && break
29753 for ac_prog in openjade jade
29755 # Extract the first word of "$ac_prog", so it can be a program name with args.
29756 set dummy $ac_prog; ac_word=$2
29757 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29758 $as_echo_n "checking for $ac_word... " >&6; }
29759 if test "${ac_cv_prog_JADE+set}" = set; then
29760 $as_echo_n "(cached) " >&6
29762 if test -n "$JADE"; then
29763 ac_cv_prog_JADE="$JADE" # Let the user override the test.
29765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29766 for as_dir in $PATH
29769 test -z "$as_dir" && as_dir=.
29770 for ac_exec_ext in '' $ac_executable_extensions; do
29771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29772 ac_cv_prog_JADE="$ac_prog"
29773 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29782 JADE=$ac_cv_prog_JADE
29783 if test -n "$JADE"; then
29784 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
29785 $as_echo "$JADE" >&6; }
29787 { $as_echo "$as_me:$LINENO: result: no" >&5
29788 $as_echo "no" >&6; }
29792 test -n "$JADE" && break
29796 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
29797 $as_echo_n "checking for DocBook V4.2... " >&6; }
29798 if test "${pgac_cv_check_docbook+set}" = set; then
29799 $as_echo_n "(cached) " >&6
29801 cat >conftest.sgml <<EOF
29802 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
29804 <title>test</title>
29806 <title>random</title>
29808 <title>testsect</title>
29815 pgac_cv_check_docbook=no
29817 if test -n "$NSGMLS"; then
29818 $NSGMLS -s conftest.sgml 1>&5 2>&1
29819 if test $? -eq 0; then
29820 pgac_cv_check_docbook=yes
29823 rm -f conftest.sgml
29825 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
29826 $as_echo "$pgac_cv_check_docbook" >&6; }
29828 have_docbook=$pgac_cv_check_docbook
29831 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
29832 $as_echo_n "checking for DocBook stylesheets... " >&6; }
29833 if test "${pgac_cv_path_stylesheets+set}" = set; then
29834 $as_echo_n "(cached) " >&6
29836 if test -n "$DOCBOOKSTYLE"; then
29837 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
29839 for pgac_prefix in /usr /usr/local /opt /sw; do
29840 for pgac_infix in share lib; do
29841 for pgac_postfix in \
29842 sgml/stylesheets/nwalsh-modular \
29843 sgml/stylesheets/docbook \
29844 sgml/stylesheets/dsssl/docbook \
29845 sgml/docbook-dsssl \
29846 sgml/docbook/dsssl/modular \
29847 sgml/docbook/stylesheet/dsssl/modular \
29848 sgml/docbook/dsssl-stylesheets \
29849 sgml/dsssl/docbook-dsssl-nwalsh
29851 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
29852 if test -r "$pgac_candidate/html/docbook.dsl" \
29853 && test -r "$pgac_candidate/print/docbook.dsl"
29855 pgac_cv_path_stylesheets=$pgac_candidate
29864 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
29866 if test -n "$DOCBOOKSTYLE"; then
29867 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
29868 $as_echo "$DOCBOOKSTYLE" >&6; }
29870 { $as_echo "$as_me:$LINENO: result: no" >&5
29871 $as_echo "no" >&6; }
29873 if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then
29874 COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl"
29877 # Extract the first word of "collateindex.pl", so it can be a program name with args.
29878 set dummy collateindex.pl; ac_word=$2
29879 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29880 $as_echo_n "checking for $ac_word... " >&6; }
29881 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29882 $as_echo_n "(cached) " >&6
29884 case $COLLATEINDEX in
29886 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29890 for as_dir in $PATH
29893 test -z "$as_dir" && as_dir=.
29894 for ac_exec_ext in '' $ac_executable_extensions; do
29895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29896 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29897 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29907 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29908 if test -n "$COLLATEINDEX"; then
29909 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29910 $as_echo "$COLLATEINDEX" >&6; }
29912 { $as_echo "$as_me:$LINENO: result: no" >&5
29913 $as_echo "no" >&6; }
29918 for ac_prog in xsltproc
29920 # Extract the first word of "$ac_prog", so it can be a program name with args.
29921 set dummy $ac_prog; ac_word=$2
29922 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29923 $as_echo_n "checking for $ac_word... " >&6; }
29924 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
29925 $as_echo_n "(cached) " >&6
29927 if test -n "$XSLTPROC"; then
29928 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
29930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29931 for as_dir in $PATH
29934 test -z "$as_dir" && as_dir=.
29935 for ac_exec_ext in '' $ac_executable_extensions; do
29936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29937 ac_cv_prog_XSLTPROC="$ac_prog"
29938 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29947 XSLTPROC=$ac_cv_prog_XSLTPROC
29948 if test -n "$XSLTPROC"; then
29949 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
29950 $as_echo "$XSLTPROC" >&6; }
29952 { $as_echo "$as_me:$LINENO: result: no" >&5
29953 $as_echo "no" >&6; }
29957 test -n "$XSLTPROC" && break
29960 for ac_prog in osx sgml2xml sx
29962 # Extract the first word of "$ac_prog", so it can be a program name with args.
29963 set dummy $ac_prog; ac_word=$2
29964 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29965 $as_echo_n "checking for $ac_word... " >&6; }
29966 if test "${ac_cv_prog_OSX+set}" = set; then
29967 $as_echo_n "(cached) " >&6
29969 if test -n "$OSX"; then
29970 ac_cv_prog_OSX="$OSX" # Let the user override the test.
29972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29973 for as_dir in $PATH
29976 test -z "$as_dir" && as_dir=.
29977 for ac_exec_ext in '' $ac_executable_extensions; do
29978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29979 ac_cv_prog_OSX="$ac_prog"
29980 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29989 OSX=$ac_cv_prog_OSX
29990 if test -n "$OSX"; then
29991 { $as_echo "$as_me:$LINENO: result: $OSX" >&5
29992 $as_echo "$OSX" >&6; }
29994 { $as_echo "$as_me:$LINENO: result: no" >&5
29995 $as_echo "no" >&6; }
29999 test -n "$OSX" && break
30005 # We have to run the thread test near the end so we have all our symbols
30006 # defined. Cross compiling throws a warning.
30008 if test "$enable_thread_safety" = yes; then
30009 if test "$PORTNAME" != "win32"
30011 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
30012 $as_echo_n "checking thread safety of required library functions... " >&6; }
30016 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
30017 LIBS="$LIBS $PTHREAD_LIBS"
30018 if test "$cross_compiling" = yes; then
30019 { $as_echo "$as_me:$LINENO: result: maybe" >&5
30020 $as_echo "maybe" >&6; }
30021 { $as_echo "$as_me:$LINENO: WARNING:
30022 *** Skipping thread test program because of cross-compile build.
30023 *** Run the program in src/test/thread on the target machine.
30025 $as_echo "$as_me: WARNING:
30026 *** Skipping thread test program because of cross-compile build.
30027 *** Run the program in src/test/thread on the target machine.
30030 cat >conftest.$ac_ext <<_ACEOF
30033 cat confdefs.h >>conftest.$ac_ext
30034 cat >>conftest.$ac_ext <<_ACEOF
30035 /* end confdefs.h. */
30036 #include "$srcdir/src/test/thread/thread_test.c"
30038 rm -f conftest$ac_exeext
30039 if { (ac_try="$ac_link"
30040 case "(($ac_try" in
30041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30042 *) ac_try_echo=$ac_try;;
30044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30045 $as_echo "$ac_try_echo") >&5
30046 (eval "$ac_link") 2>&5
30048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30050 { (case "(($ac_try" in
30051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30052 *) ac_try_echo=$ac_try;;
30054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30055 $as_echo "$ac_try_echo") >&5
30056 (eval "$ac_try") 2>&5
30058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059 (exit $ac_status); }; }; then
30060 { $as_echo "$as_me:$LINENO: result: yes" >&5
30061 $as_echo "yes" >&6; }
30063 $as_echo "$as_me: program exited with status $ac_status" >&5
30064 $as_echo "$as_me: failed program was:" >&5
30065 sed 's/^/| /' conftest.$ac_ext >&5
30067 ( exit $ac_status )
30068 { $as_echo "$as_me:$LINENO: result: no" >&5
30069 $as_echo "no" >&6; }
30070 { { $as_echo "$as_me:$LINENO: error: thread test program failed
30071 This platform is not thread-safe. Check the file 'config.log' or compile
30072 and run src/test/thread/thread_test for the exact reason.
30073 Use --disable-thread-safety to disable thread safety." >&5
30074 $as_echo "$as_me: error: thread test program failed
30075 This platform is not thread-safe. Check the file 'config.log' or compile
30076 and run src/test/thread/thread_test for the exact reason.
30077 Use --disable-thread-safety to disable thread safety." >&2;}
30078 { (exit 1); exit 1; }; }
30080 rm -rf conftest.dSYM
30081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30088 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
30089 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
30093 # If compiler will take -Wl,--as-needed (or various platform-specific
30094 # spellings thereof) then add that to LDFLAGS. This is much easier than
30095 # trying to filter LIBS to the minimum for each executable.
30096 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
30097 # libreadline; therefore we postpone testing it until we know what library
30098 # dependencies readline has. The test code will try to link with $LIBS.
30099 if test "$with_readline" = yes; then
30100 link_test_func=readline
30102 link_test_func=exit
30105 if test "$PORTNAME" = "darwin"; then
30106 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
30107 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
30108 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
30109 $as_echo_n "(cached) " >&6
30111 pgac_save_LDFLAGS=$LDFLAGS
30112 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
30113 if test "$cross_compiling" = yes; then
30114 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
30116 cat >conftest.$ac_ext <<_ACEOF
30119 cat confdefs.h >>conftest.$ac_ext
30120 cat >>conftest.$ac_ext <<_ACEOF
30121 /* end confdefs.h. */
30122 extern void $link_test_func (); void (*fptr) () = $link_test_func;
30131 rm -f conftest$ac_exeext
30132 if { (ac_try="$ac_link"
30133 case "(($ac_try" in
30134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30135 *) ac_try_echo=$ac_try;;
30137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30138 $as_echo "$ac_try_echo") >&5
30139 (eval "$ac_link") 2>&5
30141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30143 { (case "(($ac_try" in
30144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30145 *) ac_try_echo=$ac_try;;
30147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30148 $as_echo "$ac_try_echo") >&5
30149 (eval "$ac_try") 2>&5
30151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30152 (exit $ac_status); }; }; then
30153 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
30155 $as_echo "$as_me: program exited with status $ac_status" >&5
30156 $as_echo "$as_me: failed program was:" >&5
30157 sed 's/^/| /' conftest.$ac_ext >&5
30159 ( exit $ac_status )
30160 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
30162 rm -rf conftest.dSYM
30163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30167 LDFLAGS="$pgac_save_LDFLAGS"
30169 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
30170 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
30171 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
30172 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
30175 elif test "$PORTNAME" = "openbsd"; then
30176 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
30177 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
30178 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
30179 $as_echo_n "(cached) " >&6
30181 pgac_save_LDFLAGS=$LDFLAGS
30182 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
30183 if test "$cross_compiling" = yes; then
30184 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
30186 cat >conftest.$ac_ext <<_ACEOF
30189 cat confdefs.h >>conftest.$ac_ext
30190 cat >>conftest.$ac_ext <<_ACEOF
30191 /* end confdefs.h. */
30192 extern void $link_test_func (); void (*fptr) () = $link_test_func;
30201 rm -f conftest$ac_exeext
30202 if { (ac_try="$ac_link"
30203 case "(($ac_try" in
30204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30205 *) ac_try_echo=$ac_try;;
30207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30208 $as_echo "$ac_try_echo") >&5
30209 (eval "$ac_link") 2>&5
30211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30213 { (case "(($ac_try" in
30214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30215 *) ac_try_echo=$ac_try;;
30217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30218 $as_echo "$ac_try_echo") >&5
30219 (eval "$ac_try") 2>&5
30221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222 (exit $ac_status); }; }; then
30223 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
30225 $as_echo "$as_me: program exited with status $ac_status" >&5
30226 $as_echo "$as_me: failed program was:" >&5
30227 sed 's/^/| /' conftest.$ac_ext >&5
30229 ( exit $ac_status )
30230 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
30232 rm -rf conftest.dSYM
30233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30237 LDFLAGS="$pgac_save_LDFLAGS"
30239 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
30240 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
30241 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
30242 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
30246 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
30247 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
30248 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
30249 $as_echo_n "(cached) " >&6
30251 pgac_save_LDFLAGS=$LDFLAGS
30252 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
30253 if test "$cross_compiling" = yes; then
30254 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
30256 cat >conftest.$ac_ext <<_ACEOF
30259 cat confdefs.h >>conftest.$ac_ext
30260 cat >>conftest.$ac_ext <<_ACEOF
30261 /* end confdefs.h. */
30262 extern void $link_test_func (); void (*fptr) () = $link_test_func;
30271 rm -f conftest$ac_exeext
30272 if { (ac_try="$ac_link"
30273 case "(($ac_try" in
30274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30275 *) ac_try_echo=$ac_try;;
30277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30278 $as_echo "$ac_try_echo") >&5
30279 (eval "$ac_link") 2>&5
30281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30283 { (case "(($ac_try" in
30284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30285 *) ac_try_echo=$ac_try;;
30287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30288 $as_echo "$ac_try_echo") >&5
30289 (eval "$ac_try") 2>&5
30291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30292 (exit $ac_status); }; }; then
30293 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
30295 $as_echo "$as_me: program exited with status $ac_status" >&5
30296 $as_echo "$as_me: failed program was:" >&5
30297 sed 's/^/| /' conftest.$ac_ext >&5
30299 ( exit $ac_status )
30300 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
30302 rm -rf conftest.dSYM
30303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30307 LDFLAGS="$pgac_save_LDFLAGS"
30309 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
30310 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
30311 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
30312 LDFLAGS="$LDFLAGS -Wl,--as-needed"
30317 # Create compiler version string
30318 if test x"$GCC" = x"yes" ; then
30319 cc_string=`${CC} --version | sed q`
30320 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
30321 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
30322 cc_string=`${CC} -V 2>&1 | sed q`
30328 cat >>confdefs.h <<_ACEOF
30329 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
30333 # Supply a numeric version string for use by 3rd party add-ons
30334 # awk -F is a regex on some platforms, and not on others, so make "." a tab
30335 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
30337 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
30339 cat >>confdefs.h <<_ACEOF
30340 #define PG_VERSION_NUM $PG_VERSION_NUM
30345 # Begin output steps
30347 { $as_echo "$as_me:$LINENO: using compiler=$cc_string" >&5
30348 $as_echo "$as_me: using compiler=$cc_string" >&6;}
30349 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
30350 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
30351 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
30352 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
30353 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
30354 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
30356 # prepare build tree if outside source tree
30357 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
30358 # Note 2: /bin/pwd might be better than shell's built-in at getting
30359 # a symlink-free name.
30360 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
30364 if test "$no_create" != yes; then
30365 $as_echo_n "preparing build tree... " >&6
30366 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
30367 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
30368 || { { $as_echo "$as_me:$LINENO: error: failed" >&5
30369 $as_echo "$as_me: error: failed" >&2;}
30370 { (exit 1); exit 1; }; }
30371 { $as_echo "$as_me:$LINENO: result: done" >&5
30372 $as_echo "done" >&6; }
30378 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
30381 ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
30384 if test "$PORTNAME" = "win32"; then
30385 ac_config_commands="$ac_config_commands check_win32_symlinks"
30389 ac_config_headers="$ac_config_headers src/include/pg_config.h"
30392 ac_config_headers="$ac_config_headers src/include/pg_config_ext.h"
30395 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
30398 cat >confcache <<\_ACEOF
30399 # This file is a shell script that caches the results of configure
30400 # tests run on this system so they can be shared between configure
30401 # scripts and configure runs, see configure's option --config-cache.
30402 # It is not useful on other systems. If it contains results you don't
30403 # want to keep, you may remove or edit it.
30405 # config.status only pays attention to the cache file if you give it
30406 # the --recheck option to rerun configure.
30408 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30409 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30410 # following values.
30414 # The following way of writing the cache mishandles newlines in values,
30415 # but we know of no workaround that is simple, portable, and efficient.
30416 # So, we kill variables containing newlines.
30417 # Ultrix sh set writes to stderr and can't be redirected directly,
30418 # and sets the high bit in the cache file unless we assign to the vars.
30420 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30421 eval ac_val=\$$ac_var
30425 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
30426 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30429 _ | IFS | as_nl) ;; #(
30430 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30431 *) $as_unset $ac_var ;;
30437 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30438 *${as_nl}ac_space=\ *)
30439 # `set' does not quote correctly, so add quotes (double-quote
30440 # substitution turns \\\\ into \\, and sed turns \\ into \).
30443 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30446 # `set' quotes correctly as required by POSIX, so do not add quotes.
30447 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30456 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30458 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30460 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30461 if test -w "$cache_file"; then
30462 test "x$cache_file" != "x/dev/null" &&
30463 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
30464 $as_echo "$as_me: updating cache $cache_file" >&6;}
30465 cat confcache >$cache_file
30467 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30468 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30473 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30474 # Let make expand exec_prefix.
30475 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30477 DEFS=-DHAVE_CONFIG_H
30481 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30482 # 1. Remove the extension, and $U if already installed.
30483 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30484 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30485 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30486 # will be set to the directory where LIBOBJS objects are built.
30487 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30488 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30490 LIBOBJS=$ac_libobjs
30492 LTLIBOBJS=$ac_ltlibobjs
30497 : ${CONFIG_STATUS=./config.status}
30499 ac_clean_files_save=$ac_clean_files
30500 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30501 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30502 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30503 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30505 # Generated by $as_me.
30506 # Run this file to recreate the current configuration.
30507 # Compiler output produced by configure, useful for debugging
30508 # configure, is in config.log if it exists.
30511 ac_cs_recheck=false
30513 SHELL=\${CONFIG_SHELL-$SHELL}
30516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30517 ## --------------------- ##
30518 ## M4sh Initialization. ##
30519 ## --------------------- ##
30521 # Be more Bourne compatible
30522 DUALCASE=1; export DUALCASE # for MKS sh
30523 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30526 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30527 # is contrary to our usage. Disable this feature.
30528 alias -g '${1+"$@"}'='"$@"'
30529 setopt NO_GLOB_SUBST
30531 case `(set -o) 2>/dev/null` in
30532 *posix*) set -o posix ;;
30541 # Avoid depending upon Character Ranges.
30542 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30543 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30544 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30545 as_cr_digits='0123456789'
30546 as_cr_alnum=$as_cr_Letters$as_cr_digits
30551 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30552 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30553 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30554 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30555 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30556 as_echo='printf %s\n'
30557 as_echo_n='printf %s'
30559 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30560 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30561 as_echo_n='/usr/ucb/echo -n'
30563 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30564 as_echo_n_body='eval
30568 expr "X$arg" : "X\\(.*\\)$as_nl";
30569 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30571 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30573 export as_echo_n_body
30574 as_echo_n='sh -c $as_echo_n_body as_echo'
30576 export as_echo_body
30577 as_echo='sh -c $as_echo_body as_echo'
30580 # The user is always right.
30581 if test "${PATH_SEPARATOR+set}" != set; then
30583 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30584 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30589 # Support unset when possible.
30590 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30598 # We need space, tab and new line, in precisely that order. Quoting is
30599 # there to prevent editors from complaining about space-tab.
30600 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30601 # splitting by setting IFS to empty value.)
30604 # Find who we are. Look in the path if we contain no directory separator.
30606 *[\\/]* ) as_myself=$0 ;;
30607 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30608 for as_dir in $PATH
30611 test -z "$as_dir" && as_dir=.
30612 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30618 # We did not find ourselves, most probably we were run as `sh COMMAND'
30619 # in which case we are not to be found in the path.
30620 if test "x$as_myself" = x; then
30623 if test ! -f "$as_myself"; then
30624 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30625 { (exit 1); exit 1; }
30628 # Work around bugs in pre-3.0 UWIN ksh.
30629 for as_var in ENV MAIL MAILPATH
30630 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30642 # Required to use basename.
30643 if expr a : '\(a\)' >/dev/null 2>&1 &&
30644 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30650 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30651 as_basename=basename
30657 # Name of the executable.
30658 as_me=`$as_basename -- "$0" ||
30659 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30660 X"$0" : 'X\(//\)$' \| \
30661 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30663 sed '/^.*\/\([^/][^/]*\)\/*$/{
30682 as_lineno_1=$LINENO
30683 as_lineno_2=$LINENO
30684 test "x$as_lineno_1" != "x$as_lineno_2" &&
30685 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30687 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30688 # uniformly replaced by the line number. The first 'sed' inserts a
30689 # line-number line after each line using $LINENO; the second 'sed'
30690 # does the real work. The second script uses 'N' to pair each
30691 # line-number line with the line containing $LINENO, and appends
30692 # trailing '-' during substitution so that $LINENO is not a special
30693 # case at line end.
30694 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30695 # scripts with optimization help from Paolo Bonzini. Blame Lee
30696 # E. McMahon (1931-1989) for sed's syntax. :-)
30708 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30711 ' >$as_me.lineno &&
30712 chmod +x "$as_me.lineno" ||
30713 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30714 { (exit 1); exit 1; }; }
30716 # Don't try to exec as it changes $[0], causing all sort of problems
30717 # (the dirname of $[0] is not the place where we might find the
30718 # original and so on. Autoconf is especially sensitive to this).
30719 . "./$as_me.lineno"
30720 # Exit status is that of the last command.
30725 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30731 ECHO_C= ECHO_N= ECHO_T=
30732 case `echo -n x` in
30734 case `echo 'x\c'` in
30735 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30741 if expr a : '\(a\)' >/dev/null 2>&1 &&
30742 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30748 rm -f conf$$ conf$$.exe conf$$.file
30749 if test -d conf$$.dir; then
30750 rm -f conf$$.dir/conf$$.file
30753 mkdir conf$$.dir 2>/dev/null
30755 if (echo >conf$$.file) 2>/dev/null; then
30756 if ln -s conf$$.file conf$$ 2>/dev/null; then
30758 # ... but there are two gotchas:
30759 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30760 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30761 # In both cases, we have to default to `cp -p'.
30762 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30764 elif ln conf$$.file conf$$ 2>/dev/null; then
30772 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30773 rmdir conf$$.dir 2>/dev/null
30775 if mkdir -p . 2>/dev/null; then
30778 test -d ./-p && rmdir ./-p
30782 if test -x / >/dev/null 2>&1; then
30783 as_test_x='test -x'
30785 if ls -dL / >/dev/null 2>&1; then
30792 if test -d "$1"; then
30798 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30799 ???[sx]*):;;*)false;;esac;fi
30803 as_executable_p=$as_test_x
30805 # Sed expression to map a string onto a valid CPP name.
30806 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30808 # Sed expression to map a string onto a valid variable name.
30809 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30814 # Save the log message, to keep $[0] and so on meaningful, and to
30815 # report actual input values of CONFIG_FILES etc. instead of their
30816 # values after options handling.
30818 This file was extended by PostgreSQL $as_me 9.4devel, which was
30819 generated by GNU Autoconf 2.63. Invocation command line was
30821 CONFIG_FILES = $CONFIG_FILES
30822 CONFIG_HEADERS = $CONFIG_HEADERS
30823 CONFIG_LINKS = $CONFIG_LINKS
30824 CONFIG_COMMANDS = $CONFIG_COMMANDS
30827 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30832 case $ac_config_files in *"
30833 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30836 case $ac_config_headers in *"
30837 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30842 # Files that config.status was made for.
30843 config_files="$ac_config_files"
30844 config_headers="$ac_config_headers"
30845 config_links="$ac_config_links"
30846 config_commands="$ac_config_commands"
30850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30852 \`$as_me' instantiates files from templates according to the
30853 current configuration.
30855 Usage: $0 [OPTION]... [FILE]...
30857 -h, --help print this help, then exit
30858 -V, --version print version number and configuration settings, then exit
30859 -q, --quiet, --silent
30860 do not print progress messages
30861 -d, --debug don't remove temporary files
30862 --recheck update $as_me by reconfiguring in the same conditions
30863 --file=FILE[:TEMPLATE]
30864 instantiate the configuration file FILE
30865 --header=FILE[:TEMPLATE]
30866 instantiate the configuration header FILE
30868 Configuration files:
30871 Configuration headers:
30874 Configuration links:
30877 Configuration commands:
30880 Report bugs to <bug-autoconf@gnu.org>."
30883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30885 PostgreSQL config.status 9.4devel
30886 configured by $0, generated by GNU Autoconf 2.63,
30887 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30889 Copyright (C) 2008 Free Software Foundation, Inc.
30890 This config.status script is free software; the Free Software Foundation
30891 gives unlimited permission to copy, distribute and modify it."
30898 test -n "\$AWK" || AWK=awk
30901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30902 # The default lists apply if the user does not specify any file.
30908 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30909 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30920 # Handling of the options.
30921 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30923 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30924 $as_echo "$ac_cs_version"; exit ;;
30925 --debug | --debu | --deb | --de | --d | -d )
30927 --file | --fil | --fi | --f )
30930 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30932 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30933 ac_need_defaults=false;;
30934 --header | --heade | --head | --hea )
30937 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30939 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30940 ac_need_defaults=false;;
30942 # Conflict between --help and --header
30943 { $as_echo "$as_me: error: ambiguous option: $1
30944 Try \`$0 --help' for more information." >&2
30945 { (exit 1); exit 1; }; };;
30946 --help | --hel | -h )
30947 $as_echo "$ac_cs_usage"; exit ;;
30948 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30949 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30952 # This is an error.
30953 -*) { $as_echo "$as_me: error: unrecognized option: $1
30954 Try \`$0 --help' for more information." >&2
30955 { (exit 1); exit 1; }; } ;;
30957 *) ac_config_targets="$ac_config_targets $1"
30958 ac_need_defaults=false ;;
30964 ac_configure_extra_args=
30966 if $ac_cs_silent; then
30968 ac_configure_extra_args="$ac_configure_extra_args --silent"
30972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30973 if \$ac_cs_recheck; then
30974 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30976 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30977 CONFIG_SHELL='$SHELL'
30978 export CONFIG_SHELL
30983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30987 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30988 ## Running $as_me. ##
30994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30999 # Handling of arguments.
31000 for ac_config_target in $ac_config_targets
31002 case $ac_config_target in
31003 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
31004 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
31005 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
31006 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
31007 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
31008 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
31009 "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
31010 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
31011 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
31012 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
31013 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
31014 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
31015 "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
31016 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
31018 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31019 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31020 { (exit 1); exit 1; }; };;
31025 # If the user did not use the arguments to specify the items to instantiate,
31026 # then the envvar interface is used. Set only those that are not.
31027 # We use the long form for the default assignment because of an extremely
31028 # bizarre bug on SunOS 4.1.3.
31029 if $ac_need_defaults; then
31030 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31031 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31032 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31033 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31036 # Have a temporary directory for convenience. Make it in the build tree
31037 # simply because there is no reason against having it here, and in addition,
31038 # creating and moving files from /tmp can sometimes cause problems.
31039 # Hook for its removal unless debugging.
31040 # Note that there is a small window in which the directory will not be cleaned:
31041 # after its creation but before its name has been assigned to `$tmp'.
31045 trap 'exit_status=$?
31046 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31048 trap '{ (exit 1); exit 1; }' 1 2 13 15
31050 # Create a (secure) tmp directory for tmp files.
31053 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31054 test -n "$tmp" && test -d "$tmp"
31057 tmp=./conf$$-$RANDOM
31058 (umask 077 && mkdir "$tmp")
31061 $as_echo "$as_me: cannot create a temporary directory in ." >&2
31062 { (exit 1); exit 1; }
31065 # Set up the scripts for CONFIG_FILES section.
31066 # No need to generate them if there are no CONFIG_FILES.
31067 # This happens for instance with `./config.status config.h'.
31068 if test -n "$CONFIG_FILES"; then
31072 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31073 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31076 ac_cs_awk_cr=$ac_cr
31079 echo 'BEGIN {' >"$tmp/subs1.awk" &&
31084 echo "cat >conf$$subs.awk <<_ACEOF" &&
31085 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31087 } >conf$$subs.sh ||
31088 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31089 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31090 { (exit 1); exit 1; }; }
31091 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31093 for ac_last_try in false false false false false :; do
31094 . ./conf$$subs.sh ||
31095 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31096 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31097 { (exit 1); exit 1; }; }
31099 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31100 if test $ac_delim_n = $ac_delim_num; then
31102 elif $ac_last_try; then
31103 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31104 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31105 { (exit 1); exit 1; }; }
31107 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31110 rm -f conf$$subs.sh
31112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31113 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31117 s/^/S["/; s/!.*/"]=/
31127 s/\(.\{148\}\).*/\1/
31129 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31134 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31141 s/\(.\{148\}\).*/\1/
31143 s/["\\]/\\&/g; s/^/"/; s/$/"/
31147 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31152 ' <conf$$subs.awk | sed '
31157 ' >>$CONFIG_STATUS || ac_write_fail=1
31158 rm -f conf$$subs.awk
31159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31161 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31162 for (key in S) S_is_set[key] = 1
31168 nfields = split(line, field, "@")
31170 len = length(field[1])
31171 for (i = 2; i < nfields; i++) {
31173 keylen = length(key)
31174 if (S_is_set[key]) {
31176 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31177 len += length(value) + length(field[++i])
31188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31189 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31190 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31193 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31194 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
31195 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
31196 { (exit 1); exit 1; }; }
31199 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31200 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31201 # trailing colons and then remove the whole line if VPATH becomes empty
31202 # (actually we leave an empty line to preserve line numbers).
31203 if test "x$srcdir" = x.; then
31204 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31205 s/:*\$(srcdir):*/:/
31206 s/:*\${srcdir}:*/:/
31208 s/^\([^=]*=[ ]*\):*/\1/
31214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31215 fi # test -n "$CONFIG_FILES"
31217 # Set up the scripts for CONFIG_HEADERS section.
31218 # No need to generate them if there are no CONFIG_HEADERS.
31219 # This happens for instance with `./config.status Makefile'.
31220 if test -n "$CONFIG_HEADERS"; then
31221 cat >"$tmp/defines.awk" <<\_ACAWK ||
31225 # Transform confdefs.h into an awk script `defines.awk', embedded as
31226 # here-document in config.status, that substitutes the proper values into
31227 # config.h.in to produce config.h.
31229 # Create a delimiter string that does not exist in confdefs.h, to ease
31230 # handling of long lines.
31232 for ac_last_try in false false :; do
31233 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31234 if test -z "$ac_t"; then
31236 elif $ac_last_try; then
31237 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
31238 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
31239 { (exit 1); exit 1; }; }
31241 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31245 # For the awk script, D is an array of macro values keyed by name,
31246 # likewise P contains macro parameters if any. Preserve backslash
31247 # newline sequences.
31249 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31251 s/.\{148\}/&'"$ac_delim"'/g
31254 s/^[ ]*#[ ]*define[ ][ ]*/ /
31261 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31263 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31267 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31268 D["\1"]=" \3\\\\\\n"\\/p
31270 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31275 s/.\{148\}/&'"$ac_delim"'/g
31280 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31283 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31285 ' <confdefs.h | sed '
31286 s/'"$ac_delim"'/"\\\
31287 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31290 for (key in D) D_is_set[key] = 1
31293 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31295 split(line, arg, " ")
31296 if (arg[1] == "#") {
31300 defundef = substr(arg[1], 2)
31303 split(mac1, mac2, "(") #)
31305 prefix = substr(line, 1, index(line, defundef) - 1)
31306 if (D_is_set[macro]) {
31307 # Preserve the white space surrounding the "#".
31308 print prefix "define", macro P[macro] D[macro]
31311 # Replace #undef with comments. This is necessary, for example,
31312 # in the case of _POSIX_SOURCE, which is predefined and required
31313 # on some systems where configure will not decide to define it.
31314 if (defundef == "undef") {
31315 print "/*", prefix defundef, macro, "*/"
31323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31324 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
31325 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
31326 { (exit 1); exit 1; }; }
31327 fi # test -n "$CONFIG_HEADERS"
31330 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31335 :[FHLC]) ac_mode=$ac_tag; continue;;
31337 case $ac_mode$ac_tag in
31339 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
31340 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
31341 { (exit 1); exit 1; }; };;
31342 :[FH]-) ac_tag=-:-;;
31343 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31360 -) ac_f="$tmp/stdin";;
31361 *) # Look for the file first in the build tree, then in the source tree
31362 # (if the path is not absolute). The absolute path cannot be DOS-style,
31363 # because $ac_f cannot contain `:'.
31367 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31369 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31370 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31371 { (exit 1); exit 1; }; };;
31373 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31374 ac_file_inputs="$ac_file_inputs '$ac_f'"
31377 # Let's still pretend it is `configure' which instantiates (i.e., don't
31378 # use $as_me), people would be surprised to read:
31379 # /* config.h. Generated by config.status. */
31380 configure_input='Generated from '`
31381 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31383 if test x"$ac_file" != x-; then
31384 configure_input="$ac_file. $configure_input"
31385 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
31386 $as_echo "$as_me: creating $ac_file" >&6;}
31388 # Neutralize special characters interpreted by sed in replacement strings.
31389 case $configure_input in #(
31390 *\&* | *\|* | *\\* )
31391 ac_sed_conf_input=`$as_echo "$configure_input" |
31392 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31393 *) ac_sed_conf_input=$configure_input;;
31397 *:-:* | *:-) cat >"$tmp/stdin" \
31398 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31399 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31400 { (exit 1); exit 1; }; } ;;
31405 ac_dir=`$as_dirname -- "$ac_file" ||
31406 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31407 X"$ac_file" : 'X\(//\)[^/]' \| \
31408 X"$ac_file" : 'X\(//\)$' \| \
31409 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31410 $as_echo X"$ac_file" |
31411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31415 /^X\(\/\/\)[^/].*/{
31430 -*) as_dir=./$as_dir;;
31432 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31436 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31437 *) as_qdir=$as_dir;;
31439 as_dirs="'$as_qdir' $as_dirs"
31440 as_dir=`$as_dirname -- "$as_dir" ||
31441 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31442 X"$as_dir" : 'X\(//\)[^/]' \| \
31443 X"$as_dir" : 'X\(//\)$' \| \
31444 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31445 $as_echo X"$as_dir" |
31446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31450 /^X\(\/\/\)[^/].*/{
31463 test -d "$as_dir" && break
31465 test -z "$as_dirs" || eval "mkdir $as_dirs"
31466 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31467 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31468 { (exit 1); exit 1; }; }; }
31472 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31474 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31475 # A ".." for each directory in $ac_dir_suffix.
31476 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31477 case $ac_top_builddir_sub in
31478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31482 ac_abs_top_builddir=$ac_pwd
31483 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31484 # for backward compatibility:
31485 ac_top_builddir=$ac_top_build_prefix
31488 .) # We are building in place.
31490 ac_top_srcdir=$ac_top_builddir_sub
31491 ac_abs_top_srcdir=$ac_pwd ;;
31492 [\\/]* | ?:[\\/]* ) # Absolute name.
31493 ac_srcdir=$srcdir$ac_dir_suffix;
31494 ac_top_srcdir=$srcdir
31495 ac_abs_top_srcdir=$srcdir ;;
31496 *) # Relative name.
31497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31498 ac_top_srcdir=$ac_top_build_prefix$srcdir
31499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31501 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31511 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31512 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31514 ac_MKDIR_P=$MKDIR_P
31516 [\\/$]* | ?:[\\/]* ) ;;
31517 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31522 # If the template does not know about datarootdir, expand it.
31523 # FIXME: This hack should be removed a few years after 2.60.
31524 ac_datarootdir_hack=; ac_datarootdir_seen=
31537 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31538 *datarootdir*) ac_datarootdir_seen=yes;;
31539 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31540 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31541 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31544 ac_datarootdir_hack='
31545 s&@datadir@&$datadir&g
31546 s&@docdir@&$docdir&g
31547 s&@infodir@&$infodir&g
31548 s&@localedir@&$localedir&g
31549 s&@mandir@&$mandir&g
31550 s&\\\${datarootdir}&$datarootdir&g' ;;
31554 # Neutralize VPATH when `$srcdir' = `.'.
31555 # Shell code in configure.ac might set extrasub.
31556 # FIXME: do we really want to maintain this feature?
31557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31558 ac_sed_extra="$ac_vpsub
31561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31563 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31564 s|@configure_input@|$ac_sed_conf_input|;t t
31565 s&@top_builddir@&$ac_top_builddir_sub&;t t
31566 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31567 s&@srcdir@&$ac_srcdir&;t t
31568 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31569 s&@top_srcdir@&$ac_top_srcdir&;t t
31570 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31571 s&@builddir@&$ac_builddir&;t t
31572 s&@abs_builddir@&$ac_abs_builddir&;t t
31573 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31574 s&@INSTALL@&$ac_INSTALL&;t t
31575 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31576 $ac_datarootdir_hack
31578 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31579 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31580 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31581 { (exit 1); exit 1; }; }
31583 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31584 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31585 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31586 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31587 which seems to be undefined. Please make sure it is defined." >&5
31588 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31589 which seems to be undefined. Please make sure it is defined." >&2;}
31593 -) cat "$tmp/out" && rm -f "$tmp/out";;
31594 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31596 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31597 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31598 { (exit 1); exit 1; }; }
31604 if test x"$ac_file" != x-; then
31606 $as_echo "/* $configure_input */" \
31607 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31608 } >"$tmp/config.h" \
31609 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31610 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31611 { (exit 1); exit 1; }; }
31612 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31613 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31614 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31617 mv "$tmp/config.h" "$ac_file" \
31618 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31619 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31620 { (exit 1); exit 1; }; }
31623 $as_echo "/* $configure_input */" \
31624 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31625 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31626 $as_echo "$as_me: error: could not create -" >&2;}
31627 { (exit 1); exit 1; }; }
31635 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31638 # Prefer the file from the source tree if names are identical.
31639 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31640 ac_source=$srcdir/$ac_source
31643 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31644 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31646 if test ! -r "$ac_source"; then
31647 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31648 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31649 { (exit 1); exit 1; }; }
31653 # Try a relative symlink, then a hard link, then a copy.
31655 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31656 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31658 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31659 ln "$ac_source" "$ac_file" 2>/dev/null ||
31660 cp -p "$ac_source" "$ac_file" ||
31661 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31662 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31663 { (exit 1); exit 1; }; }
31666 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31667 $as_echo "$as_me: executing $ac_file commands" >&6;}
31672 case $ac_file$ac_mode in
31673 "check_win32_symlinks":C)
31674 # Links sometimes fail undetected on Mingw -
31675 # so here we detect it and warn the user
31676 for FILE in $CONFIG_LINKS
31678 # test -e works for symlinks in the MinGW console
31679 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31680 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31683 "src/include/pg_config.h":H)
31684 # Update timestamp for pg_config.h (see Makefile.global)
31685 echo >src/include/stamp-h
31687 "src/include/pg_config_ext.h":H)
31688 # Update timestamp for pg_config_ext.h (see Makefile.global)
31689 echo >src/include/stamp-ext-h
31691 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31697 { (exit 0); exit 0; }
31699 chmod +x $CONFIG_STATUS
31700 ac_clean_files=$ac_clean_files_save
31702 test $ac_write_fail = 0 ||
31703 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31704 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31705 { (exit 1); exit 1; }; }
31708 # configure is writing to config.log, and then calls config.status.
31709 # config.status does its own redirection, appending to config.log.
31710 # Unfortunately, on DOS this fails, as config.log is still kept open
31711 # by configure, so config.status won't be able to write to it; its
31712 # output is simply discarded. So we exec the FD to /dev/null,
31713 # effectively closing config.log, so it can be properly (re)opened and
31714 # appended to by config.status. When coming back to configure, we
31715 # need to make the FD available again.
31716 if test "$no_create" != yes; then
31718 ac_config_status_args=
31719 test "$silent" = yes &&
31720 ac_config_status_args="$ac_config_status_args --quiet"
31722 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31724 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31725 # would make configure fail if this is the last instruction.
31726 $ac_cs_success || { (exit 1); exit 1; }
31728 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31729 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31730 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}