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'`
19699 for ac_func in cbrt dlopen fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll posix_fallocate pstat readlink setproctitle setsid sigprocmask symlink sync_file_range towlower utime utimes wcstombs wcstombs_l
19701 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19702 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19703 $as_echo_n "checking for $ac_func... " >&6; }
19704 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19705 $as_echo_n "(cached) " >&6
19707 cat >conftest.$ac_ext <<_ACEOF
19710 cat confdefs.h >>conftest.$ac_ext
19711 cat >>conftest.$ac_ext <<_ACEOF
19712 /* end confdefs.h. */
19713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19715 #define $ac_func innocuous_$ac_func
19717 /* System header to define __stub macros and hopefully few prototypes,
19718 which can conflict with char $ac_func (); below.
19719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19720 <limits.h> exists even on freestanding compilers. */
19723 # include <limits.h>
19725 # include <assert.h>
19730 /* Override any GCC internal prototype to avoid an error.
19731 Use char because int might match the return type of a GCC
19732 builtin and then its argument prototype would still apply. */
19737 /* The GNU C library defines this for functions which it implements
19738 to always fail with ENOSYS. Some functions are actually named
19739 something starting with __ and the normal name is an alias. */
19740 #if defined __stub_$ac_func || defined __stub___$ac_func
19747 return $ac_func ();
19752 rm -f conftest.$ac_objext conftest$ac_exeext
19753 if { (ac_try="$ac_link"
19754 case "(($ac_try" in
19755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19756 *) ac_try_echo=$ac_try;;
19758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19759 $as_echo "$ac_try_echo") >&5
19760 (eval "$ac_link") 2>conftest.er1
19762 grep -v '^ *+' conftest.er1 >conftest.err
19764 cat conftest.err >&5
19765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); } && {
19767 test -z "$ac_c_werror_flag" ||
19768 test ! -s conftest.err
19769 } && test -s conftest$ac_exeext && {
19770 test "$cross_compiling" = yes ||
19771 $as_test_x conftest$ac_exeext
19773 eval "$as_ac_var=yes"
19775 $as_echo "$as_me: failed program was:" >&5
19776 sed 's/^/| /' conftest.$ac_ext >&5
19778 eval "$as_ac_var=no"
19781 rm -rf conftest.dSYM
19782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19783 conftest$ac_exeext conftest.$ac_ext
19785 ac_res=`eval 'as_val=${'$as_ac_var'}
19786 $as_echo "$as_val"'`
19787 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19788 $as_echo "$ac_res" >&6; }
19789 as_val=`eval 'as_val=${'$as_ac_var'}
19790 $as_echo "$as_val"'`
19791 if test "x$as_val" = x""yes; then
19792 cat >>confdefs.h <<_ACEOF
19793 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19801 for ac_func in fseeko
19803 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19804 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19805 $as_echo_n "checking for $ac_func... " >&6; }
19806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19807 $as_echo_n "(cached) " >&6
19809 cat >conftest.$ac_ext <<_ACEOF
19812 cat confdefs.h >>conftest.$ac_ext
19813 cat >>conftest.$ac_ext <<_ACEOF
19814 /* end confdefs.h. */
19815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19817 #define $ac_func innocuous_$ac_func
19819 /* System header to define __stub macros and hopefully few prototypes,
19820 which can conflict with char $ac_func (); below.
19821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19822 <limits.h> exists even on freestanding compilers. */
19825 # include <limits.h>
19827 # include <assert.h>
19832 /* Override any GCC internal prototype to avoid an error.
19833 Use char because int might match the return type of a GCC
19834 builtin and then its argument prototype would still apply. */
19839 /* The GNU C library defines this for functions which it implements
19840 to always fail with ENOSYS. Some functions are actually named
19841 something starting with __ and the normal name is an alias. */
19842 #if defined __stub_$ac_func || defined __stub___$ac_func
19849 return $ac_func ();
19854 rm -f conftest.$ac_objext conftest$ac_exeext
19855 if { (ac_try="$ac_link"
19856 case "(($ac_try" in
19857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858 *) ac_try_echo=$ac_try;;
19860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19861 $as_echo "$ac_try_echo") >&5
19862 (eval "$ac_link") 2>conftest.er1
19864 grep -v '^ *+' conftest.er1 >conftest.err
19866 cat conftest.err >&5
19867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } && {
19869 test -z "$ac_c_werror_flag" ||
19870 test ! -s conftest.err
19871 } && test -s conftest$ac_exeext && {
19872 test "$cross_compiling" = yes ||
19873 $as_test_x conftest$ac_exeext
19875 eval "$as_ac_var=yes"
19877 $as_echo "$as_me: failed program was:" >&5
19878 sed 's/^/| /' conftest.$ac_ext >&5
19880 eval "$as_ac_var=no"
19883 rm -rf conftest.dSYM
19884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19885 conftest$ac_exeext conftest.$ac_ext
19887 ac_res=`eval 'as_val=${'$as_ac_var'}
19888 $as_echo "$as_val"'`
19889 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19890 $as_echo "$ac_res" >&6; }
19891 as_val=`eval 'as_val=${'$as_ac_var'}
19892 $as_echo "$as_val"'`
19893 if test "x$as_val" = x""yes; then
19894 cat >>confdefs.h <<_ACEOF
19895 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19899 case " $LIBOBJS " in
19900 *" $ac_func.$ac_objext "* ) ;;
19901 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19910 # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
19911 # Mingw uses macros to access Win32 API calls
19914 cat >>confdefs.h <<\_ACEOF
19915 #define HAVE_FSEEKO 1
19918 ac_cv_func_fseeko=yes;;
19920 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19921 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19922 if test "${ac_cv_sys_largefile_source+set}" = set; then
19923 $as_echo_n "(cached) " >&6
19926 cat >conftest.$ac_ext <<_ACEOF
19929 cat confdefs.h >>conftest.$ac_ext
19930 cat >>conftest.$ac_ext <<_ACEOF
19931 /* end confdefs.h. */
19932 #include <sys/types.h> /* for off_t */
19937 int (*fp) (FILE *, off_t, int) = fseeko;
19938 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19943 rm -f conftest.$ac_objext conftest$ac_exeext
19944 if { (ac_try="$ac_link"
19945 case "(($ac_try" in
19946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19950 $as_echo "$ac_try_echo") >&5
19951 (eval "$ac_link") 2>conftest.er1
19953 grep -v '^ *+' conftest.er1 >conftest.err
19955 cat conftest.err >&5
19956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); } && {
19958 test -z "$ac_c_werror_flag" ||
19959 test ! -s conftest.err
19960 } && test -s conftest$ac_exeext && {
19961 test "$cross_compiling" = yes ||
19962 $as_test_x conftest$ac_exeext
19964 ac_cv_sys_largefile_source=no; break
19966 $as_echo "$as_me: failed program was:" >&5
19967 sed 's/^/| /' conftest.$ac_ext >&5
19972 rm -rf conftest.dSYM
19973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19974 conftest$ac_exeext conftest.$ac_ext
19975 cat >conftest.$ac_ext <<_ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h. */
19981 #define _LARGEFILE_SOURCE 1
19982 #include <sys/types.h> /* for off_t */
19987 int (*fp) (FILE *, off_t, int) = fseeko;
19988 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19993 rm -f conftest.$ac_objext conftest$ac_exeext
19994 if { (ac_try="$ac_link"
19995 case "(($ac_try" in
19996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997 *) ac_try_echo=$ac_try;;
19999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20000 $as_echo "$ac_try_echo") >&5
20001 (eval "$ac_link") 2>conftest.er1
20003 grep -v '^ *+' conftest.er1 >conftest.err
20005 cat conftest.err >&5
20006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } && {
20008 test -z "$ac_c_werror_flag" ||
20009 test ! -s conftest.err
20010 } && test -s conftest$ac_exeext && {
20011 test "$cross_compiling" = yes ||
20012 $as_test_x conftest$ac_exeext
20014 ac_cv_sys_largefile_source=1; break
20016 $as_echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.$ac_ext >&5
20022 rm -rf conftest.dSYM
20023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20024 conftest$ac_exeext conftest.$ac_ext
20025 ac_cv_sys_largefile_source=unknown
20029 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20030 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20031 case $ac_cv_sys_largefile_source in #(
20034 cat >>confdefs.h <<_ACEOF
20035 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20041 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20042 # in glibc 2.1.3, but that breaks too many other things.
20043 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20044 if test $ac_cv_sys_largefile_source != unknown; then
20046 cat >>confdefs.h <<\_ACEOF
20047 #define HAVE_FSEEKO 1
20054 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
20055 # by calling it, 2009-04-02
20056 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
20057 if test "$PORTNAME" != "solaris"; then
20059 for ac_func in posix_fadvise
20061 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20062 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20063 $as_echo_n "checking for $ac_func... " >&6; }
20064 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20065 $as_echo_n "(cached) " >&6
20067 cat >conftest.$ac_ext <<_ACEOF
20070 cat confdefs.h >>conftest.$ac_ext
20071 cat >>conftest.$ac_ext <<_ACEOF
20072 /* end confdefs.h. */
20073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20075 #define $ac_func innocuous_$ac_func
20077 /* System header to define __stub macros and hopefully few prototypes,
20078 which can conflict with char $ac_func (); below.
20079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20080 <limits.h> exists even on freestanding compilers. */
20083 # include <limits.h>
20085 # include <assert.h>
20090 /* Override any GCC internal prototype to avoid an error.
20091 Use char because int might match the return type of a GCC
20092 builtin and then its argument prototype would still apply. */
20097 /* The GNU C library defines this for functions which it implements
20098 to always fail with ENOSYS. Some functions are actually named
20099 something starting with __ and the normal name is an alias. */
20100 #if defined __stub_$ac_func || defined __stub___$ac_func
20107 return $ac_func ();
20112 rm -f conftest.$ac_objext conftest$ac_exeext
20113 if { (ac_try="$ac_link"
20114 case "(($ac_try" in
20115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20116 *) ac_try_echo=$ac_try;;
20118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20119 $as_echo "$ac_try_echo") >&5
20120 (eval "$ac_link") 2>conftest.er1
20122 grep -v '^ *+' conftest.er1 >conftest.err
20124 cat conftest.err >&5
20125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); } && {
20127 test -z "$ac_c_werror_flag" ||
20128 test ! -s conftest.err
20129 } && test -s conftest$ac_exeext && {
20130 test "$cross_compiling" = yes ||
20131 $as_test_x conftest$ac_exeext
20133 eval "$as_ac_var=yes"
20135 $as_echo "$as_me: failed program was:" >&5
20136 sed 's/^/| /' conftest.$ac_ext >&5
20138 eval "$as_ac_var=no"
20141 rm -rf conftest.dSYM
20142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20143 conftest$ac_exeext conftest.$ac_ext
20145 ac_res=`eval 'as_val=${'$as_ac_var'}
20146 $as_echo "$as_val"'`
20147 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20148 $as_echo "$ac_res" >&6; }
20149 as_val=`eval 'as_val=${'$as_ac_var'}
20150 $as_echo "$as_val"'`
20151 if test "x$as_val" = x""yes; then
20152 cat >>confdefs.h <<_ACEOF
20153 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20159 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
20160 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
20161 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
20162 $as_echo_n "(cached) " >&6
20164 cat >conftest.$ac_ext <<_ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h. */
20175 #ifndef posix_fadvise
20176 (void) posix_fadvise;
20183 rm -f conftest.$ac_objext
20184 if { (ac_try="$ac_compile"
20185 case "(($ac_try" in
20186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20187 *) ac_try_echo=$ac_try;;
20189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20190 $as_echo "$ac_try_echo") >&5
20191 (eval "$ac_compile") 2>conftest.er1
20193 grep -v '^ *+' conftest.er1 >conftest.err
20195 cat conftest.err >&5
20196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); } && {
20198 test -z "$ac_c_werror_flag" ||
20199 test ! -s conftest.err
20200 } && test -s conftest.$ac_objext; then
20201 ac_cv_have_decl_posix_fadvise=yes
20203 $as_echo "$as_me: failed program was:" >&5
20204 sed 's/^/| /' conftest.$ac_ext >&5
20206 ac_cv_have_decl_posix_fadvise=no
20209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20211 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
20212 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
20213 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
20215 cat >>confdefs.h <<_ACEOF
20216 #define HAVE_DECL_POSIX_FADVISE 1
20221 cat >>confdefs.h <<_ACEOF
20222 #define HAVE_DECL_POSIX_FADVISE 0
20231 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
20232 $as_echo_n "checking whether fdatasync is declared... " >&6; }
20233 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
20234 $as_echo_n "(cached) " >&6
20236 cat >conftest.$ac_ext <<_ACEOF
20239 cat confdefs.h >>conftest.$ac_ext
20240 cat >>conftest.$ac_ext <<_ACEOF
20241 /* end confdefs.h. */
20242 #include <unistd.h>
20255 rm -f conftest.$ac_objext
20256 if { (ac_try="$ac_compile"
20257 case "(($ac_try" in
20258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20259 *) ac_try_echo=$ac_try;;
20261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20262 $as_echo "$ac_try_echo") >&5
20263 (eval "$ac_compile") 2>conftest.er1
20265 grep -v '^ *+' conftest.er1 >conftest.err
20267 cat conftest.err >&5
20268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); } && {
20270 test -z "$ac_c_werror_flag" ||
20271 test ! -s conftest.err
20272 } && test -s conftest.$ac_objext; then
20273 ac_cv_have_decl_fdatasync=yes
20275 $as_echo "$as_me: failed program was:" >&5
20276 sed 's/^/| /' conftest.$ac_ext >&5
20278 ac_cv_have_decl_fdatasync=no
20281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20283 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
20284 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
20285 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
20287 cat >>confdefs.h <<_ACEOF
20288 #define HAVE_DECL_FDATASYNC 1
20293 cat >>confdefs.h <<_ACEOF
20294 #define HAVE_DECL_FDATASYNC 0
20301 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
20302 $as_echo_n "checking whether strlcat is declared... " >&6; }
20303 if test "${ac_cv_have_decl_strlcat+set}" = set; then
20304 $as_echo_n "(cached) " >&6
20306 cat >conftest.$ac_ext <<_ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h. */
20312 $ac_includes_default
20324 rm -f conftest.$ac_objext
20325 if { (ac_try="$ac_compile"
20326 case "(($ac_try" in
20327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328 *) ac_try_echo=$ac_try;;
20330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20331 $as_echo "$ac_try_echo") >&5
20332 (eval "$ac_compile") 2>conftest.er1
20334 grep -v '^ *+' conftest.er1 >conftest.err
20336 cat conftest.err >&5
20337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } && {
20339 test -z "$ac_c_werror_flag" ||
20340 test ! -s conftest.err
20341 } && test -s conftest.$ac_objext; then
20342 ac_cv_have_decl_strlcat=yes
20344 $as_echo "$as_me: failed program was:" >&5
20345 sed 's/^/| /' conftest.$ac_ext >&5
20347 ac_cv_have_decl_strlcat=no
20350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20352 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
20353 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
20354 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
20356 cat >>confdefs.h <<_ACEOF
20357 #define HAVE_DECL_STRLCAT 1
20362 cat >>confdefs.h <<_ACEOF
20363 #define HAVE_DECL_STRLCAT 0
20368 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
20369 $as_echo_n "checking whether strlcpy is declared... " >&6; }
20370 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
20371 $as_echo_n "(cached) " >&6
20373 cat >conftest.$ac_ext <<_ACEOF
20376 cat confdefs.h >>conftest.$ac_ext
20377 cat >>conftest.$ac_ext <<_ACEOF
20378 /* end confdefs.h. */
20379 $ac_includes_default
20391 rm -f conftest.$ac_objext
20392 if { (ac_try="$ac_compile"
20393 case "(($ac_try" in
20394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20395 *) ac_try_echo=$ac_try;;
20397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20398 $as_echo "$ac_try_echo") >&5
20399 (eval "$ac_compile") 2>conftest.er1
20401 grep -v '^ *+' conftest.er1 >conftest.err
20403 cat conftest.err >&5
20404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); } && {
20406 test -z "$ac_c_werror_flag" ||
20407 test ! -s conftest.err
20408 } && test -s conftest.$ac_objext; then
20409 ac_cv_have_decl_strlcpy=yes
20411 $as_echo "$as_me: failed program was:" >&5
20412 sed 's/^/| /' conftest.$ac_ext >&5
20414 ac_cv_have_decl_strlcpy=no
20417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20419 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
20420 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
20421 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
20423 cat >>confdefs.h <<_ACEOF
20424 #define HAVE_DECL_STRLCPY 1
20429 cat >>confdefs.h <<_ACEOF
20430 #define HAVE_DECL_STRLCPY 0
20437 # This is probably only present on Darwin, but may as well check always
20438 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
20439 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
20440 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
20441 $as_echo_n "(cached) " >&6
20443 cat >conftest.$ac_ext <<_ACEOF
20446 cat confdefs.h >>conftest.$ac_ext
20447 cat >>conftest.$ac_ext <<_ACEOF
20448 /* end confdefs.h. */
20454 #ifndef F_FULLFSYNC
20455 (void) F_FULLFSYNC;
20462 rm -f conftest.$ac_objext
20463 if { (ac_try="$ac_compile"
20464 case "(($ac_try" in
20465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20466 *) ac_try_echo=$ac_try;;
20468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20469 $as_echo "$ac_try_echo") >&5
20470 (eval "$ac_compile") 2>conftest.er1
20472 grep -v '^ *+' conftest.er1 >conftest.err
20474 cat conftest.err >&5
20475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); } && {
20477 test -z "$ac_c_werror_flag" ||
20478 test ! -s conftest.err
20479 } && test -s conftest.$ac_objext; then
20480 ac_cv_have_decl_F_FULLFSYNC=yes
20482 $as_echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20485 ac_cv_have_decl_F_FULLFSYNC=no
20488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20490 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
20491 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
20492 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
20494 cat >>confdefs.h <<_ACEOF
20495 #define HAVE_DECL_F_FULLFSYNC 1
20500 cat >>confdefs.h <<_ACEOF
20501 #define HAVE_DECL_F_FULLFSYNC 0
20510 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
20511 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
20512 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
20513 $as_echo_n "(cached) " >&6
20515 ac_cv_type_struct_sockaddr_in6=no
20516 cat >conftest.$ac_ext <<_ACEOF
20519 cat confdefs.h >>conftest.$ac_ext
20520 cat >>conftest.$ac_ext <<_ACEOF
20521 /* end confdefs.h. */
20522 $ac_includes_default
20523 #include <netinet/in.h>
20528 if (sizeof (struct sockaddr_in6))
20534 rm -f conftest.$ac_objext
20535 if { (ac_try="$ac_compile"
20536 case "(($ac_try" in
20537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20538 *) ac_try_echo=$ac_try;;
20540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20541 $as_echo "$ac_try_echo") >&5
20542 (eval "$ac_compile") 2>conftest.er1
20544 grep -v '^ *+' conftest.er1 >conftest.err
20546 cat conftest.err >&5
20547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); } && {
20549 test -z "$ac_c_werror_flag" ||
20550 test ! -s conftest.err
20551 } && test -s conftest.$ac_objext; then
20552 cat >conftest.$ac_ext <<_ACEOF
20555 cat confdefs.h >>conftest.$ac_ext
20556 cat >>conftest.$ac_ext <<_ACEOF
20557 /* end confdefs.h. */
20558 $ac_includes_default
20559 #include <netinet/in.h>
20564 if (sizeof ((struct sockaddr_in6)))
20570 rm -f conftest.$ac_objext
20571 if { (ac_try="$ac_compile"
20572 case "(($ac_try" in
20573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20574 *) ac_try_echo=$ac_try;;
20576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20577 $as_echo "$ac_try_echo") >&5
20578 (eval "$ac_compile") 2>conftest.er1
20580 grep -v '^ *+' conftest.er1 >conftest.err
20582 cat conftest.err >&5
20583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); } && {
20585 test -z "$ac_c_werror_flag" ||
20586 test ! -s conftest.err
20587 } && test -s conftest.$ac_objext; then
20590 $as_echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20593 ac_cv_type_struct_sockaddr_in6=yes
20596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20598 $as_echo "$as_me: failed program was:" >&5
20599 sed 's/^/| /' conftest.$ac_ext >&5
20604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20606 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
20607 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
20608 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
20610 cat >>confdefs.h <<\_ACEOF
20611 #define HAVE_IPV6 1
20619 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
20620 $as_echo_n "checking for PS_STRINGS... " >&6; }
20621 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
20622 $as_echo_n "(cached) " >&6
20624 cat >conftest.$ac_ext <<_ACEOF
20627 cat confdefs.h >>conftest.$ac_ext
20628 cat >>conftest.$ac_ext <<_ACEOF
20629 /* end confdefs.h. */
20630 #include <machine/vmparam.h>
20631 #include <sys/exec.h>
20636 PS_STRINGS->ps_nargvstr = 1;
20637 PS_STRINGS->ps_argvstr = "foo";
20642 rm -f conftest.$ac_objext conftest$ac_exeext
20643 if { (ac_try="$ac_link"
20644 case "(($ac_try" in
20645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646 *) ac_try_echo=$ac_try;;
20648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20649 $as_echo "$ac_try_echo") >&5
20650 (eval "$ac_link") 2>conftest.er1
20652 grep -v '^ *+' conftest.er1 >conftest.err
20654 cat conftest.err >&5
20655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); } && {
20657 test -z "$ac_c_werror_flag" ||
20658 test ! -s conftest.err
20659 } && test -s conftest$ac_exeext && {
20660 test "$cross_compiling" = yes ||
20661 $as_test_x conftest$ac_exeext
20663 pgac_cv_var_PS_STRINGS=yes
20665 $as_echo "$as_me: failed program was:" >&5
20666 sed 's/^/| /' conftest.$ac_ext >&5
20668 pgac_cv_var_PS_STRINGS=no
20671 rm -rf conftest.dSYM
20672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20673 conftest$ac_exeext conftest.$ac_ext
20675 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
20676 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
20677 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
20679 cat >>confdefs.h <<\_ACEOF
20680 #define HAVE_PS_STRINGS 1
20686 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
20687 # is missing. Yes, there are machines that have only one. We may
20688 # also decide to use snprintf.c if snprintf() is present but does not
20689 # have all the features we need --- see below.
20691 if test "$PORTNAME" = "win32"; then
20692 # Win32 gets snprintf.c built unconditionally.
20694 # To properly translate all NLS languages strings, we must support the
20695 # *printf() %$ format, which allows *printf() arguments to be selected
20696 # by position in the translated string.
20698 # libintl versions < 0.13 use the native *printf() functions, and Win32
20699 # *printf() doesn't understand %$, so we must use our /port versions,
20700 # which do understand %$. libintl versions >= 0.13 include their own
20701 # *printf versions on Win32. The libintl 0.13 release note text is:
20703 # C format strings with positions, as they arise when a translator
20704 # needs to reorder a sentence, are now supported on all platforms.
20705 # On those few platforms (NetBSD and Woe32) for which the native
20706 # printf()/fprintf()/... functions don't support such format
20707 # strings, replacements are provided through <libintl.h>.
20709 # We could use libintl >= 0.13's *printf() if we were sure that we had
20710 # a litint >= 0.13 at runtime, but seeing that there is no clean way
20711 # to guarantee that, it is best to just use our own, so we are sure to
20712 # get %$ support. In include/port.h we disable the *printf() macros
20713 # that might have been defined by libintl.
20715 # We do this unconditionally whether NLS is used or not so we are sure
20716 # that all Win32 libraries and binaries behave the same.
20717 pgac_need_repl_snprintf=yes
20719 pgac_need_repl_snprintf=no
20721 for ac_func in snprintf
20723 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20724 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20725 $as_echo_n "checking for $ac_func... " >&6; }
20726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20727 $as_echo_n "(cached) " >&6
20729 cat >conftest.$ac_ext <<_ACEOF
20732 cat confdefs.h >>conftest.$ac_ext
20733 cat >>conftest.$ac_ext <<_ACEOF
20734 /* end confdefs.h. */
20735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20737 #define $ac_func innocuous_$ac_func
20739 /* System header to define __stub macros and hopefully few prototypes,
20740 which can conflict with char $ac_func (); below.
20741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20742 <limits.h> exists even on freestanding compilers. */
20745 # include <limits.h>
20747 # include <assert.h>
20752 /* Override any GCC internal prototype to avoid an error.
20753 Use char because int might match the return type of a GCC
20754 builtin and then its argument prototype would still apply. */
20759 /* The GNU C library defines this for functions which it implements
20760 to always fail with ENOSYS. Some functions are actually named
20761 something starting with __ and the normal name is an alias. */
20762 #if defined __stub_$ac_func || defined __stub___$ac_func
20769 return $ac_func ();
20774 rm -f conftest.$ac_objext conftest$ac_exeext
20775 if { (ac_try="$ac_link"
20776 case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20781 $as_echo "$ac_try_echo") >&5
20782 (eval "$ac_link") 2>conftest.er1
20784 grep -v '^ *+' conftest.er1 >conftest.err
20786 cat conftest.err >&5
20787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } && {
20789 test -z "$ac_c_werror_flag" ||
20790 test ! -s conftest.err
20791 } && test -s conftest$ac_exeext && {
20792 test "$cross_compiling" = yes ||
20793 $as_test_x conftest$ac_exeext
20795 eval "$as_ac_var=yes"
20797 $as_echo "$as_me: failed program was:" >&5
20798 sed 's/^/| /' conftest.$ac_ext >&5
20800 eval "$as_ac_var=no"
20803 rm -rf conftest.dSYM
20804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20805 conftest$ac_exeext conftest.$ac_ext
20807 ac_res=`eval 'as_val=${'$as_ac_var'}
20808 $as_echo "$as_val"'`
20809 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20810 $as_echo "$ac_res" >&6; }
20811 as_val=`eval 'as_val=${'$as_ac_var'}
20812 $as_echo "$as_val"'`
20813 if test "x$as_val" = x""yes; then
20814 cat >>confdefs.h <<_ACEOF
20815 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20819 pgac_need_repl_snprintf=yes
20824 for ac_func in vsnprintf
20826 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20827 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20828 $as_echo_n "checking for $ac_func... " >&6; }
20829 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20830 $as_echo_n "(cached) " >&6
20832 cat >conftest.$ac_ext <<_ACEOF
20835 cat confdefs.h >>conftest.$ac_ext
20836 cat >>conftest.$ac_ext <<_ACEOF
20837 /* end confdefs.h. */
20838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20840 #define $ac_func innocuous_$ac_func
20842 /* System header to define __stub macros and hopefully few prototypes,
20843 which can conflict with char $ac_func (); below.
20844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20845 <limits.h> exists even on freestanding compilers. */
20848 # include <limits.h>
20850 # include <assert.h>
20855 /* Override any GCC internal prototype to avoid an error.
20856 Use char because int might match the return type of a GCC
20857 builtin and then its argument prototype would still apply. */
20862 /* The GNU C library defines this for functions which it implements
20863 to always fail with ENOSYS. Some functions are actually named
20864 something starting with __ and the normal name is an alias. */
20865 #if defined __stub_$ac_func || defined __stub___$ac_func
20872 return $ac_func ();
20877 rm -f conftest.$ac_objext conftest$ac_exeext
20878 if { (ac_try="$ac_link"
20879 case "(($ac_try" in
20880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20881 *) ac_try_echo=$ac_try;;
20883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20884 $as_echo "$ac_try_echo") >&5
20885 (eval "$ac_link") 2>conftest.er1
20887 grep -v '^ *+' conftest.er1 >conftest.err
20889 cat conftest.err >&5
20890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20891 (exit $ac_status); } && {
20892 test -z "$ac_c_werror_flag" ||
20893 test ! -s conftest.err
20894 } && test -s conftest$ac_exeext && {
20895 test "$cross_compiling" = yes ||
20896 $as_test_x conftest$ac_exeext
20898 eval "$as_ac_var=yes"
20900 $as_echo "$as_me: failed program was:" >&5
20901 sed 's/^/| /' conftest.$ac_ext >&5
20903 eval "$as_ac_var=no"
20906 rm -rf conftest.dSYM
20907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20908 conftest$ac_exeext conftest.$ac_ext
20910 ac_res=`eval 'as_val=${'$as_ac_var'}
20911 $as_echo "$as_val"'`
20912 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20913 $as_echo "$ac_res" >&6; }
20914 as_val=`eval 'as_val=${'$as_ac_var'}
20915 $as_echo "$as_val"'`
20916 if test "x$as_val" = x""yes; then
20917 cat >>confdefs.h <<_ACEOF
20918 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20922 pgac_need_repl_snprintf=yes
20929 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
20930 # include/c.h will provide declarations. Note this is a separate test
20931 # from whether the functions exist in the C library --- there are
20932 # systems that have the functions but don't bother to declare them :-(
20934 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
20935 $as_echo_n "checking whether snprintf is declared... " >&6; }
20936 if test "${ac_cv_have_decl_snprintf+set}" = set; then
20937 $as_echo_n "(cached) " >&6
20939 cat >conftest.$ac_ext <<_ACEOF
20942 cat confdefs.h >>conftest.$ac_ext
20943 cat >>conftest.$ac_ext <<_ACEOF
20944 /* end confdefs.h. */
20945 $ac_includes_default
20957 rm -f conftest.$ac_objext
20958 if { (ac_try="$ac_compile"
20959 case "(($ac_try" in
20960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961 *) ac_try_echo=$ac_try;;
20963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20964 $as_echo "$ac_try_echo") >&5
20965 (eval "$ac_compile") 2>conftest.er1
20967 grep -v '^ *+' conftest.er1 >conftest.err
20969 cat conftest.err >&5
20970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); } && {
20972 test -z "$ac_c_werror_flag" ||
20973 test ! -s conftest.err
20974 } && test -s conftest.$ac_objext; then
20975 ac_cv_have_decl_snprintf=yes
20977 $as_echo "$as_me: failed program was:" >&5
20978 sed 's/^/| /' conftest.$ac_ext >&5
20980 ac_cv_have_decl_snprintf=no
20983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20985 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
20986 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
20987 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
20989 cat >>confdefs.h <<_ACEOF
20990 #define HAVE_DECL_SNPRINTF 1
20995 cat >>confdefs.h <<_ACEOF
20996 #define HAVE_DECL_SNPRINTF 0
21001 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
21002 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
21003 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
21004 $as_echo_n "(cached) " >&6
21006 cat >conftest.$ac_ext <<_ACEOF
21009 cat confdefs.h >>conftest.$ac_ext
21010 cat >>conftest.$ac_ext <<_ACEOF
21011 /* end confdefs.h. */
21012 $ac_includes_default
21024 rm -f conftest.$ac_objext
21025 if { (ac_try="$ac_compile"
21026 case "(($ac_try" in
21027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21028 *) ac_try_echo=$ac_try;;
21030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21031 $as_echo "$ac_try_echo") >&5
21032 (eval "$ac_compile") 2>conftest.er1
21034 grep -v '^ *+' conftest.er1 >conftest.err
21036 cat conftest.err >&5
21037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); } && {
21039 test -z "$ac_c_werror_flag" ||
21040 test ! -s conftest.err
21041 } && test -s conftest.$ac_objext; then
21042 ac_cv_have_decl_vsnprintf=yes
21044 $as_echo "$as_me: failed program was:" >&5
21045 sed 's/^/| /' conftest.$ac_ext >&5
21047 ac_cv_have_decl_vsnprintf=no
21050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21052 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
21053 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
21054 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
21056 cat >>confdefs.h <<_ACEOF
21057 #define HAVE_DECL_VSNPRINTF 1
21062 cat >>confdefs.h <<_ACEOF
21063 #define HAVE_DECL_VSNPRINTF 0
21072 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
21073 $as_echo_n "checking for isinf... " >&6; }
21074 if test "${ac_cv_func_isinf+set}" = set; then
21075 $as_echo_n "(cached) " >&6
21077 cat >conftest.$ac_ext <<_ACEOF
21080 cat confdefs.h >>conftest.$ac_ext
21081 cat >>conftest.$ac_ext <<_ACEOF
21082 /* end confdefs.h. */
21085 double glob_double;
21090 return isinf(glob_double) ? 0 : 1;
21095 rm -f conftest.$ac_objext conftest$ac_exeext
21096 if { (ac_try="$ac_link"
21097 case "(($ac_try" in
21098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21099 *) ac_try_echo=$ac_try;;
21101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21102 $as_echo "$ac_try_echo") >&5
21103 (eval "$ac_link") 2>conftest.er1
21105 grep -v '^ *+' conftest.er1 >conftest.err
21107 cat conftest.err >&5
21108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); } && {
21110 test -z "$ac_c_werror_flag" ||
21111 test ! -s conftest.err
21112 } && test -s conftest$ac_exeext && {
21113 test "$cross_compiling" = yes ||
21114 $as_test_x conftest$ac_exeext
21116 ac_cv_func_isinf=yes
21118 $as_echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21121 ac_cv_func_isinf=no
21124 rm -rf conftest.dSYM
21125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21126 conftest$ac_exeext conftest.$ac_ext
21128 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
21129 $as_echo "$ac_cv_func_isinf" >&6; }
21131 if test $ac_cv_func_isinf = yes ; then
21133 cat >>confdefs.h <<\_ACEOF
21134 #define HAVE_ISINF 1
21138 case " $LIBOBJS " in
21139 *" isinf.$ac_objext "* ) ;;
21140 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
21144 # Look for a way to implement a substitute for isinf()
21149 for ac_func in fpclass fp_class fp_class_d class
21151 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21152 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21153 $as_echo_n "checking for $ac_func... " >&6; }
21154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21155 $as_echo_n "(cached) " >&6
21157 cat >conftest.$ac_ext <<_ACEOF
21160 cat confdefs.h >>conftest.$ac_ext
21161 cat >>conftest.$ac_ext <<_ACEOF
21162 /* end confdefs.h. */
21163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21165 #define $ac_func innocuous_$ac_func
21167 /* System header to define __stub macros and hopefully few prototypes,
21168 which can conflict with char $ac_func (); below.
21169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21170 <limits.h> exists even on freestanding compilers. */
21173 # include <limits.h>
21175 # include <assert.h>
21180 /* Override any GCC internal prototype to avoid an error.
21181 Use char because int might match the return type of a GCC
21182 builtin and then its argument prototype would still apply. */
21187 /* The GNU C library defines this for functions which it implements
21188 to always fail with ENOSYS. Some functions are actually named
21189 something starting with __ and the normal name is an alias. */
21190 #if defined __stub_$ac_func || defined __stub___$ac_func
21197 return $ac_func ();
21202 rm -f conftest.$ac_objext conftest$ac_exeext
21203 if { (ac_try="$ac_link"
21204 case "(($ac_try" in
21205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21206 *) ac_try_echo=$ac_try;;
21208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21209 $as_echo "$ac_try_echo") >&5
21210 (eval "$ac_link") 2>conftest.er1
21212 grep -v '^ *+' conftest.er1 >conftest.err
21214 cat conftest.err >&5
21215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); } && {
21217 test -z "$ac_c_werror_flag" ||
21218 test ! -s conftest.err
21219 } && test -s conftest$ac_exeext && {
21220 test "$cross_compiling" = yes ||
21221 $as_test_x conftest$ac_exeext
21223 eval "$as_ac_var=yes"
21225 $as_echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21228 eval "$as_ac_var=no"
21231 rm -rf conftest.dSYM
21232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21233 conftest$ac_exeext conftest.$ac_ext
21235 ac_res=`eval 'as_val=${'$as_ac_var'}
21236 $as_echo "$as_val"'`
21237 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21238 $as_echo "$ac_res" >&6; }
21239 as_val=`eval 'as_val=${'$as_ac_var'}
21240 $as_echo "$as_val"'`
21241 if test "x$as_val" = x""yes; then
21242 cat >>confdefs.h <<_ACEOF
21243 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21262 for ac_func in crypt fls getopt getrusage inet_aton random rint srandom strerror strlcat strlcpy
21264 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21265 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21266 $as_echo_n "checking for $ac_func... " >&6; }
21267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21268 $as_echo_n "(cached) " >&6
21270 cat >conftest.$ac_ext <<_ACEOF
21273 cat confdefs.h >>conftest.$ac_ext
21274 cat >>conftest.$ac_ext <<_ACEOF
21275 /* end confdefs.h. */
21276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21278 #define $ac_func innocuous_$ac_func
21280 /* System header to define __stub macros and hopefully few prototypes,
21281 which can conflict with char $ac_func (); below.
21282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21283 <limits.h> exists even on freestanding compilers. */
21286 # include <limits.h>
21288 # include <assert.h>
21293 /* Override any GCC internal prototype to avoid an error.
21294 Use char because int might match the return type of a GCC
21295 builtin and then its argument prototype would still apply. */
21300 /* The GNU C library defines this for functions which it implements
21301 to always fail with ENOSYS. Some functions are actually named
21302 something starting with __ and the normal name is an alias. */
21303 #if defined __stub_$ac_func || defined __stub___$ac_func
21310 return $ac_func ();
21315 rm -f conftest.$ac_objext conftest$ac_exeext
21316 if { (ac_try="$ac_link"
21317 case "(($ac_try" in
21318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21319 *) ac_try_echo=$ac_try;;
21321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21322 $as_echo "$ac_try_echo") >&5
21323 (eval "$ac_link") 2>conftest.er1
21325 grep -v '^ *+' conftest.er1 >conftest.err
21327 cat conftest.err >&5
21328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329 (exit $ac_status); } && {
21330 test -z "$ac_c_werror_flag" ||
21331 test ! -s conftest.err
21332 } && test -s conftest$ac_exeext && {
21333 test "$cross_compiling" = yes ||
21334 $as_test_x conftest$ac_exeext
21336 eval "$as_ac_var=yes"
21338 $as_echo "$as_me: failed program was:" >&5
21339 sed 's/^/| /' conftest.$ac_ext >&5
21341 eval "$as_ac_var=no"
21344 rm -rf conftest.dSYM
21345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21346 conftest$ac_exeext conftest.$ac_ext
21348 ac_res=`eval 'as_val=${'$as_ac_var'}
21349 $as_echo "$as_val"'`
21350 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21351 $as_echo "$ac_res" >&6; }
21352 as_val=`eval 'as_val=${'$as_ac_var'}
21353 $as_echo "$as_val"'`
21354 if test "x$as_val" = x""yes; then
21355 cat >>confdefs.h <<_ACEOF
21356 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21360 case " $LIBOBJS " in
21361 *" $ac_func.$ac_objext "* ) ;;
21362 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21373 # Windows uses a specialised env handler
21374 # and doesn't need a replacement getpeereid because it doesn't use
21378 cat >>confdefs.h <<\_ACEOF
21379 #define HAVE_UNSETENV 1
21383 cat >>confdefs.h <<\_ACEOF
21384 #define HAVE_GETPEEREID 1
21387 ac_cv_func_unsetenv=yes
21388 ac_cv_func_getpeereid=yes;;
21392 for ac_func in unsetenv getpeereid
21394 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21395 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21396 $as_echo_n "checking for $ac_func... " >&6; }
21397 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21398 $as_echo_n "(cached) " >&6
21400 cat >conftest.$ac_ext <<_ACEOF
21403 cat confdefs.h >>conftest.$ac_ext
21404 cat >>conftest.$ac_ext <<_ACEOF
21405 /* end confdefs.h. */
21406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21408 #define $ac_func innocuous_$ac_func
21410 /* System header to define __stub macros and hopefully few prototypes,
21411 which can conflict with char $ac_func (); below.
21412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21413 <limits.h> exists even on freestanding compilers. */
21416 # include <limits.h>
21418 # include <assert.h>
21423 /* Override any GCC internal prototype to avoid an error.
21424 Use char because int might match the return type of a GCC
21425 builtin and then its argument prototype would still apply. */
21430 /* The GNU C library defines this for functions which it implements
21431 to always fail with ENOSYS. Some functions are actually named
21432 something starting with __ and the normal name is an alias. */
21433 #if defined __stub_$ac_func || defined __stub___$ac_func
21440 return $ac_func ();
21445 rm -f conftest.$ac_objext conftest$ac_exeext
21446 if { (ac_try="$ac_link"
21447 case "(($ac_try" in
21448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21452 $as_echo "$ac_try_echo") >&5
21453 (eval "$ac_link") 2>conftest.er1
21455 grep -v '^ *+' conftest.er1 >conftest.err
21457 cat conftest.err >&5
21458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); } && {
21460 test -z "$ac_c_werror_flag" ||
21461 test ! -s conftest.err
21462 } && test -s conftest$ac_exeext && {
21463 test "$cross_compiling" = yes ||
21464 $as_test_x conftest$ac_exeext
21466 eval "$as_ac_var=yes"
21468 $as_echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21471 eval "$as_ac_var=no"
21474 rm -rf conftest.dSYM
21475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21476 conftest$ac_exeext conftest.$ac_ext
21478 ac_res=`eval 'as_val=${'$as_ac_var'}
21479 $as_echo "$as_val"'`
21480 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21481 $as_echo "$ac_res" >&6; }
21482 as_val=`eval 'as_val=${'$as_ac_var'}
21483 $as_echo "$as_val"'`
21484 if test "x$as_val" = x""yes; then
21485 cat >>confdefs.h <<_ACEOF
21486 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21490 case " $LIBOBJS " in
21491 *" $ac_func.$ac_objext "* ) ;;
21492 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21503 # System's version of getaddrinfo(), if any, may be used only if we found
21504 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
21505 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
21506 # versions of getaddrinfo don't follow normal C call protocol. This is OK
21507 # because we want to use our own getaddrinfo.c on Windows anyway.)
21508 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
21510 for ac_func in getaddrinfo
21512 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21513 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21514 $as_echo_n "checking for $ac_func... " >&6; }
21515 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21516 $as_echo_n "(cached) " >&6
21518 cat >conftest.$ac_ext <<_ACEOF
21521 cat confdefs.h >>conftest.$ac_ext
21522 cat >>conftest.$ac_ext <<_ACEOF
21523 /* end confdefs.h. */
21524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21526 #define $ac_func innocuous_$ac_func
21528 /* System header to define __stub macros and hopefully few prototypes,
21529 which can conflict with char $ac_func (); below.
21530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21531 <limits.h> exists even on freestanding compilers. */
21534 # include <limits.h>
21536 # include <assert.h>
21541 /* Override any GCC internal prototype to avoid an error.
21542 Use char because int might match the return type of a GCC
21543 builtin and then its argument prototype would still apply. */
21548 /* The GNU C library defines this for functions which it implements
21549 to always fail with ENOSYS. Some functions are actually named
21550 something starting with __ and the normal name is an alias. */
21551 #if defined __stub_$ac_func || defined __stub___$ac_func
21558 return $ac_func ();
21563 rm -f conftest.$ac_objext conftest$ac_exeext
21564 if { (ac_try="$ac_link"
21565 case "(($ac_try" in
21566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21567 *) ac_try_echo=$ac_try;;
21569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21570 $as_echo "$ac_try_echo") >&5
21571 (eval "$ac_link") 2>conftest.er1
21573 grep -v '^ *+' conftest.er1 >conftest.err
21575 cat conftest.err >&5
21576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); } && {
21578 test -z "$ac_c_werror_flag" ||
21579 test ! -s conftest.err
21580 } && test -s conftest$ac_exeext && {
21581 test "$cross_compiling" = yes ||
21582 $as_test_x conftest$ac_exeext
21584 eval "$as_ac_var=yes"
21586 $as_echo "$as_me: failed program was:" >&5
21587 sed 's/^/| /' conftest.$ac_ext >&5
21589 eval "$as_ac_var=no"
21592 rm -rf conftest.dSYM
21593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21594 conftest$ac_exeext conftest.$ac_ext
21596 ac_res=`eval 'as_val=${'$as_ac_var'}
21597 $as_echo "$as_val"'`
21598 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21599 $as_echo "$ac_res" >&6; }
21600 as_val=`eval 'as_val=${'$as_ac_var'}
21601 $as_echo "$as_val"'`
21602 if test "x$as_val" = x""yes; then
21603 cat >>confdefs.h <<_ACEOF
21604 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21608 case " $LIBOBJS " in
21609 *" $ac_func.$ac_objext "* ) ;;
21610 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21619 case " $LIBOBJS " in
21620 *" getaddrinfo.$ac_objext "* ) ;;
21621 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21627 # Similarly, use system's getopt_long() only if system provides struct option.
21628 if test x"$ac_cv_type_struct_option" = xyes ; then
21630 for ac_func in getopt_long
21632 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21633 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21634 $as_echo_n "checking for $ac_func... " >&6; }
21635 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21636 $as_echo_n "(cached) " >&6
21638 cat >conftest.$ac_ext <<_ACEOF
21641 cat confdefs.h >>conftest.$ac_ext
21642 cat >>conftest.$ac_ext <<_ACEOF
21643 /* end confdefs.h. */
21644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21646 #define $ac_func innocuous_$ac_func
21648 /* System header to define __stub macros and hopefully few prototypes,
21649 which can conflict with char $ac_func (); below.
21650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21651 <limits.h> exists even on freestanding compilers. */
21654 # include <limits.h>
21656 # include <assert.h>
21661 /* Override any GCC internal prototype to avoid an error.
21662 Use char because int might match the return type of a GCC
21663 builtin and then its argument prototype would still apply. */
21668 /* The GNU C library defines this for functions which it implements
21669 to always fail with ENOSYS. Some functions are actually named
21670 something starting with __ and the normal name is an alias. */
21671 #if defined __stub_$ac_func || defined __stub___$ac_func
21678 return $ac_func ();
21683 rm -f conftest.$ac_objext conftest$ac_exeext
21684 if { (ac_try="$ac_link"
21685 case "(($ac_try" in
21686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687 *) ac_try_echo=$ac_try;;
21689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21690 $as_echo "$ac_try_echo") >&5
21691 (eval "$ac_link") 2>conftest.er1
21693 grep -v '^ *+' conftest.er1 >conftest.err
21695 cat conftest.err >&5
21696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); } && {
21698 test -z "$ac_c_werror_flag" ||
21699 test ! -s conftest.err
21700 } && test -s conftest$ac_exeext && {
21701 test "$cross_compiling" = yes ||
21702 $as_test_x conftest$ac_exeext
21704 eval "$as_ac_var=yes"
21706 $as_echo "$as_me: failed program was:" >&5
21707 sed 's/^/| /' conftest.$ac_ext >&5
21709 eval "$as_ac_var=no"
21712 rm -rf conftest.dSYM
21713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21714 conftest$ac_exeext conftest.$ac_ext
21716 ac_res=`eval 'as_val=${'$as_ac_var'}
21717 $as_echo "$as_val"'`
21718 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21719 $as_echo "$ac_res" >&6; }
21720 as_val=`eval 'as_val=${'$as_ac_var'}
21721 $as_echo "$as_val"'`
21722 if test "x$as_val" = x""yes; then
21723 cat >>confdefs.h <<_ACEOF
21724 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21728 case " $LIBOBJS " in
21729 *" $ac_func.$ac_objext "* ) ;;
21730 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21739 case " $LIBOBJS " in
21740 *" getopt_long.$ac_objext "* ) ;;
21741 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21747 # Solaris' getopt() doesn't do what we want for long options, so always use
21748 # our version on that platform.
21749 if test "$PORTNAME" = "solaris"; then
21750 case " $LIBOBJS " in
21751 *" getopt.$ac_objext "* ) ;;
21752 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21758 # mingw has adopted a GNU-centric interpretation of optind/optreset,
21759 # so always use our version on Windows.
21760 if test "$PORTNAME" = "win32"; then
21761 case " $LIBOBJS " in
21762 *" getopt.$ac_objext "* ) ;;
21763 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21767 case " $LIBOBJS " in
21768 *" getopt_long.$ac_objext "* ) ;;
21769 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21776 if test "$PORTNAME" = "win32"; then
21778 for ac_func in gettimeofday
21780 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21781 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21782 $as_echo_n "checking for $ac_func... " >&6; }
21783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21784 $as_echo_n "(cached) " >&6
21786 cat >conftest.$ac_ext <<_ACEOF
21789 cat confdefs.h >>conftest.$ac_ext
21790 cat >>conftest.$ac_ext <<_ACEOF
21791 /* end confdefs.h. */
21792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21794 #define $ac_func innocuous_$ac_func
21796 /* System header to define __stub macros and hopefully few prototypes,
21797 which can conflict with char $ac_func (); below.
21798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21799 <limits.h> exists even on freestanding compilers. */
21802 # include <limits.h>
21804 # include <assert.h>
21809 /* Override any GCC internal prototype to avoid an error.
21810 Use char because int might match the return type of a GCC
21811 builtin and then its argument prototype would still apply. */
21816 /* The GNU C library defines this for functions which it implements
21817 to always fail with ENOSYS. Some functions are actually named
21818 something starting with __ and the normal name is an alias. */
21819 #if defined __stub_$ac_func || defined __stub___$ac_func
21826 return $ac_func ();
21831 rm -f conftest.$ac_objext conftest$ac_exeext
21832 if { (ac_try="$ac_link"
21833 case "(($ac_try" in
21834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21835 *) ac_try_echo=$ac_try;;
21837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21838 $as_echo "$ac_try_echo") >&5
21839 (eval "$ac_link") 2>conftest.er1
21841 grep -v '^ *+' conftest.er1 >conftest.err
21843 cat conftest.err >&5
21844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845 (exit $ac_status); } && {
21846 test -z "$ac_c_werror_flag" ||
21847 test ! -s conftest.err
21848 } && test -s conftest$ac_exeext && {
21849 test "$cross_compiling" = yes ||
21850 $as_test_x conftest$ac_exeext
21852 eval "$as_ac_var=yes"
21854 $as_echo "$as_me: failed program was:" >&5
21855 sed 's/^/| /' conftest.$ac_ext >&5
21857 eval "$as_ac_var=no"
21860 rm -rf conftest.dSYM
21861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21862 conftest$ac_exeext conftest.$ac_ext
21864 ac_res=`eval 'as_val=${'$as_ac_var'}
21865 $as_echo "$as_val"'`
21866 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21867 $as_echo "$ac_res" >&6; }
21868 as_val=`eval 'as_val=${'$as_ac_var'}
21869 $as_echo "$as_val"'`
21870 if test "x$as_val" = x""yes; then
21871 cat >>confdefs.h <<_ACEOF
21872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21876 case " $LIBOBJS " in
21877 *" $ac_func.$ac_objext "* ) ;;
21878 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21886 case " $LIBOBJS " in
21887 *" kill.$ac_objext "* ) ;;
21888 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
21892 case " $LIBOBJS " in
21893 *" open.$ac_objext "* ) ;;
21894 *) LIBOBJS="$LIBOBJS open.$ac_objext"
21898 case " $LIBOBJS " in
21899 *" win32env.$ac_objext "* ) ;;
21900 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
21904 case " $LIBOBJS " in
21905 *" win32error.$ac_objext "* ) ;;
21906 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
21910 case " $LIBOBJS " in
21911 *" win32setlocale.$ac_objext "* ) ;;
21912 *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
21917 cat >>confdefs.h <<\_ACEOF
21918 #define HAVE_SYMLINK 1
21921 { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
21922 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
21923 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
21924 $as_echo_n "(cached) " >&6
21926 ac_cv_type_MINIDUMP_TYPE=no
21927 cat >conftest.$ac_ext <<_ACEOF
21930 cat confdefs.h >>conftest.$ac_ext
21931 cat >>conftest.$ac_ext <<_ACEOF
21932 /* end confdefs.h. */
21934 #define WIN32_LEAN_AND_MEAN
21935 #include <windows.h>
21936 #include <string.h>
21937 #include <dbghelp.h>
21942 if (sizeof (MINIDUMP_TYPE))
21948 rm -f conftest.$ac_objext
21949 if { (ac_try="$ac_compile"
21950 case "(($ac_try" in
21951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21952 *) ac_try_echo=$ac_try;;
21954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21955 $as_echo "$ac_try_echo") >&5
21956 (eval "$ac_compile") 2>conftest.er1
21958 grep -v '^ *+' conftest.er1 >conftest.err
21960 cat conftest.err >&5
21961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962 (exit $ac_status); } && {
21963 test -z "$ac_c_werror_flag" ||
21964 test ! -s conftest.err
21965 } && test -s conftest.$ac_objext; then
21966 cat >conftest.$ac_ext <<_ACEOF
21969 cat confdefs.h >>conftest.$ac_ext
21970 cat >>conftest.$ac_ext <<_ACEOF
21971 /* end confdefs.h. */
21973 #define WIN32_LEAN_AND_MEAN
21974 #include <windows.h>
21975 #include <string.h>
21976 #include <dbghelp.h>
21981 if (sizeof ((MINIDUMP_TYPE)))
21987 rm -f conftest.$ac_objext
21988 if { (ac_try="$ac_compile"
21989 case "(($ac_try" in
21990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21991 *) ac_try_echo=$ac_try;;
21993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21994 $as_echo "$ac_try_echo") >&5
21995 (eval "$ac_compile") 2>conftest.er1
21997 grep -v '^ *+' conftest.er1 >conftest.err
21999 cat conftest.err >&5
22000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); } && {
22002 test -z "$ac_c_werror_flag" ||
22003 test ! -s conftest.err
22004 } && test -s conftest.$ac_objext; then
22007 $as_echo "$as_me: failed program was:" >&5
22008 sed 's/^/| /' conftest.$ac_ext >&5
22010 ac_cv_type_MINIDUMP_TYPE=yes
22013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22015 $as_echo "$as_me: failed program was:" >&5
22016 sed 's/^/| /' conftest.$ac_ext >&5
22021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22023 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
22024 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
22025 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
22027 cat >>confdefs.h <<_ACEOF
22028 #define HAVE_MINIDUMP_TYPE 1
22031 pgac_minidump_type=yes
22033 pgac_minidump_type=no
22037 if test x"$pgac_minidump_type" = x"yes" ; then
22038 have_win32_dbghelp=yes
22041 have_win32_dbghelp=no
22045 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
22046 $as_echo_n "checking for sigsetjmp... " >&6; }
22047 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
22048 $as_echo_n "(cached) " >&6
22050 cat >conftest.$ac_ext <<_ACEOF
22053 cat confdefs.h >>conftest.$ac_ext
22054 cat >>conftest.$ac_ext <<_ACEOF
22055 /* end confdefs.h. */
22056 #include <setjmp.h>
22060 sigjmp_buf x; sigsetjmp(x, 1);
22065 rm -f conftest.$ac_objext conftest$ac_exeext
22066 if { (ac_try="$ac_link"
22067 case "(($ac_try" in
22068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22069 *) ac_try_echo=$ac_try;;
22071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22072 $as_echo "$ac_try_echo") >&5
22073 (eval "$ac_link") 2>conftest.er1
22075 grep -v '^ *+' conftest.er1 >conftest.err
22077 cat conftest.err >&5
22078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); } && {
22080 test -z "$ac_c_werror_flag" ||
22081 test ! -s conftest.err
22082 } && test -s conftest$ac_exeext && {
22083 test "$cross_compiling" = yes ||
22084 $as_test_x conftest$ac_exeext
22086 pgac_cv_func_sigsetjmp=yes
22088 $as_echo "$as_me: failed program was:" >&5
22089 sed 's/^/| /' conftest.$ac_ext >&5
22091 pgac_cv_func_sigsetjmp=no
22094 rm -rf conftest.dSYM
22095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22096 conftest$ac_exeext conftest.$ac_ext
22098 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
22099 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
22100 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
22102 cat >>confdefs.h <<\_ACEOF
22103 #define HAVE_SIGSETJMP 1
22108 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
22109 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
22110 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
22111 $as_echo_n "(cached) " >&6
22113 cat >conftest.$ac_ext <<_ACEOF
22116 cat confdefs.h >>conftest.$ac_ext
22117 cat >>conftest.$ac_ext <<_ACEOF
22118 /* end confdefs.h. */
22119 #include <signal.h>
22120 /* NetBSD declares sys_siglist in unistd.h. */
22121 #ifdef HAVE_UNISTD_H
22122 # include <unistd.h>
22129 #ifndef sys_siglist
22130 (void) sys_siglist;
22137 rm -f conftest.$ac_objext
22138 if { (ac_try="$ac_compile"
22139 case "(($ac_try" in
22140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22141 *) ac_try_echo=$ac_try;;
22143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22144 $as_echo "$ac_try_echo") >&5
22145 (eval "$ac_compile") 2>conftest.er1
22147 grep -v '^ *+' conftest.er1 >conftest.err
22149 cat conftest.err >&5
22150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); } && {
22152 test -z "$ac_c_werror_flag" ||
22153 test ! -s conftest.err
22154 } && test -s conftest.$ac_objext; then
22155 ac_cv_have_decl_sys_siglist=yes
22157 $as_echo "$as_me: failed program was:" >&5
22158 sed 's/^/| /' conftest.$ac_ext >&5
22160 ac_cv_have_decl_sys_siglist=no
22163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22165 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
22166 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
22167 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
22169 cat >>confdefs.h <<_ACEOF
22170 #define HAVE_DECL_SYS_SIGLIST 1
22175 cat >>confdefs.h <<_ACEOF
22176 #define HAVE_DECL_SYS_SIGLIST 0
22185 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
22186 $as_echo_n "checking for syslog... " >&6; }
22187 if test "${ac_cv_func_syslog+set}" = set; then
22188 $as_echo_n "(cached) " >&6
22190 cat >conftest.$ac_ext <<_ACEOF
22193 cat confdefs.h >>conftest.$ac_ext
22194 cat >>conftest.$ac_ext <<_ACEOF
22195 /* end confdefs.h. */
22196 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
22197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22198 #define syslog innocuous_syslog
22200 /* System header to define __stub macros and hopefully few prototypes,
22201 which can conflict with char syslog (); below.
22202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22203 <limits.h> exists even on freestanding compilers. */
22206 # include <limits.h>
22208 # include <assert.h>
22213 /* Override any GCC internal prototype to avoid an error.
22214 Use char because int might match the return type of a GCC
22215 builtin and then its argument prototype would still apply. */
22220 /* The GNU C library defines this for functions which it implements
22221 to always fail with ENOSYS. Some functions are actually named
22222 something starting with __ and the normal name is an alias. */
22223 #if defined __stub_syslog || defined __stub___syslog
22235 rm -f conftest.$ac_objext conftest$ac_exeext
22236 if { (ac_try="$ac_link"
22237 case "(($ac_try" in
22238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22239 *) ac_try_echo=$ac_try;;
22241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22242 $as_echo "$ac_try_echo") >&5
22243 (eval "$ac_link") 2>conftest.er1
22245 grep -v '^ *+' conftest.er1 >conftest.err
22247 cat conftest.err >&5
22248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); } && {
22250 test -z "$ac_c_werror_flag" ||
22251 test ! -s conftest.err
22252 } && test -s conftest$ac_exeext && {
22253 test "$cross_compiling" = yes ||
22254 $as_test_x conftest$ac_exeext
22256 ac_cv_func_syslog=yes
22258 $as_echo "$as_me: failed program was:" >&5
22259 sed 's/^/| /' conftest.$ac_ext >&5
22261 ac_cv_func_syslog=no
22264 rm -rf conftest.dSYM
22265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22266 conftest$ac_exeext conftest.$ac_ext
22268 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
22269 $as_echo "$ac_cv_func_syslog" >&6; }
22270 if test "x$ac_cv_func_syslog" = x""yes; then
22271 if test "${ac_cv_header_syslog_h+set}" = set; then
22272 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22273 $as_echo_n "checking for syslog.h... " >&6; }
22274 if test "${ac_cv_header_syslog_h+set}" = set; then
22275 $as_echo_n "(cached) " >&6
22277 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22278 $as_echo "$ac_cv_header_syslog_h" >&6; }
22280 # Is the header compilable?
22281 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
22282 $as_echo_n "checking syslog.h usability... " >&6; }
22283 cat >conftest.$ac_ext <<_ACEOF
22286 cat confdefs.h >>conftest.$ac_ext
22287 cat >>conftest.$ac_ext <<_ACEOF
22288 /* end confdefs.h. */
22289 $ac_includes_default
22290 #include <syslog.h>
22292 rm -f conftest.$ac_objext
22293 if { (ac_try="$ac_compile"
22294 case "(($ac_try" in
22295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22296 *) ac_try_echo=$ac_try;;
22298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22299 $as_echo "$ac_try_echo") >&5
22300 (eval "$ac_compile") 2>conftest.er1
22302 grep -v '^ *+' conftest.er1 >conftest.err
22304 cat conftest.err >&5
22305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } && {
22307 test -z "$ac_c_werror_flag" ||
22308 test ! -s conftest.err
22309 } && test -s conftest.$ac_objext; then
22310 ac_header_compiler=yes
22312 $as_echo "$as_me: failed program was:" >&5
22313 sed 's/^/| /' conftest.$ac_ext >&5
22315 ac_header_compiler=no
22318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22319 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22320 $as_echo "$ac_header_compiler" >&6; }
22322 # Is the header present?
22323 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
22324 $as_echo_n "checking syslog.h presence... " >&6; }
22325 cat >conftest.$ac_ext <<_ACEOF
22328 cat confdefs.h >>conftest.$ac_ext
22329 cat >>conftest.$ac_ext <<_ACEOF
22330 /* end confdefs.h. */
22331 #include <syslog.h>
22333 if { (ac_try="$ac_cpp conftest.$ac_ext"
22334 case "(($ac_try" in
22335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22336 *) ac_try_echo=$ac_try;;
22338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22339 $as_echo "$ac_try_echo") >&5
22340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22342 grep -v '^ *+' conftest.er1 >conftest.err
22344 cat conftest.err >&5
22345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); } >/dev/null && {
22347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22348 test ! -s conftest.err
22350 ac_header_preproc=yes
22352 $as_echo "$as_me: failed program was:" >&5
22353 sed 's/^/| /' conftest.$ac_ext >&5
22355 ac_header_preproc=no
22358 rm -f conftest.err conftest.$ac_ext
22359 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22360 $as_echo "$ac_header_preproc" >&6; }
22362 # So? What about this header?
22363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22365 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
22366 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22367 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
22368 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
22369 ac_header_preproc=yes
22372 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
22373 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
22374 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
22375 $as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
22376 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
22377 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
22378 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
22379 $as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
22380 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
22381 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
22382 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
22383 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
22385 ## ---------------------------------------- ##
22386 ## Report this to pgsql-bugs@postgresql.org ##
22387 ## ---------------------------------------- ##
22389 ) | sed "s/^/$as_me: WARNING: /" >&2
22392 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22393 $as_echo_n "checking for syslog.h... " >&6; }
22394 if test "${ac_cv_header_syslog_h+set}" = set; then
22395 $as_echo_n "(cached) " >&6
22397 ac_cv_header_syslog_h=$ac_header_preproc
22399 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22400 $as_echo "$ac_cv_header_syslog_h" >&6; }
22403 if test "x$ac_cv_header_syslog_h" = x""yes; then
22405 cat >>confdefs.h <<\_ACEOF
22406 #define HAVE_SYSLOG 1
22415 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
22416 $as_echo_n "checking for opterr... " >&6; }
22417 if test "${pgac_cv_var_int_opterr+set}" = set; then
22418 $as_echo_n "(cached) " >&6
22420 cat >conftest.$ac_ext <<_ACEOF
22423 cat confdefs.h >>conftest.$ac_ext
22424 cat >>conftest.$ac_ext <<_ACEOF
22425 /* end confdefs.h. */
22426 #include <unistd.h>
22430 extern int opterr; opterr = 1;
22435 rm -f conftest.$ac_objext conftest$ac_exeext
22436 if { (ac_try="$ac_link"
22437 case "(($ac_try" in
22438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22439 *) ac_try_echo=$ac_try;;
22441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22442 $as_echo "$ac_try_echo") >&5
22443 (eval "$ac_link") 2>conftest.er1
22445 grep -v '^ *+' conftest.er1 >conftest.err
22447 cat conftest.err >&5
22448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); } && {
22450 test -z "$ac_c_werror_flag" ||
22451 test ! -s conftest.err
22452 } && test -s conftest$ac_exeext && {
22453 test "$cross_compiling" = yes ||
22454 $as_test_x conftest$ac_exeext
22456 pgac_cv_var_int_opterr=yes
22458 $as_echo "$as_me: failed program was:" >&5
22459 sed 's/^/| /' conftest.$ac_ext >&5
22461 pgac_cv_var_int_opterr=no
22464 rm -rf conftest.dSYM
22465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22466 conftest$ac_exeext conftest.$ac_ext
22468 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22469 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22470 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22472 cat >>confdefs.h <<\_ACEOF
22473 #define HAVE_INT_OPTERR 1
22478 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22479 $as_echo_n "checking for optreset... " >&6; }
22480 if test "${pgac_cv_var_int_optreset+set}" = set; then
22481 $as_echo_n "(cached) " >&6
22483 cat >conftest.$ac_ext <<_ACEOF
22486 cat confdefs.h >>conftest.$ac_ext
22487 cat >>conftest.$ac_ext <<_ACEOF
22488 /* end confdefs.h. */
22489 #include <unistd.h>
22493 extern int optreset; optreset = 1;
22498 rm -f conftest.$ac_objext conftest$ac_exeext
22499 if { (ac_try="$ac_link"
22500 case "(($ac_try" in
22501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22502 *) ac_try_echo=$ac_try;;
22504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22505 $as_echo "$ac_try_echo") >&5
22506 (eval "$ac_link") 2>conftest.er1
22508 grep -v '^ *+' conftest.er1 >conftest.err
22510 cat conftest.err >&5
22511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 (exit $ac_status); } && {
22513 test -z "$ac_c_werror_flag" ||
22514 test ! -s conftest.err
22515 } && test -s conftest$ac_exeext && {
22516 test "$cross_compiling" = yes ||
22517 $as_test_x conftest$ac_exeext
22519 pgac_cv_var_int_optreset=yes
22521 $as_echo "$as_me: failed program was:" >&5
22522 sed 's/^/| /' conftest.$ac_ext >&5
22524 pgac_cv_var_int_optreset=no
22527 rm -rf conftest.dSYM
22528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22529 conftest$ac_exeext conftest.$ac_ext
22531 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22532 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22533 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22535 cat >>confdefs.h <<\_ACEOF
22536 #define HAVE_INT_OPTRESET 1
22543 for ac_func in strtoll strtoq
22545 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22546 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22547 $as_echo_n "checking for $ac_func... " >&6; }
22548 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22549 $as_echo_n "(cached) " >&6
22551 cat >conftest.$ac_ext <<_ACEOF
22554 cat confdefs.h >>conftest.$ac_ext
22555 cat >>conftest.$ac_ext <<_ACEOF
22556 /* end confdefs.h. */
22557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22559 #define $ac_func innocuous_$ac_func
22561 /* System header to define __stub macros and hopefully few prototypes,
22562 which can conflict with char $ac_func (); below.
22563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22564 <limits.h> exists even on freestanding compilers. */
22567 # include <limits.h>
22569 # include <assert.h>
22574 /* Override any GCC internal prototype to avoid an error.
22575 Use char because int might match the return type of a GCC
22576 builtin and then its argument prototype would still apply. */
22581 /* The GNU C library defines this for functions which it implements
22582 to always fail with ENOSYS. Some functions are actually named
22583 something starting with __ and the normal name is an alias. */
22584 #if defined __stub_$ac_func || defined __stub___$ac_func
22591 return $ac_func ();
22596 rm -f conftest.$ac_objext conftest$ac_exeext
22597 if { (ac_try="$ac_link"
22598 case "(($ac_try" in
22599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22600 *) ac_try_echo=$ac_try;;
22602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22603 $as_echo "$ac_try_echo") >&5
22604 (eval "$ac_link") 2>conftest.er1
22606 grep -v '^ *+' conftest.er1 >conftest.err
22608 cat conftest.err >&5
22609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); } && {
22611 test -z "$ac_c_werror_flag" ||
22612 test ! -s conftest.err
22613 } && test -s conftest$ac_exeext && {
22614 test "$cross_compiling" = yes ||
22615 $as_test_x conftest$ac_exeext
22617 eval "$as_ac_var=yes"
22619 $as_echo "$as_me: failed program was:" >&5
22620 sed 's/^/| /' conftest.$ac_ext >&5
22622 eval "$as_ac_var=no"
22625 rm -rf conftest.dSYM
22626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22627 conftest$ac_exeext conftest.$ac_ext
22629 ac_res=`eval 'as_val=${'$as_ac_var'}
22630 $as_echo "$as_val"'`
22631 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22632 $as_echo "$ac_res" >&6; }
22633 as_val=`eval 'as_val=${'$as_ac_var'}
22634 $as_echo "$as_val"'`
22635 if test "x$as_val" = x""yes; then
22636 cat >>confdefs.h <<_ACEOF
22637 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22645 for ac_func in strtoull strtouq
22647 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22648 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22649 $as_echo_n "checking for $ac_func... " >&6; }
22650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22651 $as_echo_n "(cached) " >&6
22653 cat >conftest.$ac_ext <<_ACEOF
22656 cat confdefs.h >>conftest.$ac_ext
22657 cat >>conftest.$ac_ext <<_ACEOF
22658 /* end confdefs.h. */
22659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22661 #define $ac_func innocuous_$ac_func
22663 /* System header to define __stub macros and hopefully few prototypes,
22664 which can conflict with char $ac_func (); below.
22665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22666 <limits.h> exists even on freestanding compilers. */
22669 # include <limits.h>
22671 # include <assert.h>
22676 /* Override any GCC internal prototype to avoid an error.
22677 Use char because int might match the return type of a GCC
22678 builtin and then its argument prototype would still apply. */
22683 /* The GNU C library defines this for functions which it implements
22684 to always fail with ENOSYS. Some functions are actually named
22685 something starting with __ and the normal name is an alias. */
22686 #if defined __stub_$ac_func || defined __stub___$ac_func
22693 return $ac_func ();
22698 rm -f conftest.$ac_objext conftest$ac_exeext
22699 if { (ac_try="$ac_link"
22700 case "(($ac_try" in
22701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22702 *) ac_try_echo=$ac_try;;
22704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22705 $as_echo "$ac_try_echo") >&5
22706 (eval "$ac_link") 2>conftest.er1
22708 grep -v '^ *+' conftest.er1 >conftest.err
22710 cat conftest.err >&5
22711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712 (exit $ac_status); } && {
22713 test -z "$ac_c_werror_flag" ||
22714 test ! -s conftest.err
22715 } && test -s conftest$ac_exeext && {
22716 test "$cross_compiling" = yes ||
22717 $as_test_x conftest$ac_exeext
22719 eval "$as_ac_var=yes"
22721 $as_echo "$as_me: failed program was:" >&5
22722 sed 's/^/| /' conftest.$ac_ext >&5
22724 eval "$as_ac_var=no"
22727 rm -rf conftest.dSYM
22728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22729 conftest$ac_exeext conftest.$ac_ext
22731 ac_res=`eval 'as_val=${'$as_ac_var'}
22732 $as_echo "$as_val"'`
22733 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22734 $as_echo "$ac_res" >&6; }
22735 as_val=`eval 'as_val=${'$as_ac_var'}
22736 $as_echo "$as_val"'`
22737 if test "x$as_val" = x""yes; then
22738 cat >>confdefs.h <<_ACEOF
22739 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22746 { $as_echo "$as_me:$LINENO: checking for builtin locking functions" >&5
22747 $as_echo_n "checking for builtin locking functions... " >&6; }
22748 if test "${pgac_cv_gcc_int_atomics+set}" = set; then
22749 $as_echo_n "(cached) " >&6
22751 cat >conftest.$ac_ext <<_ACEOF
22754 cat confdefs.h >>conftest.$ac_ext
22755 cat >>conftest.$ac_ext <<_ACEOF
22756 /* end confdefs.h. */
22762 __sync_lock_test_and_set(&lock, 1);
22763 __sync_lock_release(&lock);
22768 rm -f conftest.$ac_objext conftest$ac_exeext
22769 if { (ac_try="$ac_link"
22770 case "(($ac_try" in
22771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22772 *) ac_try_echo=$ac_try;;
22774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22775 $as_echo "$ac_try_echo") >&5
22776 (eval "$ac_link") 2>conftest.er1
22778 grep -v '^ *+' conftest.er1 >conftest.err
22780 cat conftest.err >&5
22781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); } && {
22783 test -z "$ac_c_werror_flag" ||
22784 test ! -s conftest.err
22785 } && test -s conftest$ac_exeext && {
22786 test "$cross_compiling" = yes ||
22787 $as_test_x conftest$ac_exeext
22789 pgac_cv_gcc_int_atomics="yes"
22791 $as_echo "$as_me: failed program was:" >&5
22792 sed 's/^/| /' conftest.$ac_ext >&5
22794 pgac_cv_gcc_int_atomics="no"
22797 rm -rf conftest.dSYM
22798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22799 conftest$ac_exeext conftest.$ac_ext
22801 { $as_echo "$as_me:$LINENO: result: $pgac_cv_gcc_int_atomics" >&5
22802 $as_echo "$pgac_cv_gcc_int_atomics" >&6; }
22803 if test x"$pgac_cv_gcc_int_atomics" = x"yes"; then
22805 cat >>confdefs.h <<\_ACEOF
22806 #define HAVE_GCC_INT_ATOMICS 1
22811 # Lastly, restore full LIBS list and check for readline/libedit symbols
22812 LIBS="$LIBS_including_readline"
22814 if test "$with_readline" = yes; then
22815 { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
22816 $as_echo_n "checking for rl_completion_append_character... " >&6; }
22817 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
22818 $as_echo_n "(cached) " >&6
22820 cat >conftest.$ac_ext <<_ACEOF
22823 cat confdefs.h >>conftest.$ac_ext
22824 cat >>conftest.$ac_ext <<_ACEOF
22825 /* end confdefs.h. */
22827 #ifdef HAVE_READLINE_READLINE_H
22828 # include <readline/readline.h>
22829 #elif defined(HAVE_READLINE_H)
22830 # include <readline.h>
22836 rl_completion_append_character = 'x';
22841 rm -f conftest.$ac_objext conftest$ac_exeext
22842 if { (ac_try="$ac_link"
22843 case "(($ac_try" in
22844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22845 *) ac_try_echo=$ac_try;;
22847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22848 $as_echo "$ac_try_echo") >&5
22849 (eval "$ac_link") 2>conftest.er1
22851 grep -v '^ *+' conftest.er1 >conftest.err
22853 cat conftest.err >&5
22854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); } && {
22856 test -z "$ac_c_werror_flag" ||
22857 test ! -s conftest.err
22858 } && test -s conftest$ac_exeext && {
22859 test "$cross_compiling" = yes ||
22860 $as_test_x conftest$ac_exeext
22862 pgac_cv_var_rl_completion_append_character=yes
22864 $as_echo "$as_me: failed program was:" >&5
22865 sed 's/^/| /' conftest.$ac_ext >&5
22867 pgac_cv_var_rl_completion_append_character=no
22870 rm -rf conftest.dSYM
22871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22872 conftest$ac_exeext conftest.$ac_ext
22874 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
22875 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
22876 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
22878 cat >>confdefs.h <<\_ACEOF
22879 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
22885 for ac_func in rl_completion_matches rl_filename_completion_function
22887 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22888 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22889 $as_echo_n "checking for $ac_func... " >&6; }
22890 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22891 $as_echo_n "(cached) " >&6
22893 cat >conftest.$ac_ext <<_ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h. */
22899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22901 #define $ac_func innocuous_$ac_func
22903 /* System header to define __stub macros and hopefully few prototypes,
22904 which can conflict with char $ac_func (); below.
22905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22906 <limits.h> exists even on freestanding compilers. */
22909 # include <limits.h>
22911 # include <assert.h>
22916 /* Override any GCC internal prototype to avoid an error.
22917 Use char because int might match the return type of a GCC
22918 builtin and then its argument prototype would still apply. */
22923 /* The GNU C library defines this for functions which it implements
22924 to always fail with ENOSYS. Some functions are actually named
22925 something starting with __ and the normal name is an alias. */
22926 #if defined __stub_$ac_func || defined __stub___$ac_func
22933 return $ac_func ();
22938 rm -f conftest.$ac_objext conftest$ac_exeext
22939 if { (ac_try="$ac_link"
22940 case "(($ac_try" in
22941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22942 *) ac_try_echo=$ac_try;;
22944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22945 $as_echo "$ac_try_echo") >&5
22946 (eval "$ac_link") 2>conftest.er1
22948 grep -v '^ *+' conftest.er1 >conftest.err
22950 cat conftest.err >&5
22951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952 (exit $ac_status); } && {
22953 test -z "$ac_c_werror_flag" ||
22954 test ! -s conftest.err
22955 } && test -s conftest$ac_exeext && {
22956 test "$cross_compiling" = yes ||
22957 $as_test_x conftest$ac_exeext
22959 eval "$as_ac_var=yes"
22961 $as_echo "$as_me: failed program was:" >&5
22962 sed 's/^/| /' conftest.$ac_ext >&5
22964 eval "$as_ac_var=no"
22967 rm -rf conftest.dSYM
22968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22969 conftest$ac_exeext conftest.$ac_ext
22971 ac_res=`eval 'as_val=${'$as_ac_var'}
22972 $as_echo "$as_val"'`
22973 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22974 $as_echo "$ac_res" >&6; }
22975 as_val=`eval 'as_val=${'$as_ac_var'}
22976 $as_echo "$as_val"'`
22977 if test "x$as_val" = x""yes; then
22978 cat >>confdefs.h <<_ACEOF
22979 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22987 for ac_func in append_history history_truncate_file
22989 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22990 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22991 $as_echo_n "checking for $ac_func... " >&6; }
22992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22993 $as_echo_n "(cached) " >&6
22995 cat >conftest.$ac_ext <<_ACEOF
22998 cat confdefs.h >>conftest.$ac_ext
22999 cat >>conftest.$ac_ext <<_ACEOF
23000 /* end confdefs.h. */
23001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23003 #define $ac_func innocuous_$ac_func
23005 /* System header to define __stub macros and hopefully few prototypes,
23006 which can conflict with char $ac_func (); below.
23007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23008 <limits.h> exists even on freestanding compilers. */
23011 # include <limits.h>
23013 # include <assert.h>
23018 /* Override any GCC internal prototype to avoid an error.
23019 Use char because int might match the return type of a GCC
23020 builtin and then its argument prototype would still apply. */
23025 /* The GNU C library defines this for functions which it implements
23026 to always fail with ENOSYS. Some functions are actually named
23027 something starting with __ and the normal name is an alias. */
23028 #if defined __stub_$ac_func || defined __stub___$ac_func
23035 return $ac_func ();
23040 rm -f conftest.$ac_objext conftest$ac_exeext
23041 if { (ac_try="$ac_link"
23042 case "(($ac_try" in
23043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23044 *) ac_try_echo=$ac_try;;
23046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23047 $as_echo "$ac_try_echo") >&5
23048 (eval "$ac_link") 2>conftest.er1
23050 grep -v '^ *+' conftest.er1 >conftest.err
23052 cat conftest.err >&5
23053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); } && {
23055 test -z "$ac_c_werror_flag" ||
23056 test ! -s conftest.err
23057 } && test -s conftest$ac_exeext && {
23058 test "$cross_compiling" = yes ||
23059 $as_test_x conftest$ac_exeext
23061 eval "$as_ac_var=yes"
23063 $as_echo "$as_me: failed program was:" >&5
23064 sed 's/^/| /' conftest.$ac_ext >&5
23066 eval "$as_ac_var=no"
23069 rm -rf conftest.dSYM
23070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23071 conftest$ac_exeext conftest.$ac_ext
23073 ac_res=`eval 'as_val=${'$as_ac_var'}
23074 $as_echo "$as_val"'`
23075 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23076 $as_echo "$ac_res" >&6; }
23077 as_val=`eval 'as_val=${'$as_ac_var'}
23078 $as_echo "$as_val"'`
23079 if test "x$as_val" = x""yes; then
23080 cat >>confdefs.h <<_ACEOF
23081 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23093 # For each platform, we need to know about any special compile and link
23094 # libraries, and whether the normal C function names are thread-safe.
23095 # See the comment at the top of src/port/thread.c for more information.
23096 # WIN32 doesn't need the pthread tests; it always uses threads
23097 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
23102 ac_cpp='$CPP $CPPFLAGS'
23103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23109 # We used to check for pthread.h first, but this fails if pthread.h
23110 # requires special compiler flags (e.g. on True64 or Sequent).
23111 # It gets checked for in the link test anyway.
23113 # First of all, check if the user has set any of the PTHREAD_LIBS,
23114 # etcetera environment variables, and if threads linking works using
23116 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
23117 save_CFLAGS="$CFLAGS"
23118 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23120 LIBS="$PTHREAD_LIBS $LIBS"
23121 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
23122 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
23123 cat >conftest.$ac_ext <<_ACEOF
23126 cat confdefs.h >>conftest.$ac_ext
23127 cat >>conftest.$ac_ext <<_ACEOF
23128 /* end confdefs.h. */
23130 /* Override any GCC internal prototype to avoid an error.
23131 Use char because int might match the return type of a GCC
23132 builtin and then its argument prototype would still apply. */
23136 char pthread_join ();
23140 return pthread_join ();
23145 rm -f conftest.$ac_objext conftest$ac_exeext
23146 if { (ac_try="$ac_link"
23147 case "(($ac_try" in
23148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23149 *) ac_try_echo=$ac_try;;
23151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23152 $as_echo "$ac_try_echo") >&5
23153 (eval "$ac_link") 2>conftest.er1
23155 grep -v '^ *+' conftest.er1 >conftest.err
23157 cat conftest.err >&5
23158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159 (exit $ac_status); } && {
23160 test -z "$ac_c_werror_flag" ||
23161 test ! -s conftest.err
23162 } && test -s conftest$ac_exeext && {
23163 test "$cross_compiling" = yes ||
23164 $as_test_x conftest$ac_exeext
23168 $as_echo "$as_me: failed program was:" >&5
23169 sed 's/^/| /' conftest.$ac_ext >&5
23174 rm -rf conftest.dSYM
23175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23176 conftest$ac_exeext conftest.$ac_ext
23177 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23178 $as_echo "$acx_pthread_ok" >&6; }
23179 if test x"$acx_pthread_ok" = xno; then
23184 CFLAGS="$save_CFLAGS"
23187 # We must check for the threads library under a number of different
23188 # names; the ordering is very important because some systems
23189 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
23190 # libraries is broken (non-POSIX).
23192 # Create a list of thread flags to try. Items starting with a "-" are
23193 # C compiler flags, and other items are library names, except for "none"
23194 # which indicates that we try without any flags at all, and "pthread-config"
23195 # which is a program returning the flags for the Pth emulation library.
23197 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
23199 # The ordering *is* (sometimes) important. Some notes on the
23200 # individual items follow:
23202 # pthreads: AIX (must check this before -lpthread)
23203 # none: in case threads are in libc; should be tried before -Kthread and
23204 # other compiler flags to prevent continual compiler warnings
23205 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
23206 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
23207 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
23208 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
23209 # -pthreads: Solaris/gcc
23210 # -mthreads: Mingw32/gcc, Lynx/gcc
23211 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
23212 # doesn't hurt to check since this sometimes defines pthreads too;
23213 # also defines -D_REENTRANT)
23214 # pthread: Linux, etcetera
23215 # --thread-safe: KAI C++
23216 # pthread-config: use pthread-config program (for GNU Pth library)
23218 case "${host_cpu}-${host_os}" in
23221 # On Solaris (at least, for some versions), libc contains stubbed
23222 # (non-functional) versions of the pthreads routines, so link-based
23223 # tests will erroneously succeed. (We need to link with -pthread or
23224 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
23225 # a function called by this macro, so we could check for that, but
23226 # who knows whether they'll stub that too in a future libc.) So,
23227 # we'll just look for -pthreads and -lpthread first:
23229 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
23233 if test x"$acx_pthread_ok" = xno; then
23234 for flag in $acx_pthread_flags; do
23236 tryPTHREAD_CFLAGS=""
23240 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
23241 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
23245 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
23246 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
23247 tryPTHREAD_CFLAGS="$flag"
23251 # skip this if we already have flags defined, for PostgreSQL
23252 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
23253 # Extract the first word of "pthread-config", so it can be a program name with args.
23254 set dummy pthread-config; ac_word=$2
23255 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23256 $as_echo_n "checking for $ac_word... " >&6; }
23257 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
23258 $as_echo_n "(cached) " >&6
23260 if test -n "$acx_pthread_config"; then
23261 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
23263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23264 for as_dir in $PATH
23267 test -z "$as_dir" && as_dir=.
23268 for ac_exec_ext in '' $ac_executable_extensions; do
23269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23270 ac_cv_prog_acx_pthread_config="yes"
23271 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23278 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
23281 acx_pthread_config=$ac_cv_prog_acx_pthread_config
23282 if test -n "$acx_pthread_config"; then
23283 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
23284 $as_echo "$acx_pthread_config" >&6; }
23286 { $as_echo "$as_me:$LINENO: result: no" >&5
23287 $as_echo "no" >&6; }
23291 if test x"$acx_pthread_config" = xno; then continue; fi
23292 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
23293 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
23297 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
23298 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
23299 tryPTHREAD_LIBS="-l$flag"
23304 save_CFLAGS="$CFLAGS"
23305 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
23306 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
23308 # Check for various functions. We must include pthread.h,
23309 # since some functions may be macros. (On the Sequent, we
23310 # need a special flag -Kthread to make this header compile.)
23311 # We check for pthread_join because it is in -lpthread on IRIX
23312 # while pthread_create is in libc. We check for pthread_attr_init
23313 # due to DEC craziness with -lpthreads. We check for
23314 # pthread_cleanup_push because it is one of the few pthread
23315 # functions on Solaris that doesn't have a non-functional libc stub.
23316 # We try pthread_create on general principles.
23317 cat >conftest.$ac_ext <<_ACEOF
23320 cat confdefs.h >>conftest.$ac_ext
23321 cat >>conftest.$ac_ext <<_ACEOF
23322 /* end confdefs.h. */
23323 #include <pthread.h>
23327 pthread_t th; pthread_join(th, 0);
23328 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23329 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23334 rm -f conftest.$ac_objext conftest$ac_exeext
23335 if { (ac_try="$ac_link"
23336 case "(($ac_try" in
23337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23338 *) ac_try_echo=$ac_try;;
23340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23341 $as_echo "$ac_try_echo") >&5
23342 (eval "$ac_link") 2>conftest.er1
23344 grep -v '^ *+' conftest.er1 >conftest.err
23346 cat conftest.err >&5
23347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348 (exit $ac_status); } && {
23349 test -z "$ac_c_werror_flag" ||
23350 test ! -s conftest.err
23351 } && test -s conftest$ac_exeext && {
23352 test "$cross_compiling" = yes ||
23353 $as_test_x conftest$ac_exeext
23357 $as_echo "$as_me: failed program was:" >&5
23358 sed 's/^/| /' conftest.$ac_ext >&5
23363 rm -rf conftest.dSYM
23364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23365 conftest$ac_exeext conftest.$ac_ext
23367 if test "x$acx_pthread_ok" = xyes; then
23368 # Don't use options that are ignored by the compiler.
23369 # We find them by checking stderror.
23370 cat >conftest.$ac_ext <<_ACEOF
23372 main (int argc, char **argv)
23379 rm -f conftest.$ac_objext conftest$ac_exeext
23380 # Check both linking and compiling, because they might tolerate different options.
23381 if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
23382 # we continue with more flags because Linux needs -lpthread
23383 # for libpq builds on PostgreSQL. The test above only
23384 # tests for building binaries, not shared libraries.
23385 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
23386 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
23387 else acx_pthread_ok=no
23392 CFLAGS="$save_CFLAGS"
23394 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23395 $as_echo "$acx_pthread_ok" >&6; }
23399 # Various other checks:
23400 if test "x$acx_pthread_ok" = xyes; then
23402 LIBS="$PTHREAD_LIBS $LIBS"
23403 save_CFLAGS="$CFLAGS"
23404 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23406 # Detect AIX lossage: threads are created detached by default
23407 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
23408 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
23409 $as_echo_n "checking for joinable pthread attribute... " >&6; }
23410 cat >conftest.$ac_ext <<_ACEOF
23413 cat confdefs.h >>conftest.$ac_ext
23414 cat >>conftest.$ac_ext <<_ACEOF
23415 /* end confdefs.h. */
23416 #include <pthread.h>
23420 int attr=PTHREAD_CREATE_JOINABLE;
23425 rm -f conftest.$ac_objext conftest$ac_exeext
23426 if { (ac_try="$ac_link"
23427 case "(($ac_try" in
23428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23429 *) ac_try_echo=$ac_try;;
23431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23432 $as_echo "$ac_try_echo") >&5
23433 (eval "$ac_link") 2>conftest.er1
23435 grep -v '^ *+' conftest.er1 >conftest.err
23437 cat conftest.err >&5
23438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439 (exit $ac_status); } && {
23440 test -z "$ac_c_werror_flag" ||
23441 test ! -s conftest.err
23442 } && test -s conftest$ac_exeext && {
23443 test "$cross_compiling" = yes ||
23444 $as_test_x conftest$ac_exeext
23446 ok=PTHREAD_CREATE_JOINABLE
23448 $as_echo "$as_me: failed program was:" >&5
23449 sed 's/^/| /' conftest.$ac_ext >&5
23454 rm -rf conftest.dSYM
23455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23456 conftest$ac_exeext conftest.$ac_ext
23457 if test x"$ok" = xunknown; then
23458 cat >conftest.$ac_ext <<_ACEOF
23461 cat confdefs.h >>conftest.$ac_ext
23462 cat >>conftest.$ac_ext <<_ACEOF
23463 /* end confdefs.h. */
23464 #include <pthread.h>
23468 int attr=PTHREAD_CREATE_UNDETACHED;
23473 rm -f conftest.$ac_objext conftest$ac_exeext
23474 if { (ac_try="$ac_link"
23475 case "(($ac_try" in
23476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23477 *) ac_try_echo=$ac_try;;
23479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23480 $as_echo "$ac_try_echo") >&5
23481 (eval "$ac_link") 2>conftest.er1
23483 grep -v '^ *+' conftest.er1 >conftest.err
23485 cat conftest.err >&5
23486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487 (exit $ac_status); } && {
23488 test -z "$ac_c_werror_flag" ||
23489 test ! -s conftest.err
23490 } && test -s conftest$ac_exeext && {
23491 test "$cross_compiling" = yes ||
23492 $as_test_x conftest$ac_exeext
23494 ok=PTHREAD_CREATE_UNDETACHED
23496 $as_echo "$as_me: failed program was:" >&5
23497 sed 's/^/| /' conftest.$ac_ext >&5
23502 rm -rf conftest.dSYM
23503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23504 conftest$ac_exeext conftest.$ac_ext
23506 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
23508 cat >>confdefs.h <<\_ACEOF
23509 #define PTHREAD_CREATE_JOINABLE $ok
23513 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
23514 $as_echo "${ok}" >&6; }
23515 if test x"$ok" = xunknown; then
23516 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
23517 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
23520 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23521 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
23523 # We always add these in PostgreSQL
23524 # case "${host_cpu}-${host_os}" in
23525 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23526 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23528 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
23529 $as_echo "${flag}" >&6; }
23530 if test "x$flag" != xno; then
23531 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23535 CFLAGS="$save_CFLAGS"
23537 # Supporting cc_r would require a special CC in all places that
23538 # use libpq, and that is ugly, so we don't do it. Users can still
23539 # define their compiler as cc_r to do thread builds of everything.
23540 # More AIX lossage: must compile with cc_r
23541 # Extract the first word of "cc_r", so it can be a program name with args.
23542 set dummy cc_r; ac_word=$2
23543 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23544 $as_echo_n "checking for $ac_word... " >&6; }
23545 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23546 $as_echo_n "(cached) " >&6
23548 if test -n "$PTHREAD_CC"; then
23549 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23552 for as_dir in $PATH
23555 test -z "$as_dir" && as_dir=.
23556 for ac_exec_ext in '' $ac_executable_extensions; do
23557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23558 ac_cv_prog_PTHREAD_CC="cc_r"
23559 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23566 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23569 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23570 if test -n "$PTHREAD_CC"; then
23571 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23572 $as_echo "$PTHREAD_CC" >&6; }
23574 { $as_echo "$as_me:$LINENO: result: no" >&5
23575 $as_echo "no" >&6; }
23587 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23588 if test x"$acx_pthread_ok" = xyes; then
23590 cat >>confdefs.h <<\_ACEOF
23591 #define HAVE_PTHREAD 1
23600 ac_cpp='$CPP $CPPFLAGS'
23601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23607 # Some platforms use these, so just define them. They can't hurt if they
23608 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23609 # enables 5-arg getpwuid_r, among other things.
23610 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23613 # At this point, we don't want to muck with the compiler name for threading.
23614 # Let's see who fails, perhaps AIX. 2004-04-23
23615 if test "$PTHREAD_CC" != "$CC"; then
23616 { { $as_echo "$as_me:$LINENO: error:
23617 PostgreSQL does not support platforms that require a special compiler
23618 for thread safety; use --disable-thread-safety to disable thread safety." >&5
23619 $as_echo "$as_me: error:
23620 PostgreSQL does not support platforms that require a special compiler
23621 for thread safety; use --disable-thread-safety to disable thread safety." >&2;}
23622 { (exit 1); exit 1; }; }
23625 # Check for *_r functions
23628 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23629 LIBS="$LIBS $PTHREAD_LIBS"
23631 if test "$PORTNAME" != "win32"; then
23632 if test "${ac_cv_header_pthread_h+set}" = set; then
23633 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23634 $as_echo_n "checking for pthread.h... " >&6; }
23635 if test "${ac_cv_header_pthread_h+set}" = set; then
23636 $as_echo_n "(cached) " >&6
23638 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23639 $as_echo "$ac_cv_header_pthread_h" >&6; }
23641 # Is the header compilable?
23642 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23643 $as_echo_n "checking pthread.h usability... " >&6; }
23644 cat >conftest.$ac_ext <<_ACEOF
23647 cat confdefs.h >>conftest.$ac_ext
23648 cat >>conftest.$ac_ext <<_ACEOF
23649 /* end confdefs.h. */
23650 $ac_includes_default
23651 #include <pthread.h>
23653 rm -f conftest.$ac_objext
23654 if { (ac_try="$ac_compile"
23655 case "(($ac_try" in
23656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23657 *) ac_try_echo=$ac_try;;
23659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23660 $as_echo "$ac_try_echo") >&5
23661 (eval "$ac_compile") 2>conftest.er1
23663 grep -v '^ *+' conftest.er1 >conftest.err
23665 cat conftest.err >&5
23666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23667 (exit $ac_status); } && {
23668 test -z "$ac_c_werror_flag" ||
23669 test ! -s conftest.err
23670 } && test -s conftest.$ac_objext; then
23671 ac_header_compiler=yes
23673 $as_echo "$as_me: failed program was:" >&5
23674 sed 's/^/| /' conftest.$ac_ext >&5
23676 ac_header_compiler=no
23679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23680 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23681 $as_echo "$ac_header_compiler" >&6; }
23683 # Is the header present?
23684 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23685 $as_echo_n "checking pthread.h presence... " >&6; }
23686 cat >conftest.$ac_ext <<_ACEOF
23689 cat confdefs.h >>conftest.$ac_ext
23690 cat >>conftest.$ac_ext <<_ACEOF
23691 /* end confdefs.h. */
23692 #include <pthread.h>
23694 if { (ac_try="$ac_cpp conftest.$ac_ext"
23695 case "(($ac_try" in
23696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23697 *) ac_try_echo=$ac_try;;
23699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23700 $as_echo "$ac_try_echo") >&5
23701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23703 grep -v '^ *+' conftest.er1 >conftest.err
23705 cat conftest.err >&5
23706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707 (exit $ac_status); } >/dev/null && {
23708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23709 test ! -s conftest.err
23711 ac_header_preproc=yes
23713 $as_echo "$as_me: failed program was:" >&5
23714 sed 's/^/| /' conftest.$ac_ext >&5
23716 ac_header_preproc=no
23719 rm -f conftest.err conftest.$ac_ext
23720 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23721 $as_echo "$ac_header_preproc" >&6; }
23723 # So? What about this header?
23724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23726 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23727 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23728 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23729 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23730 ac_header_preproc=yes
23733 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23734 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23735 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
23736 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
23737 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23738 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23739 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
23740 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
23741 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23742 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23743 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23744 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23746 ## ---------------------------------------- ##
23747 ## Report this to pgsql-bugs@postgresql.org ##
23748 ## ---------------------------------------- ##
23750 ) | sed "s/^/$as_me: WARNING: /" >&2
23753 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23754 $as_echo_n "checking for pthread.h... " >&6; }
23755 if test "${ac_cv_header_pthread_h+set}" = set; then
23756 $as_echo_n "(cached) " >&6
23758 ac_cv_header_pthread_h=$ac_header_preproc
23760 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23761 $as_echo "$ac_cv_header_pthread_h" >&6; }
23764 if test "x$ac_cv_header_pthread_h" = x""yes; then
23767 { { $as_echo "$as_me:$LINENO: error:
23768 pthread.h not found; use --disable-thread-safety to disable thread safety" >&5
23769 $as_echo "$as_me: error:
23770 pthread.h not found; use --disable-thread-safety to disable thread safety" >&2;}
23771 { (exit 1); exit 1; }; }
23780 for ac_func in strerror_r getpwuid_r gethostbyname_r
23782 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23783 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23784 $as_echo_n "checking for $ac_func... " >&6; }
23785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23786 $as_echo_n "(cached) " >&6
23788 cat >conftest.$ac_ext <<_ACEOF
23791 cat confdefs.h >>conftest.$ac_ext
23792 cat >>conftest.$ac_ext <<_ACEOF
23793 /* end confdefs.h. */
23794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23796 #define $ac_func innocuous_$ac_func
23798 /* System header to define __stub macros and hopefully few prototypes,
23799 which can conflict with char $ac_func (); below.
23800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23801 <limits.h> exists even on freestanding compilers. */
23804 # include <limits.h>
23806 # include <assert.h>
23811 /* Override any GCC internal prototype to avoid an error.
23812 Use char because int might match the return type of a GCC
23813 builtin and then its argument prototype would still apply. */
23818 /* The GNU C library defines this for functions which it implements
23819 to always fail with ENOSYS. Some functions are actually named
23820 something starting with __ and the normal name is an alias. */
23821 #if defined __stub_$ac_func || defined __stub___$ac_func
23828 return $ac_func ();
23833 rm -f conftest.$ac_objext conftest$ac_exeext
23834 if { (ac_try="$ac_link"
23835 case "(($ac_try" in
23836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23837 *) ac_try_echo=$ac_try;;
23839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23840 $as_echo "$ac_try_echo") >&5
23841 (eval "$ac_link") 2>conftest.er1
23843 grep -v '^ *+' conftest.er1 >conftest.err
23845 cat conftest.err >&5
23846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); } && {
23848 test -z "$ac_c_werror_flag" ||
23849 test ! -s conftest.err
23850 } && test -s conftest$ac_exeext && {
23851 test "$cross_compiling" = yes ||
23852 $as_test_x conftest$ac_exeext
23854 eval "$as_ac_var=yes"
23856 $as_echo "$as_me: failed program was:" >&5
23857 sed 's/^/| /' conftest.$ac_ext >&5
23859 eval "$as_ac_var=no"
23862 rm -rf conftest.dSYM
23863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23864 conftest$ac_exeext conftest.$ac_ext
23866 ac_res=`eval 'as_val=${'$as_ac_var'}
23867 $as_echo "$as_val"'`
23868 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23869 $as_echo "$ac_res" >&6; }
23870 as_val=`eval 'as_val=${'$as_ac_var'}
23871 $as_echo "$as_val"'`
23872 if test "x$as_val" = x""yes; then
23873 cat >>confdefs.h <<_ACEOF
23874 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23881 # Do test here with the proper thread flags
23882 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23883 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23884 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23885 $as_echo_n "(cached) " >&6
23887 cat >conftest.$ac_ext <<_ACEOF
23890 cat confdefs.h >>conftest.$ac_ext
23891 cat >>conftest.$ac_ext <<_ACEOF
23892 /* end confdefs.h. */
23893 #include <sys/types.h>
23899 struct passwd *space;
23902 struct passwd **result;
23903 getpwuid_r(uid, space, buf, bufsize, result);
23908 rm -f conftest.$ac_objext
23909 if { (ac_try="$ac_compile"
23910 case "(($ac_try" in
23911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23912 *) ac_try_echo=$ac_try;;
23914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23915 $as_echo "$ac_try_echo") >&5
23916 (eval "$ac_compile") 2>conftest.er1
23918 grep -v '^ *+' conftest.er1 >conftest.err
23920 cat conftest.err >&5
23921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922 (exit $ac_status); } && {
23923 test -z "$ac_c_werror_flag" ||
23924 test ! -s conftest.err
23925 } && test -s conftest.$ac_objext; then
23926 pgac_cv_func_getpwuid_r_5arg=yes
23928 $as_echo "$as_me: failed program was:" >&5
23929 sed 's/^/| /' conftest.$ac_ext >&5
23931 pgac_cv_func_getpwuid_r_5arg=no
23934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23936 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
23937 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
23938 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
23940 cat >>confdefs.h <<\_ACEOF
23941 #define GETPWUID_R_5ARG 1
23946 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
23947 $as_echo_n "checking whether strerror_r returns int... " >&6; }
23948 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
23949 $as_echo_n "(cached) " >&6
23951 cat >conftest.$ac_ext <<_ACEOF
23954 cat confdefs.h >>conftest.$ac_ext
23955 cat >>conftest.$ac_ext <<_ACEOF
23956 /* end confdefs.h. */
23957 #include <string.h>
23962 int strerror_r(int, char *, size_t);
23964 /* Older AIX has 'int' for the third argument so we don't test the args. */
23971 rm -f conftest.$ac_objext
23972 if { (ac_try="$ac_compile"
23973 case "(($ac_try" in
23974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23975 *) ac_try_echo=$ac_try;;
23977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23978 $as_echo "$ac_try_echo") >&5
23979 (eval "$ac_compile") 2>conftest.er1
23981 grep -v '^ *+' conftest.er1 >conftest.err
23983 cat conftest.err >&5
23984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985 (exit $ac_status); } && {
23986 test -z "$ac_c_werror_flag" ||
23987 test ! -s conftest.err
23988 } && test -s conftest.$ac_objext; then
23989 pgac_cv_func_strerror_r_int=yes
23991 $as_echo "$as_me: failed program was:" >&5
23992 sed 's/^/| /' conftest.$ac_ext >&5
23994 pgac_cv_func_strerror_r_int=no
23997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23999 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
24000 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
24001 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
24003 cat >>confdefs.h <<\_ACEOF
24004 #define STRERROR_R_INT 1
24014 # do not use values from template file
24023 # We can test for libldap_r only after we know PTHREAD_LIBS
24024 if test "$with_ldap" = yes ; then
24026 if test "$PORTNAME" != "win32"; then
24028 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
24029 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
24030 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
24031 $as_echo_n "(cached) " >&6
24033 ac_check_lib_save_LIBS=$LIBS
24034 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
24035 cat >conftest.$ac_ext <<_ACEOF
24038 cat confdefs.h >>conftest.$ac_ext
24039 cat >>conftest.$ac_ext <<_ACEOF
24040 /* end confdefs.h. */
24042 /* Override any GCC internal prototype to avoid an error.
24043 Use char because int might match the return type of a GCC
24044 builtin and then its argument prototype would still apply. */
24052 return ldap_bind ();
24057 rm -f conftest.$ac_objext conftest$ac_exeext
24058 if { (ac_try="$ac_link"
24059 case "(($ac_try" in
24060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24061 *) ac_try_echo=$ac_try;;
24063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24064 $as_echo "$ac_try_echo") >&5
24065 (eval "$ac_link") 2>conftest.er1
24067 grep -v '^ *+' conftest.er1 >conftest.err
24069 cat conftest.err >&5
24070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24071 (exit $ac_status); } && {
24072 test -z "$ac_c_werror_flag" ||
24073 test ! -s conftest.err
24074 } && test -s conftest$ac_exeext && {
24075 test "$cross_compiling" = yes ||
24076 $as_test_x conftest$ac_exeext
24078 ac_cv_lib_ldap_ldap_bind=yes
24080 $as_echo "$as_me: failed program was:" >&5
24081 sed 's/^/| /' conftest.$ac_ext >&5
24083 ac_cv_lib_ldap_ldap_bind=no
24086 rm -rf conftest.dSYM
24087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24088 conftest$ac_exeext conftest.$ac_ext
24089 LIBS=$ac_check_lib_save_LIBS
24091 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
24092 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
24093 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
24094 cat >>confdefs.h <<_ACEOF
24095 #define HAVE_LIBLDAP 1
24098 LIBS="-lldap $LIBS"
24101 { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
24102 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
24103 { (exit 1); exit 1; }; }
24106 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
24107 if test "$enable_thread_safety" = yes; then
24108 # on some platforms ldap_r fails to link without PTHREAD_LIBS
24110 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
24111 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
24112 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
24113 $as_echo_n "(cached) " >&6
24115 ac_check_lib_save_LIBS=$LIBS
24116 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
24117 cat >conftest.$ac_ext <<_ACEOF
24120 cat confdefs.h >>conftest.$ac_ext
24121 cat >>conftest.$ac_ext <<_ACEOF
24122 /* end confdefs.h. */
24124 /* Override any GCC internal prototype to avoid an error.
24125 Use char because int might match the return type of a GCC
24126 builtin and then its argument prototype would still apply. */
24130 char ldap_simple_bind ();
24134 return ldap_simple_bind ();
24139 rm -f conftest.$ac_objext conftest$ac_exeext
24140 if { (ac_try="$ac_link"
24141 case "(($ac_try" in
24142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24143 *) ac_try_echo=$ac_try;;
24145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24146 $as_echo "$ac_try_echo") >&5
24147 (eval "$ac_link") 2>conftest.er1
24149 grep -v '^ *+' conftest.er1 >conftest.err
24151 cat conftest.err >&5
24152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24153 (exit $ac_status); } && {
24154 test -z "$ac_c_werror_flag" ||
24155 test ! -s conftest.err
24156 } && test -s conftest$ac_exeext && {
24157 test "$cross_compiling" = yes ||
24158 $as_test_x conftest$ac_exeext
24160 ac_cv_lib_ldap_r_ldap_simple_bind=yes
24162 $as_echo "$as_me: failed program was:" >&5
24163 sed 's/^/| /' conftest.$ac_ext >&5
24165 ac_cv_lib_ldap_r_ldap_simple_bind=no
24168 rm -rf conftest.dSYM
24169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24170 conftest$ac_exeext conftest.$ac_ext
24171 LIBS=$ac_check_lib_save_LIBS
24173 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
24174 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
24175 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
24176 cat >>confdefs.h <<_ACEOF
24177 #define HAVE_LIBLDAP_R 1
24180 LIBS="-lldap_r $LIBS"
24183 { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
24184 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
24185 { (exit 1); exit 1; }; }
24188 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
24190 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
24194 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
24195 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
24196 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
24197 $as_echo_n "(cached) " >&6
24199 ac_check_lib_save_LIBS=$LIBS
24200 LIBS="-lwldap32 $LIBS"
24201 cat >conftest.$ac_ext <<_ACEOF
24204 cat confdefs.h >>conftest.$ac_ext
24205 cat >>conftest.$ac_ext <<_ACEOF
24206 /* end confdefs.h. */
24208 /* Override any GCC internal prototype to avoid an error.
24209 Use char because int might match the return type of a GCC
24210 builtin and then its argument prototype would still apply. */
24218 return ldap_bind ();
24223 rm -f conftest.$ac_objext conftest$ac_exeext
24224 if { (ac_try="$ac_link"
24225 case "(($ac_try" in
24226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24227 *) ac_try_echo=$ac_try;;
24229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24230 $as_echo "$ac_try_echo") >&5
24231 (eval "$ac_link") 2>conftest.er1
24233 grep -v '^ *+' conftest.er1 >conftest.err
24235 cat conftest.err >&5
24236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237 (exit $ac_status); } && {
24238 test -z "$ac_c_werror_flag" ||
24239 test ! -s conftest.err
24240 } && test -s conftest$ac_exeext && {
24241 test "$cross_compiling" = yes ||
24242 $as_test_x conftest$ac_exeext
24244 ac_cv_lib_wldap32_ldap_bind=yes
24246 $as_echo "$as_me: failed program was:" >&5
24247 sed 's/^/| /' conftest.$ac_ext >&5
24249 ac_cv_lib_wldap32_ldap_bind=no
24252 rm -rf conftest.dSYM
24253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24254 conftest$ac_exeext conftest.$ac_ext
24255 LIBS=$ac_check_lib_save_LIBS
24257 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
24258 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
24259 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
24260 cat >>confdefs.h <<_ACEOF
24261 #define HAVE_LIBWLDAP32 1
24264 LIBS="-lwldap32 $LIBS"
24267 { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
24268 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
24269 { (exit 1); exit 1; }; }
24272 LDAP_LIBS_FE="-lwldap32"
24273 LDAP_LIBS_BE="-lwldap32"
24281 # This test makes sure that run tests work at all. Sometimes a shared
24282 # library is found by the linker, but the runtime linker can't find it.
24283 # This check should come after all modifications of compiler or linker
24284 # variables, and before any other run tests.
24285 { $as_echo "$as_me:$LINENO: checking test program" >&5
24286 $as_echo_n "checking test program... " >&6; }
24287 if test "$cross_compiling" = yes; then
24288 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
24289 $as_echo "cross-compiling" >&6; }
24291 cat >conftest.$ac_ext <<_ACEOF
24294 cat confdefs.h >>conftest.$ac_ext
24295 cat >>conftest.$ac_ext <<_ACEOF
24296 /* end confdefs.h. */
24297 int main() { return 0; }
24299 rm -f conftest$ac_exeext
24300 if { (ac_try="$ac_link"
24301 case "(($ac_try" in
24302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24303 *) ac_try_echo=$ac_try;;
24305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24306 $as_echo "$ac_try_echo") >&5
24307 (eval "$ac_link") 2>&5
24309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24311 { (case "(($ac_try" in
24312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24313 *) ac_try_echo=$ac_try;;
24315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24316 $as_echo "$ac_try_echo") >&5
24317 (eval "$ac_try") 2>&5
24319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24320 (exit $ac_status); }; }; then
24321 { $as_echo "$as_me:$LINENO: result: ok" >&5
24322 $as_echo "ok" >&6; }
24324 $as_echo "$as_me: program exited with status $ac_status" >&5
24325 $as_echo "$as_me: failed program was:" >&5
24326 sed 's/^/| /' conftest.$ac_ext >&5
24328 ( exit $ac_status )
24329 { $as_echo "$as_me:$LINENO: result: failed" >&5
24330 $as_echo "failed" >&6; }
24331 { { $as_echo "$as_me:$LINENO: error:
24332 Could not execute a simple test program. This may be a problem
24333 related to locating shared libraries. Check the file 'config.log'
24334 for the exact reason." >&5
24335 $as_echo "$as_me: error:
24336 Could not execute a simple test program. This may be a problem
24337 related to locating shared libraries. Check the file 'config.log'
24338 for the exact reason." >&2;}
24339 { (exit 1); exit 1; }; }
24341 rm -rf conftest.dSYM
24342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24347 # --------------------
24348 # Run tests below here
24349 # --------------------
24351 # Force use of our snprintf if system's doesn't do arg control
24352 # See comment above at snprintf test for details.
24353 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
24354 { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
24355 $as_echo_n "checking whether printf supports argument control... " >&6; }
24356 if test "${pgac_cv_printf_arg_control+set}" = set; then
24357 $as_echo_n "(cached) " >&6
24359 if test "$cross_compiling" = yes; then
24360 pgac_cv_printf_arg_control=cross
24362 cat >conftest.$ac_ext <<_ACEOF
24365 cat confdefs.h >>conftest.$ac_ext
24366 cat >>conftest.$ac_ext <<_ACEOF
24367 /* end confdefs.h. */
24369 #include <string.h>
24375 /* can it swap arguments? */
24376 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
24377 if (strcmp(buf, "4 3") != 0)
24382 rm -f conftest$ac_exeext
24383 if { (ac_try="$ac_link"
24384 case "(($ac_try" in
24385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24386 *) ac_try_echo=$ac_try;;
24388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24389 $as_echo "$ac_try_echo") >&5
24390 (eval "$ac_link") 2>&5
24392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24394 { (case "(($ac_try" in
24395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24396 *) ac_try_echo=$ac_try;;
24398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24399 $as_echo "$ac_try_echo") >&5
24400 (eval "$ac_try") 2>&5
24402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403 (exit $ac_status); }; }; then
24404 pgac_cv_printf_arg_control=yes
24406 $as_echo "$as_me: program exited with status $ac_status" >&5
24407 $as_echo "$as_me: failed program was:" >&5
24408 sed 's/^/| /' conftest.$ac_ext >&5
24410 ( exit $ac_status )
24411 pgac_cv_printf_arg_control=no
24413 rm -rf conftest.dSYM
24414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24420 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
24421 $as_echo "$pgac_cv_printf_arg_control" >&6; }
24423 if test $pgac_cv_printf_arg_control != yes ; then
24424 pgac_need_repl_snprintf=yes
24431 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
24432 $as_echo_n "checking whether long int is 64 bits... " >&6; }
24433 if test "${pgac_cv_type_long_int_64+set}" = set; then
24434 $as_echo_n "(cached) " >&6
24436 if test "$cross_compiling" = yes; then
24437 # If cross-compiling, check the size reported by the compiler and
24438 # trust that the arithmetic works.
24439 cat >conftest.$ac_ext <<_ACEOF
24442 cat confdefs.h >>conftest.$ac_ext
24443 cat >>conftest.$ac_ext <<_ACEOF
24444 /* end confdefs.h. */
24449 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
24456 rm -f conftest.$ac_objext
24457 if { (ac_try="$ac_compile"
24458 case "(($ac_try" in
24459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24460 *) ac_try_echo=$ac_try;;
24462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24463 $as_echo "$ac_try_echo") >&5
24464 (eval "$ac_compile") 2>conftest.er1
24466 grep -v '^ *+' conftest.er1 >conftest.err
24468 cat conftest.err >&5
24469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470 (exit $ac_status); } && {
24471 test -z "$ac_c_werror_flag" ||
24472 test ! -s conftest.err
24473 } && test -s conftest.$ac_objext; then
24474 pgac_cv_type_long_int_64=yes
24476 $as_echo "$as_me: failed program was:" >&5
24477 sed 's/^/| /' conftest.$ac_ext >&5
24479 pgac_cv_type_long_int_64=no
24482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24484 cat >conftest.$ac_ext <<_ACEOF
24487 cat confdefs.h >>conftest.$ac_ext
24488 cat >>conftest.$ac_ext <<_ACEOF
24489 /* end confdefs.h. */
24490 typedef long int ac_int64;
24493 * These are globals to discourage the compiler from folding all the
24494 * arithmetic tests down to compile-time constants.
24496 ac_int64 a = 20000001;
24497 ac_int64 b = 40000005;
24499 int does_int64_work()
24503 if (sizeof(ac_int64) != 8)
24504 return 0; /* definitely not the right size */
24506 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24514 exit(! does_int64_work());
24517 rm -f conftest$ac_exeext
24518 if { (ac_try="$ac_link"
24519 case "(($ac_try" in
24520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24521 *) ac_try_echo=$ac_try;;
24523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24524 $as_echo "$ac_try_echo") >&5
24525 (eval "$ac_link") 2>&5
24527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24529 { (case "(($ac_try" in
24530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24531 *) ac_try_echo=$ac_try;;
24533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24534 $as_echo "$ac_try_echo") >&5
24535 (eval "$ac_try") 2>&5
24537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538 (exit $ac_status); }; }; then
24539 pgac_cv_type_long_int_64=yes
24541 $as_echo "$as_me: program exited with status $ac_status" >&5
24542 $as_echo "$as_me: failed program was:" >&5
24543 sed 's/^/| /' conftest.$ac_ext >&5
24545 ( exit $ac_status )
24546 pgac_cv_type_long_int_64=no
24548 rm -rf conftest.dSYM
24549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24554 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
24555 $as_echo "$pgac_cv_type_long_int_64" >&6; }
24557 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
24558 if test x"$pgac_cv_type_long_int_64" = xyes ; then
24560 cat >>confdefs.h <<\_ACEOF
24561 #define HAVE_LONG_INT_64 1
24567 if test x"$HAVE_LONG_INT_64" = x"yes" ; then
24568 pg_int64_type="long int"
24570 { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24571 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24572 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24573 $as_echo_n "(cached) " >&6
24575 if test "$cross_compiling" = yes; then
24576 # If cross-compiling, check the size reported by the compiler and
24577 # trust that the arithmetic works.
24578 cat >conftest.$ac_ext <<_ACEOF
24581 cat confdefs.h >>conftest.$ac_ext
24582 cat >>conftest.$ac_ext <<_ACEOF
24583 /* end confdefs.h. */
24588 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24595 rm -f conftest.$ac_objext
24596 if { (ac_try="$ac_compile"
24597 case "(($ac_try" in
24598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24599 *) ac_try_echo=$ac_try;;
24601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24602 $as_echo "$ac_try_echo") >&5
24603 (eval "$ac_compile") 2>conftest.er1
24605 grep -v '^ *+' conftest.er1 >conftest.err
24607 cat conftest.err >&5
24608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609 (exit $ac_status); } && {
24610 test -z "$ac_c_werror_flag" ||
24611 test ! -s conftest.err
24612 } && test -s conftest.$ac_objext; then
24613 pgac_cv_type_long_long_int_64=yes
24615 $as_echo "$as_me: failed program was:" >&5
24616 sed 's/^/| /' conftest.$ac_ext >&5
24618 pgac_cv_type_long_long_int_64=no
24621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24623 cat >conftest.$ac_ext <<_ACEOF
24626 cat confdefs.h >>conftest.$ac_ext
24627 cat >>conftest.$ac_ext <<_ACEOF
24628 /* end confdefs.h. */
24629 typedef long long int ac_int64;
24632 * These are globals to discourage the compiler from folding all the
24633 * arithmetic tests down to compile-time constants.
24635 ac_int64 a = 20000001;
24636 ac_int64 b = 40000005;
24638 int does_int64_work()
24642 if (sizeof(ac_int64) != 8)
24643 return 0; /* definitely not the right size */
24645 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24653 exit(! does_int64_work());
24656 rm -f conftest$ac_exeext
24657 if { (ac_try="$ac_link"
24658 case "(($ac_try" in
24659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24660 *) ac_try_echo=$ac_try;;
24662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24663 $as_echo "$ac_try_echo") >&5
24664 (eval "$ac_link") 2>&5
24666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24668 { (case "(($ac_try" in
24669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24670 *) ac_try_echo=$ac_try;;
24672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24673 $as_echo "$ac_try_echo") >&5
24674 (eval "$ac_try") 2>&5
24676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); }; }; then
24678 pgac_cv_type_long_long_int_64=yes
24680 $as_echo "$as_me: program exited with status $ac_status" >&5
24681 $as_echo "$as_me: failed program was:" >&5
24682 sed 's/^/| /' conftest.$ac_ext >&5
24684 ( exit $ac_status )
24685 pgac_cv_type_long_long_int_64=no
24687 rm -rf conftest.dSYM
24688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24693 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24694 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24696 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24697 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24699 cat >>confdefs.h <<\_ACEOF
24700 #define HAVE_LONG_LONG_INT_64 1
24705 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
24706 pg_int64_type="long long int"
24708 { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24709 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24710 { (exit 1); exit 1; }; }
24715 cat >>confdefs.h <<_ACEOF
24716 #define PG_INT64_TYPE $pg_int64_type
24721 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24722 cat >conftest.$ac_ext <<_ACEOF
24725 cat confdefs.h >>conftest.$ac_ext
24726 cat >>conftest.$ac_ext <<_ACEOF
24727 /* end confdefs.h. */
24729 #define INT64CONST(x) x##LL
24730 long long int foo = INT64CONST(0x1234567890123456);
24740 rm -f conftest.$ac_objext
24741 if { (ac_try="$ac_compile"
24742 case "(($ac_try" in
24743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24744 *) ac_try_echo=$ac_try;;
24746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24747 $as_echo "$ac_try_echo") >&5
24748 (eval "$ac_compile") 2>conftest.er1
24750 grep -v '^ *+' conftest.er1 >conftest.err
24752 cat conftest.err >&5
24753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754 (exit $ac_status); } && {
24755 test -z "$ac_c_werror_flag" ||
24756 test ! -s conftest.err
24757 } && test -s conftest.$ac_objext; then
24759 cat >>confdefs.h <<\_ACEOF
24760 #define HAVE_LL_CONSTANTS 1
24764 $as_echo "$as_me: failed program was:" >&5
24765 sed 's/^/| /' conftest.$ac_ext >&5
24770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24774 # If we found "long int" is 64 bits, assume snprintf handles it. If
24775 # we found we need to use "long long int", better check. We cope with
24776 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
24777 # work, fall back to our own snprintf emulation (which we know uses %lld).
24779 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
24780 if test $pgac_need_repl_snprintf = no; then
24781 { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
24782 $as_echo_n "checking snprintf format for long long int... " >&6; }
24783 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
24784 $as_echo_n "(cached) " >&6
24786 for pgac_format in '%lld' '%qd' '%I64d'; do
24787 if test "$cross_compiling" = yes; then
24788 pgac_cv_snprintf_long_long_int_format=cross; break
24790 cat >conftest.$ac_ext <<_ACEOF
24793 cat confdefs.h >>conftest.$ac_ext
24794 cat >>conftest.$ac_ext <<_ACEOF
24795 /* end confdefs.h. */
24797 typedef long long int ac_int64;
24798 #define INT64_FORMAT "$pgac_format"
24800 ac_int64 a = 20000001;
24801 ac_int64 b = 40000005;
24803 int does_int64_snprintf_work()
24808 if (sizeof(ac_int64) != 8)
24809 return 0; /* doesn't look like the right size */
24812 snprintf(buf, 100, INT64_FORMAT, c);
24813 if (strcmp(buf, "800000140000005") != 0)
24814 return 0; /* either multiply or snprintf is busted */
24818 exit(! does_int64_snprintf_work());
24821 rm -f conftest$ac_exeext
24822 if { (ac_try="$ac_link"
24823 case "(($ac_try" in
24824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24825 *) ac_try_echo=$ac_try;;
24827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24828 $as_echo "$ac_try_echo") >&5
24829 (eval "$ac_link") 2>&5
24831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24833 { (case "(($ac_try" in
24834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24835 *) ac_try_echo=$ac_try;;
24837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24838 $as_echo "$ac_try_echo") >&5
24839 (eval "$ac_try") 2>&5
24841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24842 (exit $ac_status); }; }; then
24843 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
24845 $as_echo "$as_me: program exited with status $ac_status" >&5
24846 $as_echo "$as_me: failed program was:" >&5
24847 sed 's/^/| /' conftest.$ac_ext >&5
24850 rm -rf conftest.dSYM
24851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24858 LONG_LONG_INT_FORMAT=''
24860 case $pgac_cv_snprintf_long_long_int_format in
24861 cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24862 $as_echo "cannot test (not on host machine)" >&6; };;
24863 ?*) { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24864 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24865 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24866 *) { $as_echo "$as_me:$LINENO: result: none" >&5
24867 $as_echo "none" >&6; };;
24869 if test "$LONG_LONG_INT_FORMAT" = ""; then
24870 # Force usage of our own snprintf, since system snprintf is broken
24871 pgac_need_repl_snprintf=yes
24872 LONG_LONG_INT_FORMAT='%lld'
24875 # Here if we previously decided we needed to use our own snprintf
24876 LONG_LONG_INT_FORMAT='%lld'
24878 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24879 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24880 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24882 # Here if we are not using 'long long int' at all
24883 INT64_FORMAT='"%ld"'
24884 UINT64_FORMAT='"%lu"'
24888 cat >>confdefs.h <<_ACEOF
24889 #define INT64_FORMAT $INT64_FORMAT
24894 cat >>confdefs.h <<_ACEOF
24895 #define UINT64_FORMAT $UINT64_FORMAT
24899 # Now we have checked all the reasons to replace snprintf
24900 if test $pgac_need_repl_snprintf = yes; then
24902 cat >>confdefs.h <<\_ACEOF
24903 #define USE_REPL_SNPRINTF 1
24906 case " $LIBOBJS " in
24907 *" snprintf.$ac_objext "* ) ;;
24908 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24914 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24915 # The cast to long int works around a bug in the HP C Compiler
24916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24917 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24918 # This bug is HP SR number 8606223364.
24919 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24920 $as_echo_n "checking size of void *... " >&6; }
24921 if test "${ac_cv_sizeof_void_p+set}" = set; then
24922 $as_echo_n "(cached) " >&6
24924 if test "$cross_compiling" = yes; then
24925 # Depending upon the size, compute the lo and hi bounds.
24926 cat >conftest.$ac_ext <<_ACEOF
24929 cat confdefs.h >>conftest.$ac_ext
24930 cat >>conftest.$ac_ext <<_ACEOF
24931 /* end confdefs.h. */
24932 $ac_includes_default
24936 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
24943 rm -f conftest.$ac_objext
24944 if { (ac_try="$ac_compile"
24945 case "(($ac_try" in
24946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24947 *) ac_try_echo=$ac_try;;
24949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24950 $as_echo "$ac_try_echo") >&5
24951 (eval "$ac_compile") 2>conftest.er1
24953 grep -v '^ *+' conftest.er1 >conftest.err
24955 cat conftest.err >&5
24956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957 (exit $ac_status); } && {
24958 test -z "$ac_c_werror_flag" ||
24959 test ! -s conftest.err
24960 } && test -s conftest.$ac_objext; then
24963 cat >conftest.$ac_ext <<_ACEOF
24966 cat confdefs.h >>conftest.$ac_ext
24967 cat >>conftest.$ac_ext <<_ACEOF
24968 /* end confdefs.h. */
24969 $ac_includes_default
24973 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24980 rm -f conftest.$ac_objext
24981 if { (ac_try="$ac_compile"
24982 case "(($ac_try" in
24983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24984 *) ac_try_echo=$ac_try;;
24986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24987 $as_echo "$ac_try_echo") >&5
24988 (eval "$ac_compile") 2>conftest.er1
24990 grep -v '^ *+' conftest.er1 >conftest.err
24992 cat conftest.err >&5
24993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994 (exit $ac_status); } && {
24995 test -z "$ac_c_werror_flag" ||
24996 test ! -s conftest.err
24997 } && test -s conftest.$ac_objext; then
24998 ac_hi=$ac_mid; break
25000 $as_echo "$as_me: failed program was:" >&5
25001 sed 's/^/| /' conftest.$ac_ext >&5
25003 ac_lo=`expr $ac_mid + 1`
25004 if test $ac_lo -le $ac_mid; then
25008 ac_mid=`expr 2 '*' $ac_mid + 1`
25011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25014 $as_echo "$as_me: failed program was:" >&5
25015 sed 's/^/| /' conftest.$ac_ext >&5
25017 cat >conftest.$ac_ext <<_ACEOF
25020 cat confdefs.h >>conftest.$ac_ext
25021 cat >>conftest.$ac_ext <<_ACEOF
25022 /* end confdefs.h. */
25023 $ac_includes_default
25027 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
25034 rm -f conftest.$ac_objext
25035 if { (ac_try="$ac_compile"
25036 case "(($ac_try" in
25037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25038 *) ac_try_echo=$ac_try;;
25040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25041 $as_echo "$ac_try_echo") >&5
25042 (eval "$ac_compile") 2>conftest.er1
25044 grep -v '^ *+' conftest.er1 >conftest.err
25046 cat conftest.err >&5
25047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048 (exit $ac_status); } && {
25049 test -z "$ac_c_werror_flag" ||
25050 test ! -s conftest.err
25051 } && test -s conftest.$ac_objext; then
25054 cat >conftest.$ac_ext <<_ACEOF
25057 cat confdefs.h >>conftest.$ac_ext
25058 cat >>conftest.$ac_ext <<_ACEOF
25059 /* end confdefs.h. */
25060 $ac_includes_default
25064 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
25071 rm -f conftest.$ac_objext
25072 if { (ac_try="$ac_compile"
25073 case "(($ac_try" in
25074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25075 *) ac_try_echo=$ac_try;;
25077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25078 $as_echo "$ac_try_echo") >&5
25079 (eval "$ac_compile") 2>conftest.er1
25081 grep -v '^ *+' conftest.er1 >conftest.err
25083 cat conftest.err >&5
25084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085 (exit $ac_status); } && {
25086 test -z "$ac_c_werror_flag" ||
25087 test ! -s conftest.err
25088 } && test -s conftest.$ac_objext; then
25089 ac_lo=$ac_mid; break
25091 $as_echo "$as_me: failed program was:" >&5
25092 sed 's/^/| /' conftest.$ac_ext >&5
25094 ac_hi=`expr '(' $ac_mid ')' - 1`
25095 if test $ac_mid -le $ac_hi; then
25099 ac_mid=`expr 2 '*' $ac_mid`
25102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25105 $as_echo "$as_me: failed program was:" >&5
25106 sed 's/^/| /' conftest.$ac_ext >&5
25111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25115 # Binary search between lo and hi bounds.
25116 while test "x$ac_lo" != "x$ac_hi"; do
25117 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25118 cat >conftest.$ac_ext <<_ACEOF
25121 cat confdefs.h >>conftest.$ac_ext
25122 cat >>conftest.$ac_ext <<_ACEOF
25123 /* end confdefs.h. */
25124 $ac_includes_default
25128 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
25135 rm -f conftest.$ac_objext
25136 if { (ac_try="$ac_compile"
25137 case "(($ac_try" in
25138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25139 *) ac_try_echo=$ac_try;;
25141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25142 $as_echo "$ac_try_echo") >&5
25143 (eval "$ac_compile") 2>conftest.er1
25145 grep -v '^ *+' conftest.er1 >conftest.err
25147 cat conftest.err >&5
25148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149 (exit $ac_status); } && {
25150 test -z "$ac_c_werror_flag" ||
25151 test ! -s conftest.err
25152 } && test -s conftest.$ac_objext; then
25155 $as_echo "$as_me: failed program was:" >&5
25156 sed 's/^/| /' conftest.$ac_ext >&5
25158 ac_lo=`expr '(' $ac_mid ')' + 1`
25161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25164 ?*) ac_cv_sizeof_void_p=$ac_lo;;
25165 '') if test "$ac_cv_type_void_p" = yes; then
25166 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25168 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
25169 See \`config.log' for more details." >&5
25170 $as_echo "$as_me: error: cannot compute sizeof (void *)
25171 See \`config.log' for more details." >&2;}
25172 { (exit 77); exit 77; }; }; }
25174 ac_cv_sizeof_void_p=0
25178 cat >conftest.$ac_ext <<_ACEOF
25181 cat confdefs.h >>conftest.$ac_ext
25182 cat >>conftest.$ac_ext <<_ACEOF
25183 /* end confdefs.h. */
25184 $ac_includes_default
25185 static long int longval () { return (long int) (sizeof (void *)); }
25186 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
25188 #include <stdlib.h>
25193 FILE *f = fopen ("conftest.val", "w");
25196 if (((long int) (sizeof (void *))) < 0)
25198 long int i = longval ();
25199 if (i != ((long int) (sizeof (void *))))
25201 fprintf (f, "%ld", i);
25205 unsigned long int i = ulongval ();
25206 if (i != ((long int) (sizeof (void *))))
25208 fprintf (f, "%lu", i);
25210 /* Do not output a trailing newline, as this causes \r\n confusion
25211 on some platforms. */
25212 return ferror (f) || fclose (f) != 0;
25218 rm -f conftest$ac_exeext
25219 if { (ac_try="$ac_link"
25220 case "(($ac_try" in
25221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25222 *) ac_try_echo=$ac_try;;
25224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25225 $as_echo "$ac_try_echo") >&5
25226 (eval "$ac_link") 2>&5
25228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25230 { (case "(($ac_try" in
25231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25232 *) ac_try_echo=$ac_try;;
25234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25235 $as_echo "$ac_try_echo") >&5
25236 (eval "$ac_try") 2>&5
25238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 (exit $ac_status); }; }; then
25240 ac_cv_sizeof_void_p=`cat conftest.val`
25242 $as_echo "$as_me: program exited with status $ac_status" >&5
25243 $as_echo "$as_me: failed program was:" >&5
25244 sed 's/^/| /' conftest.$ac_ext >&5
25246 ( exit $ac_status )
25247 if test "$ac_cv_type_void_p" = yes; then
25248 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25250 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
25251 See \`config.log' for more details." >&5
25252 $as_echo "$as_me: error: cannot compute sizeof (void *)
25253 See \`config.log' for more details." >&2;}
25254 { (exit 77); exit 77; }; }; }
25256 ac_cv_sizeof_void_p=0
25259 rm -rf conftest.dSYM
25260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25264 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
25265 $as_echo "$ac_cv_sizeof_void_p" >&6; }
25269 cat >>confdefs.h <<_ACEOF
25270 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
25274 # The cast to long int works around a bug in the HP C Compiler
25275 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25276 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25277 # This bug is HP SR number 8606223364.
25278 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
25279 $as_echo_n "checking size of size_t... " >&6; }
25280 if test "${ac_cv_sizeof_size_t+set}" = set; then
25281 $as_echo_n "(cached) " >&6
25283 if test "$cross_compiling" = yes; then
25284 # Depending upon the size, compute the lo and hi bounds.
25285 cat >conftest.$ac_ext <<_ACEOF
25288 cat confdefs.h >>conftest.$ac_ext
25289 cat >>conftest.$ac_ext <<_ACEOF
25290 /* end confdefs.h. */
25291 $ac_includes_default
25295 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
25302 rm -f conftest.$ac_objext
25303 if { (ac_try="$ac_compile"
25304 case "(($ac_try" in
25305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25306 *) ac_try_echo=$ac_try;;
25308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25309 $as_echo "$ac_try_echo") >&5
25310 (eval "$ac_compile") 2>conftest.er1
25312 grep -v '^ *+' conftest.er1 >conftest.err
25314 cat conftest.err >&5
25315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25316 (exit $ac_status); } && {
25317 test -z "$ac_c_werror_flag" ||
25318 test ! -s conftest.err
25319 } && test -s conftest.$ac_objext; then
25322 cat >conftest.$ac_ext <<_ACEOF
25325 cat confdefs.h >>conftest.$ac_ext
25326 cat >>conftest.$ac_ext <<_ACEOF
25327 /* end confdefs.h. */
25328 $ac_includes_default
25332 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25339 rm -f conftest.$ac_objext
25340 if { (ac_try="$ac_compile"
25341 case "(($ac_try" in
25342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25343 *) ac_try_echo=$ac_try;;
25345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25346 $as_echo "$ac_try_echo") >&5
25347 (eval "$ac_compile") 2>conftest.er1
25349 grep -v '^ *+' conftest.er1 >conftest.err
25351 cat conftest.err >&5
25352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353 (exit $ac_status); } && {
25354 test -z "$ac_c_werror_flag" ||
25355 test ! -s conftest.err
25356 } && test -s conftest.$ac_objext; then
25357 ac_hi=$ac_mid; break
25359 $as_echo "$as_me: failed program was:" >&5
25360 sed 's/^/| /' conftest.$ac_ext >&5
25362 ac_lo=`expr $ac_mid + 1`
25363 if test $ac_lo -le $ac_mid; then
25367 ac_mid=`expr 2 '*' $ac_mid + 1`
25370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25373 $as_echo "$as_me: failed program was:" >&5
25374 sed 's/^/| /' conftest.$ac_ext >&5
25376 cat >conftest.$ac_ext <<_ACEOF
25379 cat confdefs.h >>conftest.$ac_ext
25380 cat >>conftest.$ac_ext <<_ACEOF
25381 /* end confdefs.h. */
25382 $ac_includes_default
25386 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
25393 rm -f conftest.$ac_objext
25394 if { (ac_try="$ac_compile"
25395 case "(($ac_try" in
25396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25397 *) ac_try_echo=$ac_try;;
25399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25400 $as_echo "$ac_try_echo") >&5
25401 (eval "$ac_compile") 2>conftest.er1
25403 grep -v '^ *+' conftest.er1 >conftest.err
25405 cat conftest.err >&5
25406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25407 (exit $ac_status); } && {
25408 test -z "$ac_c_werror_flag" ||
25409 test ! -s conftest.err
25410 } && test -s conftest.$ac_objext; then
25413 cat >conftest.$ac_ext <<_ACEOF
25416 cat confdefs.h >>conftest.$ac_ext
25417 cat >>conftest.$ac_ext <<_ACEOF
25418 /* end confdefs.h. */
25419 $ac_includes_default
25423 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
25430 rm -f conftest.$ac_objext
25431 if { (ac_try="$ac_compile"
25432 case "(($ac_try" in
25433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25434 *) ac_try_echo=$ac_try;;
25436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25437 $as_echo "$ac_try_echo") >&5
25438 (eval "$ac_compile") 2>conftest.er1
25440 grep -v '^ *+' conftest.er1 >conftest.err
25442 cat conftest.err >&5
25443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25444 (exit $ac_status); } && {
25445 test -z "$ac_c_werror_flag" ||
25446 test ! -s conftest.err
25447 } && test -s conftest.$ac_objext; then
25448 ac_lo=$ac_mid; break
25450 $as_echo "$as_me: failed program was:" >&5
25451 sed 's/^/| /' conftest.$ac_ext >&5
25453 ac_hi=`expr '(' $ac_mid ')' - 1`
25454 if test $ac_mid -le $ac_hi; then
25458 ac_mid=`expr 2 '*' $ac_mid`
25461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25464 $as_echo "$as_me: failed program was:" >&5
25465 sed 's/^/| /' conftest.$ac_ext >&5
25470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25474 # Binary search between lo and hi bounds.
25475 while test "x$ac_lo" != "x$ac_hi"; do
25476 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25477 cat >conftest.$ac_ext <<_ACEOF
25480 cat confdefs.h >>conftest.$ac_ext
25481 cat >>conftest.$ac_ext <<_ACEOF
25482 /* end confdefs.h. */
25483 $ac_includes_default
25487 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25494 rm -f conftest.$ac_objext
25495 if { (ac_try="$ac_compile"
25496 case "(($ac_try" in
25497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25498 *) ac_try_echo=$ac_try;;
25500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25501 $as_echo "$ac_try_echo") >&5
25502 (eval "$ac_compile") 2>conftest.er1
25504 grep -v '^ *+' conftest.er1 >conftest.err
25506 cat conftest.err >&5
25507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508 (exit $ac_status); } && {
25509 test -z "$ac_c_werror_flag" ||
25510 test ! -s conftest.err
25511 } && test -s conftest.$ac_objext; then
25514 $as_echo "$as_me: failed program was:" >&5
25515 sed 's/^/| /' conftest.$ac_ext >&5
25517 ac_lo=`expr '(' $ac_mid ')' + 1`
25520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25523 ?*) ac_cv_sizeof_size_t=$ac_lo;;
25524 '') if test "$ac_cv_type_size_t" = yes; then
25525 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25526 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25527 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25528 See \`config.log' for more details." >&5
25529 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25530 See \`config.log' for more details." >&2;}
25531 { (exit 77); exit 77; }; }; }
25533 ac_cv_sizeof_size_t=0
25537 cat >conftest.$ac_ext <<_ACEOF
25540 cat confdefs.h >>conftest.$ac_ext
25541 cat >>conftest.$ac_ext <<_ACEOF
25542 /* end confdefs.h. */
25543 $ac_includes_default
25544 static long int longval () { return (long int) (sizeof (size_t)); }
25545 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
25547 #include <stdlib.h>
25552 FILE *f = fopen ("conftest.val", "w");
25555 if (((long int) (sizeof (size_t))) < 0)
25557 long int i = longval ();
25558 if (i != ((long int) (sizeof (size_t))))
25560 fprintf (f, "%ld", i);
25564 unsigned long int i = ulongval ();
25565 if (i != ((long int) (sizeof (size_t))))
25567 fprintf (f, "%lu", i);
25569 /* Do not output a trailing newline, as this causes \r\n confusion
25570 on some platforms. */
25571 return ferror (f) || fclose (f) != 0;
25577 rm -f conftest$ac_exeext
25578 if { (ac_try="$ac_link"
25579 case "(($ac_try" in
25580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25581 *) ac_try_echo=$ac_try;;
25583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25584 $as_echo "$ac_try_echo") >&5
25585 (eval "$ac_link") 2>&5
25587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25589 { (case "(($ac_try" in
25590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25591 *) ac_try_echo=$ac_try;;
25593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25594 $as_echo "$ac_try_echo") >&5
25595 (eval "$ac_try") 2>&5
25597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598 (exit $ac_status); }; }; then
25599 ac_cv_sizeof_size_t=`cat conftest.val`
25601 $as_echo "$as_me: program exited with status $ac_status" >&5
25602 $as_echo "$as_me: failed program was:" >&5
25603 sed 's/^/| /' conftest.$ac_ext >&5
25605 ( exit $ac_status )
25606 if test "$ac_cv_type_size_t" = yes; then
25607 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25609 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25610 See \`config.log' for more details." >&5
25611 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25612 See \`config.log' for more details." >&2;}
25613 { (exit 77); exit 77; }; }; }
25615 ac_cv_sizeof_size_t=0
25618 rm -rf conftest.dSYM
25619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25623 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25624 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25628 cat >>confdefs.h <<_ACEOF
25629 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25633 # The cast to long int works around a bug in the HP C Compiler
25634 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25635 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25636 # This bug is HP SR number 8606223364.
25637 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25638 $as_echo_n "checking size of long... " >&6; }
25639 if test "${ac_cv_sizeof_long+set}" = set; then
25640 $as_echo_n "(cached) " >&6
25642 if test "$cross_compiling" = yes; then
25643 # Depending upon the size, compute the lo and hi bounds.
25644 cat >conftest.$ac_ext <<_ACEOF
25647 cat confdefs.h >>conftest.$ac_ext
25648 cat >>conftest.$ac_ext <<_ACEOF
25649 /* end confdefs.h. */
25650 $ac_includes_default
25654 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25661 rm -f conftest.$ac_objext
25662 if { (ac_try="$ac_compile"
25663 case "(($ac_try" in
25664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25665 *) ac_try_echo=$ac_try;;
25667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25668 $as_echo "$ac_try_echo") >&5
25669 (eval "$ac_compile") 2>conftest.er1
25671 grep -v '^ *+' conftest.er1 >conftest.err
25673 cat conftest.err >&5
25674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675 (exit $ac_status); } && {
25676 test -z "$ac_c_werror_flag" ||
25677 test ! -s conftest.err
25678 } && test -s conftest.$ac_objext; then
25681 cat >conftest.$ac_ext <<_ACEOF
25684 cat confdefs.h >>conftest.$ac_ext
25685 cat >>conftest.$ac_ext <<_ACEOF
25686 /* end confdefs.h. */
25687 $ac_includes_default
25691 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25698 rm -f conftest.$ac_objext
25699 if { (ac_try="$ac_compile"
25700 case "(($ac_try" in
25701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25702 *) ac_try_echo=$ac_try;;
25704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25705 $as_echo "$ac_try_echo") >&5
25706 (eval "$ac_compile") 2>conftest.er1
25708 grep -v '^ *+' conftest.er1 >conftest.err
25710 cat conftest.err >&5
25711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712 (exit $ac_status); } && {
25713 test -z "$ac_c_werror_flag" ||
25714 test ! -s conftest.err
25715 } && test -s conftest.$ac_objext; then
25716 ac_hi=$ac_mid; break
25718 $as_echo "$as_me: failed program was:" >&5
25719 sed 's/^/| /' conftest.$ac_ext >&5
25721 ac_lo=`expr $ac_mid + 1`
25722 if test $ac_lo -le $ac_mid; then
25726 ac_mid=`expr 2 '*' $ac_mid + 1`
25729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25732 $as_echo "$as_me: failed program was:" >&5
25733 sed 's/^/| /' conftest.$ac_ext >&5
25735 cat >conftest.$ac_ext <<_ACEOF
25738 cat confdefs.h >>conftest.$ac_ext
25739 cat >>conftest.$ac_ext <<_ACEOF
25740 /* end confdefs.h. */
25741 $ac_includes_default
25745 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25752 rm -f conftest.$ac_objext
25753 if { (ac_try="$ac_compile"
25754 case "(($ac_try" in
25755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25756 *) ac_try_echo=$ac_try;;
25758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25759 $as_echo "$ac_try_echo") >&5
25760 (eval "$ac_compile") 2>conftest.er1
25762 grep -v '^ *+' conftest.er1 >conftest.err
25764 cat conftest.err >&5
25765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766 (exit $ac_status); } && {
25767 test -z "$ac_c_werror_flag" ||
25768 test ! -s conftest.err
25769 } && test -s conftest.$ac_objext; then
25772 cat >conftest.$ac_ext <<_ACEOF
25775 cat confdefs.h >>conftest.$ac_ext
25776 cat >>conftest.$ac_ext <<_ACEOF
25777 /* end confdefs.h. */
25778 $ac_includes_default
25782 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
25789 rm -f conftest.$ac_objext
25790 if { (ac_try="$ac_compile"
25791 case "(($ac_try" in
25792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25793 *) ac_try_echo=$ac_try;;
25795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25796 $as_echo "$ac_try_echo") >&5
25797 (eval "$ac_compile") 2>conftest.er1
25799 grep -v '^ *+' conftest.er1 >conftest.err
25801 cat conftest.err >&5
25802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803 (exit $ac_status); } && {
25804 test -z "$ac_c_werror_flag" ||
25805 test ! -s conftest.err
25806 } && test -s conftest.$ac_objext; then
25807 ac_lo=$ac_mid; break
25809 $as_echo "$as_me: failed program was:" >&5
25810 sed 's/^/| /' conftest.$ac_ext >&5
25812 ac_hi=`expr '(' $ac_mid ')' - 1`
25813 if test $ac_mid -le $ac_hi; then
25817 ac_mid=`expr 2 '*' $ac_mid`
25820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25823 $as_echo "$as_me: failed program was:" >&5
25824 sed 's/^/| /' conftest.$ac_ext >&5
25829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25833 # Binary search between lo and hi bounds.
25834 while test "x$ac_lo" != "x$ac_hi"; do
25835 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25836 cat >conftest.$ac_ext <<_ACEOF
25839 cat confdefs.h >>conftest.$ac_ext
25840 cat >>conftest.$ac_ext <<_ACEOF
25841 /* end confdefs.h. */
25842 $ac_includes_default
25846 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25853 rm -f conftest.$ac_objext
25854 if { (ac_try="$ac_compile"
25855 case "(($ac_try" in
25856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25857 *) ac_try_echo=$ac_try;;
25859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25860 $as_echo "$ac_try_echo") >&5
25861 (eval "$ac_compile") 2>conftest.er1
25863 grep -v '^ *+' conftest.er1 >conftest.err
25865 cat conftest.err >&5
25866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25867 (exit $ac_status); } && {
25868 test -z "$ac_c_werror_flag" ||
25869 test ! -s conftest.err
25870 } && test -s conftest.$ac_objext; then
25873 $as_echo "$as_me: failed program was:" >&5
25874 sed 's/^/| /' conftest.$ac_ext >&5
25876 ac_lo=`expr '(' $ac_mid ')' + 1`
25879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25882 ?*) ac_cv_sizeof_long=$ac_lo;;
25883 '') if test "$ac_cv_type_long" = yes; then
25884 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25886 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25887 See \`config.log' for more details." >&5
25888 $as_echo "$as_me: error: cannot compute sizeof (long)
25889 See \`config.log' for more details." >&2;}
25890 { (exit 77); exit 77; }; }; }
25892 ac_cv_sizeof_long=0
25896 cat >conftest.$ac_ext <<_ACEOF
25899 cat confdefs.h >>conftest.$ac_ext
25900 cat >>conftest.$ac_ext <<_ACEOF
25901 /* end confdefs.h. */
25902 $ac_includes_default
25903 static long int longval () { return (long int) (sizeof (long)); }
25904 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25906 #include <stdlib.h>
25911 FILE *f = fopen ("conftest.val", "w");
25914 if (((long int) (sizeof (long))) < 0)
25916 long int i = longval ();
25917 if (i != ((long int) (sizeof (long))))
25919 fprintf (f, "%ld", i);
25923 unsigned long int i = ulongval ();
25924 if (i != ((long int) (sizeof (long))))
25926 fprintf (f, "%lu", i);
25928 /* Do not output a trailing newline, as this causes \r\n confusion
25929 on some platforms. */
25930 return ferror (f) || fclose (f) != 0;
25936 rm -f conftest$ac_exeext
25937 if { (ac_try="$ac_link"
25938 case "(($ac_try" in
25939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25940 *) ac_try_echo=$ac_try;;
25942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25943 $as_echo "$ac_try_echo") >&5
25944 (eval "$ac_link") 2>&5
25946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25948 { (case "(($ac_try" in
25949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25950 *) ac_try_echo=$ac_try;;
25952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25953 $as_echo "$ac_try_echo") >&5
25954 (eval "$ac_try") 2>&5
25956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957 (exit $ac_status); }; }; then
25958 ac_cv_sizeof_long=`cat conftest.val`
25960 $as_echo "$as_me: program exited with status $ac_status" >&5
25961 $as_echo "$as_me: failed program was:" >&5
25962 sed 's/^/| /' conftest.$ac_ext >&5
25964 ( exit $ac_status )
25965 if test "$ac_cv_type_long" = yes; then
25966 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25968 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25969 See \`config.log' for more details." >&5
25970 $as_echo "$as_me: error: cannot compute sizeof (long)
25971 See \`config.log' for more details." >&2;}
25972 { (exit 77); exit 77; }; }; }
25974 ac_cv_sizeof_long=0
25977 rm -rf conftest.dSYM
25978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25982 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25983 $as_echo "$ac_cv_sizeof_long" >&6; }
25987 cat >>confdefs.h <<_ACEOF
25988 #define SIZEOF_LONG $ac_cv_sizeof_long
25993 # Decide whether float4 is passed by value: user-selectable, enabled by default
25994 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25995 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25998 # Check whether --enable-float4-byval was given.
25999 if test "${enable_float4_byval+set}" = set; then
26000 enableval=$enable_float4_byval;
26004 cat >>confdefs.h <<\_ACEOF
26005 #define USE_FLOAT4_BYVAL 1
26008 float4passbyval=true
26011 float4passbyval=false
26014 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
26015 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
26016 { (exit 1); exit 1; }; }
26021 enable_float4_byval=yes
26023 cat >>confdefs.h <<\_ACEOF
26024 #define USE_FLOAT4_BYVAL 1
26027 float4passbyval=true
26031 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
26032 $as_echo "$enable_float4_byval" >&6; }
26034 cat >>confdefs.h <<_ACEOF
26035 #define FLOAT4PASSBYVAL $float4passbyval
26039 # Decide whether float8 is passed by value.
26040 # Note: this setting also controls int8 and related types such as timestamp.
26041 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
26042 # If not, trying to select it is an error.
26043 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
26044 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
26045 if test $ac_cv_sizeof_void_p -ge 8 ; then
26048 # Check whether --enable-float8-byval was given.
26049 if test "${enable_float8_byval+set}" = set; then
26050 enableval=$enable_float8_byval;
26059 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
26060 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
26061 { (exit 1); exit 1; }; }
26066 enable_float8_byval=yes
26074 # Check whether --enable-float8-byval was given.
26075 if test "${enable_float8_byval+set}" = set; then
26076 enableval=$enable_float8_byval;
26085 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
26086 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
26087 { (exit 1); exit 1; }; }
26092 enable_float8_byval=no
26097 if test "$enable_float8_byval" = yes ; then
26098 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
26099 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
26100 { (exit 1); exit 1; }; }
26103 if test "$enable_float8_byval" = yes ; then
26105 cat >>confdefs.h <<\_ACEOF
26106 #define USE_FLOAT8_BYVAL 1
26109 float8passbyval=true
26111 float8passbyval=false
26113 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
26114 $as_echo "$enable_float8_byval" >&6; }
26116 cat >>confdefs.h <<_ACEOF
26117 #define FLOAT8PASSBYVAL $float8passbyval
26121 # Determine memory alignment requirements for the basic C data types.
26123 # The cast to long int works around a bug in the HP C Compiler,
26124 # see AC_CHECK_SIZEOF for more information.
26125 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
26126 $as_echo_n "checking alignment of short... " >&6; }
26127 if test "${ac_cv_alignof_short+set}" = set; then
26128 $as_echo_n "(cached) " >&6
26130 if test "$cross_compiling" = yes; then
26131 # Depending upon the size, compute the lo and hi bounds.
26132 cat >conftest.$ac_ext <<_ACEOF
26135 cat confdefs.h >>conftest.$ac_ext
26136 cat >>conftest.$ac_ext <<_ACEOF
26137 /* end confdefs.h. */
26138 $ac_includes_default
26140 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26142 typedef struct { char x; short y; } ac__type_alignof_;
26146 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26153 rm -f conftest.$ac_objext
26154 if { (ac_try="$ac_compile"
26155 case "(($ac_try" in
26156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26157 *) ac_try_echo=$ac_try;;
26159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26160 $as_echo "$ac_try_echo") >&5
26161 (eval "$ac_compile") 2>conftest.er1
26163 grep -v '^ *+' conftest.er1 >conftest.err
26165 cat conftest.err >&5
26166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26167 (exit $ac_status); } && {
26168 test -z "$ac_c_werror_flag" ||
26169 test ! -s conftest.err
26170 } && test -s conftest.$ac_objext; then
26173 cat >conftest.$ac_ext <<_ACEOF
26176 cat confdefs.h >>conftest.$ac_ext
26177 cat >>conftest.$ac_ext <<_ACEOF
26178 /* end confdefs.h. */
26179 $ac_includes_default
26181 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26183 typedef struct { char x; short y; } ac__type_alignof_;
26187 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26194 rm -f conftest.$ac_objext
26195 if { (ac_try="$ac_compile"
26196 case "(($ac_try" in
26197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26198 *) ac_try_echo=$ac_try;;
26200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26201 $as_echo "$ac_try_echo") >&5
26202 (eval "$ac_compile") 2>conftest.er1
26204 grep -v '^ *+' conftest.er1 >conftest.err
26206 cat conftest.err >&5
26207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26208 (exit $ac_status); } && {
26209 test -z "$ac_c_werror_flag" ||
26210 test ! -s conftest.err
26211 } && test -s conftest.$ac_objext; then
26212 ac_hi=$ac_mid; break
26214 $as_echo "$as_me: failed program was:" >&5
26215 sed 's/^/| /' conftest.$ac_ext >&5
26217 ac_lo=`expr $ac_mid + 1`
26218 if test $ac_lo -le $ac_mid; then
26222 ac_mid=`expr 2 '*' $ac_mid + 1`
26225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26228 $as_echo "$as_me: failed program was:" >&5
26229 sed 's/^/| /' conftest.$ac_ext >&5
26231 cat >conftest.$ac_ext <<_ACEOF
26234 cat confdefs.h >>conftest.$ac_ext
26235 cat >>conftest.$ac_ext <<_ACEOF
26236 /* end confdefs.h. */
26237 $ac_includes_default
26239 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26241 typedef struct { char x; short y; } ac__type_alignof_;
26245 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26252 rm -f conftest.$ac_objext
26253 if { (ac_try="$ac_compile"
26254 case "(($ac_try" in
26255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26256 *) ac_try_echo=$ac_try;;
26258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26259 $as_echo "$ac_try_echo") >&5
26260 (eval "$ac_compile") 2>conftest.er1
26262 grep -v '^ *+' conftest.er1 >conftest.err
26264 cat conftest.err >&5
26265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26266 (exit $ac_status); } && {
26267 test -z "$ac_c_werror_flag" ||
26268 test ! -s conftest.err
26269 } && test -s conftest.$ac_objext; then
26272 cat >conftest.$ac_ext <<_ACEOF
26275 cat confdefs.h >>conftest.$ac_ext
26276 cat >>conftest.$ac_ext <<_ACEOF
26277 /* end confdefs.h. */
26278 $ac_includes_default
26280 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26282 typedef struct { char x; short y; } ac__type_alignof_;
26286 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26293 rm -f conftest.$ac_objext
26294 if { (ac_try="$ac_compile"
26295 case "(($ac_try" in
26296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26297 *) ac_try_echo=$ac_try;;
26299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26300 $as_echo "$ac_try_echo") >&5
26301 (eval "$ac_compile") 2>conftest.er1
26303 grep -v '^ *+' conftest.er1 >conftest.err
26305 cat conftest.err >&5
26306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307 (exit $ac_status); } && {
26308 test -z "$ac_c_werror_flag" ||
26309 test ! -s conftest.err
26310 } && test -s conftest.$ac_objext; then
26311 ac_lo=$ac_mid; break
26313 $as_echo "$as_me: failed program was:" >&5
26314 sed 's/^/| /' conftest.$ac_ext >&5
26316 ac_hi=`expr '(' $ac_mid ')' - 1`
26317 if test $ac_mid -le $ac_hi; then
26321 ac_mid=`expr 2 '*' $ac_mid`
26324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26327 $as_echo "$as_me: failed program was:" >&5
26328 sed 's/^/| /' conftest.$ac_ext >&5
26333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26337 # Binary search between lo and hi bounds.
26338 while test "x$ac_lo" != "x$ac_hi"; do
26339 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26340 cat >conftest.$ac_ext <<_ACEOF
26343 cat confdefs.h >>conftest.$ac_ext
26344 cat >>conftest.$ac_ext <<_ACEOF
26345 /* end confdefs.h. */
26346 $ac_includes_default
26348 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26350 typedef struct { char x; short y; } ac__type_alignof_;
26354 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26361 rm -f conftest.$ac_objext
26362 if { (ac_try="$ac_compile"
26363 case "(($ac_try" in
26364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26365 *) ac_try_echo=$ac_try;;
26367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26368 $as_echo "$ac_try_echo") >&5
26369 (eval "$ac_compile") 2>conftest.er1
26371 grep -v '^ *+' conftest.er1 >conftest.err
26373 cat conftest.err >&5
26374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26375 (exit $ac_status); } && {
26376 test -z "$ac_c_werror_flag" ||
26377 test ! -s conftest.err
26378 } && test -s conftest.$ac_objext; then
26381 $as_echo "$as_me: failed program was:" >&5
26382 sed 's/^/| /' conftest.$ac_ext >&5
26384 ac_lo=`expr '(' $ac_mid ')' + 1`
26387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26390 ?*) ac_cv_alignof_short=$ac_lo;;
26391 '') if test "$ac_cv_type_short" = yes; then
26392 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26394 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26395 See \`config.log' for more details." >&5
26396 $as_echo "$as_me: error: cannot compute alignment of short
26397 See \`config.log' for more details." >&2;}
26398 { (exit 77); exit 77; }; }; }
26400 ac_cv_alignof_short=0
26404 cat >conftest.$ac_ext <<_ACEOF
26407 cat confdefs.h >>conftest.$ac_ext
26408 cat >>conftest.$ac_ext <<_ACEOF
26409 /* end confdefs.h. */
26410 $ac_includes_default
26412 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26414 typedef struct { char x; short y; } ac__type_alignof_;
26415 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26416 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26418 #include <stdlib.h>
26423 FILE *f = fopen ("conftest.val", "w");
26426 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26428 long int i = longval ();
26429 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26431 fprintf (f, "%ld", i);
26435 unsigned long int i = ulongval ();
26436 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26438 fprintf (f, "%lu", i);
26440 /* Do not output a trailing newline, as this causes \r\n confusion
26441 on some platforms. */
26442 return ferror (f) || fclose (f) != 0;
26448 rm -f conftest$ac_exeext
26449 if { (ac_try="$ac_link"
26450 case "(($ac_try" in
26451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26452 *) ac_try_echo=$ac_try;;
26454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26455 $as_echo "$ac_try_echo") >&5
26456 (eval "$ac_link") 2>&5
26458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26460 { (case "(($ac_try" in
26461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26462 *) ac_try_echo=$ac_try;;
26464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26465 $as_echo "$ac_try_echo") >&5
26466 (eval "$ac_try") 2>&5
26468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469 (exit $ac_status); }; }; then
26470 ac_cv_alignof_short=`cat conftest.val`
26472 $as_echo "$as_me: program exited with status $ac_status" >&5
26473 $as_echo "$as_me: failed program was:" >&5
26474 sed 's/^/| /' conftest.$ac_ext >&5
26476 ( exit $ac_status )
26477 if test "$ac_cv_type_short" = yes; then
26478 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26480 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26481 See \`config.log' for more details." >&5
26482 $as_echo "$as_me: error: cannot compute alignment of short
26483 See \`config.log' for more details." >&2;}
26484 { (exit 77); exit 77; }; }; }
26486 ac_cv_alignof_short=0
26489 rm -rf conftest.dSYM
26490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26494 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
26495 $as_echo "$ac_cv_alignof_short" >&6; }
26499 cat >>confdefs.h <<_ACEOF
26500 #define ALIGNOF_SHORT $ac_cv_alignof_short
26504 # The cast to long int works around a bug in the HP C Compiler,
26505 # see AC_CHECK_SIZEOF for more information.
26506 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
26507 $as_echo_n "checking alignment of int... " >&6; }
26508 if test "${ac_cv_alignof_int+set}" = set; then
26509 $as_echo_n "(cached) " >&6
26511 if test "$cross_compiling" = yes; then
26512 # Depending upon the size, compute the lo and hi bounds.
26513 cat >conftest.$ac_ext <<_ACEOF
26516 cat confdefs.h >>conftest.$ac_ext
26517 cat >>conftest.$ac_ext <<_ACEOF
26518 /* end confdefs.h. */
26519 $ac_includes_default
26521 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26523 typedef struct { char x; int y; } ac__type_alignof_;
26527 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26534 rm -f conftest.$ac_objext
26535 if { (ac_try="$ac_compile"
26536 case "(($ac_try" in
26537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26538 *) ac_try_echo=$ac_try;;
26540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26541 $as_echo "$ac_try_echo") >&5
26542 (eval "$ac_compile") 2>conftest.er1
26544 grep -v '^ *+' conftest.er1 >conftest.err
26546 cat conftest.err >&5
26547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26548 (exit $ac_status); } && {
26549 test -z "$ac_c_werror_flag" ||
26550 test ! -s conftest.err
26551 } && test -s conftest.$ac_objext; then
26554 cat >conftest.$ac_ext <<_ACEOF
26557 cat confdefs.h >>conftest.$ac_ext
26558 cat >>conftest.$ac_ext <<_ACEOF
26559 /* end confdefs.h. */
26560 $ac_includes_default
26562 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26564 typedef struct { char x; int y; } ac__type_alignof_;
26568 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26575 rm -f conftest.$ac_objext
26576 if { (ac_try="$ac_compile"
26577 case "(($ac_try" in
26578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26579 *) ac_try_echo=$ac_try;;
26581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26582 $as_echo "$ac_try_echo") >&5
26583 (eval "$ac_compile") 2>conftest.er1
26585 grep -v '^ *+' conftest.er1 >conftest.err
26587 cat conftest.err >&5
26588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589 (exit $ac_status); } && {
26590 test -z "$ac_c_werror_flag" ||
26591 test ! -s conftest.err
26592 } && test -s conftest.$ac_objext; then
26593 ac_hi=$ac_mid; break
26595 $as_echo "$as_me: failed program was:" >&5
26596 sed 's/^/| /' conftest.$ac_ext >&5
26598 ac_lo=`expr $ac_mid + 1`
26599 if test $ac_lo -le $ac_mid; then
26603 ac_mid=`expr 2 '*' $ac_mid + 1`
26606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26609 $as_echo "$as_me: failed program was:" >&5
26610 sed 's/^/| /' conftest.$ac_ext >&5
26612 cat >conftest.$ac_ext <<_ACEOF
26615 cat confdefs.h >>conftest.$ac_ext
26616 cat >>conftest.$ac_ext <<_ACEOF
26617 /* end confdefs.h. */
26618 $ac_includes_default
26620 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26622 typedef struct { char x; int y; } ac__type_alignof_;
26626 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26633 rm -f conftest.$ac_objext
26634 if { (ac_try="$ac_compile"
26635 case "(($ac_try" in
26636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26637 *) ac_try_echo=$ac_try;;
26639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26640 $as_echo "$ac_try_echo") >&5
26641 (eval "$ac_compile") 2>conftest.er1
26643 grep -v '^ *+' conftest.er1 >conftest.err
26645 cat conftest.err >&5
26646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647 (exit $ac_status); } && {
26648 test -z "$ac_c_werror_flag" ||
26649 test ! -s conftest.err
26650 } && test -s conftest.$ac_objext; then
26653 cat >conftest.$ac_ext <<_ACEOF
26656 cat confdefs.h >>conftest.$ac_ext
26657 cat >>conftest.$ac_ext <<_ACEOF
26658 /* end confdefs.h. */
26659 $ac_includes_default
26661 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26663 typedef struct { char x; int y; } ac__type_alignof_;
26667 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26674 rm -f conftest.$ac_objext
26675 if { (ac_try="$ac_compile"
26676 case "(($ac_try" in
26677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26678 *) ac_try_echo=$ac_try;;
26680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26681 $as_echo "$ac_try_echo") >&5
26682 (eval "$ac_compile") 2>conftest.er1
26684 grep -v '^ *+' conftest.er1 >conftest.err
26686 cat conftest.err >&5
26687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); } && {
26689 test -z "$ac_c_werror_flag" ||
26690 test ! -s conftest.err
26691 } && test -s conftest.$ac_objext; then
26692 ac_lo=$ac_mid; break
26694 $as_echo "$as_me: failed program was:" >&5
26695 sed 's/^/| /' conftest.$ac_ext >&5
26697 ac_hi=`expr '(' $ac_mid ')' - 1`
26698 if test $ac_mid -le $ac_hi; then
26702 ac_mid=`expr 2 '*' $ac_mid`
26705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26708 $as_echo "$as_me: failed program was:" >&5
26709 sed 's/^/| /' conftest.$ac_ext >&5
26714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26718 # Binary search between lo and hi bounds.
26719 while test "x$ac_lo" != "x$ac_hi"; do
26720 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26721 cat >conftest.$ac_ext <<_ACEOF
26724 cat confdefs.h >>conftest.$ac_ext
26725 cat >>conftest.$ac_ext <<_ACEOF
26726 /* end confdefs.h. */
26727 $ac_includes_default
26729 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26731 typedef struct { char x; int y; } ac__type_alignof_;
26735 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26742 rm -f conftest.$ac_objext
26743 if { (ac_try="$ac_compile"
26744 case "(($ac_try" in
26745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26746 *) ac_try_echo=$ac_try;;
26748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26749 $as_echo "$ac_try_echo") >&5
26750 (eval "$ac_compile") 2>conftest.er1
26752 grep -v '^ *+' conftest.er1 >conftest.err
26754 cat conftest.err >&5
26755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756 (exit $ac_status); } && {
26757 test -z "$ac_c_werror_flag" ||
26758 test ! -s conftest.err
26759 } && test -s conftest.$ac_objext; then
26762 $as_echo "$as_me: failed program was:" >&5
26763 sed 's/^/| /' conftest.$ac_ext >&5
26765 ac_lo=`expr '(' $ac_mid ')' + 1`
26768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26771 ?*) ac_cv_alignof_int=$ac_lo;;
26772 '') if test "$ac_cv_type_int" = yes; then
26773 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26775 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26776 See \`config.log' for more details." >&5
26777 $as_echo "$as_me: error: cannot compute alignment of int
26778 See \`config.log' for more details." >&2;}
26779 { (exit 77); exit 77; }; }; }
26781 ac_cv_alignof_int=0
26785 cat >conftest.$ac_ext <<_ACEOF
26788 cat confdefs.h >>conftest.$ac_ext
26789 cat >>conftest.$ac_ext <<_ACEOF
26790 /* end confdefs.h. */
26791 $ac_includes_default
26793 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26795 typedef struct { char x; int y; } ac__type_alignof_;
26796 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26797 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26799 #include <stdlib.h>
26804 FILE *f = fopen ("conftest.val", "w");
26807 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26809 long int i = longval ();
26810 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26812 fprintf (f, "%ld", i);
26816 unsigned long int i = ulongval ();
26817 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26819 fprintf (f, "%lu", i);
26821 /* Do not output a trailing newline, as this causes \r\n confusion
26822 on some platforms. */
26823 return ferror (f) || fclose (f) != 0;
26829 rm -f conftest$ac_exeext
26830 if { (ac_try="$ac_link"
26831 case "(($ac_try" in
26832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26833 *) ac_try_echo=$ac_try;;
26835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26836 $as_echo "$ac_try_echo") >&5
26837 (eval "$ac_link") 2>&5
26839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26841 { (case "(($ac_try" in
26842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26843 *) ac_try_echo=$ac_try;;
26845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26846 $as_echo "$ac_try_echo") >&5
26847 (eval "$ac_try") 2>&5
26849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); }; }; then
26851 ac_cv_alignof_int=`cat conftest.val`
26853 $as_echo "$as_me: program exited with status $ac_status" >&5
26854 $as_echo "$as_me: failed program was:" >&5
26855 sed 's/^/| /' conftest.$ac_ext >&5
26857 ( exit $ac_status )
26858 if test "$ac_cv_type_int" = yes; then
26859 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26861 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26862 See \`config.log' for more details." >&5
26863 $as_echo "$as_me: error: cannot compute alignment of int
26864 See \`config.log' for more details." >&2;}
26865 { (exit 77); exit 77; }; }; }
26867 ac_cv_alignof_int=0
26870 rm -rf conftest.dSYM
26871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26875 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26876 $as_echo "$ac_cv_alignof_int" >&6; }
26880 cat >>confdefs.h <<_ACEOF
26881 #define ALIGNOF_INT $ac_cv_alignof_int
26885 # The cast to long int works around a bug in the HP C Compiler,
26886 # see AC_CHECK_SIZEOF for more information.
26887 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26888 $as_echo_n "checking alignment of long... " >&6; }
26889 if test "${ac_cv_alignof_long+set}" = set; then
26890 $as_echo_n "(cached) " >&6
26892 if test "$cross_compiling" = yes; then
26893 # Depending upon the size, compute the lo and hi bounds.
26894 cat >conftest.$ac_ext <<_ACEOF
26897 cat confdefs.h >>conftest.$ac_ext
26898 cat >>conftest.$ac_ext <<_ACEOF
26899 /* end confdefs.h. */
26900 $ac_includes_default
26902 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26904 typedef struct { char x; long y; } ac__type_alignof_;
26908 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26915 rm -f conftest.$ac_objext
26916 if { (ac_try="$ac_compile"
26917 case "(($ac_try" in
26918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26919 *) ac_try_echo=$ac_try;;
26921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26922 $as_echo "$ac_try_echo") >&5
26923 (eval "$ac_compile") 2>conftest.er1
26925 grep -v '^ *+' conftest.er1 >conftest.err
26927 cat conftest.err >&5
26928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929 (exit $ac_status); } && {
26930 test -z "$ac_c_werror_flag" ||
26931 test ! -s conftest.err
26932 } && test -s conftest.$ac_objext; then
26935 cat >conftest.$ac_ext <<_ACEOF
26938 cat confdefs.h >>conftest.$ac_ext
26939 cat >>conftest.$ac_ext <<_ACEOF
26940 /* end confdefs.h. */
26941 $ac_includes_default
26943 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26945 typedef struct { char x; long y; } ac__type_alignof_;
26949 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26956 rm -f conftest.$ac_objext
26957 if { (ac_try="$ac_compile"
26958 case "(($ac_try" in
26959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26960 *) ac_try_echo=$ac_try;;
26962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26963 $as_echo "$ac_try_echo") >&5
26964 (eval "$ac_compile") 2>conftest.er1
26966 grep -v '^ *+' conftest.er1 >conftest.err
26968 cat conftest.err >&5
26969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970 (exit $ac_status); } && {
26971 test -z "$ac_c_werror_flag" ||
26972 test ! -s conftest.err
26973 } && test -s conftest.$ac_objext; then
26974 ac_hi=$ac_mid; break
26976 $as_echo "$as_me: failed program was:" >&5
26977 sed 's/^/| /' conftest.$ac_ext >&5
26979 ac_lo=`expr $ac_mid + 1`
26980 if test $ac_lo -le $ac_mid; then
26984 ac_mid=`expr 2 '*' $ac_mid + 1`
26987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26990 $as_echo "$as_me: failed program was:" >&5
26991 sed 's/^/| /' conftest.$ac_ext >&5
26993 cat >conftest.$ac_ext <<_ACEOF
26996 cat confdefs.h >>conftest.$ac_ext
26997 cat >>conftest.$ac_ext <<_ACEOF
26998 /* end confdefs.h. */
26999 $ac_includes_default
27001 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27003 typedef struct { char x; long y; } ac__type_alignof_;
27007 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27014 rm -f conftest.$ac_objext
27015 if { (ac_try="$ac_compile"
27016 case "(($ac_try" in
27017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27018 *) ac_try_echo=$ac_try;;
27020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27021 $as_echo "$ac_try_echo") >&5
27022 (eval "$ac_compile") 2>conftest.er1
27024 grep -v '^ *+' conftest.er1 >conftest.err
27026 cat conftest.err >&5
27027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028 (exit $ac_status); } && {
27029 test -z "$ac_c_werror_flag" ||
27030 test ! -s conftest.err
27031 } && test -s conftest.$ac_objext; then
27034 cat >conftest.$ac_ext <<_ACEOF
27037 cat confdefs.h >>conftest.$ac_ext
27038 cat >>conftest.$ac_ext <<_ACEOF
27039 /* end confdefs.h. */
27040 $ac_includes_default
27042 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27044 typedef struct { char x; long y; } ac__type_alignof_;
27048 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27055 rm -f conftest.$ac_objext
27056 if { (ac_try="$ac_compile"
27057 case "(($ac_try" in
27058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27059 *) ac_try_echo=$ac_try;;
27061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27062 $as_echo "$ac_try_echo") >&5
27063 (eval "$ac_compile") 2>conftest.er1
27065 grep -v '^ *+' conftest.er1 >conftest.err
27067 cat conftest.err >&5
27068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069 (exit $ac_status); } && {
27070 test -z "$ac_c_werror_flag" ||
27071 test ! -s conftest.err
27072 } && test -s conftest.$ac_objext; then
27073 ac_lo=$ac_mid; break
27075 $as_echo "$as_me: failed program was:" >&5
27076 sed 's/^/| /' conftest.$ac_ext >&5
27078 ac_hi=`expr '(' $ac_mid ')' - 1`
27079 if test $ac_mid -le $ac_hi; then
27083 ac_mid=`expr 2 '*' $ac_mid`
27086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27089 $as_echo "$as_me: failed program was:" >&5
27090 sed 's/^/| /' conftest.$ac_ext >&5
27095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27099 # Binary search between lo and hi bounds.
27100 while test "x$ac_lo" != "x$ac_hi"; do
27101 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27102 cat >conftest.$ac_ext <<_ACEOF
27105 cat confdefs.h >>conftest.$ac_ext
27106 cat >>conftest.$ac_ext <<_ACEOF
27107 /* end confdefs.h. */
27108 $ac_includes_default
27110 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27112 typedef struct { char x; long y; } ac__type_alignof_;
27116 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27123 rm -f conftest.$ac_objext
27124 if { (ac_try="$ac_compile"
27125 case "(($ac_try" in
27126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27127 *) ac_try_echo=$ac_try;;
27129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27130 $as_echo "$ac_try_echo") >&5
27131 (eval "$ac_compile") 2>conftest.er1
27133 grep -v '^ *+' conftest.er1 >conftest.err
27135 cat conftest.err >&5
27136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137 (exit $ac_status); } && {
27138 test -z "$ac_c_werror_flag" ||
27139 test ! -s conftest.err
27140 } && test -s conftest.$ac_objext; then
27143 $as_echo "$as_me: failed program was:" >&5
27144 sed 's/^/| /' conftest.$ac_ext >&5
27146 ac_lo=`expr '(' $ac_mid ')' + 1`
27149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27152 ?*) ac_cv_alignof_long=$ac_lo;;
27153 '') if test "$ac_cv_type_long" = yes; then
27154 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27156 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
27157 See \`config.log' for more details." >&5
27158 $as_echo "$as_me: error: cannot compute alignment of long
27159 See \`config.log' for more details." >&2;}
27160 { (exit 77); exit 77; }; }; }
27162 ac_cv_alignof_long=0
27166 cat >conftest.$ac_ext <<_ACEOF
27169 cat confdefs.h >>conftest.$ac_ext
27170 cat >>conftest.$ac_ext <<_ACEOF
27171 /* end confdefs.h. */
27172 $ac_includes_default
27174 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27176 typedef struct { char x; long y; } ac__type_alignof_;
27177 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27178 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27180 #include <stdlib.h>
27185 FILE *f = fopen ("conftest.val", "w");
27188 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27190 long int i = longval ();
27191 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27193 fprintf (f, "%ld", i);
27197 unsigned long int i = ulongval ();
27198 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27200 fprintf (f, "%lu", i);
27202 /* Do not output a trailing newline, as this causes \r\n confusion
27203 on some platforms. */
27204 return ferror (f) || fclose (f) != 0;
27210 rm -f conftest$ac_exeext
27211 if { (ac_try="$ac_link"
27212 case "(($ac_try" in
27213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27214 *) ac_try_echo=$ac_try;;
27216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27217 $as_echo "$ac_try_echo") >&5
27218 (eval "$ac_link") 2>&5
27220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27222 { (case "(($ac_try" in
27223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27224 *) ac_try_echo=$ac_try;;
27226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27227 $as_echo "$ac_try_echo") >&5
27228 (eval "$ac_try") 2>&5
27230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27231 (exit $ac_status); }; }; then
27232 ac_cv_alignof_long=`cat conftest.val`
27234 $as_echo "$as_me: program exited with status $ac_status" >&5
27235 $as_echo "$as_me: failed program was:" >&5
27236 sed 's/^/| /' conftest.$ac_ext >&5
27238 ( exit $ac_status )
27239 if test "$ac_cv_type_long" = yes; then
27240 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27242 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
27243 See \`config.log' for more details." >&5
27244 $as_echo "$as_me: error: cannot compute alignment of long
27245 See \`config.log' for more details." >&2;}
27246 { (exit 77); exit 77; }; }; }
27248 ac_cv_alignof_long=0
27251 rm -rf conftest.dSYM
27252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27256 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
27257 $as_echo "$ac_cv_alignof_long" >&6; }
27261 cat >>confdefs.h <<_ACEOF
27262 #define ALIGNOF_LONG $ac_cv_alignof_long
27266 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
27267 # The cast to long int works around a bug in the HP C Compiler,
27268 # see AC_CHECK_SIZEOF for more information.
27269 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
27270 $as_echo_n "checking alignment of long long int... " >&6; }
27271 if test "${ac_cv_alignof_long_long_int+set}" = set; then
27272 $as_echo_n "(cached) " >&6
27274 if test "$cross_compiling" = yes; then
27275 # Depending upon the size, compute the lo and hi bounds.
27276 cat >conftest.$ac_ext <<_ACEOF
27279 cat confdefs.h >>conftest.$ac_ext
27280 cat >>conftest.$ac_ext <<_ACEOF
27281 /* end confdefs.h. */
27282 $ac_includes_default
27284 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27286 typedef struct { char x; long long int y; } ac__type_alignof_;
27290 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27297 rm -f conftest.$ac_objext
27298 if { (ac_try="$ac_compile"
27299 case "(($ac_try" in
27300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27301 *) ac_try_echo=$ac_try;;
27303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27304 $as_echo "$ac_try_echo") >&5
27305 (eval "$ac_compile") 2>conftest.er1
27307 grep -v '^ *+' conftest.er1 >conftest.err
27309 cat conftest.err >&5
27310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27311 (exit $ac_status); } && {
27312 test -z "$ac_c_werror_flag" ||
27313 test ! -s conftest.err
27314 } && test -s conftest.$ac_objext; then
27317 cat >conftest.$ac_ext <<_ACEOF
27320 cat confdefs.h >>conftest.$ac_ext
27321 cat >>conftest.$ac_ext <<_ACEOF
27322 /* end confdefs.h. */
27323 $ac_includes_default
27325 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27327 typedef struct { char x; long long int y; } ac__type_alignof_;
27331 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27338 rm -f conftest.$ac_objext
27339 if { (ac_try="$ac_compile"
27340 case "(($ac_try" in
27341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27342 *) ac_try_echo=$ac_try;;
27344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27345 $as_echo "$ac_try_echo") >&5
27346 (eval "$ac_compile") 2>conftest.er1
27348 grep -v '^ *+' conftest.er1 >conftest.err
27350 cat conftest.err >&5
27351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27352 (exit $ac_status); } && {
27353 test -z "$ac_c_werror_flag" ||
27354 test ! -s conftest.err
27355 } && test -s conftest.$ac_objext; then
27356 ac_hi=$ac_mid; break
27358 $as_echo "$as_me: failed program was:" >&5
27359 sed 's/^/| /' conftest.$ac_ext >&5
27361 ac_lo=`expr $ac_mid + 1`
27362 if test $ac_lo -le $ac_mid; then
27366 ac_mid=`expr 2 '*' $ac_mid + 1`
27369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27372 $as_echo "$as_me: failed program was:" >&5
27373 sed 's/^/| /' conftest.$ac_ext >&5
27375 cat >conftest.$ac_ext <<_ACEOF
27378 cat confdefs.h >>conftest.$ac_ext
27379 cat >>conftest.$ac_ext <<_ACEOF
27380 /* end confdefs.h. */
27381 $ac_includes_default
27383 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27385 typedef struct { char x; long long int y; } ac__type_alignof_;
27389 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27396 rm -f conftest.$ac_objext
27397 if { (ac_try="$ac_compile"
27398 case "(($ac_try" in
27399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27400 *) ac_try_echo=$ac_try;;
27402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27403 $as_echo "$ac_try_echo") >&5
27404 (eval "$ac_compile") 2>conftest.er1
27406 grep -v '^ *+' conftest.er1 >conftest.err
27408 cat conftest.err >&5
27409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410 (exit $ac_status); } && {
27411 test -z "$ac_c_werror_flag" ||
27412 test ! -s conftest.err
27413 } && test -s conftest.$ac_objext; then
27416 cat >conftest.$ac_ext <<_ACEOF
27419 cat confdefs.h >>conftest.$ac_ext
27420 cat >>conftest.$ac_ext <<_ACEOF
27421 /* end confdefs.h. */
27422 $ac_includes_default
27424 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27426 typedef struct { char x; long long int y; } ac__type_alignof_;
27430 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27437 rm -f conftest.$ac_objext
27438 if { (ac_try="$ac_compile"
27439 case "(($ac_try" in
27440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27441 *) ac_try_echo=$ac_try;;
27443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27444 $as_echo "$ac_try_echo") >&5
27445 (eval "$ac_compile") 2>conftest.er1
27447 grep -v '^ *+' conftest.er1 >conftest.err
27449 cat conftest.err >&5
27450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451 (exit $ac_status); } && {
27452 test -z "$ac_c_werror_flag" ||
27453 test ! -s conftest.err
27454 } && test -s conftest.$ac_objext; then
27455 ac_lo=$ac_mid; break
27457 $as_echo "$as_me: failed program was:" >&5
27458 sed 's/^/| /' conftest.$ac_ext >&5
27460 ac_hi=`expr '(' $ac_mid ')' - 1`
27461 if test $ac_mid -le $ac_hi; then
27465 ac_mid=`expr 2 '*' $ac_mid`
27468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27471 $as_echo "$as_me: failed program was:" >&5
27472 sed 's/^/| /' conftest.$ac_ext >&5
27477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27481 # Binary search between lo and hi bounds.
27482 while test "x$ac_lo" != "x$ac_hi"; do
27483 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27484 cat >conftest.$ac_ext <<_ACEOF
27487 cat confdefs.h >>conftest.$ac_ext
27488 cat >>conftest.$ac_ext <<_ACEOF
27489 /* end confdefs.h. */
27490 $ac_includes_default
27492 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27494 typedef struct { char x; long long int y; } ac__type_alignof_;
27498 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27505 rm -f conftest.$ac_objext
27506 if { (ac_try="$ac_compile"
27507 case "(($ac_try" in
27508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27509 *) ac_try_echo=$ac_try;;
27511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27512 $as_echo "$ac_try_echo") >&5
27513 (eval "$ac_compile") 2>conftest.er1
27515 grep -v '^ *+' conftest.er1 >conftest.err
27517 cat conftest.err >&5
27518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519 (exit $ac_status); } && {
27520 test -z "$ac_c_werror_flag" ||
27521 test ! -s conftest.err
27522 } && test -s conftest.$ac_objext; then
27525 $as_echo "$as_me: failed program was:" >&5
27526 sed 's/^/| /' conftest.$ac_ext >&5
27528 ac_lo=`expr '(' $ac_mid ')' + 1`
27531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27534 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
27535 '') if test "$ac_cv_type_long_long_int" = yes; then
27536 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27538 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27539 See \`config.log' for more details." >&5
27540 $as_echo "$as_me: error: cannot compute alignment of long long int
27541 See \`config.log' for more details." >&2;}
27542 { (exit 77); exit 77; }; }; }
27544 ac_cv_alignof_long_long_int=0
27548 cat >conftest.$ac_ext <<_ACEOF
27551 cat confdefs.h >>conftest.$ac_ext
27552 cat >>conftest.$ac_ext <<_ACEOF
27553 /* end confdefs.h. */
27554 $ac_includes_default
27556 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27558 typedef struct { char x; long long int y; } ac__type_alignof_;
27559 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27560 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27562 #include <stdlib.h>
27567 FILE *f = fopen ("conftest.val", "w");
27570 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27572 long int i = longval ();
27573 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27575 fprintf (f, "%ld", i);
27579 unsigned long int i = ulongval ();
27580 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27582 fprintf (f, "%lu", i);
27584 /* Do not output a trailing newline, as this causes \r\n confusion
27585 on some platforms. */
27586 return ferror (f) || fclose (f) != 0;
27592 rm -f conftest$ac_exeext
27593 if { (ac_try="$ac_link"
27594 case "(($ac_try" in
27595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27596 *) ac_try_echo=$ac_try;;
27598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27599 $as_echo "$ac_try_echo") >&5
27600 (eval "$ac_link") 2>&5
27602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27604 { (case "(($ac_try" in
27605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27606 *) ac_try_echo=$ac_try;;
27608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27609 $as_echo "$ac_try_echo") >&5
27610 (eval "$ac_try") 2>&5
27612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27613 (exit $ac_status); }; }; then
27614 ac_cv_alignof_long_long_int=`cat conftest.val`
27616 $as_echo "$as_me: program exited with status $ac_status" >&5
27617 $as_echo "$as_me: failed program was:" >&5
27618 sed 's/^/| /' conftest.$ac_ext >&5
27620 ( exit $ac_status )
27621 if test "$ac_cv_type_long_long_int" = yes; then
27622 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27624 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27625 See \`config.log' for more details." >&5
27626 $as_echo "$as_me: error: cannot compute alignment of long long int
27627 See \`config.log' for more details." >&2;}
27628 { (exit 77); exit 77; }; }; }
27630 ac_cv_alignof_long_long_int=0
27633 rm -rf conftest.dSYM
27634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27638 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27639 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27643 cat >>confdefs.h <<_ACEOF
27644 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27649 # The cast to long int works around a bug in the HP C Compiler,
27650 # see AC_CHECK_SIZEOF for more information.
27651 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27652 $as_echo_n "checking alignment of double... " >&6; }
27653 if test "${ac_cv_alignof_double+set}" = set; then
27654 $as_echo_n "(cached) " >&6
27656 if test "$cross_compiling" = yes; then
27657 # Depending upon the size, compute the lo and hi bounds.
27658 cat >conftest.$ac_ext <<_ACEOF
27661 cat confdefs.h >>conftest.$ac_ext
27662 cat >>conftest.$ac_ext <<_ACEOF
27663 /* end confdefs.h. */
27664 $ac_includes_default
27666 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27668 typedef struct { char x; double y; } ac__type_alignof_;
27672 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27679 rm -f conftest.$ac_objext
27680 if { (ac_try="$ac_compile"
27681 case "(($ac_try" in
27682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27683 *) ac_try_echo=$ac_try;;
27685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27686 $as_echo "$ac_try_echo") >&5
27687 (eval "$ac_compile") 2>conftest.er1
27689 grep -v '^ *+' conftest.er1 >conftest.err
27691 cat conftest.err >&5
27692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27693 (exit $ac_status); } && {
27694 test -z "$ac_c_werror_flag" ||
27695 test ! -s conftest.err
27696 } && test -s conftest.$ac_objext; then
27699 cat >conftest.$ac_ext <<_ACEOF
27702 cat confdefs.h >>conftest.$ac_ext
27703 cat >>conftest.$ac_ext <<_ACEOF
27704 /* end confdefs.h. */
27705 $ac_includes_default
27707 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27709 typedef struct { char x; double y; } ac__type_alignof_;
27713 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27720 rm -f conftest.$ac_objext
27721 if { (ac_try="$ac_compile"
27722 case "(($ac_try" in
27723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27724 *) ac_try_echo=$ac_try;;
27726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27727 $as_echo "$ac_try_echo") >&5
27728 (eval "$ac_compile") 2>conftest.er1
27730 grep -v '^ *+' conftest.er1 >conftest.err
27732 cat conftest.err >&5
27733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27734 (exit $ac_status); } && {
27735 test -z "$ac_c_werror_flag" ||
27736 test ! -s conftest.err
27737 } && test -s conftest.$ac_objext; then
27738 ac_hi=$ac_mid; break
27740 $as_echo "$as_me: failed program was:" >&5
27741 sed 's/^/| /' conftest.$ac_ext >&5
27743 ac_lo=`expr $ac_mid + 1`
27744 if test $ac_lo -le $ac_mid; then
27748 ac_mid=`expr 2 '*' $ac_mid + 1`
27751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27754 $as_echo "$as_me: failed program was:" >&5
27755 sed 's/^/| /' conftest.$ac_ext >&5
27757 cat >conftest.$ac_ext <<_ACEOF
27760 cat confdefs.h >>conftest.$ac_ext
27761 cat >>conftest.$ac_ext <<_ACEOF
27762 /* end confdefs.h. */
27763 $ac_includes_default
27765 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27767 typedef struct { char x; double y; } ac__type_alignof_;
27771 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27778 rm -f conftest.$ac_objext
27779 if { (ac_try="$ac_compile"
27780 case "(($ac_try" in
27781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27782 *) ac_try_echo=$ac_try;;
27784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27785 $as_echo "$ac_try_echo") >&5
27786 (eval "$ac_compile") 2>conftest.er1
27788 grep -v '^ *+' conftest.er1 >conftest.err
27790 cat conftest.err >&5
27791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792 (exit $ac_status); } && {
27793 test -z "$ac_c_werror_flag" ||
27794 test ! -s conftest.err
27795 } && test -s conftest.$ac_objext; then
27798 cat >conftest.$ac_ext <<_ACEOF
27801 cat confdefs.h >>conftest.$ac_ext
27802 cat >>conftest.$ac_ext <<_ACEOF
27803 /* end confdefs.h. */
27804 $ac_includes_default
27806 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27808 typedef struct { char x; double y; } ac__type_alignof_;
27812 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27819 rm -f conftest.$ac_objext
27820 if { (ac_try="$ac_compile"
27821 case "(($ac_try" in
27822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27823 *) ac_try_echo=$ac_try;;
27825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27826 $as_echo "$ac_try_echo") >&5
27827 (eval "$ac_compile") 2>conftest.er1
27829 grep -v '^ *+' conftest.er1 >conftest.err
27831 cat conftest.err >&5
27832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27833 (exit $ac_status); } && {
27834 test -z "$ac_c_werror_flag" ||
27835 test ! -s conftest.err
27836 } && test -s conftest.$ac_objext; then
27837 ac_lo=$ac_mid; break
27839 $as_echo "$as_me: failed program was:" >&5
27840 sed 's/^/| /' conftest.$ac_ext >&5
27842 ac_hi=`expr '(' $ac_mid ')' - 1`
27843 if test $ac_mid -le $ac_hi; then
27847 ac_mid=`expr 2 '*' $ac_mid`
27850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27853 $as_echo "$as_me: failed program was:" >&5
27854 sed 's/^/| /' conftest.$ac_ext >&5
27859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27863 # Binary search between lo and hi bounds.
27864 while test "x$ac_lo" != "x$ac_hi"; do
27865 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27866 cat >conftest.$ac_ext <<_ACEOF
27869 cat confdefs.h >>conftest.$ac_ext
27870 cat >>conftest.$ac_ext <<_ACEOF
27871 /* end confdefs.h. */
27872 $ac_includes_default
27874 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27876 typedef struct { char x; double y; } ac__type_alignof_;
27880 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27887 rm -f conftest.$ac_objext
27888 if { (ac_try="$ac_compile"
27889 case "(($ac_try" in
27890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27891 *) ac_try_echo=$ac_try;;
27893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27894 $as_echo "$ac_try_echo") >&5
27895 (eval "$ac_compile") 2>conftest.er1
27897 grep -v '^ *+' conftest.er1 >conftest.err
27899 cat conftest.err >&5
27900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901 (exit $ac_status); } && {
27902 test -z "$ac_c_werror_flag" ||
27903 test ! -s conftest.err
27904 } && test -s conftest.$ac_objext; then
27907 $as_echo "$as_me: failed program was:" >&5
27908 sed 's/^/| /' conftest.$ac_ext >&5
27910 ac_lo=`expr '(' $ac_mid ')' + 1`
27913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27916 ?*) ac_cv_alignof_double=$ac_lo;;
27917 '') if test "$ac_cv_type_double" = yes; then
27918 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27920 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27921 See \`config.log' for more details." >&5
27922 $as_echo "$as_me: error: cannot compute alignment of double
27923 See \`config.log' for more details." >&2;}
27924 { (exit 77); exit 77; }; }; }
27926 ac_cv_alignof_double=0
27930 cat >conftest.$ac_ext <<_ACEOF
27933 cat confdefs.h >>conftest.$ac_ext
27934 cat >>conftest.$ac_ext <<_ACEOF
27935 /* end confdefs.h. */
27936 $ac_includes_default
27938 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27940 typedef struct { char x; double y; } ac__type_alignof_;
27941 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27942 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27944 #include <stdlib.h>
27949 FILE *f = fopen ("conftest.val", "w");
27952 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27954 long int i = longval ();
27955 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27957 fprintf (f, "%ld", i);
27961 unsigned long int i = ulongval ();
27962 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27964 fprintf (f, "%lu", i);
27966 /* Do not output a trailing newline, as this causes \r\n confusion
27967 on some platforms. */
27968 return ferror (f) || fclose (f) != 0;
27974 rm -f conftest$ac_exeext
27975 if { (ac_try="$ac_link"
27976 case "(($ac_try" in
27977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27978 *) ac_try_echo=$ac_try;;
27980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27981 $as_echo "$ac_try_echo") >&5
27982 (eval "$ac_link") 2>&5
27984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27986 { (case "(($ac_try" in
27987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27988 *) ac_try_echo=$ac_try;;
27990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27991 $as_echo "$ac_try_echo") >&5
27992 (eval "$ac_try") 2>&5
27994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27995 (exit $ac_status); }; }; then
27996 ac_cv_alignof_double=`cat conftest.val`
27998 $as_echo "$as_me: program exited with status $ac_status" >&5
27999 $as_echo "$as_me: failed program was:" >&5
28000 sed 's/^/| /' conftest.$ac_ext >&5
28002 ( exit $ac_status )
28003 if test "$ac_cv_type_double" = yes; then
28004 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28006 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
28007 See \`config.log' for more details." >&5
28008 $as_echo "$as_me: error: cannot compute alignment of double
28009 See \`config.log' for more details." >&2;}
28010 { (exit 77); exit 77; }; }; }
28012 ac_cv_alignof_double=0
28015 rm -rf conftest.dSYM
28016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28020 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
28021 $as_echo "$ac_cv_alignof_double" >&6; }
28025 cat >>confdefs.h <<_ACEOF
28026 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
28031 # Compute maximum alignment of any basic type.
28032 # We assume long's alignment is at least as strong as char, short, or int;
28033 # but we must check long long (if it exists) and double.
28035 MAX_ALIGNOF=$ac_cv_alignof_long
28036 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
28037 MAX_ALIGNOF=$ac_cv_alignof_double
28039 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
28040 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
28043 cat >>confdefs.h <<_ACEOF
28044 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
28049 # Some platforms predefine the types int8, int16, etc. Only check
28050 # a (hopefully) representative subset.
28051 { $as_echo "$as_me:$LINENO: checking for int8" >&5
28052 $as_echo_n "checking for int8... " >&6; }
28053 if test "${ac_cv_type_int8+set}" = set; then
28054 $as_echo_n "(cached) " >&6
28057 cat >conftest.$ac_ext <<_ACEOF
28060 cat confdefs.h >>conftest.$ac_ext
28061 cat >>conftest.$ac_ext <<_ACEOF
28062 /* end confdefs.h. */
28074 rm -f conftest.$ac_objext
28075 if { (ac_try="$ac_compile"
28076 case "(($ac_try" in
28077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28078 *) ac_try_echo=$ac_try;;
28080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28081 $as_echo "$ac_try_echo") >&5
28082 (eval "$ac_compile") 2>conftest.er1
28084 grep -v '^ *+' conftest.er1 >conftest.err
28086 cat conftest.err >&5
28087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088 (exit $ac_status); } && {
28089 test -z "$ac_c_werror_flag" ||
28090 test ! -s conftest.err
28091 } && test -s conftest.$ac_objext; then
28092 cat >conftest.$ac_ext <<_ACEOF
28095 cat confdefs.h >>conftest.$ac_ext
28096 cat >>conftest.$ac_ext <<_ACEOF
28097 /* end confdefs.h. */
28103 if (sizeof ((int8)))
28109 rm -f conftest.$ac_objext
28110 if { (ac_try="$ac_compile"
28111 case "(($ac_try" in
28112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28113 *) ac_try_echo=$ac_try;;
28115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28116 $as_echo "$ac_try_echo") >&5
28117 (eval "$ac_compile") 2>conftest.er1
28119 grep -v '^ *+' conftest.er1 >conftest.err
28121 cat conftest.err >&5
28122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123 (exit $ac_status); } && {
28124 test -z "$ac_c_werror_flag" ||
28125 test ! -s conftest.err
28126 } && test -s conftest.$ac_objext; then
28129 $as_echo "$as_me: failed program was:" >&5
28130 sed 's/^/| /' conftest.$ac_ext >&5
28132 ac_cv_type_int8=yes
28135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28137 $as_echo "$as_me: failed program was:" >&5
28138 sed 's/^/| /' conftest.$ac_ext >&5
28143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28145 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
28146 $as_echo "$ac_cv_type_int8" >&6; }
28147 if test "x$ac_cv_type_int8" = x""yes; then
28149 cat >>confdefs.h <<_ACEOF
28150 #define HAVE_INT8 1
28155 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
28156 $as_echo_n "checking for uint8... " >&6; }
28157 if test "${ac_cv_type_uint8+set}" = set; then
28158 $as_echo_n "(cached) " >&6
28160 ac_cv_type_uint8=no
28161 cat >conftest.$ac_ext <<_ACEOF
28164 cat confdefs.h >>conftest.$ac_ext
28165 cat >>conftest.$ac_ext <<_ACEOF
28166 /* end confdefs.h. */
28172 if (sizeof (uint8))
28178 rm -f conftest.$ac_objext
28179 if { (ac_try="$ac_compile"
28180 case "(($ac_try" in
28181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28182 *) ac_try_echo=$ac_try;;
28184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28185 $as_echo "$ac_try_echo") >&5
28186 (eval "$ac_compile") 2>conftest.er1
28188 grep -v '^ *+' conftest.er1 >conftest.err
28190 cat conftest.err >&5
28191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192 (exit $ac_status); } && {
28193 test -z "$ac_c_werror_flag" ||
28194 test ! -s conftest.err
28195 } && test -s conftest.$ac_objext; then
28196 cat >conftest.$ac_ext <<_ACEOF
28199 cat confdefs.h >>conftest.$ac_ext
28200 cat >>conftest.$ac_ext <<_ACEOF
28201 /* end confdefs.h. */
28207 if (sizeof ((uint8)))
28213 rm -f conftest.$ac_objext
28214 if { (ac_try="$ac_compile"
28215 case "(($ac_try" in
28216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28217 *) ac_try_echo=$ac_try;;
28219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28220 $as_echo "$ac_try_echo") >&5
28221 (eval "$ac_compile") 2>conftest.er1
28223 grep -v '^ *+' conftest.er1 >conftest.err
28225 cat conftest.err >&5
28226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227 (exit $ac_status); } && {
28228 test -z "$ac_c_werror_flag" ||
28229 test ! -s conftest.err
28230 } && test -s conftest.$ac_objext; then
28233 $as_echo "$as_me: failed program was:" >&5
28234 sed 's/^/| /' conftest.$ac_ext >&5
28236 ac_cv_type_uint8=yes
28239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28241 $as_echo "$as_me: failed program was:" >&5
28242 sed 's/^/| /' conftest.$ac_ext >&5
28247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28249 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
28250 $as_echo "$ac_cv_type_uint8" >&6; }
28251 if test "x$ac_cv_type_uint8" = x""yes; then
28253 cat >>confdefs.h <<_ACEOF
28254 #define HAVE_UINT8 1
28259 { $as_echo "$as_me:$LINENO: checking for int64" >&5
28260 $as_echo_n "checking for int64... " >&6; }
28261 if test "${ac_cv_type_int64+set}" = set; then
28262 $as_echo_n "(cached) " >&6
28264 ac_cv_type_int64=no
28265 cat >conftest.$ac_ext <<_ACEOF
28268 cat confdefs.h >>conftest.$ac_ext
28269 cat >>conftest.$ac_ext <<_ACEOF
28270 /* end confdefs.h. */
28276 if (sizeof (int64))
28282 rm -f conftest.$ac_objext
28283 if { (ac_try="$ac_compile"
28284 case "(($ac_try" in
28285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28286 *) ac_try_echo=$ac_try;;
28288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28289 $as_echo "$ac_try_echo") >&5
28290 (eval "$ac_compile") 2>conftest.er1
28292 grep -v '^ *+' conftest.er1 >conftest.err
28294 cat conftest.err >&5
28295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 (exit $ac_status); } && {
28297 test -z "$ac_c_werror_flag" ||
28298 test ! -s conftest.err
28299 } && test -s conftest.$ac_objext; then
28300 cat >conftest.$ac_ext <<_ACEOF
28303 cat confdefs.h >>conftest.$ac_ext
28304 cat >>conftest.$ac_ext <<_ACEOF
28305 /* end confdefs.h. */
28311 if (sizeof ((int64)))
28317 rm -f conftest.$ac_objext
28318 if { (ac_try="$ac_compile"
28319 case "(($ac_try" in
28320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28321 *) ac_try_echo=$ac_try;;
28323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28324 $as_echo "$ac_try_echo") >&5
28325 (eval "$ac_compile") 2>conftest.er1
28327 grep -v '^ *+' conftest.er1 >conftest.err
28329 cat conftest.err >&5
28330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331 (exit $ac_status); } && {
28332 test -z "$ac_c_werror_flag" ||
28333 test ! -s conftest.err
28334 } && test -s conftest.$ac_objext; then
28337 $as_echo "$as_me: failed program was:" >&5
28338 sed 's/^/| /' conftest.$ac_ext >&5
28340 ac_cv_type_int64=yes
28343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28345 $as_echo "$as_me: failed program was:" >&5
28346 sed 's/^/| /' conftest.$ac_ext >&5
28351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28353 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
28354 $as_echo "$ac_cv_type_int64" >&6; }
28355 if test "x$ac_cv_type_int64" = x""yes; then
28357 cat >>confdefs.h <<_ACEOF
28358 #define HAVE_INT64 1
28363 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
28364 $as_echo_n "checking for uint64... " >&6; }
28365 if test "${ac_cv_type_uint64+set}" = set; then
28366 $as_echo_n "(cached) " >&6
28368 ac_cv_type_uint64=no
28369 cat >conftest.$ac_ext <<_ACEOF
28372 cat confdefs.h >>conftest.$ac_ext
28373 cat >>conftest.$ac_ext <<_ACEOF
28374 /* end confdefs.h. */
28380 if (sizeof (uint64))
28386 rm -f conftest.$ac_objext
28387 if { (ac_try="$ac_compile"
28388 case "(($ac_try" in
28389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28390 *) ac_try_echo=$ac_try;;
28392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28393 $as_echo "$ac_try_echo") >&5
28394 (eval "$ac_compile") 2>conftest.er1
28396 grep -v '^ *+' conftest.er1 >conftest.err
28398 cat conftest.err >&5
28399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28400 (exit $ac_status); } && {
28401 test -z "$ac_c_werror_flag" ||
28402 test ! -s conftest.err
28403 } && test -s conftest.$ac_objext; then
28404 cat >conftest.$ac_ext <<_ACEOF
28407 cat confdefs.h >>conftest.$ac_ext
28408 cat >>conftest.$ac_ext <<_ACEOF
28409 /* end confdefs.h. */
28415 if (sizeof ((uint64)))
28421 rm -f conftest.$ac_objext
28422 if { (ac_try="$ac_compile"
28423 case "(($ac_try" in
28424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28425 *) ac_try_echo=$ac_try;;
28427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28428 $as_echo "$ac_try_echo") >&5
28429 (eval "$ac_compile") 2>conftest.er1
28431 grep -v '^ *+' conftest.er1 >conftest.err
28433 cat conftest.err >&5
28434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435 (exit $ac_status); } && {
28436 test -z "$ac_c_werror_flag" ||
28437 test ! -s conftest.err
28438 } && test -s conftest.$ac_objext; then
28441 $as_echo "$as_me: failed program was:" >&5
28442 sed 's/^/| /' conftest.$ac_ext >&5
28444 ac_cv_type_uint64=yes
28447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28449 $as_echo "$as_me: failed program was:" >&5
28450 sed 's/^/| /' conftest.$ac_ext >&5
28455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28457 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
28458 $as_echo "$ac_cv_type_uint64" >&6; }
28459 if test "x$ac_cv_type_uint64" = x""yes; then
28461 cat >>confdefs.h <<_ACEOF
28462 #define HAVE_UINT64 1
28469 # We also check for sig_atomic_t, which *should* be defined per ANSI
28470 # C, but is missing on some old platforms.
28471 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
28472 $as_echo_n "checking for sig_atomic_t... " >&6; }
28473 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28474 $as_echo_n "(cached) " >&6
28476 ac_cv_type_sig_atomic_t=no
28477 cat >conftest.$ac_ext <<_ACEOF
28480 cat confdefs.h >>conftest.$ac_ext
28481 cat >>conftest.$ac_ext <<_ACEOF
28482 /* end confdefs.h. */
28483 #include <signal.h>
28488 if (sizeof (sig_atomic_t))
28494 rm -f conftest.$ac_objext
28495 if { (ac_try="$ac_compile"
28496 case "(($ac_try" in
28497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28498 *) ac_try_echo=$ac_try;;
28500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28501 $as_echo "$ac_try_echo") >&5
28502 (eval "$ac_compile") 2>conftest.er1
28504 grep -v '^ *+' conftest.er1 >conftest.err
28506 cat conftest.err >&5
28507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508 (exit $ac_status); } && {
28509 test -z "$ac_c_werror_flag" ||
28510 test ! -s conftest.err
28511 } && test -s conftest.$ac_objext; then
28512 cat >conftest.$ac_ext <<_ACEOF
28515 cat confdefs.h >>conftest.$ac_ext
28516 cat >>conftest.$ac_ext <<_ACEOF
28517 /* end confdefs.h. */
28518 #include <signal.h>
28523 if (sizeof ((sig_atomic_t)))
28529 rm -f conftest.$ac_objext
28530 if { (ac_try="$ac_compile"
28531 case "(($ac_try" in
28532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28533 *) ac_try_echo=$ac_try;;
28535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28536 $as_echo "$ac_try_echo") >&5
28537 (eval "$ac_compile") 2>conftest.er1
28539 grep -v '^ *+' conftest.er1 >conftest.err
28541 cat conftest.err >&5
28542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543 (exit $ac_status); } && {
28544 test -z "$ac_c_werror_flag" ||
28545 test ! -s conftest.err
28546 } && test -s conftest.$ac_objext; then
28549 $as_echo "$as_me: failed program was:" >&5
28550 sed 's/^/| /' conftest.$ac_ext >&5
28552 ac_cv_type_sig_atomic_t=yes
28555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28557 $as_echo "$as_me: failed program was:" >&5
28558 sed 's/^/| /' conftest.$ac_ext >&5
28563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28565 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28566 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28567 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28569 cat >>confdefs.h <<_ACEOF
28570 #define HAVE_SIG_ATOMIC_T 1
28578 if test "$PORTNAME" != "win32"
28580 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28581 $as_echo_n "checking for POSIX signal interface... " >&6; }
28582 if test "${pgac_cv_func_posix_signals+set}" = set; then
28583 $as_echo_n "(cached) " >&6
28585 cat >conftest.$ac_ext <<_ACEOF
28588 cat confdefs.h >>conftest.$ac_ext
28589 cat >>conftest.$ac_ext <<_ACEOF
28590 /* end confdefs.h. */
28591 #include <signal.h>
28596 struct sigaction act, oact;
28597 sigemptyset(&act.sa_mask);
28598 act.sa_flags = SA_RESTART;
28599 sigaction(0, &act, &oact);
28604 rm -f conftest.$ac_objext conftest$ac_exeext
28605 if { (ac_try="$ac_link"
28606 case "(($ac_try" in
28607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28608 *) ac_try_echo=$ac_try;;
28610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28611 $as_echo "$ac_try_echo") >&5
28612 (eval "$ac_link") 2>conftest.er1
28614 grep -v '^ *+' conftest.er1 >conftest.err
28616 cat conftest.err >&5
28617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); } && {
28619 test -z "$ac_c_werror_flag" ||
28620 test ! -s conftest.err
28621 } && test -s conftest$ac_exeext && {
28622 test "$cross_compiling" = yes ||
28623 $as_test_x conftest$ac_exeext
28625 pgac_cv_func_posix_signals=yes
28627 $as_echo "$as_me: failed program was:" >&5
28628 sed 's/^/| /' conftest.$ac_ext >&5
28630 pgac_cv_func_posix_signals=no
28633 rm -rf conftest.dSYM
28634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28635 conftest$ac_exeext conftest.$ac_ext
28637 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28638 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28639 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28641 cat >>confdefs.h <<\_ACEOF
28642 #define HAVE_POSIX_SIGNALS 1
28646 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28648 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28649 { { $as_echo "$as_me:$LINENO: error:
28650 Thread-safety requires POSIX signals, which are not supported by this
28651 operating system; use --disable-thread-safety to disable thread safety." >&5
28652 $as_echo "$as_me: error:
28653 Thread-safety requires POSIX signals, which are not supported by this
28654 operating system; use --disable-thread-safety to disable thread safety." >&2;}
28655 { (exit 1); exit 1; }; }
28659 # SunOS doesn't handle negative byte comparisons properly with +/- return
28660 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28661 $as_echo_n "checking for working memcmp... " >&6; }
28662 if test "${ac_cv_func_memcmp_working+set}" = set; then
28663 $as_echo_n "(cached) " >&6
28665 if test "$cross_compiling" = yes; then
28666 ac_cv_func_memcmp_working=no
28668 cat >conftest.$ac_ext <<_ACEOF
28671 cat confdefs.h >>conftest.$ac_ext
28672 cat >>conftest.$ac_ext <<_ACEOF
28673 /* end confdefs.h. */
28674 $ac_includes_default
28679 /* Some versions of memcmp are not 8-bit clean. */
28680 char c0 = '\100', c1 = '\200', c2 = '\201';
28681 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28684 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28685 or more and with at least one buffer not starting on a 4-byte boundary.
28686 William Lewis provided this test program. */
28691 for (i = 0; i < 4; i++)
28695 strcpy (a, "--------01111111");
28696 strcpy (b, "--------10000000");
28697 if (memcmp (a, b, 16) >= 0)
28707 rm -f conftest$ac_exeext
28708 if { (ac_try="$ac_link"
28709 case "(($ac_try" in
28710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28711 *) ac_try_echo=$ac_try;;
28713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28714 $as_echo "$ac_try_echo") >&5
28715 (eval "$ac_link") 2>&5
28717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28719 { (case "(($ac_try" in
28720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28721 *) ac_try_echo=$ac_try;;
28723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28724 $as_echo "$ac_try_echo") >&5
28725 (eval "$ac_try") 2>&5
28727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28728 (exit $ac_status); }; }; then
28729 ac_cv_func_memcmp_working=yes
28731 $as_echo "$as_me: program exited with status $ac_status" >&5
28732 $as_echo "$as_me: failed program was:" >&5
28733 sed 's/^/| /' conftest.$ac_ext >&5
28735 ( exit $ac_status )
28736 ac_cv_func_memcmp_working=no
28738 rm -rf conftest.dSYM
28739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28744 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28745 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28746 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28747 *" memcmp.$ac_objext "* ) ;;
28748 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28755 # Select semaphore implementation type.
28756 if test "$PORTNAME" != "win32"; then
28757 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28759 cat >>confdefs.h <<\_ACEOF
28760 #define USE_NAMED_POSIX_SEMAPHORES 1
28763 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28765 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
28767 cat >>confdefs.h <<\_ACEOF
28768 #define USE_UNNAMED_POSIX_SEMAPHORES 1
28771 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28774 cat >>confdefs.h <<\_ACEOF
28775 #define USE_SYSV_SEMAPHORES 1
28778 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
28783 cat >>confdefs.h <<\_ACEOF
28784 #define USE_WIN32_SEMAPHORES 1
28787 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
28791 # Select shared-memory implementation type.
28792 if test "$PORTNAME" != "win32"; then
28794 cat >>confdefs.h <<\_ACEOF
28795 #define USE_SYSV_SHARED_MEMORY 1
28798 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
28801 cat >>confdefs.h <<\_ACEOF
28802 #define USE_WIN32_SHARED_MEMORY 1
28805 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
28808 # Select latch implementation type.
28809 if test "$PORTNAME" != "win32"; then
28810 LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
28812 LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
28815 # If not set in template file, set bytes to use libc memset()
28816 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
28817 MEMSET_LOOP_LIMIT=1024
28820 cat >>confdefs.h <<_ACEOF
28821 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
28826 if test "$enable_nls" = yes ; then
28828 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
28829 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
28830 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28831 $as_echo_n "(cached) " >&6
28833 ac_func_search_save_LIBS=$LIBS
28834 cat >conftest.$ac_ext <<_ACEOF
28837 cat confdefs.h >>conftest.$ac_ext
28838 cat >>conftest.$ac_ext <<_ACEOF
28839 /* end confdefs.h. */
28841 /* Override any GCC internal prototype to avoid an error.
28842 Use char because int might match the return type of a GCC
28843 builtin and then its argument prototype would still apply. */
28847 char bind_textdomain_codeset ();
28851 return bind_textdomain_codeset ();
28856 for ac_lib in '' intl; do
28857 if test -z "$ac_lib"; then
28858 ac_res="none required"
28861 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28863 rm -f conftest.$ac_objext conftest$ac_exeext
28864 if { (ac_try="$ac_link"
28865 case "(($ac_try" in
28866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28867 *) ac_try_echo=$ac_try;;
28869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28870 $as_echo "$ac_try_echo") >&5
28871 (eval "$ac_link") 2>conftest.er1
28873 grep -v '^ *+' conftest.er1 >conftest.err
28875 cat conftest.err >&5
28876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877 (exit $ac_status); } && {
28878 test -z "$ac_c_werror_flag" ||
28879 test ! -s conftest.err
28880 } && test -s conftest$ac_exeext && {
28881 test "$cross_compiling" = yes ||
28882 $as_test_x conftest$ac_exeext
28884 ac_cv_search_bind_textdomain_codeset=$ac_res
28886 $as_echo "$as_me: failed program was:" >&5
28887 sed 's/^/| /' conftest.$ac_ext >&5
28892 rm -rf conftest.dSYM
28893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28895 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28899 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28902 ac_cv_search_bind_textdomain_codeset=no
28904 rm conftest.$ac_ext
28905 LIBS=$ac_func_search_save_LIBS
28907 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28908 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28909 ac_res=$ac_cv_search_bind_textdomain_codeset
28910 if test "$ac_res" != no; then
28911 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28914 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28915 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28916 { (exit 1); exit 1; }; }
28919 if test "${ac_cv_header_libintl_h+set}" = set; then
28920 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28921 $as_echo_n "checking for libintl.h... " >&6; }
28922 if test "${ac_cv_header_libintl_h+set}" = set; then
28923 $as_echo_n "(cached) " >&6
28925 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28926 $as_echo "$ac_cv_header_libintl_h" >&6; }
28928 # Is the header compilable?
28929 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28930 $as_echo_n "checking libintl.h usability... " >&6; }
28931 cat >conftest.$ac_ext <<_ACEOF
28934 cat confdefs.h >>conftest.$ac_ext
28935 cat >>conftest.$ac_ext <<_ACEOF
28936 /* end confdefs.h. */
28937 $ac_includes_default
28938 #include <libintl.h>
28940 rm -f conftest.$ac_objext
28941 if { (ac_try="$ac_compile"
28942 case "(($ac_try" in
28943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28944 *) ac_try_echo=$ac_try;;
28946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28947 $as_echo "$ac_try_echo") >&5
28948 (eval "$ac_compile") 2>conftest.er1
28950 grep -v '^ *+' conftest.er1 >conftest.err
28952 cat conftest.err >&5
28953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28954 (exit $ac_status); } && {
28955 test -z "$ac_c_werror_flag" ||
28956 test ! -s conftest.err
28957 } && test -s conftest.$ac_objext; then
28958 ac_header_compiler=yes
28960 $as_echo "$as_me: failed program was:" >&5
28961 sed 's/^/| /' conftest.$ac_ext >&5
28963 ac_header_compiler=no
28966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28967 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28968 $as_echo "$ac_header_compiler" >&6; }
28970 # Is the header present?
28971 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28972 $as_echo_n "checking libintl.h presence... " >&6; }
28973 cat >conftest.$ac_ext <<_ACEOF
28976 cat confdefs.h >>conftest.$ac_ext
28977 cat >>conftest.$ac_ext <<_ACEOF
28978 /* end confdefs.h. */
28979 #include <libintl.h>
28981 if { (ac_try="$ac_cpp conftest.$ac_ext"
28982 case "(($ac_try" in
28983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28984 *) ac_try_echo=$ac_try;;
28986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28987 $as_echo "$ac_try_echo") >&5
28988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28990 grep -v '^ *+' conftest.er1 >conftest.err
28992 cat conftest.err >&5
28993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28994 (exit $ac_status); } >/dev/null && {
28995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28996 test ! -s conftest.err
28998 ac_header_preproc=yes
29000 $as_echo "$as_me: failed program was:" >&5
29001 sed 's/^/| /' conftest.$ac_ext >&5
29003 ac_header_preproc=no
29006 rm -f conftest.err conftest.$ac_ext
29007 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29008 $as_echo "$ac_header_preproc" >&6; }
29010 # So? What about this header?
29011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29013 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29014 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29015 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
29016 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
29017 ac_header_preproc=yes
29020 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
29021 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
29022 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
29023 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
29024 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
29025 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
29026 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
29027 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29028 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
29029 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
29030 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
29031 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
29033 ## ---------------------------------------- ##
29034 ## Report this to pgsql-bugs@postgresql.org ##
29035 ## ---------------------------------------- ##
29037 ) | sed "s/^/$as_me: WARNING: /" >&2
29040 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
29041 $as_echo_n "checking for libintl.h... " >&6; }
29042 if test "${ac_cv_header_libintl_h+set}" = set; then
29043 $as_echo_n "(cached) " >&6
29045 ac_cv_header_libintl_h=$ac_header_preproc
29047 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
29048 $as_echo "$ac_cv_header_libintl_h" >&6; }
29051 if test "x$ac_cv_header_libintl_h" = x""yes; then
29054 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
29055 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
29056 { (exit 1); exit 1; }; }
29060 for ac_prog in msgfmt
29062 # Extract the first word of "$ac_prog", so it can be a program name with args.
29063 set dummy $ac_prog; ac_word=$2
29064 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29065 $as_echo_n "checking for $ac_word... " >&6; }
29066 if test "${ac_cv_prog_MSGFMT+set}" = set; then
29067 $as_echo_n "(cached) " >&6
29069 if test -n "$MSGFMT"; then
29070 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
29072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29073 for as_dir in $PATH
29076 test -z "$as_dir" && as_dir=.
29077 for ac_exec_ext in '' $ac_executable_extensions; do
29078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29079 ac_cv_prog_MSGFMT="$ac_prog"
29080 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29089 MSGFMT=$ac_cv_prog_MSGFMT
29090 if test -n "$MSGFMT"; then
29091 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
29092 $as_echo "$MSGFMT" >&6; }
29094 { $as_echo "$as_me:$LINENO: result: no" >&5
29095 $as_echo "no" >&6; }
29099 test -n "$MSGFMT" && break
29102 if test -z "$MSGFMT"; then
29103 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
29104 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
29105 { (exit 1); exit 1; }; }
29107 for ac_prog in msgmerge
29109 # Extract the first word of "$ac_prog", so it can be a program name with args.
29110 set dummy $ac_prog; ac_word=$2
29111 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29112 $as_echo_n "checking for $ac_word... " >&6; }
29113 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
29114 $as_echo_n "(cached) " >&6
29116 if test -n "$MSGMERGE"; then
29117 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
29119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29120 for as_dir in $PATH
29123 test -z "$as_dir" && as_dir=.
29124 for ac_exec_ext in '' $ac_executable_extensions; do
29125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29126 ac_cv_prog_MSGMERGE="$ac_prog"
29127 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29136 MSGMERGE=$ac_cv_prog_MSGMERGE
29137 if test -n "$MSGMERGE"; then
29138 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
29139 $as_echo "$MSGMERGE" >&6; }
29141 { $as_echo "$as_me:$LINENO: result: no" >&5
29142 $as_echo "no" >&6; }
29146 test -n "$MSGMERGE" && break
29149 for ac_prog in xgettext
29151 # Extract the first word of "$ac_prog", so it can be a program name with args.
29152 set dummy $ac_prog; ac_word=$2
29153 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29154 $as_echo_n "checking for $ac_word... " >&6; }
29155 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
29156 $as_echo_n "(cached) " >&6
29158 if test -n "$XGETTEXT"; then
29159 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
29161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29162 for as_dir in $PATH
29165 test -z "$as_dir" && as_dir=.
29166 for ac_exec_ext in '' $ac_executable_extensions; do
29167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29168 ac_cv_prog_XGETTEXT="$ac_prog"
29169 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29178 XGETTEXT=$ac_cv_prog_XGETTEXT
29179 if test -n "$XGETTEXT"; then
29180 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
29181 $as_echo "$XGETTEXT" >&6; }
29183 { $as_echo "$as_me:$LINENO: result: no" >&5
29184 $as_echo "no" >&6; }
29188 test -n "$XGETTEXT" && break
29194 # Check for Tcl configuration script tclConfig.sh
29195 if test "$with_tcl" = yes; then
29196 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
29198 # Extract the first word of "$ac_prog", so it can be a program name with args.
29199 set dummy $ac_prog; ac_word=$2
29200 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29201 $as_echo_n "checking for $ac_word... " >&6; }
29202 if test "${ac_cv_path_TCLSH+set}" = set; then
29203 $as_echo_n "(cached) " >&6
29207 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
29210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29211 for as_dir in $PATH
29214 test -z "$as_dir" && as_dir=.
29215 for ac_exec_ext in '' $ac_executable_extensions; do
29216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29217 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
29218 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29228 TCLSH=$ac_cv_path_TCLSH
29229 if test -n "$TCLSH"; then
29230 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
29231 $as_echo "$TCLSH" >&6; }
29233 { $as_echo "$as_me:$LINENO: result: no" >&5
29234 $as_echo "no" >&6; }
29238 test -n "$TCLSH" && break
29241 if test x"$TCLSH" = x""; then
29242 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
29243 $as_echo "$as_me: error: Tcl shell not found" >&2;}
29244 { (exit 1); exit 1; }; }
29247 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
29248 $as_echo_n "checking for tclConfig.sh... " >&6; }
29249 # Let user override test
29250 if test -z "$TCL_CONFIG_SH"; then
29251 pgac_test_dirs="$with_tclconfig"
29253 set X $pgac_test_dirs; shift
29254 if test $# -eq 0; then
29255 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
29256 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
29257 { (exit 1); exit 1; }; }
29258 set X `echo 'puts $auto_path' | $TCLSH`; shift
29262 if test -r "$pgac_dir/tclConfig.sh"; then
29263 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
29269 if test -z "$TCL_CONFIG_SH"; then
29270 { $as_echo "$as_me:$LINENO: result: no" >&5
29271 $as_echo "no" >&6; }
29272 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
29273 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
29274 { (exit 1); exit 1; }; }
29276 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
29277 $as_echo "$TCL_CONFIG_SH" >&6; }
29283 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
29284 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
29285 eval TCL_LIBS=\"$TCL_LIBS\"
29286 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
29287 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
29289 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
29290 ac_save_CPPFLAGS=$CPPFLAGS
29291 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
29292 if test "${ac_cv_header_tcl_h+set}" = set; then
29293 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29294 $as_echo_n "checking for tcl.h... " >&6; }
29295 if test "${ac_cv_header_tcl_h+set}" = set; then
29296 $as_echo_n "(cached) " >&6
29298 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29299 $as_echo "$ac_cv_header_tcl_h" >&6; }
29301 # Is the header compilable?
29302 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
29303 $as_echo_n "checking tcl.h usability... " >&6; }
29304 cat >conftest.$ac_ext <<_ACEOF
29307 cat confdefs.h >>conftest.$ac_ext
29308 cat >>conftest.$ac_ext <<_ACEOF
29309 /* end confdefs.h. */
29310 $ac_includes_default
29313 rm -f conftest.$ac_objext
29314 if { (ac_try="$ac_compile"
29315 case "(($ac_try" in
29316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29317 *) ac_try_echo=$ac_try;;
29319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29320 $as_echo "$ac_try_echo") >&5
29321 (eval "$ac_compile") 2>conftest.er1
29323 grep -v '^ *+' conftest.er1 >conftest.err
29325 cat conftest.err >&5
29326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29327 (exit $ac_status); } && {
29328 test -z "$ac_c_werror_flag" ||
29329 test ! -s conftest.err
29330 } && test -s conftest.$ac_objext; then
29331 ac_header_compiler=yes
29333 $as_echo "$as_me: failed program was:" >&5
29334 sed 's/^/| /' conftest.$ac_ext >&5
29336 ac_header_compiler=no
29339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29340 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29341 $as_echo "$ac_header_compiler" >&6; }
29343 # Is the header present?
29344 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
29345 $as_echo_n "checking tcl.h presence... " >&6; }
29346 cat >conftest.$ac_ext <<_ACEOF
29349 cat confdefs.h >>conftest.$ac_ext
29350 cat >>conftest.$ac_ext <<_ACEOF
29351 /* end confdefs.h. */
29354 if { (ac_try="$ac_cpp conftest.$ac_ext"
29355 case "(($ac_try" in
29356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29357 *) ac_try_echo=$ac_try;;
29359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29360 $as_echo "$ac_try_echo") >&5
29361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29363 grep -v '^ *+' conftest.er1 >conftest.err
29365 cat conftest.err >&5
29366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29367 (exit $ac_status); } >/dev/null && {
29368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29369 test ! -s conftest.err
29371 ac_header_preproc=yes
29373 $as_echo "$as_me: failed program was:" >&5
29374 sed 's/^/| /' conftest.$ac_ext >&5
29376 ac_header_preproc=no
29379 rm -f conftest.err conftest.$ac_ext
29380 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29381 $as_echo "$ac_header_preproc" >&6; }
29383 # So? What about this header?
29384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29386 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29387 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29388 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
29389 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
29390 ac_header_preproc=yes
29393 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
29394 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
29395 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
29396 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
29397 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
29398 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
29399 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
29400 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29401 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
29402 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
29403 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
29404 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
29406 ## ---------------------------------------- ##
29407 ## Report this to pgsql-bugs@postgresql.org ##
29408 ## ---------------------------------------- ##
29410 ) | sed "s/^/$as_me: WARNING: /" >&2
29413 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29414 $as_echo_n "checking for tcl.h... " >&6; }
29415 if test "${ac_cv_header_tcl_h+set}" = set; then
29416 $as_echo_n "(cached) " >&6
29418 ac_cv_header_tcl_h=$ac_header_preproc
29420 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29421 $as_echo "$ac_cv_header_tcl_h" >&6; }
29424 if test "x$ac_cv_header_tcl_h" = x""yes; then
29427 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
29428 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
29429 { (exit 1); exit 1; }; }
29433 CPPFLAGS=$ac_save_CPPFLAGS
29436 # check for <perl.h>
29437 if test "$with_perl" = yes; then
29438 ac_save_CPPFLAGS=$CPPFLAGS
29439 CPPFLAGS="$CPPFLAGS -I$perl_archlibexp/CORE"
29440 { $as_echo "$as_me:$LINENO: checking for perl.h" >&5
29441 $as_echo_n "checking for perl.h... " >&6; }
29442 if test "${ac_cv_header_perl_h+set}" = set; then
29443 $as_echo_n "(cached) " >&6
29445 cat >conftest.$ac_ext <<_ACEOF
29448 cat confdefs.h >>conftest.$ac_ext
29449 cat >>conftest.$ac_ext <<_ACEOF
29450 /* end confdefs.h. */
29451 #include <EXTERN.h>
29455 rm -f conftest.$ac_objext
29456 if { (ac_try="$ac_compile"
29457 case "(($ac_try" in
29458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29459 *) ac_try_echo=$ac_try;;
29461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29462 $as_echo "$ac_try_echo") >&5
29463 (eval "$ac_compile") 2>conftest.er1
29465 grep -v '^ *+' conftest.er1 >conftest.err
29467 cat conftest.err >&5
29468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29469 (exit $ac_status); } && {
29470 test -z "$ac_c_werror_flag" ||
29471 test ! -s conftest.err
29472 } && test -s conftest.$ac_objext; then
29473 ac_cv_header_perl_h=yes
29475 $as_echo "$as_me: failed program was:" >&5
29476 sed 's/^/| /' conftest.$ac_ext >&5
29478 ac_cv_header_perl_h=no
29481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29483 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_perl_h" >&5
29484 $as_echo "$ac_cv_header_perl_h" >&6; }
29485 if test "x$ac_cv_header_perl_h" = x""yes; then
29488 { { $as_echo "$as_me:$LINENO: error: header file <perl.h> is required for Perl" >&5
29489 $as_echo "$as_me: error: header file <perl.h> is required for Perl" >&2;}
29490 { (exit 1); exit 1; }; }
29494 # While we're at it, check that we can link to libperl.
29495 # On most platforms, if perl.h is there then libperl.so will be too, but at
29496 # this writing Debian packages them separately. There is no known reason to
29497 # waste cycles on separate probes for the Tcl or Python libraries, though.
29498 pgac_save_LIBS=$LIBS
29499 LIBS="$perl_embed_ldflags"
29500 { $as_echo "$as_me:$LINENO: checking for libperl" >&5
29501 $as_echo_n "checking for libperl... " >&6; }
29502 cat >conftest.$ac_ext <<_ACEOF
29505 cat confdefs.h >>conftest.$ac_ext
29506 cat >>conftest.$ac_ext <<_ACEOF
29507 /* end confdefs.h. */
29509 #include <EXTERN.h>
29520 rm -f conftest.$ac_objext conftest$ac_exeext
29521 if { (ac_try="$ac_link"
29522 case "(($ac_try" in
29523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29524 *) ac_try_echo=$ac_try;;
29526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29527 $as_echo "$ac_try_echo") >&5
29528 (eval "$ac_link") 2>conftest.er1
29530 grep -v '^ *+' conftest.er1 >conftest.err
29532 cat conftest.err >&5
29533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534 (exit $ac_status); } && {
29535 test -z "$ac_c_werror_flag" ||
29536 test ! -s conftest.err
29537 } && test -s conftest$ac_exeext && {
29538 test "$cross_compiling" = yes ||
29539 $as_test_x conftest$ac_exeext
29541 { $as_echo "$as_me:$LINENO: result: yes" >&5
29542 $as_echo "yes" >&6; }
29544 $as_echo "$as_me: failed program was:" >&5
29545 sed 's/^/| /' conftest.$ac_ext >&5
29547 { $as_echo "$as_me:$LINENO: result: no" >&5
29548 $as_echo "no" >&6; }
29549 { { $as_echo "$as_me:$LINENO: error: libperl library is required for Perl" >&5
29550 $as_echo "$as_me: error: libperl library is required for Perl" >&2;}
29551 { (exit 1); exit 1; }; }
29554 rm -rf conftest.dSYM
29555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29556 conftest$ac_exeext conftest.$ac_ext
29557 LIBS=$pgac_save_LIBS
29558 CPPFLAGS=$ac_save_CPPFLAGS
29561 # check for <Python.h>
29562 if test "$with_python" = yes; then
29563 ac_save_CPPFLAGS=$CPPFLAGS
29564 CPPFLAGS="$python_includespec $CPPFLAGS"
29565 if test "${ac_cv_header_Python_h+set}" = set; then
29566 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29567 $as_echo_n "checking for Python.h... " >&6; }
29568 if test "${ac_cv_header_Python_h+set}" = set; then
29569 $as_echo_n "(cached) " >&6
29571 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29572 $as_echo "$ac_cv_header_Python_h" >&6; }
29574 # Is the header compilable?
29575 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
29576 $as_echo_n "checking Python.h usability... " >&6; }
29577 cat >conftest.$ac_ext <<_ACEOF
29580 cat confdefs.h >>conftest.$ac_ext
29581 cat >>conftest.$ac_ext <<_ACEOF
29582 /* end confdefs.h. */
29583 $ac_includes_default
29584 #include <Python.h>
29586 rm -f conftest.$ac_objext
29587 if { (ac_try="$ac_compile"
29588 case "(($ac_try" in
29589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29590 *) ac_try_echo=$ac_try;;
29592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29593 $as_echo "$ac_try_echo") >&5
29594 (eval "$ac_compile") 2>conftest.er1
29596 grep -v '^ *+' conftest.er1 >conftest.err
29598 cat conftest.err >&5
29599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600 (exit $ac_status); } && {
29601 test -z "$ac_c_werror_flag" ||
29602 test ! -s conftest.err
29603 } && test -s conftest.$ac_objext; then
29604 ac_header_compiler=yes
29606 $as_echo "$as_me: failed program was:" >&5
29607 sed 's/^/| /' conftest.$ac_ext >&5
29609 ac_header_compiler=no
29612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29613 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29614 $as_echo "$ac_header_compiler" >&6; }
29616 # Is the header present?
29617 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
29618 $as_echo_n "checking Python.h presence... " >&6; }
29619 cat >conftest.$ac_ext <<_ACEOF
29622 cat confdefs.h >>conftest.$ac_ext
29623 cat >>conftest.$ac_ext <<_ACEOF
29624 /* end confdefs.h. */
29625 #include <Python.h>
29627 if { (ac_try="$ac_cpp conftest.$ac_ext"
29628 case "(($ac_try" in
29629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29630 *) ac_try_echo=$ac_try;;
29632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29633 $as_echo "$ac_try_echo") >&5
29634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29636 grep -v '^ *+' conftest.er1 >conftest.err
29638 cat conftest.err >&5
29639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29640 (exit $ac_status); } >/dev/null && {
29641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29642 test ! -s conftest.err
29644 ac_header_preproc=yes
29646 $as_echo "$as_me: failed program was:" >&5
29647 sed 's/^/| /' conftest.$ac_ext >&5
29649 ac_header_preproc=no
29652 rm -f conftest.err conftest.$ac_ext
29653 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29654 $as_echo "$ac_header_preproc" >&6; }
29656 # So? What about this header?
29657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29659 { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
29660 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29661 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
29662 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
29663 ac_header_preproc=yes
29666 { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
29667 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
29668 { $as_echo "$as_me:$LINENO: WARNING: Python.h: check for missing prerequisite headers?" >&5
29669 $as_echo "$as_me: WARNING: Python.h: check for missing prerequisite headers?" >&2;}
29670 { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29671 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29672 { $as_echo "$as_me:$LINENO: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&5
29673 $as_echo "$as_me: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&2;}
29674 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29675 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29676 { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29677 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29679 ## ---------------------------------------- ##
29680 ## Report this to pgsql-bugs@postgresql.org ##
29681 ## ---------------------------------------- ##
29683 ) | sed "s/^/$as_me: WARNING: /" >&2
29686 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29687 $as_echo_n "checking for Python.h... " >&6; }
29688 if test "${ac_cv_header_Python_h+set}" = set; then
29689 $as_echo_n "(cached) " >&6
29691 ac_cv_header_Python_h=$ac_header_preproc
29693 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29694 $as_echo "$ac_cv_header_Python_h" >&6; }
29697 if test "x$ac_cv_header_Python_h" = x""yes; then
29700 { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29701 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29702 { (exit 1); exit 1; }; }
29706 CPPFLAGS=$ac_save_CPPFLAGS
29710 # Check for DocBook and tools
29712 for ac_prog in onsgmls nsgmls
29714 # Extract the first word of "$ac_prog", so it can be a program name with args.
29715 set dummy $ac_prog; ac_word=$2
29716 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29717 $as_echo_n "checking for $ac_word... " >&6; }
29718 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29719 $as_echo_n "(cached) " >&6
29721 if test -n "$NSGMLS"; then
29722 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29725 for as_dir in $PATH
29728 test -z "$as_dir" && as_dir=.
29729 for ac_exec_ext in '' $ac_executable_extensions; do
29730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29731 ac_cv_prog_NSGMLS="$ac_prog"
29732 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29741 NSGMLS=$ac_cv_prog_NSGMLS
29742 if test -n "$NSGMLS"; then
29743 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29744 $as_echo "$NSGMLS" >&6; }
29746 { $as_echo "$as_me:$LINENO: result: no" >&5
29747 $as_echo "no" >&6; }
29751 test -n "$NSGMLS" && break
29754 for ac_prog in openjade jade
29756 # Extract the first word of "$ac_prog", so it can be a program name with args.
29757 set dummy $ac_prog; ac_word=$2
29758 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29759 $as_echo_n "checking for $ac_word... " >&6; }
29760 if test "${ac_cv_prog_JADE+set}" = set; then
29761 $as_echo_n "(cached) " >&6
29763 if test -n "$JADE"; then
29764 ac_cv_prog_JADE="$JADE" # Let the user override the test.
29766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29767 for as_dir in $PATH
29770 test -z "$as_dir" && as_dir=.
29771 for ac_exec_ext in '' $ac_executable_extensions; do
29772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29773 ac_cv_prog_JADE="$ac_prog"
29774 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29783 JADE=$ac_cv_prog_JADE
29784 if test -n "$JADE"; then
29785 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
29786 $as_echo "$JADE" >&6; }
29788 { $as_echo "$as_me:$LINENO: result: no" >&5
29789 $as_echo "no" >&6; }
29793 test -n "$JADE" && break
29797 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
29798 $as_echo_n "checking for DocBook V4.2... " >&6; }
29799 if test "${pgac_cv_check_docbook+set}" = set; then
29800 $as_echo_n "(cached) " >&6
29802 cat >conftest.sgml <<EOF
29803 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
29805 <title>test</title>
29807 <title>random</title>
29809 <title>testsect</title>
29816 pgac_cv_check_docbook=no
29818 if test -n "$NSGMLS"; then
29819 $NSGMLS -s conftest.sgml 1>&5 2>&1
29820 if test $? -eq 0; then
29821 pgac_cv_check_docbook=yes
29824 rm -f conftest.sgml
29826 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
29827 $as_echo "$pgac_cv_check_docbook" >&6; }
29829 have_docbook=$pgac_cv_check_docbook
29832 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
29833 $as_echo_n "checking for DocBook stylesheets... " >&6; }
29834 if test "${pgac_cv_path_stylesheets+set}" = set; then
29835 $as_echo_n "(cached) " >&6
29837 if test -n "$DOCBOOKSTYLE"; then
29838 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
29840 for pgac_prefix in /usr /usr/local /opt /sw; do
29841 for pgac_infix in share lib; do
29842 for pgac_postfix in \
29843 sgml/stylesheets/nwalsh-modular \
29844 sgml/stylesheets/docbook \
29845 sgml/stylesheets/dsssl/docbook \
29846 sgml/docbook-dsssl \
29847 sgml/docbook/dsssl/modular \
29848 sgml/docbook/stylesheet/dsssl/modular \
29849 sgml/docbook/dsssl-stylesheets \
29850 sgml/dsssl/docbook-dsssl-nwalsh
29852 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
29853 if test -r "$pgac_candidate/html/docbook.dsl" \
29854 && test -r "$pgac_candidate/print/docbook.dsl"
29856 pgac_cv_path_stylesheets=$pgac_candidate
29865 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
29867 if test -n "$DOCBOOKSTYLE"; then
29868 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
29869 $as_echo "$DOCBOOKSTYLE" >&6; }
29871 { $as_echo "$as_me:$LINENO: result: no" >&5
29872 $as_echo "no" >&6; }
29874 if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then
29875 COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl"
29878 # Extract the first word of "collateindex.pl", so it can be a program name with args.
29879 set dummy collateindex.pl; ac_word=$2
29880 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29881 $as_echo_n "checking for $ac_word... " >&6; }
29882 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29883 $as_echo_n "(cached) " >&6
29885 case $COLLATEINDEX in
29887 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29891 for as_dir in $PATH
29894 test -z "$as_dir" && as_dir=.
29895 for ac_exec_ext in '' $ac_executable_extensions; do
29896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29897 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29898 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29908 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29909 if test -n "$COLLATEINDEX"; then
29910 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29911 $as_echo "$COLLATEINDEX" >&6; }
29913 { $as_echo "$as_me:$LINENO: result: no" >&5
29914 $as_echo "no" >&6; }
29919 for ac_prog in xsltproc
29921 # Extract the first word of "$ac_prog", so it can be a program name with args.
29922 set dummy $ac_prog; ac_word=$2
29923 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29924 $as_echo_n "checking for $ac_word... " >&6; }
29925 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
29926 $as_echo_n "(cached) " >&6
29928 if test -n "$XSLTPROC"; then
29929 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
29931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29932 for as_dir in $PATH
29935 test -z "$as_dir" && as_dir=.
29936 for ac_exec_ext in '' $ac_executable_extensions; do
29937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29938 ac_cv_prog_XSLTPROC="$ac_prog"
29939 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29948 XSLTPROC=$ac_cv_prog_XSLTPROC
29949 if test -n "$XSLTPROC"; then
29950 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
29951 $as_echo "$XSLTPROC" >&6; }
29953 { $as_echo "$as_me:$LINENO: result: no" >&5
29954 $as_echo "no" >&6; }
29958 test -n "$XSLTPROC" && break
29961 for ac_prog in osx sgml2xml sx
29963 # Extract the first word of "$ac_prog", so it can be a program name with args.
29964 set dummy $ac_prog; ac_word=$2
29965 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29966 $as_echo_n "checking for $ac_word... " >&6; }
29967 if test "${ac_cv_prog_OSX+set}" = set; then
29968 $as_echo_n "(cached) " >&6
29970 if test -n "$OSX"; then
29971 ac_cv_prog_OSX="$OSX" # Let the user override the test.
29973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29974 for as_dir in $PATH
29977 test -z "$as_dir" && as_dir=.
29978 for ac_exec_ext in '' $ac_executable_extensions; do
29979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29980 ac_cv_prog_OSX="$ac_prog"
29981 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29990 OSX=$ac_cv_prog_OSX
29991 if test -n "$OSX"; then
29992 { $as_echo "$as_me:$LINENO: result: $OSX" >&5
29993 $as_echo "$OSX" >&6; }
29995 { $as_echo "$as_me:$LINENO: result: no" >&5
29996 $as_echo "no" >&6; }
30000 test -n "$OSX" && break
30006 # We have to run the thread test near the end so we have all our symbols
30007 # defined. Cross compiling throws a warning.
30009 if test "$enable_thread_safety" = yes; then
30010 if test "$PORTNAME" != "win32"
30012 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
30013 $as_echo_n "checking thread safety of required library functions... " >&6; }
30017 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
30018 LIBS="$LIBS $PTHREAD_LIBS"
30019 if test "$cross_compiling" = yes; then
30020 { $as_echo "$as_me:$LINENO: result: maybe" >&5
30021 $as_echo "maybe" >&6; }
30022 { $as_echo "$as_me:$LINENO: WARNING:
30023 *** Skipping thread test program because of cross-compile build.
30024 *** Run the program in src/test/thread on the target machine.
30026 $as_echo "$as_me: WARNING:
30027 *** Skipping thread test program because of cross-compile build.
30028 *** Run the program in src/test/thread on the target machine.
30031 cat >conftest.$ac_ext <<_ACEOF
30034 cat confdefs.h >>conftest.$ac_ext
30035 cat >>conftest.$ac_ext <<_ACEOF
30036 /* end confdefs.h. */
30037 #include "$srcdir/src/test/thread/thread_test.c"
30039 rm -f conftest$ac_exeext
30040 if { (ac_try="$ac_link"
30041 case "(($ac_try" in
30042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30043 *) ac_try_echo=$ac_try;;
30045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30046 $as_echo "$ac_try_echo") >&5
30047 (eval "$ac_link") 2>&5
30049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30051 { (case "(($ac_try" in
30052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30053 *) ac_try_echo=$ac_try;;
30055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30056 $as_echo "$ac_try_echo") >&5
30057 (eval "$ac_try") 2>&5
30059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060 (exit $ac_status); }; }; then
30061 { $as_echo "$as_me:$LINENO: result: yes" >&5
30062 $as_echo "yes" >&6; }
30064 $as_echo "$as_me: program exited with status $ac_status" >&5
30065 $as_echo "$as_me: failed program was:" >&5
30066 sed 's/^/| /' conftest.$ac_ext >&5
30068 ( exit $ac_status )
30069 { $as_echo "$as_me:$LINENO: result: no" >&5
30070 $as_echo "no" >&6; }
30071 { { $as_echo "$as_me:$LINENO: error: thread test program failed
30072 This platform is not thread-safe. Check the file 'config.log' or compile
30073 and run src/test/thread/thread_test for the exact reason.
30074 Use --disable-thread-safety to disable thread safety." >&5
30075 $as_echo "$as_me: error: thread test program failed
30076 This platform is not thread-safe. Check the file 'config.log' or compile
30077 and run src/test/thread/thread_test for the exact reason.
30078 Use --disable-thread-safety to disable thread safety." >&2;}
30079 { (exit 1); exit 1; }; }
30081 rm -rf conftest.dSYM
30082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30089 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
30090 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
30094 # If compiler will take -Wl,--as-needed (or various platform-specific
30095 # spellings thereof) then add that to LDFLAGS. This is much easier than
30096 # trying to filter LIBS to the minimum for each executable.
30097 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
30098 # libreadline; therefore we postpone testing it until we know what library
30099 # dependencies readline has. The test code will try to link with $LIBS.
30100 if test "$with_readline" = yes; then
30101 link_test_func=readline
30103 link_test_func=exit
30106 if test "$PORTNAME" = "darwin"; then
30107 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
30108 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
30109 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
30110 $as_echo_n "(cached) " >&6
30112 pgac_save_LDFLAGS=$LDFLAGS
30113 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
30114 if test "$cross_compiling" = yes; then
30115 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
30117 cat >conftest.$ac_ext <<_ACEOF
30120 cat confdefs.h >>conftest.$ac_ext
30121 cat >>conftest.$ac_ext <<_ACEOF
30122 /* end confdefs.h. */
30123 extern void $link_test_func (); void (*fptr) () = $link_test_func;
30132 rm -f conftest$ac_exeext
30133 if { (ac_try="$ac_link"
30134 case "(($ac_try" in
30135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30136 *) ac_try_echo=$ac_try;;
30138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30139 $as_echo "$ac_try_echo") >&5
30140 (eval "$ac_link") 2>&5
30142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30144 { (case "(($ac_try" in
30145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30146 *) ac_try_echo=$ac_try;;
30148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30149 $as_echo "$ac_try_echo") >&5
30150 (eval "$ac_try") 2>&5
30152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30153 (exit $ac_status); }; }; then
30154 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
30156 $as_echo "$as_me: program exited with status $ac_status" >&5
30157 $as_echo "$as_me: failed program was:" >&5
30158 sed 's/^/| /' conftest.$ac_ext >&5
30160 ( exit $ac_status )
30161 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
30163 rm -rf conftest.dSYM
30164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30168 LDFLAGS="$pgac_save_LDFLAGS"
30170 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
30171 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
30172 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
30173 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
30176 elif test "$PORTNAME" = "openbsd"; then
30177 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
30178 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
30179 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
30180 $as_echo_n "(cached) " >&6
30182 pgac_save_LDFLAGS=$LDFLAGS
30183 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
30184 if test "$cross_compiling" = yes; then
30185 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
30187 cat >conftest.$ac_ext <<_ACEOF
30190 cat confdefs.h >>conftest.$ac_ext
30191 cat >>conftest.$ac_ext <<_ACEOF
30192 /* end confdefs.h. */
30193 extern void $link_test_func (); void (*fptr) () = $link_test_func;
30202 rm -f conftest$ac_exeext
30203 if { (ac_try="$ac_link"
30204 case "(($ac_try" in
30205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30206 *) ac_try_echo=$ac_try;;
30208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30209 $as_echo "$ac_try_echo") >&5
30210 (eval "$ac_link") 2>&5
30212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30214 { (case "(($ac_try" in
30215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30216 *) ac_try_echo=$ac_try;;
30218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30219 $as_echo "$ac_try_echo") >&5
30220 (eval "$ac_try") 2>&5
30222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30223 (exit $ac_status); }; }; then
30224 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
30226 $as_echo "$as_me: program exited with status $ac_status" >&5
30227 $as_echo "$as_me: failed program was:" >&5
30228 sed 's/^/| /' conftest.$ac_ext >&5
30230 ( exit $ac_status )
30231 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
30233 rm -rf conftest.dSYM
30234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30238 LDFLAGS="$pgac_save_LDFLAGS"
30240 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
30241 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
30242 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
30243 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
30247 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
30248 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
30249 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
30250 $as_echo_n "(cached) " >&6
30252 pgac_save_LDFLAGS=$LDFLAGS
30253 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
30254 if test "$cross_compiling" = yes; then
30255 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
30257 cat >conftest.$ac_ext <<_ACEOF
30260 cat confdefs.h >>conftest.$ac_ext
30261 cat >>conftest.$ac_ext <<_ACEOF
30262 /* end confdefs.h. */
30263 extern void $link_test_func (); void (*fptr) () = $link_test_func;
30272 rm -f conftest$ac_exeext
30273 if { (ac_try="$ac_link"
30274 case "(($ac_try" in
30275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30276 *) ac_try_echo=$ac_try;;
30278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30279 $as_echo "$ac_try_echo") >&5
30280 (eval "$ac_link") 2>&5
30282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30284 { (case "(($ac_try" in
30285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30286 *) ac_try_echo=$ac_try;;
30288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30289 $as_echo "$ac_try_echo") >&5
30290 (eval "$ac_try") 2>&5
30292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30293 (exit $ac_status); }; }; then
30294 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
30296 $as_echo "$as_me: program exited with status $ac_status" >&5
30297 $as_echo "$as_me: failed program was:" >&5
30298 sed 's/^/| /' conftest.$ac_ext >&5
30300 ( exit $ac_status )
30301 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
30303 rm -rf conftest.dSYM
30304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30308 LDFLAGS="$pgac_save_LDFLAGS"
30310 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
30311 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
30312 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
30313 LDFLAGS="$LDFLAGS -Wl,--as-needed"
30318 # Create compiler version string
30319 if test x"$GCC" = x"yes" ; then
30320 cc_string=`${CC} --version | sed q`
30321 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
30322 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
30323 cc_string=`${CC} -V 2>&1 | sed q`
30329 cat >>confdefs.h <<_ACEOF
30330 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
30334 # Supply a numeric version string for use by 3rd party add-ons
30335 # awk -F is a regex on some platforms, and not on others, so make "." a tab
30336 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
30338 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
30340 cat >>confdefs.h <<_ACEOF
30341 #define PG_VERSION_NUM $PG_VERSION_NUM
30346 # Begin output steps
30348 { $as_echo "$as_me:$LINENO: using compiler=$cc_string" >&5
30349 $as_echo "$as_me: using compiler=$cc_string" >&6;}
30350 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
30351 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
30352 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
30353 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
30354 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
30355 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
30357 # prepare build tree if outside source tree
30358 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
30359 # Note 2: /bin/pwd might be better than shell's built-in at getting
30360 # a symlink-free name.
30361 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
30365 if test "$no_create" != yes; then
30366 $as_echo_n "preparing build tree... " >&6
30367 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
30368 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
30369 || { { $as_echo "$as_me:$LINENO: error: failed" >&5
30370 $as_echo "$as_me: error: failed" >&2;}
30371 { (exit 1); exit 1; }; }
30372 { $as_echo "$as_me:$LINENO: result: done" >&5
30373 $as_echo "done" >&6; }
30379 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
30382 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}"
30385 if test "$PORTNAME" = "win32"; then
30386 ac_config_commands="$ac_config_commands check_win32_symlinks"
30390 ac_config_headers="$ac_config_headers src/include/pg_config.h"
30393 ac_config_headers="$ac_config_headers src/include/pg_config_ext.h"
30396 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
30399 cat >confcache <<\_ACEOF
30400 # This file is a shell script that caches the results of configure
30401 # tests run on this system so they can be shared between configure
30402 # scripts and configure runs, see configure's option --config-cache.
30403 # It is not useful on other systems. If it contains results you don't
30404 # want to keep, you may remove or edit it.
30406 # config.status only pays attention to the cache file if you give it
30407 # the --recheck option to rerun configure.
30409 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30410 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30411 # following values.
30415 # The following way of writing the cache mishandles newlines in values,
30416 # but we know of no workaround that is simple, portable, and efficient.
30417 # So, we kill variables containing newlines.
30418 # Ultrix sh set writes to stderr and can't be redirected directly,
30419 # and sets the high bit in the cache file unless we assign to the vars.
30421 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30422 eval ac_val=\$$ac_var
30426 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
30427 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30430 _ | IFS | as_nl) ;; #(
30431 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30432 *) $as_unset $ac_var ;;
30438 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30439 *${as_nl}ac_space=\ *)
30440 # `set' does not quote correctly, so add quotes (double-quote
30441 # substitution turns \\\\ into \\, and sed turns \\ into \).
30444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30447 # `set' quotes correctly as required by POSIX, so do not add quotes.
30448 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30457 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30459 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30461 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30462 if test -w "$cache_file"; then
30463 test "x$cache_file" != "x/dev/null" &&
30464 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
30465 $as_echo "$as_me: updating cache $cache_file" >&6;}
30466 cat confcache >$cache_file
30468 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30469 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30474 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30475 # Let make expand exec_prefix.
30476 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30478 DEFS=-DHAVE_CONFIG_H
30482 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30483 # 1. Remove the extension, and $U if already installed.
30484 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30485 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30486 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30487 # will be set to the directory where LIBOBJS objects are built.
30488 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30489 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30491 LIBOBJS=$ac_libobjs
30493 LTLIBOBJS=$ac_ltlibobjs
30498 : ${CONFIG_STATUS=./config.status}
30500 ac_clean_files_save=$ac_clean_files
30501 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30502 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30503 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30504 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30506 # Generated by $as_me.
30507 # Run this file to recreate the current configuration.
30508 # Compiler output produced by configure, useful for debugging
30509 # configure, is in config.log if it exists.
30512 ac_cs_recheck=false
30514 SHELL=\${CONFIG_SHELL-$SHELL}
30517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30518 ## --------------------- ##
30519 ## M4sh Initialization. ##
30520 ## --------------------- ##
30522 # Be more Bourne compatible
30523 DUALCASE=1; export DUALCASE # for MKS sh
30524 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30527 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30528 # is contrary to our usage. Disable this feature.
30529 alias -g '${1+"$@"}'='"$@"'
30530 setopt NO_GLOB_SUBST
30532 case `(set -o) 2>/dev/null` in
30533 *posix*) set -o posix ;;
30542 # Avoid depending upon Character Ranges.
30543 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30544 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30545 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30546 as_cr_digits='0123456789'
30547 as_cr_alnum=$as_cr_Letters$as_cr_digits
30552 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30553 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30554 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30555 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30556 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30557 as_echo='printf %s\n'
30558 as_echo_n='printf %s'
30560 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30561 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30562 as_echo_n='/usr/ucb/echo -n'
30564 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30565 as_echo_n_body='eval
30569 expr "X$arg" : "X\\(.*\\)$as_nl";
30570 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30572 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30574 export as_echo_n_body
30575 as_echo_n='sh -c $as_echo_n_body as_echo'
30577 export as_echo_body
30578 as_echo='sh -c $as_echo_body as_echo'
30581 # The user is always right.
30582 if test "${PATH_SEPARATOR+set}" != set; then
30584 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30585 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30590 # Support unset when possible.
30591 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30599 # We need space, tab and new line, in precisely that order. Quoting is
30600 # there to prevent editors from complaining about space-tab.
30601 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30602 # splitting by setting IFS to empty value.)
30605 # Find who we are. Look in the path if we contain no directory separator.
30607 *[\\/]* ) as_myself=$0 ;;
30608 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30609 for as_dir in $PATH
30612 test -z "$as_dir" && as_dir=.
30613 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30619 # We did not find ourselves, most probably we were run as `sh COMMAND'
30620 # in which case we are not to be found in the path.
30621 if test "x$as_myself" = x; then
30624 if test ! -f "$as_myself"; then
30625 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30626 { (exit 1); exit 1; }
30629 # Work around bugs in pre-3.0 UWIN ksh.
30630 for as_var in ENV MAIL MAILPATH
30631 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30643 # Required to use basename.
30644 if expr a : '\(a\)' >/dev/null 2>&1 &&
30645 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30651 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30652 as_basename=basename
30658 # Name of the executable.
30659 as_me=`$as_basename -- "$0" ||
30660 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30661 X"$0" : 'X\(//\)$' \| \
30662 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30664 sed '/^.*\/\([^/][^/]*\)\/*$/{
30683 as_lineno_1=$LINENO
30684 as_lineno_2=$LINENO
30685 test "x$as_lineno_1" != "x$as_lineno_2" &&
30686 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30688 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30689 # uniformly replaced by the line number. The first 'sed' inserts a
30690 # line-number line after each line using $LINENO; the second 'sed'
30691 # does the real work. The second script uses 'N' to pair each
30692 # line-number line with the line containing $LINENO, and appends
30693 # trailing '-' during substitution so that $LINENO is not a special
30694 # case at line end.
30695 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30696 # scripts with optimization help from Paolo Bonzini. Blame Lee
30697 # E. McMahon (1931-1989) for sed's syntax. :-)
30709 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30712 ' >$as_me.lineno &&
30713 chmod +x "$as_me.lineno" ||
30714 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30715 { (exit 1); exit 1; }; }
30717 # Don't try to exec as it changes $[0], causing all sort of problems
30718 # (the dirname of $[0] is not the place where we might find the
30719 # original and so on. Autoconf is especially sensitive to this).
30720 . "./$as_me.lineno"
30721 # Exit status is that of the last command.
30726 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30732 ECHO_C= ECHO_N= ECHO_T=
30733 case `echo -n x` in
30735 case `echo 'x\c'` in
30736 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30742 if expr a : '\(a\)' >/dev/null 2>&1 &&
30743 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30749 rm -f conf$$ conf$$.exe conf$$.file
30750 if test -d conf$$.dir; then
30751 rm -f conf$$.dir/conf$$.file
30754 mkdir conf$$.dir 2>/dev/null
30756 if (echo >conf$$.file) 2>/dev/null; then
30757 if ln -s conf$$.file conf$$ 2>/dev/null; then
30759 # ... but there are two gotchas:
30760 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30761 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30762 # In both cases, we have to default to `cp -p'.
30763 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30765 elif ln conf$$.file conf$$ 2>/dev/null; then
30773 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30774 rmdir conf$$.dir 2>/dev/null
30776 if mkdir -p . 2>/dev/null; then
30779 test -d ./-p && rmdir ./-p
30783 if test -x / >/dev/null 2>&1; then
30784 as_test_x='test -x'
30786 if ls -dL / >/dev/null 2>&1; then
30793 if test -d "$1"; then
30799 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30800 ???[sx]*):;;*)false;;esac;fi
30804 as_executable_p=$as_test_x
30806 # Sed expression to map a string onto a valid CPP name.
30807 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30809 # Sed expression to map a string onto a valid variable name.
30810 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30815 # Save the log message, to keep $[0] and so on meaningful, and to
30816 # report actual input values of CONFIG_FILES etc. instead of their
30817 # values after options handling.
30819 This file was extended by PostgreSQL $as_me 9.4devel, which was
30820 generated by GNU Autoconf 2.63. Invocation command line was
30822 CONFIG_FILES = $CONFIG_FILES
30823 CONFIG_HEADERS = $CONFIG_HEADERS
30824 CONFIG_LINKS = $CONFIG_LINKS
30825 CONFIG_COMMANDS = $CONFIG_COMMANDS
30828 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30833 case $ac_config_files in *"
30834 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30837 case $ac_config_headers in *"
30838 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30843 # Files that config.status was made for.
30844 config_files="$ac_config_files"
30845 config_headers="$ac_config_headers"
30846 config_links="$ac_config_links"
30847 config_commands="$ac_config_commands"
30851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30853 \`$as_me' instantiates files from templates according to the
30854 current configuration.
30856 Usage: $0 [OPTION]... [FILE]...
30858 -h, --help print this help, then exit
30859 -V, --version print version number and configuration settings, then exit
30860 -q, --quiet, --silent
30861 do not print progress messages
30862 -d, --debug don't remove temporary files
30863 --recheck update $as_me by reconfiguring in the same conditions
30864 --file=FILE[:TEMPLATE]
30865 instantiate the configuration file FILE
30866 --header=FILE[:TEMPLATE]
30867 instantiate the configuration header FILE
30869 Configuration files:
30872 Configuration headers:
30875 Configuration links:
30878 Configuration commands:
30881 Report bugs to <bug-autoconf@gnu.org>."
30884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30886 PostgreSQL config.status 9.4devel
30887 configured by $0, generated by GNU Autoconf 2.63,
30888 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30890 Copyright (C) 2008 Free Software Foundation, Inc.
30891 This config.status script is free software; the Free Software Foundation
30892 gives unlimited permission to copy, distribute and modify it."
30899 test -n "\$AWK" || AWK=awk
30902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30903 # The default lists apply if the user does not specify any file.
30909 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30910 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30921 # Handling of the options.
30922 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30924 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30925 $as_echo "$ac_cs_version"; exit ;;
30926 --debug | --debu | --deb | --de | --d | -d )
30928 --file | --fil | --fi | --f )
30931 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30933 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30934 ac_need_defaults=false;;
30935 --header | --heade | --head | --hea )
30938 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30940 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30941 ac_need_defaults=false;;
30943 # Conflict between --help and --header
30944 { $as_echo "$as_me: error: ambiguous option: $1
30945 Try \`$0 --help' for more information." >&2
30946 { (exit 1); exit 1; }; };;
30947 --help | --hel | -h )
30948 $as_echo "$ac_cs_usage"; exit ;;
30949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30950 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30953 # This is an error.
30954 -*) { $as_echo "$as_me: error: unrecognized option: $1
30955 Try \`$0 --help' for more information." >&2
30956 { (exit 1); exit 1; }; } ;;
30958 *) ac_config_targets="$ac_config_targets $1"
30959 ac_need_defaults=false ;;
30965 ac_configure_extra_args=
30967 if $ac_cs_silent; then
30969 ac_configure_extra_args="$ac_configure_extra_args --silent"
30973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30974 if \$ac_cs_recheck; then
30975 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30977 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30978 CONFIG_SHELL='$SHELL'
30979 export CONFIG_SHELL
30984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30988 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30989 ## Running $as_me. ##
30995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31000 # Handling of arguments.
31001 for ac_config_target in $ac_config_targets
31003 case $ac_config_target in
31004 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
31005 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
31006 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
31007 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
31008 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
31009 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
31010 "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
31011 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
31012 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
31013 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
31014 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
31015 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
31016 "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
31017 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
31019 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31020 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31021 { (exit 1); exit 1; }; };;
31026 # If the user did not use the arguments to specify the items to instantiate,
31027 # then the envvar interface is used. Set only those that are not.
31028 # We use the long form for the default assignment because of an extremely
31029 # bizarre bug on SunOS 4.1.3.
31030 if $ac_need_defaults; then
31031 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31032 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31033 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31034 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31037 # Have a temporary directory for convenience. Make it in the build tree
31038 # simply because there is no reason against having it here, and in addition,
31039 # creating and moving files from /tmp can sometimes cause problems.
31040 # Hook for its removal unless debugging.
31041 # Note that there is a small window in which the directory will not be cleaned:
31042 # after its creation but before its name has been assigned to `$tmp'.
31046 trap 'exit_status=$?
31047 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31049 trap '{ (exit 1); exit 1; }' 1 2 13 15
31051 # Create a (secure) tmp directory for tmp files.
31054 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31055 test -n "$tmp" && test -d "$tmp"
31058 tmp=./conf$$-$RANDOM
31059 (umask 077 && mkdir "$tmp")
31062 $as_echo "$as_me: cannot create a temporary directory in ." >&2
31063 { (exit 1); exit 1; }
31066 # Set up the scripts for CONFIG_FILES section.
31067 # No need to generate them if there are no CONFIG_FILES.
31068 # This happens for instance with `./config.status config.h'.
31069 if test -n "$CONFIG_FILES"; then
31073 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31074 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31077 ac_cs_awk_cr=$ac_cr
31080 echo 'BEGIN {' >"$tmp/subs1.awk" &&
31085 echo "cat >conf$$subs.awk <<_ACEOF" &&
31086 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31088 } >conf$$subs.sh ||
31089 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31090 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31091 { (exit 1); exit 1; }; }
31092 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31094 for ac_last_try in false false false false false :; do
31095 . ./conf$$subs.sh ||
31096 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31097 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31098 { (exit 1); exit 1; }; }
31100 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31101 if test $ac_delim_n = $ac_delim_num; then
31103 elif $ac_last_try; then
31104 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31105 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31106 { (exit 1); exit 1; }; }
31108 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31111 rm -f conf$$subs.sh
31113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31114 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31118 s/^/S["/; s/!.*/"]=/
31128 s/\(.\{148\}\).*/\1/
31130 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31135 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31142 s/\(.\{148\}\).*/\1/
31144 s/["\\]/\\&/g; s/^/"/; s/$/"/
31148 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31153 ' <conf$$subs.awk | sed '
31158 ' >>$CONFIG_STATUS || ac_write_fail=1
31159 rm -f conf$$subs.awk
31160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31162 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31163 for (key in S) S_is_set[key] = 1
31169 nfields = split(line, field, "@")
31171 len = length(field[1])
31172 for (i = 2; i < nfields; i++) {
31174 keylen = length(key)
31175 if (S_is_set[key]) {
31177 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31178 len += length(value) + length(field[++i])
31189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31190 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31191 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31194 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31195 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
31196 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
31197 { (exit 1); exit 1; }; }
31200 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31201 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31202 # trailing colons and then remove the whole line if VPATH becomes empty
31203 # (actually we leave an empty line to preserve line numbers).
31204 if test "x$srcdir" = x.; then
31205 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31206 s/:*\$(srcdir):*/:/
31207 s/:*\${srcdir}:*/:/
31209 s/^\([^=]*=[ ]*\):*/\1/
31215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31216 fi # test -n "$CONFIG_FILES"
31218 # Set up the scripts for CONFIG_HEADERS section.
31219 # No need to generate them if there are no CONFIG_HEADERS.
31220 # This happens for instance with `./config.status Makefile'.
31221 if test -n "$CONFIG_HEADERS"; then
31222 cat >"$tmp/defines.awk" <<\_ACAWK ||
31226 # Transform confdefs.h into an awk script `defines.awk', embedded as
31227 # here-document in config.status, that substitutes the proper values into
31228 # config.h.in to produce config.h.
31230 # Create a delimiter string that does not exist in confdefs.h, to ease
31231 # handling of long lines.
31233 for ac_last_try in false false :; do
31234 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31235 if test -z "$ac_t"; then
31237 elif $ac_last_try; then
31238 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
31239 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
31240 { (exit 1); exit 1; }; }
31242 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31246 # For the awk script, D is an array of macro values keyed by name,
31247 # likewise P contains macro parameters if any. Preserve backslash
31248 # newline sequences.
31250 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31252 s/.\{148\}/&'"$ac_delim"'/g
31255 s/^[ ]*#[ ]*define[ ][ ]*/ /
31262 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31264 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31268 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31269 D["\1"]=" \3\\\\\\n"\\/p
31271 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31276 s/.\{148\}/&'"$ac_delim"'/g
31281 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31284 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31286 ' <confdefs.h | sed '
31287 s/'"$ac_delim"'/"\\\
31288 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31291 for (key in D) D_is_set[key] = 1
31294 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31296 split(line, arg, " ")
31297 if (arg[1] == "#") {
31301 defundef = substr(arg[1], 2)
31304 split(mac1, mac2, "(") #)
31306 prefix = substr(line, 1, index(line, defundef) - 1)
31307 if (D_is_set[macro]) {
31308 # Preserve the white space surrounding the "#".
31309 print prefix "define", macro P[macro] D[macro]
31312 # Replace #undef with comments. This is necessary, for example,
31313 # in the case of _POSIX_SOURCE, which is predefined and required
31314 # on some systems where configure will not decide to define it.
31315 if (defundef == "undef") {
31316 print "/*", prefix defundef, macro, "*/"
31324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31325 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
31326 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
31327 { (exit 1); exit 1; }; }
31328 fi # test -n "$CONFIG_HEADERS"
31331 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31336 :[FHLC]) ac_mode=$ac_tag; continue;;
31338 case $ac_mode$ac_tag in
31340 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
31341 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
31342 { (exit 1); exit 1; }; };;
31343 :[FH]-) ac_tag=-:-;;
31344 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31361 -) ac_f="$tmp/stdin";;
31362 *) # Look for the file first in the build tree, then in the source tree
31363 # (if the path is not absolute). The absolute path cannot be DOS-style,
31364 # because $ac_f cannot contain `:'.
31368 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31370 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31371 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31372 { (exit 1); exit 1; }; };;
31374 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31375 ac_file_inputs="$ac_file_inputs '$ac_f'"
31378 # Let's still pretend it is `configure' which instantiates (i.e., don't
31379 # use $as_me), people would be surprised to read:
31380 # /* config.h. Generated by config.status. */
31381 configure_input='Generated from '`
31382 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31384 if test x"$ac_file" != x-; then
31385 configure_input="$ac_file. $configure_input"
31386 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
31387 $as_echo "$as_me: creating $ac_file" >&6;}
31389 # Neutralize special characters interpreted by sed in replacement strings.
31390 case $configure_input in #(
31391 *\&* | *\|* | *\\* )
31392 ac_sed_conf_input=`$as_echo "$configure_input" |
31393 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31394 *) ac_sed_conf_input=$configure_input;;
31398 *:-:* | *:-) cat >"$tmp/stdin" \
31399 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31400 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31401 { (exit 1); exit 1; }; } ;;
31406 ac_dir=`$as_dirname -- "$ac_file" ||
31407 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31408 X"$ac_file" : 'X\(//\)[^/]' \| \
31409 X"$ac_file" : 'X\(//\)$' \| \
31410 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31411 $as_echo X"$ac_file" |
31412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31416 /^X\(\/\/\)[^/].*/{
31431 -*) as_dir=./$as_dir;;
31433 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31437 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31438 *) as_qdir=$as_dir;;
31440 as_dirs="'$as_qdir' $as_dirs"
31441 as_dir=`$as_dirname -- "$as_dir" ||
31442 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31443 X"$as_dir" : 'X\(//\)[^/]' \| \
31444 X"$as_dir" : 'X\(//\)$' \| \
31445 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31446 $as_echo X"$as_dir" |
31447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31451 /^X\(\/\/\)[^/].*/{
31464 test -d "$as_dir" && break
31466 test -z "$as_dirs" || eval "mkdir $as_dirs"
31467 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31468 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31469 { (exit 1); exit 1; }; }; }
31473 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31475 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31476 # A ".." for each directory in $ac_dir_suffix.
31477 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31478 case $ac_top_builddir_sub in
31479 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31480 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31483 ac_abs_top_builddir=$ac_pwd
31484 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31485 # for backward compatibility:
31486 ac_top_builddir=$ac_top_build_prefix
31489 .) # We are building in place.
31491 ac_top_srcdir=$ac_top_builddir_sub
31492 ac_abs_top_srcdir=$ac_pwd ;;
31493 [\\/]* | ?:[\\/]* ) # Absolute name.
31494 ac_srcdir=$srcdir$ac_dir_suffix;
31495 ac_top_srcdir=$srcdir
31496 ac_abs_top_srcdir=$srcdir ;;
31497 *) # Relative name.
31498 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31499 ac_top_srcdir=$ac_top_build_prefix$srcdir
31500 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31502 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31512 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31513 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31515 ac_MKDIR_P=$MKDIR_P
31517 [\\/$]* | ?:[\\/]* ) ;;
31518 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31523 # If the template does not know about datarootdir, expand it.
31524 # FIXME: This hack should be removed a few years after 2.60.
31525 ac_datarootdir_hack=; ac_datarootdir_seen=
31538 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31539 *datarootdir*) ac_datarootdir_seen=yes;;
31540 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31541 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31542 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31545 ac_datarootdir_hack='
31546 s&@datadir@&$datadir&g
31547 s&@docdir@&$docdir&g
31548 s&@infodir@&$infodir&g
31549 s&@localedir@&$localedir&g
31550 s&@mandir@&$mandir&g
31551 s&\\\${datarootdir}&$datarootdir&g' ;;
31555 # Neutralize VPATH when `$srcdir' = `.'.
31556 # Shell code in configure.ac might set extrasub.
31557 # FIXME: do we really want to maintain this feature?
31558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31559 ac_sed_extra="$ac_vpsub
31562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31564 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31565 s|@configure_input@|$ac_sed_conf_input|;t t
31566 s&@top_builddir@&$ac_top_builddir_sub&;t t
31567 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31568 s&@srcdir@&$ac_srcdir&;t t
31569 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31570 s&@top_srcdir@&$ac_top_srcdir&;t t
31571 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31572 s&@builddir@&$ac_builddir&;t t
31573 s&@abs_builddir@&$ac_abs_builddir&;t t
31574 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31575 s&@INSTALL@&$ac_INSTALL&;t t
31576 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31577 $ac_datarootdir_hack
31579 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31580 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31581 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31582 { (exit 1); exit 1; }; }
31584 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31585 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31586 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31587 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31588 which seems to be undefined. Please make sure it is defined." >&5
31589 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31590 which seems to be undefined. Please make sure it is defined." >&2;}
31594 -) cat "$tmp/out" && rm -f "$tmp/out";;
31595 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31597 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31598 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31599 { (exit 1); exit 1; }; }
31605 if test x"$ac_file" != x-; then
31607 $as_echo "/* $configure_input */" \
31608 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31609 } >"$tmp/config.h" \
31610 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31611 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31612 { (exit 1); exit 1; }; }
31613 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31614 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31615 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31618 mv "$tmp/config.h" "$ac_file" \
31619 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31620 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31621 { (exit 1); exit 1; }; }
31624 $as_echo "/* $configure_input */" \
31625 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31626 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31627 $as_echo "$as_me: error: could not create -" >&2;}
31628 { (exit 1); exit 1; }; }
31636 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31639 # Prefer the file from the source tree if names are identical.
31640 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31641 ac_source=$srcdir/$ac_source
31644 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31645 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31647 if test ! -r "$ac_source"; then
31648 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31649 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31650 { (exit 1); exit 1; }; }
31654 # Try a relative symlink, then a hard link, then a copy.
31656 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31657 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31659 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31660 ln "$ac_source" "$ac_file" 2>/dev/null ||
31661 cp -p "$ac_source" "$ac_file" ||
31662 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31663 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31664 { (exit 1); exit 1; }; }
31667 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31668 $as_echo "$as_me: executing $ac_file commands" >&6;}
31673 case $ac_file$ac_mode in
31674 "check_win32_symlinks":C)
31675 # Links sometimes fail undetected on Mingw -
31676 # so here we detect it and warn the user
31677 for FILE in $CONFIG_LINKS
31679 # test -e works for symlinks in the MinGW console
31680 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31681 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31684 "src/include/pg_config.h":H)
31685 # Update timestamp for pg_config.h (see Makefile.global)
31686 echo >src/include/stamp-h
31688 "src/include/pg_config_ext.h":H)
31689 # Update timestamp for pg_config_ext.h (see Makefile.global)
31690 echo >src/include/stamp-ext-h
31692 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31698 { (exit 0); exit 0; }
31700 chmod +x $CONFIG_STATUS
31701 ac_clean_files=$ac_clean_files_save
31703 test $ac_write_fail = 0 ||
31704 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31705 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31706 { (exit 1); exit 1; }; }
31709 # configure is writing to config.log, and then calls config.status.
31710 # config.status does its own redirection, appending to config.log.
31711 # Unfortunately, on DOS this fails, as config.log is still kept open
31712 # by configure, so config.status won't be able to write to it; its
31713 # output is simply discarded. So we exec the FD to /dev/null,
31714 # effectively closing config.log, so it can be properly (re)opened and
31715 # appended to by config.status. When coming back to configure, we
31716 # need to make the FD available again.
31717 if test "$no_create" != yes; then
31719 ac_config_status_args=
31720 test "$silent" = yes &&
31721 ac_config_status_args="$ac_config_status_args --quiet"
31723 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31725 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31726 # would make configure fail if this is the last instruction.
31727 $ac_cs_success || { (exit 1); exit 1; }
31729 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31730 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31731 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}