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
10354 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h
10356 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10358 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10359 $as_echo_n "checking for $ac_header... " >&6; }
10360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10361 $as_echo_n "(cached) " >&6
10363 ac_res=`eval 'as_val=${'$as_ac_Header'}
10364 $as_echo "$as_val"'`
10365 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10366 $as_echo "$ac_res" >&6; }
10368 # Is the header compilable?
10369 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10370 $as_echo_n "checking $ac_header usability... " >&6; }
10371 cat >conftest.$ac_ext <<_ACEOF
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h. */
10377 $ac_includes_default
10378 #include <$ac_header>
10380 rm -f conftest.$ac_objext
10381 if { (ac_try="$ac_compile"
10382 case "(($ac_try" in
10383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10384 *) ac_try_echo=$ac_try;;
10386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10387 $as_echo "$ac_try_echo") >&5
10388 (eval "$ac_compile") 2>conftest.er1
10390 grep -v '^ *+' conftest.er1 >conftest.err
10392 cat conftest.err >&5
10393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } && {
10395 test -z "$ac_c_werror_flag" ||
10396 test ! -s conftest.err
10397 } && test -s conftest.$ac_objext; then
10398 ac_header_compiler=yes
10400 $as_echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.$ac_ext >&5
10403 ac_header_compiler=no
10406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10407 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10408 $as_echo "$ac_header_compiler" >&6; }
10410 # Is the header present?
10411 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10412 $as_echo_n "checking $ac_header presence... " >&6; }
10413 cat >conftest.$ac_ext <<_ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h. */
10419 #include <$ac_header>
10421 if { (ac_try="$ac_cpp conftest.$ac_ext"
10422 case "(($ac_try" in
10423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424 *) ac_try_echo=$ac_try;;
10426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10427 $as_echo "$ac_try_echo") >&5
10428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10430 grep -v '^ *+' conftest.er1 >conftest.err
10432 cat conftest.err >&5
10433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } >/dev/null && {
10435 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10436 test ! -s conftest.err
10438 ac_header_preproc=yes
10440 $as_echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10443 ac_header_preproc=no
10446 rm -f conftest.err conftest.$ac_ext
10447 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10448 $as_echo "$ac_header_preproc" >&6; }
10450 # So? What about this header?
10451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10454 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10456 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10457 ac_header_preproc=yes
10460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10461 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10463 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10465 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10467 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10469 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10471 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10473 ## ---------------------------------------- ##
10474 ## Report this to pgsql-bugs@postgresql.org ##
10475 ## ---------------------------------------- ##
10477 ) | sed "s/^/$as_me: WARNING: /" >&2
10480 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10481 $as_echo_n "checking for $ac_header... " >&6; }
10482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10483 $as_echo_n "(cached) " >&6
10485 eval "$as_ac_Header=\$ac_header_preproc"
10487 ac_res=`eval 'as_val=${'$as_ac_Header'}
10488 $as_echo "$as_val"'`
10489 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10490 $as_echo "$ac_res" >&6; }
10493 as_val=`eval 'as_val=${'$as_ac_Header'}
10494 $as_echo "$as_val"'`
10495 if test "x$as_val" = x""yes; then
10496 cat >>confdefs.h <<_ACEOF
10497 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10505 # On BSD, test for net/if.h will fail unless sys/socket.h
10506 # is included first.
10508 for ac_header in net/if.h
10510 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10511 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10512 $as_echo_n "checking for $ac_header... " >&6; }
10513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10514 $as_echo_n "(cached) " >&6
10516 cat >conftest.$ac_ext <<_ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10522 $ac_includes_default
10523 #ifdef HAVE_SYS_SOCKET_H
10524 #include <sys/socket.h>
10528 #include <$ac_header>
10530 rm -f conftest.$ac_objext
10531 if { (ac_try="$ac_compile"
10532 case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10537 $as_echo "$ac_try_echo") >&5
10538 (eval "$ac_compile") 2>conftest.er1
10540 grep -v '^ *+' conftest.er1 >conftest.err
10542 cat conftest.err >&5
10543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } && {
10545 test -z "$ac_c_werror_flag" ||
10546 test ! -s conftest.err
10547 } && test -s conftest.$ac_objext; then
10548 eval "$as_ac_Header=yes"
10550 $as_echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10553 eval "$as_ac_Header=no"
10556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10558 ac_res=`eval 'as_val=${'$as_ac_Header'}
10559 $as_echo "$as_val"'`
10560 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10561 $as_echo "$ac_res" >&6; }
10562 as_val=`eval 'as_val=${'$as_ac_Header'}
10563 $as_echo "$as_val"'`
10564 if test "x$as_val" = x""yes; then
10565 cat >>confdefs.h <<_ACEOF
10566 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10574 # On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
10575 # is included first.
10577 for ac_header in sys/ucred.h
10579 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10580 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10581 $as_echo_n "checking for $ac_header... " >&6; }
10582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10583 $as_echo_n "(cached) " >&6
10585 cat >conftest.$ac_ext <<_ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h. */
10591 $ac_includes_default
10592 #include <sys/param.h>
10595 #include <$ac_header>
10597 rm -f conftest.$ac_objext
10598 if { (ac_try="$ac_compile"
10599 case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10604 $as_echo "$ac_try_echo") >&5
10605 (eval "$ac_compile") 2>conftest.er1
10607 grep -v '^ *+' conftest.er1 >conftest.err
10609 cat conftest.err >&5
10610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } && {
10612 test -z "$ac_c_werror_flag" ||
10613 test ! -s conftest.err
10614 } && test -s conftest.$ac_objext; then
10615 eval "$as_ac_Header=yes"
10617 $as_echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10620 eval "$as_ac_Header=no"
10623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10625 ac_res=`eval 'as_val=${'$as_ac_Header'}
10626 $as_echo "$as_val"'`
10627 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10628 $as_echo "$ac_res" >&6; }
10629 as_val=`eval 'as_val=${'$as_ac_Header'}
10630 $as_echo "$as_val"'`
10631 if test "x$as_val" = x""yes; then
10632 cat >>confdefs.h <<_ACEOF
10633 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10641 # At least on IRIX, test for netinet/tcp.h will fail unless
10642 # netinet/in.h is included first.
10644 for ac_header in netinet/in.h
10646 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10648 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10649 $as_echo_n "checking for $ac_header... " >&6; }
10650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10651 $as_echo_n "(cached) " >&6
10653 ac_res=`eval 'as_val=${'$as_ac_Header'}
10654 $as_echo "$as_val"'`
10655 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10656 $as_echo "$ac_res" >&6; }
10658 # Is the header compilable?
10659 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10660 $as_echo_n "checking $ac_header usability... " >&6; }
10661 cat >conftest.$ac_ext <<_ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h. */
10667 $ac_includes_default
10668 #include <$ac_header>
10670 rm -f conftest.$ac_objext
10671 if { (ac_try="$ac_compile"
10672 case "(($ac_try" in
10673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674 *) ac_try_echo=$ac_try;;
10676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10677 $as_echo "$ac_try_echo") >&5
10678 (eval "$ac_compile") 2>conftest.er1
10680 grep -v '^ *+' conftest.er1 >conftest.err
10682 cat conftest.err >&5
10683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } && {
10685 test -z "$ac_c_werror_flag" ||
10686 test ! -s conftest.err
10687 } && test -s conftest.$ac_objext; then
10688 ac_header_compiler=yes
10690 $as_echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10693 ac_header_compiler=no
10696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10697 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10698 $as_echo "$ac_header_compiler" >&6; }
10700 # Is the header present?
10701 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10702 $as_echo_n "checking $ac_header presence... " >&6; }
10703 cat >conftest.$ac_ext <<_ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h. */
10709 #include <$ac_header>
10711 if { (ac_try="$ac_cpp conftest.$ac_ext"
10712 case "(($ac_try" in
10713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714 *) ac_try_echo=$ac_try;;
10716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10717 $as_echo "$ac_try_echo") >&5
10718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10720 grep -v '^ *+' conftest.er1 >conftest.err
10722 cat conftest.err >&5
10723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); } >/dev/null && {
10725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10726 test ! -s conftest.err
10728 ac_header_preproc=yes
10730 $as_echo "$as_me: failed program was:" >&5
10731 sed 's/^/| /' conftest.$ac_ext >&5
10733 ac_header_preproc=no
10736 rm -f conftest.err conftest.$ac_ext
10737 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10738 $as_echo "$ac_header_preproc" >&6; }
10740 # So? What about this header?
10741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10744 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10746 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10747 ac_header_preproc=yes
10750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10751 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10753 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10755 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10757 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10759 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10761 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10763 ## ---------------------------------------- ##
10764 ## Report this to pgsql-bugs@postgresql.org ##
10765 ## ---------------------------------------- ##
10767 ) | sed "s/^/$as_me: WARNING: /" >&2
10770 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10771 $as_echo_n "checking for $ac_header... " >&6; }
10772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10773 $as_echo_n "(cached) " >&6
10775 eval "$as_ac_Header=\$ac_header_preproc"
10777 ac_res=`eval 'as_val=${'$as_ac_Header'}
10778 $as_echo "$as_val"'`
10779 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10780 $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 for ac_header in netinet/tcp.h
10797 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10798 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10799 $as_echo_n "checking for $ac_header... " >&6; }
10800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10801 $as_echo_n "(cached) " >&6
10803 cat >conftest.$ac_ext <<_ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h. */
10809 $ac_includes_default
10810 #ifdef HAVE_NETINET_IN_H
10811 #include <netinet/in.h>
10815 #include <$ac_header>
10817 rm -f conftest.$ac_objext
10818 if { (ac_try="$ac_compile"
10819 case "(($ac_try" in
10820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10821 *) ac_try_echo=$ac_try;;
10823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10824 $as_echo "$ac_try_echo") >&5
10825 (eval "$ac_compile") 2>conftest.er1
10827 grep -v '^ *+' conftest.er1 >conftest.err
10829 cat conftest.err >&5
10830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); } && {
10832 test -z "$ac_c_werror_flag" ||
10833 test ! -s conftest.err
10834 } && test -s conftest.$ac_objext; then
10835 eval "$as_ac_Header=yes"
10837 $as_echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10840 eval "$as_ac_Header=no"
10843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10845 ac_res=`eval 'as_val=${'$as_ac_Header'}
10846 $as_echo "$as_val"'`
10847 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10848 $as_echo "$ac_res" >&6; }
10849 as_val=`eval 'as_val=${'$as_ac_Header'}
10850 $as_echo "$as_val"'`
10851 if test "x$as_val" = x""yes; then
10852 cat >>confdefs.h <<_ACEOF
10853 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10861 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10863 for ac_header in readline/readline.h
10865 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10867 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10868 $as_echo_n "checking for $ac_header... " >&6; }
10869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10870 $as_echo_n "(cached) " >&6
10872 ac_res=`eval 'as_val=${'$as_ac_Header'}
10873 $as_echo "$as_val"'`
10874 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10875 $as_echo "$ac_res" >&6; }
10877 # Is the header compilable?
10878 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10879 $as_echo_n "checking $ac_header usability... " >&6; }
10880 cat >conftest.$ac_ext <<_ACEOF
10883 cat confdefs.h >>conftest.$ac_ext
10884 cat >>conftest.$ac_ext <<_ACEOF
10885 /* end confdefs.h. */
10886 $ac_includes_default
10887 #include <$ac_header>
10889 rm -f conftest.$ac_objext
10890 if { (ac_try="$ac_compile"
10891 case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10896 $as_echo "$ac_try_echo") >&5
10897 (eval "$ac_compile") 2>conftest.er1
10899 grep -v '^ *+' conftest.er1 >conftest.err
10901 cat conftest.err >&5
10902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } && {
10904 test -z "$ac_c_werror_flag" ||
10905 test ! -s conftest.err
10906 } && test -s conftest.$ac_objext; then
10907 ac_header_compiler=yes
10909 $as_echo "$as_me: failed program was:" >&5
10910 sed 's/^/| /' conftest.$ac_ext >&5
10912 ac_header_compiler=no
10915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10916 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10917 $as_echo "$ac_header_compiler" >&6; }
10919 # Is the header present?
10920 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10921 $as_echo_n "checking $ac_header presence... " >&6; }
10922 cat >conftest.$ac_ext <<_ACEOF
10925 cat confdefs.h >>conftest.$ac_ext
10926 cat >>conftest.$ac_ext <<_ACEOF
10927 /* end confdefs.h. */
10928 #include <$ac_header>
10930 if { (ac_try="$ac_cpp conftest.$ac_ext"
10931 case "(($ac_try" in
10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933 *) ac_try_echo=$ac_try;;
10935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10936 $as_echo "$ac_try_echo") >&5
10937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10939 grep -v '^ *+' conftest.er1 >conftest.err
10941 cat conftest.err >&5
10942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } >/dev/null && {
10944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10945 test ! -s conftest.err
10947 ac_header_preproc=yes
10949 $as_echo "$as_me: failed program was:" >&5
10950 sed 's/^/| /' conftest.$ac_ext >&5
10952 ac_header_preproc=no
10955 rm -f conftest.err conftest.$ac_ext
10956 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10957 $as_echo "$ac_header_preproc" >&6; }
10959 # So? What about this header?
10960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10962 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10963 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10965 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10966 ac_header_preproc=yes
10969 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10970 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10971 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10972 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10973 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10974 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10976 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10978 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10980 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10982 ## ---------------------------------------- ##
10983 ## Report this to pgsql-bugs@postgresql.org ##
10984 ## ---------------------------------------- ##
10986 ) | sed "s/^/$as_me: WARNING: /" >&2
10989 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10990 $as_echo_n "checking for $ac_header... " >&6; }
10991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10992 $as_echo_n "(cached) " >&6
10994 eval "$as_ac_Header=\$ac_header_preproc"
10996 ac_res=`eval 'as_val=${'$as_ac_Header'}
10997 $as_echo "$as_val"'`
10998 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10999 $as_echo "$ac_res" >&6; }
11002 as_val=`eval 'as_val=${'$as_ac_Header'}
11003 $as_echo "$as_val"'`
11004 if test "x$as_val" = x""yes; then
11005 cat >>confdefs.h <<_ACEOF
11006 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11011 for ac_header in readline.h
11013 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11015 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11016 $as_echo_n "checking for $ac_header... " >&6; }
11017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11018 $as_echo_n "(cached) " >&6
11020 ac_res=`eval 'as_val=${'$as_ac_Header'}
11021 $as_echo "$as_val"'`
11022 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11023 $as_echo "$ac_res" >&6; }
11025 # Is the header compilable?
11026 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11027 $as_echo_n "checking $ac_header usability... " >&6; }
11028 cat >conftest.$ac_ext <<_ACEOF
11031 cat confdefs.h >>conftest.$ac_ext
11032 cat >>conftest.$ac_ext <<_ACEOF
11033 /* end confdefs.h. */
11034 $ac_includes_default
11035 #include <$ac_header>
11037 rm -f conftest.$ac_objext
11038 if { (ac_try="$ac_compile"
11039 case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11044 $as_echo "$ac_try_echo") >&5
11045 (eval "$ac_compile") 2>conftest.er1
11047 grep -v '^ *+' conftest.er1 >conftest.err
11049 cat conftest.err >&5
11050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } && {
11052 test -z "$ac_c_werror_flag" ||
11053 test ! -s conftest.err
11054 } && test -s conftest.$ac_objext; then
11055 ac_header_compiler=yes
11057 $as_echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11060 ac_header_compiler=no
11063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11064 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11065 $as_echo "$ac_header_compiler" >&6; }
11067 # Is the header present?
11068 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11069 $as_echo_n "checking $ac_header presence... " >&6; }
11070 cat >conftest.$ac_ext <<_ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h. */
11076 #include <$ac_header>
11078 if { (ac_try="$ac_cpp conftest.$ac_ext"
11079 case "(($ac_try" in
11080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11081 *) ac_try_echo=$ac_try;;
11083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11084 $as_echo "$ac_try_echo") >&5
11085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11087 grep -v '^ *+' conftest.er1 >conftest.err
11089 cat conftest.err >&5
11090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); } >/dev/null && {
11092 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11093 test ! -s conftest.err
11095 ac_header_preproc=yes
11097 $as_echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11100 ac_header_preproc=no
11103 rm -f conftest.err conftest.$ac_ext
11104 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11105 $as_echo "$ac_header_preproc" >&6; }
11107 # So? What about this header?
11108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11111 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11113 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11114 ac_header_preproc=yes
11117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11118 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11120 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11122 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11124 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11126 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11128 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11130 ## ---------------------------------------- ##
11131 ## Report this to pgsql-bugs@postgresql.org ##
11132 ## ---------------------------------------- ##
11134 ) | sed "s/^/$as_me: WARNING: /" >&2
11137 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11138 $as_echo_n "checking for $ac_header... " >&6; }
11139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11140 $as_echo_n "(cached) " >&6
11142 eval "$as_ac_Header=\$ac_header_preproc"
11144 ac_res=`eval 'as_val=${'$as_ac_Header'}
11145 $as_echo "$as_val"'`
11146 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11147 $as_echo "$ac_res" >&6; }
11150 as_val=`eval 'as_val=${'$as_ac_Header'}
11151 $as_echo "$as_val"'`
11152 if test "x$as_val" = x""yes; then
11153 cat >>confdefs.h <<_ACEOF
11154 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11158 { { $as_echo "$as_me:$LINENO: error: readline header not found
11159 If you have readline already installed, see config.log for details on the
11160 failure. It is possible the compiler isn't looking in the proper directory.
11161 Use --without-readline to disable readline support." >&5
11162 $as_echo "$as_me: error: readline header not found
11163 If you have readline already installed, see config.log for details on the
11164 failure. It is possible the compiler isn't looking in the proper directory.
11165 Use --without-readline to disable readline support." >&2;}
11166 { (exit 1); exit 1; }; }
11176 for ac_header in readline/history.h
11178 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11180 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11181 $as_echo_n "checking for $ac_header... " >&6; }
11182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11183 $as_echo_n "(cached) " >&6
11185 ac_res=`eval 'as_val=${'$as_ac_Header'}
11186 $as_echo "$as_val"'`
11187 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11188 $as_echo "$ac_res" >&6; }
11190 # Is the header compilable?
11191 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11192 $as_echo_n "checking $ac_header usability... " >&6; }
11193 cat >conftest.$ac_ext <<_ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h. */
11199 $ac_includes_default
11200 #include <$ac_header>
11202 rm -f conftest.$ac_objext
11203 if { (ac_try="$ac_compile"
11204 case "(($ac_try" in
11205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11206 *) ac_try_echo=$ac_try;;
11208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11209 $as_echo "$ac_try_echo") >&5
11210 (eval "$ac_compile") 2>conftest.er1
11212 grep -v '^ *+' conftest.er1 >conftest.err
11214 cat conftest.err >&5
11215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } && {
11217 test -z "$ac_c_werror_flag" ||
11218 test ! -s conftest.err
11219 } && test -s conftest.$ac_objext; then
11220 ac_header_compiler=yes
11222 $as_echo "$as_me: failed program was:" >&5
11223 sed 's/^/| /' conftest.$ac_ext >&5
11225 ac_header_compiler=no
11228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11229 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11230 $as_echo "$ac_header_compiler" >&6; }
11232 # Is the header present?
11233 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11234 $as_echo_n "checking $ac_header presence... " >&6; }
11235 cat >conftest.$ac_ext <<_ACEOF
11238 cat confdefs.h >>conftest.$ac_ext
11239 cat >>conftest.$ac_ext <<_ACEOF
11240 /* end confdefs.h. */
11241 #include <$ac_header>
11243 if { (ac_try="$ac_cpp conftest.$ac_ext"
11244 case "(($ac_try" in
11245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11249 $as_echo "$ac_try_echo") >&5
11250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11252 grep -v '^ *+' conftest.er1 >conftest.err
11254 cat conftest.err >&5
11255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); } >/dev/null && {
11257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11258 test ! -s conftest.err
11260 ac_header_preproc=yes
11262 $as_echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11265 ac_header_preproc=no
11268 rm -f conftest.err conftest.$ac_ext
11269 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11270 $as_echo "$ac_header_preproc" >&6; }
11272 # So? What about this header?
11273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11276 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11278 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11279 ac_header_preproc=yes
11282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11283 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11285 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11287 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11289 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11291 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11293 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11295 ## ---------------------------------------- ##
11296 ## Report this to pgsql-bugs@postgresql.org ##
11297 ## ---------------------------------------- ##
11299 ) | sed "s/^/$as_me: WARNING: /" >&2
11302 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11303 $as_echo_n "checking for $ac_header... " >&6; }
11304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11305 $as_echo_n "(cached) " >&6
11307 eval "$as_ac_Header=\$ac_header_preproc"
11309 ac_res=`eval 'as_val=${'$as_ac_Header'}
11310 $as_echo "$as_val"'`
11311 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11312 $as_echo "$ac_res" >&6; }
11315 as_val=`eval 'as_val=${'$as_ac_Header'}
11316 $as_echo "$as_val"'`
11317 if test "x$as_val" = x""yes; then
11318 cat >>confdefs.h <<_ACEOF
11319 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11324 for ac_header in history.h
11326 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11328 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11329 $as_echo_n "checking for $ac_header... " >&6; }
11330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11331 $as_echo_n "(cached) " >&6
11333 ac_res=`eval 'as_val=${'$as_ac_Header'}
11334 $as_echo "$as_val"'`
11335 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11336 $as_echo "$ac_res" >&6; }
11338 # Is the header compilable?
11339 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11340 $as_echo_n "checking $ac_header usability... " >&6; }
11341 cat >conftest.$ac_ext <<_ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11347 $ac_includes_default
11348 #include <$ac_header>
11350 rm -f conftest.$ac_objext
11351 if { (ac_try="$ac_compile"
11352 case "(($ac_try" in
11353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354 *) ac_try_echo=$ac_try;;
11356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11357 $as_echo "$ac_try_echo") >&5
11358 (eval "$ac_compile") 2>conftest.er1
11360 grep -v '^ *+' conftest.er1 >conftest.err
11362 cat conftest.err >&5
11363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } && {
11365 test -z "$ac_c_werror_flag" ||
11366 test ! -s conftest.err
11367 } && test -s conftest.$ac_objext; then
11368 ac_header_compiler=yes
11370 $as_echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.$ac_ext >&5
11373 ac_header_compiler=no
11376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11377 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11378 $as_echo "$ac_header_compiler" >&6; }
11380 # Is the header present?
11381 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11382 $as_echo_n "checking $ac_header presence... " >&6; }
11383 cat >conftest.$ac_ext <<_ACEOF
11386 cat confdefs.h >>conftest.$ac_ext
11387 cat >>conftest.$ac_ext <<_ACEOF
11388 /* end confdefs.h. */
11389 #include <$ac_header>
11391 if { (ac_try="$ac_cpp conftest.$ac_ext"
11392 case "(($ac_try" in
11393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394 *) ac_try_echo=$ac_try;;
11396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11397 $as_echo "$ac_try_echo") >&5
11398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11400 grep -v '^ *+' conftest.er1 >conftest.err
11402 cat conftest.err >&5
11403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } >/dev/null && {
11405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11406 test ! -s conftest.err
11408 ac_header_preproc=yes
11410 $as_echo "$as_me: failed program was:" >&5
11411 sed 's/^/| /' conftest.$ac_ext >&5
11413 ac_header_preproc=no
11416 rm -f conftest.err conftest.$ac_ext
11417 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11418 $as_echo "$ac_header_preproc" >&6; }
11420 # So? What about this header?
11421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11424 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11426 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11427 ac_header_preproc=yes
11430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11431 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11433 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11435 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11437 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11439 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11441 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11443 ## ---------------------------------------- ##
11444 ## Report this to pgsql-bugs@postgresql.org ##
11445 ## ---------------------------------------- ##
11447 ) | sed "s/^/$as_me: WARNING: /" >&2
11450 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11451 $as_echo_n "checking for $ac_header... " >&6; }
11452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11453 $as_echo_n "(cached) " >&6
11455 eval "$as_ac_Header=\$ac_header_preproc"
11457 ac_res=`eval 'as_val=${'$as_ac_Header'}
11458 $as_echo "$as_val"'`
11459 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11460 $as_echo "$ac_res" >&6; }
11463 as_val=`eval 'as_val=${'$as_ac_Header'}
11464 $as_echo "$as_val"'`
11465 if test "x$as_val" = x""yes; then
11466 cat >>confdefs.h <<_ACEOF
11467 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11471 { { $as_echo "$as_me:$LINENO: error: history header not found
11472 If you have readline already installed, see config.log for details on the
11473 failure. It is possible the compiler isn't looking in the proper directory.
11474 Use --without-readline to disable readline support." >&5
11475 $as_echo "$as_me: error: history header not found
11476 If you have readline already installed, see config.log for details on the
11477 failure. It is possible the compiler isn't looking in the proper directory.
11478 Use --without-readline to disable readline support." >&2;}
11479 { (exit 1); exit 1; }; }
11490 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
11491 # Some installations of libedit usurp /usr/include/readline/, which seems
11492 # bad practice, since in combined installations readline will have its headers
11493 # there. We might have to resort to AC_EGREP checks to make sure we found
11494 # the proper header...
11496 for ac_header in editline/readline.h
11498 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11501 $as_echo_n "checking for $ac_header... " >&6; }
11502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11503 $as_echo_n "(cached) " >&6
11505 ac_res=`eval 'as_val=${'$as_ac_Header'}
11506 $as_echo "$as_val"'`
11507 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11508 $as_echo "$ac_res" >&6; }
11510 # Is the header compilable?
11511 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11512 $as_echo_n "checking $ac_header usability... " >&6; }
11513 cat >conftest.$ac_ext <<_ACEOF
11516 cat confdefs.h >>conftest.$ac_ext
11517 cat >>conftest.$ac_ext <<_ACEOF
11518 /* end confdefs.h. */
11519 $ac_includes_default
11520 #include <$ac_header>
11522 rm -f conftest.$ac_objext
11523 if { (ac_try="$ac_compile"
11524 case "(($ac_try" in
11525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11526 *) ac_try_echo=$ac_try;;
11528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11529 $as_echo "$ac_try_echo") >&5
11530 (eval "$ac_compile") 2>conftest.er1
11532 grep -v '^ *+' conftest.er1 >conftest.err
11534 cat conftest.err >&5
11535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); } && {
11537 test -z "$ac_c_werror_flag" ||
11538 test ! -s conftest.err
11539 } && test -s conftest.$ac_objext; then
11540 ac_header_compiler=yes
11542 $as_echo "$as_me: failed program was:" >&5
11543 sed 's/^/| /' conftest.$ac_ext >&5
11545 ac_header_compiler=no
11548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11549 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11550 $as_echo "$ac_header_compiler" >&6; }
11552 # Is the header present?
11553 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11554 $as_echo_n "checking $ac_header presence... " >&6; }
11555 cat >conftest.$ac_ext <<_ACEOF
11558 cat confdefs.h >>conftest.$ac_ext
11559 cat >>conftest.$ac_ext <<_ACEOF
11560 /* end confdefs.h. */
11561 #include <$ac_header>
11563 if { (ac_try="$ac_cpp conftest.$ac_ext"
11564 case "(($ac_try" in
11565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566 *) ac_try_echo=$ac_try;;
11568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11569 $as_echo "$ac_try_echo") >&5
11570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11572 grep -v '^ *+' conftest.er1 >conftest.err
11574 cat conftest.err >&5
11575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); } >/dev/null && {
11577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11578 test ! -s conftest.err
11580 ac_header_preproc=yes
11582 $as_echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11585 ac_header_preproc=no
11588 rm -f conftest.err conftest.$ac_ext
11589 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11590 $as_echo "$ac_header_preproc" >&6; }
11592 # So? What about this header?
11593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11596 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11598 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11599 ac_header_preproc=yes
11602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11603 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11605 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11607 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11609 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11611 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11613 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11615 ## ---------------------------------------- ##
11616 ## Report this to pgsql-bugs@postgresql.org ##
11617 ## ---------------------------------------- ##
11619 ) | sed "s/^/$as_me: WARNING: /" >&2
11622 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11623 $as_echo_n "checking for $ac_header... " >&6; }
11624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11625 $as_echo_n "(cached) " >&6
11627 eval "$as_ac_Header=\$ac_header_preproc"
11629 ac_res=`eval 'as_val=${'$as_ac_Header'}
11630 $as_echo "$as_val"'`
11631 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11632 $as_echo "$ac_res" >&6; }
11635 as_val=`eval 'as_val=${'$as_ac_Header'}
11636 $as_echo "$as_val"'`
11637 if test "x$as_val" = x""yes; then
11638 cat >>confdefs.h <<_ACEOF
11639 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11644 for ac_header in readline.h
11646 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11648 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11649 $as_echo_n "checking for $ac_header... " >&6; }
11650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11651 $as_echo_n "(cached) " >&6
11653 ac_res=`eval 'as_val=${'$as_ac_Header'}
11654 $as_echo "$as_val"'`
11655 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11656 $as_echo "$ac_res" >&6; }
11658 # Is the header compilable?
11659 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11660 $as_echo_n "checking $ac_header usability... " >&6; }
11661 cat >conftest.$ac_ext <<_ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h. */
11667 $ac_includes_default
11668 #include <$ac_header>
11670 rm -f conftest.$ac_objext
11671 if { (ac_try="$ac_compile"
11672 case "(($ac_try" in
11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674 *) ac_try_echo=$ac_try;;
11676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11677 $as_echo "$ac_try_echo") >&5
11678 (eval "$ac_compile") 2>conftest.er1
11680 grep -v '^ *+' conftest.er1 >conftest.err
11682 cat conftest.err >&5
11683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); } && {
11685 test -z "$ac_c_werror_flag" ||
11686 test ! -s conftest.err
11687 } && test -s conftest.$ac_objext; then
11688 ac_header_compiler=yes
11690 $as_echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11693 ac_header_compiler=no
11696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11697 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11698 $as_echo "$ac_header_compiler" >&6; }
11700 # Is the header present?
11701 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11702 $as_echo_n "checking $ac_header presence... " >&6; }
11703 cat >conftest.$ac_ext <<_ACEOF
11706 cat confdefs.h >>conftest.$ac_ext
11707 cat >>conftest.$ac_ext <<_ACEOF
11708 /* end confdefs.h. */
11709 #include <$ac_header>
11711 if { (ac_try="$ac_cpp conftest.$ac_ext"
11712 case "(($ac_try" in
11713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11714 *) ac_try_echo=$ac_try;;
11716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11717 $as_echo "$ac_try_echo") >&5
11718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11720 grep -v '^ *+' conftest.er1 >conftest.err
11722 cat conftest.err >&5
11723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); } >/dev/null && {
11725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11726 test ! -s conftest.err
11728 ac_header_preproc=yes
11730 $as_echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11733 ac_header_preproc=no
11736 rm -f conftest.err conftest.$ac_ext
11737 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11738 $as_echo "$ac_header_preproc" >&6; }
11740 # So? What about this header?
11741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11744 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11746 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11747 ac_header_preproc=yes
11750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11751 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11753 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11755 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11757 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11759 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11761 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11763 ## ---------------------------------------- ##
11764 ## Report this to pgsql-bugs@postgresql.org ##
11765 ## ---------------------------------------- ##
11767 ) | sed "s/^/$as_me: WARNING: /" >&2
11770 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11771 $as_echo_n "checking for $ac_header... " >&6; }
11772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11773 $as_echo_n "(cached) " >&6
11775 eval "$as_ac_Header=\$ac_header_preproc"
11777 ac_res=`eval 'as_val=${'$as_ac_Header'}
11778 $as_echo "$as_val"'`
11779 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11780 $as_echo "$ac_res" >&6; }
11783 as_val=`eval 'as_val=${'$as_ac_Header'}
11784 $as_echo "$as_val"'`
11785 if test "x$as_val" = x""yes; then
11786 cat >>confdefs.h <<_ACEOF
11787 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11792 for ac_header in readline/readline.h
11794 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11796 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11797 $as_echo_n "checking for $ac_header... " >&6; }
11798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11799 $as_echo_n "(cached) " >&6
11801 ac_res=`eval 'as_val=${'$as_ac_Header'}
11802 $as_echo "$as_val"'`
11803 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11804 $as_echo "$ac_res" >&6; }
11806 # Is the header compilable?
11807 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11808 $as_echo_n "checking $ac_header usability... " >&6; }
11809 cat >conftest.$ac_ext <<_ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h. */
11815 $ac_includes_default
11816 #include <$ac_header>
11818 rm -f conftest.$ac_objext
11819 if { (ac_try="$ac_compile"
11820 case "(($ac_try" in
11821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11822 *) ac_try_echo=$ac_try;;
11824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11825 $as_echo "$ac_try_echo") >&5
11826 (eval "$ac_compile") 2>conftest.er1
11828 grep -v '^ *+' conftest.er1 >conftest.err
11830 cat conftest.err >&5
11831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } && {
11833 test -z "$ac_c_werror_flag" ||
11834 test ! -s conftest.err
11835 } && test -s conftest.$ac_objext; then
11836 ac_header_compiler=yes
11838 $as_echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.$ac_ext >&5
11841 ac_header_compiler=no
11844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11845 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11846 $as_echo "$ac_header_compiler" >&6; }
11848 # Is the header present?
11849 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11850 $as_echo_n "checking $ac_header presence... " >&6; }
11851 cat >conftest.$ac_ext <<_ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h. */
11857 #include <$ac_header>
11859 if { (ac_try="$ac_cpp conftest.$ac_ext"
11860 case "(($ac_try" in
11861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862 *) ac_try_echo=$ac_try;;
11864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11865 $as_echo "$ac_try_echo") >&5
11866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11868 grep -v '^ *+' conftest.er1 >conftest.err
11870 cat conftest.err >&5
11871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); } >/dev/null && {
11873 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11874 test ! -s conftest.err
11876 ac_header_preproc=yes
11878 $as_echo "$as_me: failed program was:" >&5
11879 sed 's/^/| /' conftest.$ac_ext >&5
11881 ac_header_preproc=no
11884 rm -f conftest.err conftest.$ac_ext
11885 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11886 $as_echo "$ac_header_preproc" >&6; }
11888 # So? What about this header?
11889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11892 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11894 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11895 ac_header_preproc=yes
11898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11899 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11901 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11903 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11905 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11907 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11908 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11909 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11911 ## ---------------------------------------- ##
11912 ## Report this to pgsql-bugs@postgresql.org ##
11913 ## ---------------------------------------- ##
11915 ) | sed "s/^/$as_me: WARNING: /" >&2
11918 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11919 $as_echo_n "checking for $ac_header... " >&6; }
11920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11921 $as_echo_n "(cached) " >&6
11923 eval "$as_ac_Header=\$ac_header_preproc"
11925 ac_res=`eval 'as_val=${'$as_ac_Header'}
11926 $as_echo "$as_val"'`
11927 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11928 $as_echo "$ac_res" >&6; }
11931 as_val=`eval 'as_val=${'$as_ac_Header'}
11932 $as_echo "$as_val"'`
11933 if test "x$as_val" = x""yes; then
11934 cat >>confdefs.h <<_ACEOF
11935 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11939 { { $as_echo "$as_me:$LINENO: error: readline header not found
11940 If you have libedit already installed, see config.log for details on the
11941 failure. It is possible the compiler isn't looking in the proper directory.
11942 Use --without-readline to disable libedit support." >&5
11943 $as_echo "$as_me: error: readline header not found
11944 If you have libedit already installed, see config.log for details on the
11945 failure. It is possible the compiler isn't looking in the proper directory.
11946 Use --without-readline to disable libedit support." >&2;}
11947 { (exit 1); exit 1; }; }
11960 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11961 # not be there at all. Hence, don't complain if not found. We must check
11962 # though, since in yet other versions it is an independent header.
11964 for ac_header in editline/history.h
11966 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11968 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11969 $as_echo_n "checking for $ac_header... " >&6; }
11970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11971 $as_echo_n "(cached) " >&6
11973 ac_res=`eval 'as_val=${'$as_ac_Header'}
11974 $as_echo "$as_val"'`
11975 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11976 $as_echo "$ac_res" >&6; }
11978 # Is the header compilable?
11979 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11980 $as_echo_n "checking $ac_header usability... " >&6; }
11981 cat >conftest.$ac_ext <<_ACEOF
11984 cat confdefs.h >>conftest.$ac_ext
11985 cat >>conftest.$ac_ext <<_ACEOF
11986 /* end confdefs.h. */
11987 $ac_includes_default
11988 #include <$ac_header>
11990 rm -f conftest.$ac_objext
11991 if { (ac_try="$ac_compile"
11992 case "(($ac_try" in
11993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994 *) ac_try_echo=$ac_try;;
11996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11997 $as_echo "$ac_try_echo") >&5
11998 (eval "$ac_compile") 2>conftest.er1
12000 grep -v '^ *+' conftest.er1 >conftest.err
12002 cat conftest.err >&5
12003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } && {
12005 test -z "$ac_c_werror_flag" ||
12006 test ! -s conftest.err
12007 } && test -s conftest.$ac_objext; then
12008 ac_header_compiler=yes
12010 $as_echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12013 ac_header_compiler=no
12016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12017 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12018 $as_echo "$ac_header_compiler" >&6; }
12020 # Is the header present?
12021 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12022 $as_echo_n "checking $ac_header presence... " >&6; }
12023 cat >conftest.$ac_ext <<_ACEOF
12026 cat confdefs.h >>conftest.$ac_ext
12027 cat >>conftest.$ac_ext <<_ACEOF
12028 /* end confdefs.h. */
12029 #include <$ac_header>
12031 if { (ac_try="$ac_cpp conftest.$ac_ext"
12032 case "(($ac_try" in
12033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12034 *) ac_try_echo=$ac_try;;
12036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12037 $as_echo "$ac_try_echo") >&5
12038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12040 grep -v '^ *+' conftest.er1 >conftest.err
12042 cat conftest.err >&5
12043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); } >/dev/null && {
12045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12046 test ! -s conftest.err
12048 ac_header_preproc=yes
12050 $as_echo "$as_me: failed program was:" >&5
12051 sed 's/^/| /' conftest.$ac_ext >&5
12053 ac_header_preproc=no
12056 rm -f conftest.err conftest.$ac_ext
12057 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12058 $as_echo "$ac_header_preproc" >&6; }
12060 # So? What about this header?
12061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12064 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12066 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12067 ac_header_preproc=yes
12070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12071 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12073 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12075 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12077 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12079 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12081 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12083 ## ---------------------------------------- ##
12084 ## Report this to pgsql-bugs@postgresql.org ##
12085 ## ---------------------------------------- ##
12087 ) | sed "s/^/$as_me: WARNING: /" >&2
12090 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12091 $as_echo_n "checking for $ac_header... " >&6; }
12092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12093 $as_echo_n "(cached) " >&6
12095 eval "$as_ac_Header=\$ac_header_preproc"
12097 ac_res=`eval 'as_val=${'$as_ac_Header'}
12098 $as_echo "$as_val"'`
12099 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12100 $as_echo "$ac_res" >&6; }
12103 as_val=`eval 'as_val=${'$as_ac_Header'}
12104 $as_echo "$as_val"'`
12105 if test "x$as_val" = x""yes; then
12106 cat >>confdefs.h <<_ACEOF
12107 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12112 for ac_header in history.h
12114 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12116 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12117 $as_echo_n "checking for $ac_header... " >&6; }
12118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12119 $as_echo_n "(cached) " >&6
12121 ac_res=`eval 'as_val=${'$as_ac_Header'}
12122 $as_echo "$as_val"'`
12123 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12124 $as_echo "$ac_res" >&6; }
12126 # Is the header compilable?
12127 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12128 $as_echo_n "checking $ac_header usability... " >&6; }
12129 cat >conftest.$ac_ext <<_ACEOF
12132 cat confdefs.h >>conftest.$ac_ext
12133 cat >>conftest.$ac_ext <<_ACEOF
12134 /* end confdefs.h. */
12135 $ac_includes_default
12136 #include <$ac_header>
12138 rm -f conftest.$ac_objext
12139 if { (ac_try="$ac_compile"
12140 case "(($ac_try" in
12141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12142 *) ac_try_echo=$ac_try;;
12144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12145 $as_echo "$ac_try_echo") >&5
12146 (eval "$ac_compile") 2>conftest.er1
12148 grep -v '^ *+' conftest.er1 >conftest.err
12150 cat conftest.err >&5
12151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } && {
12153 test -z "$ac_c_werror_flag" ||
12154 test ! -s conftest.err
12155 } && test -s conftest.$ac_objext; then
12156 ac_header_compiler=yes
12158 $as_echo "$as_me: failed program was:" >&5
12159 sed 's/^/| /' conftest.$ac_ext >&5
12161 ac_header_compiler=no
12164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12165 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12166 $as_echo "$ac_header_compiler" >&6; }
12168 # Is the header present?
12169 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12170 $as_echo_n "checking $ac_header presence... " >&6; }
12171 cat >conftest.$ac_ext <<_ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h. */
12177 #include <$ac_header>
12179 if { (ac_try="$ac_cpp conftest.$ac_ext"
12180 case "(($ac_try" in
12181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182 *) ac_try_echo=$ac_try;;
12184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12185 $as_echo "$ac_try_echo") >&5
12186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12188 grep -v '^ *+' conftest.er1 >conftest.err
12190 cat conftest.err >&5
12191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); } >/dev/null && {
12193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12194 test ! -s conftest.err
12196 ac_header_preproc=yes
12198 $as_echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12201 ac_header_preproc=no
12204 rm -f conftest.err conftest.$ac_ext
12205 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12206 $as_echo "$ac_header_preproc" >&6; }
12208 # So? What about this header?
12209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12212 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12214 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12215 ac_header_preproc=yes
12218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12219 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12221 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12223 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12225 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12227 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12229 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12231 ## ---------------------------------------- ##
12232 ## Report this to pgsql-bugs@postgresql.org ##
12233 ## ---------------------------------------- ##
12235 ) | sed "s/^/$as_me: WARNING: /" >&2
12238 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12239 $as_echo_n "checking for $ac_header... " >&6; }
12240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12241 $as_echo_n "(cached) " >&6
12243 eval "$as_ac_Header=\$ac_header_preproc"
12245 ac_res=`eval 'as_val=${'$as_ac_Header'}
12246 $as_echo "$as_val"'`
12247 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12248 $as_echo "$ac_res" >&6; }
12251 as_val=`eval 'as_val=${'$as_ac_Header'}
12252 $as_echo "$as_val"'`
12253 if test "x$as_val" = x""yes; then
12254 cat >>confdefs.h <<_ACEOF
12255 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12260 for ac_header in readline/history.h
12262 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12264 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12265 $as_echo_n "checking for $ac_header... " >&6; }
12266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12267 $as_echo_n "(cached) " >&6
12269 ac_res=`eval 'as_val=${'$as_ac_Header'}
12270 $as_echo "$as_val"'`
12271 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12272 $as_echo "$ac_res" >&6; }
12274 # Is the header compilable?
12275 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12276 $as_echo_n "checking $ac_header usability... " >&6; }
12277 cat >conftest.$ac_ext <<_ACEOF
12280 cat confdefs.h >>conftest.$ac_ext
12281 cat >>conftest.$ac_ext <<_ACEOF
12282 /* end confdefs.h. */
12283 $ac_includes_default
12284 #include <$ac_header>
12286 rm -f conftest.$ac_objext
12287 if { (ac_try="$ac_compile"
12288 case "(($ac_try" in
12289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12290 *) ac_try_echo=$ac_try;;
12292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12293 $as_echo "$ac_try_echo") >&5
12294 (eval "$ac_compile") 2>conftest.er1
12296 grep -v '^ *+' conftest.er1 >conftest.err
12298 cat conftest.err >&5
12299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } && {
12301 test -z "$ac_c_werror_flag" ||
12302 test ! -s conftest.err
12303 } && test -s conftest.$ac_objext; then
12304 ac_header_compiler=yes
12306 $as_echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12309 ac_header_compiler=no
12312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12313 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12314 $as_echo "$ac_header_compiler" >&6; }
12316 # Is the header present?
12317 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12318 $as_echo_n "checking $ac_header presence... " >&6; }
12319 cat >conftest.$ac_ext <<_ACEOF
12322 cat confdefs.h >>conftest.$ac_ext
12323 cat >>conftest.$ac_ext <<_ACEOF
12324 /* end confdefs.h. */
12325 #include <$ac_header>
12327 if { (ac_try="$ac_cpp conftest.$ac_ext"
12328 case "(($ac_try" in
12329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12330 *) ac_try_echo=$ac_try;;
12332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12333 $as_echo "$ac_try_echo") >&5
12334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12336 grep -v '^ *+' conftest.er1 >conftest.err
12338 cat conftest.err >&5
12339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); } >/dev/null && {
12341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12342 test ! -s conftest.err
12344 ac_header_preproc=yes
12346 $as_echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12349 ac_header_preproc=no
12352 rm -f conftest.err conftest.$ac_ext
12353 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12354 $as_echo "$ac_header_preproc" >&6; }
12356 # So? What about this header?
12357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12360 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12362 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12363 ac_header_preproc=yes
12366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12367 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12369 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12371 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12373 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12375 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12377 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12379 ## ---------------------------------------- ##
12380 ## Report this to pgsql-bugs@postgresql.org ##
12381 ## ---------------------------------------- ##
12383 ) | sed "s/^/$as_me: WARNING: /" >&2
12386 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12387 $as_echo_n "checking for $ac_header... " >&6; }
12388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12389 $as_echo_n "(cached) " >&6
12391 eval "$as_ac_Header=\$ac_header_preproc"
12393 ac_res=`eval 'as_val=${'$as_ac_Header'}
12394 $as_echo "$as_val"'`
12395 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12396 $as_echo "$ac_res" >&6; }
12399 as_val=`eval 'as_val=${'$as_ac_Header'}
12400 $as_echo "$as_val"'`
12401 if test "x$as_val" = x""yes; then
12402 cat >>confdefs.h <<_ACEOF
12403 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12420 if test "$with_zlib" = yes; then
12421 if test "${ac_cv_header_zlib_h+set}" = set; then
12422 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12423 $as_echo_n "checking for zlib.h... " >&6; }
12424 if test "${ac_cv_header_zlib_h+set}" = set; then
12425 $as_echo_n "(cached) " >&6
12427 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12428 $as_echo "$ac_cv_header_zlib_h" >&6; }
12430 # Is the header compilable?
12431 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
12432 $as_echo_n "checking zlib.h usability... " >&6; }
12433 cat >conftest.$ac_ext <<_ACEOF
12436 cat confdefs.h >>conftest.$ac_ext
12437 cat >>conftest.$ac_ext <<_ACEOF
12438 /* end confdefs.h. */
12439 $ac_includes_default
12442 rm -f conftest.$ac_objext
12443 if { (ac_try="$ac_compile"
12444 case "(($ac_try" in
12445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12446 *) ac_try_echo=$ac_try;;
12448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12449 $as_echo "$ac_try_echo") >&5
12450 (eval "$ac_compile") 2>conftest.er1
12452 grep -v '^ *+' conftest.er1 >conftest.err
12454 cat conftest.err >&5
12455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); } && {
12457 test -z "$ac_c_werror_flag" ||
12458 test ! -s conftest.err
12459 } && test -s conftest.$ac_objext; then
12460 ac_header_compiler=yes
12462 $as_echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12465 ac_header_compiler=no
12468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12469 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12470 $as_echo "$ac_header_compiler" >&6; }
12472 # Is the header present?
12473 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
12474 $as_echo_n "checking zlib.h presence... " >&6; }
12475 cat >conftest.$ac_ext <<_ACEOF
12478 cat confdefs.h >>conftest.$ac_ext
12479 cat >>conftest.$ac_ext <<_ACEOF
12480 /* end confdefs.h. */
12483 if { (ac_try="$ac_cpp conftest.$ac_ext"
12484 case "(($ac_try" in
12485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486 *) ac_try_echo=$ac_try;;
12488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12489 $as_echo "$ac_try_echo") >&5
12490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12492 grep -v '^ *+' conftest.er1 >conftest.err
12494 cat conftest.err >&5
12495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } >/dev/null && {
12497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12498 test ! -s conftest.err
12500 ac_header_preproc=yes
12502 $as_echo "$as_me: failed program was:" >&5
12503 sed 's/^/| /' conftest.$ac_ext >&5
12505 ac_header_preproc=no
12508 rm -f conftest.err conftest.$ac_ext
12509 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12510 $as_echo "$ac_header_preproc" >&6; }
12512 # So? What about this header?
12513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12515 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12516 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12517 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12518 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12519 ac_header_preproc=yes
12522 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12523 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12524 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
12525 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
12526 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12527 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12528 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
12529 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12530 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12531 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12532 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12533 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12535 ## ---------------------------------------- ##
12536 ## Report this to pgsql-bugs@postgresql.org ##
12537 ## ---------------------------------------- ##
12539 ) | sed "s/^/$as_me: WARNING: /" >&2
12542 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12543 $as_echo_n "checking for zlib.h... " >&6; }
12544 if test "${ac_cv_header_zlib_h+set}" = set; then
12545 $as_echo_n "(cached) " >&6
12547 ac_cv_header_zlib_h=$ac_header_preproc
12549 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12550 $as_echo "$ac_cv_header_zlib_h" >&6; }
12553 if test "x$ac_cv_header_zlib_h" = x""yes; then
12556 { { $as_echo "$as_me:$LINENO: error: zlib header not found
12557 If you have zlib already installed, see config.log for details on the
12558 failure. It is possible the compiler isn't looking in the proper directory.
12559 Use --without-zlib to disable zlib support." >&5
12560 $as_echo "$as_me: error: zlib header not found
12561 If you have zlib already installed, see config.log for details on the
12562 failure. It is possible the compiler isn't looking in the proper directory.
12563 Use --without-zlib to disable zlib support." >&2;}
12564 { (exit 1); exit 1; }; }
12570 if test "$with_gssapi" = yes ; then
12572 for ac_header in gssapi/gssapi.h
12574 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12576 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12577 $as_echo_n "checking for $ac_header... " >&6; }
12578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12579 $as_echo_n "(cached) " >&6
12581 ac_res=`eval 'as_val=${'$as_ac_Header'}
12582 $as_echo "$as_val"'`
12583 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12584 $as_echo "$ac_res" >&6; }
12586 # Is the header compilable?
12587 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12588 $as_echo_n "checking $ac_header usability... " >&6; }
12589 cat >conftest.$ac_ext <<_ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h. */
12595 $ac_includes_default
12596 #include <$ac_header>
12598 rm -f conftest.$ac_objext
12599 if { (ac_try="$ac_compile"
12600 case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12605 $as_echo "$ac_try_echo") >&5
12606 (eval "$ac_compile") 2>conftest.er1
12608 grep -v '^ *+' conftest.er1 >conftest.err
12610 cat conftest.err >&5
12611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } && {
12613 test -z "$ac_c_werror_flag" ||
12614 test ! -s conftest.err
12615 } && test -s conftest.$ac_objext; then
12616 ac_header_compiler=yes
12618 $as_echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12621 ac_header_compiler=no
12624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12625 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12626 $as_echo "$ac_header_compiler" >&6; }
12628 # Is the header present?
12629 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12630 $as_echo_n "checking $ac_header presence... " >&6; }
12631 cat >conftest.$ac_ext <<_ACEOF
12634 cat confdefs.h >>conftest.$ac_ext
12635 cat >>conftest.$ac_ext <<_ACEOF
12636 /* end confdefs.h. */
12637 #include <$ac_header>
12639 if { (ac_try="$ac_cpp conftest.$ac_ext"
12640 case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12645 $as_echo "$ac_try_echo") >&5
12646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12648 grep -v '^ *+' conftest.er1 >conftest.err
12650 cat conftest.err >&5
12651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); } >/dev/null && {
12653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12654 test ! -s conftest.err
12656 ac_header_preproc=yes
12658 $as_echo "$as_me: failed program was:" >&5
12659 sed 's/^/| /' conftest.$ac_ext >&5
12661 ac_header_preproc=no
12664 rm -f conftest.err conftest.$ac_ext
12665 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12666 $as_echo "$ac_header_preproc" >&6; }
12668 # So? What about this header?
12669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12672 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12674 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12675 ac_header_preproc=yes
12678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12679 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12681 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12683 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12685 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12687 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12689 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12691 ## ---------------------------------------- ##
12692 ## Report this to pgsql-bugs@postgresql.org ##
12693 ## ---------------------------------------- ##
12695 ) | sed "s/^/$as_me: WARNING: /" >&2
12698 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12699 $as_echo_n "checking for $ac_header... " >&6; }
12700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12701 $as_echo_n "(cached) " >&6
12703 eval "$as_ac_Header=\$ac_header_preproc"
12705 ac_res=`eval 'as_val=${'$as_ac_Header'}
12706 $as_echo "$as_val"'`
12707 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12708 $as_echo "$ac_res" >&6; }
12711 as_val=`eval 'as_val=${'$as_ac_Header'}
12712 $as_echo "$as_val"'`
12713 if test "x$as_val" = x""yes; then
12714 cat >>confdefs.h <<_ACEOF
12715 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12720 for ac_header in gssapi.h
12722 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12724 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12725 $as_echo_n "checking for $ac_header... " >&6; }
12726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12727 $as_echo_n "(cached) " >&6
12729 ac_res=`eval 'as_val=${'$as_ac_Header'}
12730 $as_echo "$as_val"'`
12731 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12732 $as_echo "$ac_res" >&6; }
12734 # Is the header compilable?
12735 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12736 $as_echo_n "checking $ac_header usability... " >&6; }
12737 cat >conftest.$ac_ext <<_ACEOF
12740 cat confdefs.h >>conftest.$ac_ext
12741 cat >>conftest.$ac_ext <<_ACEOF
12742 /* end confdefs.h. */
12743 $ac_includes_default
12744 #include <$ac_header>
12746 rm -f conftest.$ac_objext
12747 if { (ac_try="$ac_compile"
12748 case "(($ac_try" in
12749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750 *) ac_try_echo=$ac_try;;
12752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12753 $as_echo "$ac_try_echo") >&5
12754 (eval "$ac_compile") 2>conftest.er1
12756 grep -v '^ *+' conftest.er1 >conftest.err
12758 cat conftest.err >&5
12759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } && {
12761 test -z "$ac_c_werror_flag" ||
12762 test ! -s conftest.err
12763 } && test -s conftest.$ac_objext; then
12764 ac_header_compiler=yes
12766 $as_echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12769 ac_header_compiler=no
12772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12773 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12774 $as_echo "$ac_header_compiler" >&6; }
12776 # Is the header present?
12777 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12778 $as_echo_n "checking $ac_header presence... " >&6; }
12779 cat >conftest.$ac_ext <<_ACEOF
12782 cat confdefs.h >>conftest.$ac_ext
12783 cat >>conftest.$ac_ext <<_ACEOF
12784 /* end confdefs.h. */
12785 #include <$ac_header>
12787 if { (ac_try="$ac_cpp conftest.$ac_ext"
12788 case "(($ac_try" in
12789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12790 *) ac_try_echo=$ac_try;;
12792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12793 $as_echo "$ac_try_echo") >&5
12794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12796 grep -v '^ *+' conftest.er1 >conftest.err
12798 cat conftest.err >&5
12799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } >/dev/null && {
12801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12802 test ! -s conftest.err
12804 ac_header_preproc=yes
12806 $as_echo "$as_me: failed program was:" >&5
12807 sed 's/^/| /' conftest.$ac_ext >&5
12809 ac_header_preproc=no
12812 rm -f conftest.err conftest.$ac_ext
12813 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12814 $as_echo "$ac_header_preproc" >&6; }
12816 # So? What about this header?
12817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12820 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12822 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12823 ac_header_preproc=yes
12826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12827 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12829 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12831 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12833 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12835 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12837 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12839 ## ---------------------------------------- ##
12840 ## Report this to pgsql-bugs@postgresql.org ##
12841 ## ---------------------------------------- ##
12843 ) | sed "s/^/$as_me: WARNING: /" >&2
12846 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12847 $as_echo_n "checking for $ac_header... " >&6; }
12848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12849 $as_echo_n "(cached) " >&6
12851 eval "$as_ac_Header=\$ac_header_preproc"
12853 ac_res=`eval 'as_val=${'$as_ac_Header'}
12854 $as_echo "$as_val"'`
12855 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12856 $as_echo "$ac_res" >&6; }
12859 as_val=`eval 'as_val=${'$as_ac_Header'}
12860 $as_echo "$as_val"'`
12861 if test "x$as_val" = x""yes; then
12862 cat >>confdefs.h <<_ACEOF
12863 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12867 { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12868 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12869 { (exit 1); exit 1; }; }
12880 if test "$with_krb5" = yes ; then
12881 if test "${ac_cv_header_krb5_h+set}" = set; then
12882 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12883 $as_echo_n "checking for krb5.h... " >&6; }
12884 if test "${ac_cv_header_krb5_h+set}" = set; then
12885 $as_echo_n "(cached) " >&6
12887 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12888 $as_echo "$ac_cv_header_krb5_h" >&6; }
12890 # Is the header compilable?
12891 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12892 $as_echo_n "checking krb5.h usability... " >&6; }
12893 cat >conftest.$ac_ext <<_ACEOF
12896 cat confdefs.h >>conftest.$ac_ext
12897 cat >>conftest.$ac_ext <<_ACEOF
12898 /* end confdefs.h. */
12899 $ac_includes_default
12902 rm -f conftest.$ac_objext
12903 if { (ac_try="$ac_compile"
12904 case "(($ac_try" in
12905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12906 *) ac_try_echo=$ac_try;;
12908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12909 $as_echo "$ac_try_echo") >&5
12910 (eval "$ac_compile") 2>conftest.er1
12912 grep -v '^ *+' conftest.er1 >conftest.err
12914 cat conftest.err >&5
12915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); } && {
12917 test -z "$ac_c_werror_flag" ||
12918 test ! -s conftest.err
12919 } && test -s conftest.$ac_objext; then
12920 ac_header_compiler=yes
12922 $as_echo "$as_me: failed program was:" >&5
12923 sed 's/^/| /' conftest.$ac_ext >&5
12925 ac_header_compiler=no
12928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12929 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12930 $as_echo "$ac_header_compiler" >&6; }
12932 # Is the header present?
12933 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12934 $as_echo_n "checking krb5.h presence... " >&6; }
12935 cat >conftest.$ac_ext <<_ACEOF
12938 cat confdefs.h >>conftest.$ac_ext
12939 cat >>conftest.$ac_ext <<_ACEOF
12940 /* end confdefs.h. */
12943 if { (ac_try="$ac_cpp conftest.$ac_ext"
12944 case "(($ac_try" in
12945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946 *) ac_try_echo=$ac_try;;
12948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12949 $as_echo "$ac_try_echo") >&5
12950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12952 grep -v '^ *+' conftest.er1 >conftest.err
12954 cat conftest.err >&5
12955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); } >/dev/null && {
12957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12958 test ! -s conftest.err
12960 ac_header_preproc=yes
12962 $as_echo "$as_me: failed program was:" >&5
12963 sed 's/^/| /' conftest.$ac_ext >&5
12965 ac_header_preproc=no
12968 rm -f conftest.err conftest.$ac_ext
12969 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12970 $as_echo "$ac_header_preproc" >&6; }
12972 # So? What about this header?
12973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12975 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12976 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12977 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12978 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12979 ac_header_preproc=yes
12982 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12983 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12984 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
12985 $as_echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
12986 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12987 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12988 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
12989 $as_echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
12990 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12991 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12992 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12993 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12995 ## ---------------------------------------- ##
12996 ## Report this to pgsql-bugs@postgresql.org ##
12997 ## ---------------------------------------- ##
12999 ) | sed "s/^/$as_me: WARNING: /" >&2
13002 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
13003 $as_echo_n "checking for krb5.h... " >&6; }
13004 if test "${ac_cv_header_krb5_h+set}" = set; then
13005 $as_echo_n "(cached) " >&6
13007 ac_cv_header_krb5_h=$ac_header_preproc
13009 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
13010 $as_echo "$ac_cv_header_krb5_h" >&6; }
13013 if test "x$ac_cv_header_krb5_h" = x""yes; then
13016 { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
13017 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
13018 { (exit 1); exit 1; }; }
13024 if test "$with_openssl" = yes ; then
13025 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
13026 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
13027 $as_echo_n "checking for openssl/ssl.h... " >&6; }
13028 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
13029 $as_echo_n "(cached) " >&6
13031 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
13032 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
13034 # Is the header compilable?
13035 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
13036 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
13037 cat >conftest.$ac_ext <<_ACEOF
13040 cat confdefs.h >>conftest.$ac_ext
13041 cat >>conftest.$ac_ext <<_ACEOF
13042 /* end confdefs.h. */
13043 $ac_includes_default
13044 #include <openssl/ssl.h>
13046 rm -f conftest.$ac_objext
13047 if { (ac_try="$ac_compile"
13048 case "(($ac_try" in
13049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050 *) ac_try_echo=$ac_try;;
13052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13053 $as_echo "$ac_try_echo") >&5
13054 (eval "$ac_compile") 2>conftest.er1
13056 grep -v '^ *+' conftest.er1 >conftest.err
13058 cat conftest.err >&5
13059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); } && {
13061 test -z "$ac_c_werror_flag" ||
13062 test ! -s conftest.err
13063 } && test -s conftest.$ac_objext; then
13064 ac_header_compiler=yes
13066 $as_echo "$as_me: failed program was:" >&5
13067 sed 's/^/| /' conftest.$ac_ext >&5
13069 ac_header_compiler=no
13072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13073 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13074 $as_echo "$ac_header_compiler" >&6; }
13076 # Is the header present?
13077 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
13078 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
13079 cat >conftest.$ac_ext <<_ACEOF
13082 cat confdefs.h >>conftest.$ac_ext
13083 cat >>conftest.$ac_ext <<_ACEOF
13084 /* end confdefs.h. */
13085 #include <openssl/ssl.h>
13087 if { (ac_try="$ac_cpp conftest.$ac_ext"
13088 case "(($ac_try" in
13089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13090 *) ac_try_echo=$ac_try;;
13092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13093 $as_echo "$ac_try_echo") >&5
13094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13096 grep -v '^ *+' conftest.er1 >conftest.err
13098 cat conftest.err >&5
13099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } >/dev/null && {
13101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13102 test ! -s conftest.err
13104 ac_header_preproc=yes
13106 $as_echo "$as_me: failed program was:" >&5
13107 sed 's/^/| /' conftest.$ac_ext >&5
13109 ac_header_preproc=no
13112 rm -f conftest.err conftest.$ac_ext
13113 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13114 $as_echo "$ac_header_preproc" >&6; }
13116 # So? What about this header?
13117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13119 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
13120 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13121 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
13122 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
13123 ac_header_preproc=yes
13126 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
13127 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
13128 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
13129 $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
13130 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
13131 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
13132 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
13133 $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
13134 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
13135 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
13136 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
13137 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
13139 ## ---------------------------------------- ##
13140 ## Report this to pgsql-bugs@postgresql.org ##
13141 ## ---------------------------------------- ##
13143 ) | sed "s/^/$as_me: WARNING: /" >&2
13146 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
13147 $as_echo_n "checking for openssl/ssl.h... " >&6; }
13148 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
13149 $as_echo_n "(cached) " >&6
13151 ac_cv_header_openssl_ssl_h=$ac_header_preproc
13153 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
13154 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
13157 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
13160 { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
13161 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
13162 { (exit 1); exit 1; }; }
13166 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13167 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
13168 $as_echo_n "checking for openssl/err.h... " >&6; }
13169 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13170 $as_echo_n "(cached) " >&6
13172 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
13173 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
13175 # Is the header compilable?
13176 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
13177 $as_echo_n "checking openssl/err.h usability... " >&6; }
13178 cat >conftest.$ac_ext <<_ACEOF
13181 cat confdefs.h >>conftest.$ac_ext
13182 cat >>conftest.$ac_ext <<_ACEOF
13183 /* end confdefs.h. */
13184 $ac_includes_default
13185 #include <openssl/err.h>
13187 rm -f conftest.$ac_objext
13188 if { (ac_try="$ac_compile"
13189 case "(($ac_try" in
13190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191 *) ac_try_echo=$ac_try;;
13193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13194 $as_echo "$ac_try_echo") >&5
13195 (eval "$ac_compile") 2>conftest.er1
13197 grep -v '^ *+' conftest.er1 >conftest.err
13199 cat conftest.err >&5
13200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } && {
13202 test -z "$ac_c_werror_flag" ||
13203 test ! -s conftest.err
13204 } && test -s conftest.$ac_objext; then
13205 ac_header_compiler=yes
13207 $as_echo "$as_me: failed program was:" >&5
13208 sed 's/^/| /' conftest.$ac_ext >&5
13210 ac_header_compiler=no
13213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13214 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13215 $as_echo "$ac_header_compiler" >&6; }
13217 # Is the header present?
13218 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
13219 $as_echo_n "checking openssl/err.h presence... " >&6; }
13220 cat >conftest.$ac_ext <<_ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h. */
13226 #include <openssl/err.h>
13228 if { (ac_try="$ac_cpp conftest.$ac_ext"
13229 case "(($ac_try" in
13230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13231 *) ac_try_echo=$ac_try;;
13233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13234 $as_echo "$ac_try_echo") >&5
13235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13237 grep -v '^ *+' conftest.er1 >conftest.err
13239 cat conftest.err >&5
13240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } >/dev/null && {
13242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13243 test ! -s conftest.err
13245 ac_header_preproc=yes
13247 $as_echo "$as_me: failed program was:" >&5
13248 sed 's/^/| /' conftest.$ac_ext >&5
13250 ac_header_preproc=no
13253 rm -f conftest.err conftest.$ac_ext
13254 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13255 $as_echo "$ac_header_preproc" >&6; }
13257 # So? What about this header?
13258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13260 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
13261 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13262 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
13263 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
13264 ac_header_preproc=yes
13267 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
13268 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
13269 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
13270 $as_echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
13271 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
13272 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
13273 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
13274 $as_echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
13275 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
13276 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
13277 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
13278 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
13280 ## ---------------------------------------- ##
13281 ## Report this to pgsql-bugs@postgresql.org ##
13282 ## ---------------------------------------- ##
13284 ) | sed "s/^/$as_me: WARNING: /" >&2
13287 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
13288 $as_echo_n "checking for openssl/err.h... " >&6; }
13289 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13290 $as_echo_n "(cached) " >&6
13292 ac_cv_header_openssl_err_h=$ac_header_preproc
13294 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
13295 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
13298 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
13301 { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
13302 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
13303 { (exit 1); exit 1; }; }
13309 if test "$with_pam" = yes ; then
13311 for ac_header in security/pam_appl.h
13313 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13315 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13316 $as_echo_n "checking for $ac_header... " >&6; }
13317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13318 $as_echo_n "(cached) " >&6
13320 ac_res=`eval 'as_val=${'$as_ac_Header'}
13321 $as_echo "$as_val"'`
13322 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13323 $as_echo "$ac_res" >&6; }
13325 # Is the header compilable?
13326 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13327 $as_echo_n "checking $ac_header usability... " >&6; }
13328 cat >conftest.$ac_ext <<_ACEOF
13331 cat confdefs.h >>conftest.$ac_ext
13332 cat >>conftest.$ac_ext <<_ACEOF
13333 /* end confdefs.h. */
13334 $ac_includes_default
13335 #include <$ac_header>
13337 rm -f conftest.$ac_objext
13338 if { (ac_try="$ac_compile"
13339 case "(($ac_try" in
13340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341 *) ac_try_echo=$ac_try;;
13343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13344 $as_echo "$ac_try_echo") >&5
13345 (eval "$ac_compile") 2>conftest.er1
13347 grep -v '^ *+' conftest.er1 >conftest.err
13349 cat conftest.err >&5
13350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); } && {
13352 test -z "$ac_c_werror_flag" ||
13353 test ! -s conftest.err
13354 } && test -s conftest.$ac_objext; then
13355 ac_header_compiler=yes
13357 $as_echo "$as_me: failed program was:" >&5
13358 sed 's/^/| /' conftest.$ac_ext >&5
13360 ac_header_compiler=no
13363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13364 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13365 $as_echo "$ac_header_compiler" >&6; }
13367 # Is the header present?
13368 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13369 $as_echo_n "checking $ac_header presence... " >&6; }
13370 cat >conftest.$ac_ext <<_ACEOF
13373 cat confdefs.h >>conftest.$ac_ext
13374 cat >>conftest.$ac_ext <<_ACEOF
13375 /* end confdefs.h. */
13376 #include <$ac_header>
13378 if { (ac_try="$ac_cpp conftest.$ac_ext"
13379 case "(($ac_try" in
13380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381 *) ac_try_echo=$ac_try;;
13383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13384 $as_echo "$ac_try_echo") >&5
13385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13387 grep -v '^ *+' conftest.er1 >conftest.err
13389 cat conftest.err >&5
13390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } >/dev/null && {
13392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13393 test ! -s conftest.err
13395 ac_header_preproc=yes
13397 $as_echo "$as_me: failed program was:" >&5
13398 sed 's/^/| /' conftest.$ac_ext >&5
13400 ac_header_preproc=no
13403 rm -f conftest.err conftest.$ac_ext
13404 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13405 $as_echo "$ac_header_preproc" >&6; }
13407 # So? What about this header?
13408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13411 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13413 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13414 ac_header_preproc=yes
13417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13418 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13420 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13422 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13424 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13426 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13428 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13430 ## ---------------------------------------- ##
13431 ## Report this to pgsql-bugs@postgresql.org ##
13432 ## ---------------------------------------- ##
13434 ) | sed "s/^/$as_me: WARNING: /" >&2
13437 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13438 $as_echo_n "checking for $ac_header... " >&6; }
13439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13440 $as_echo_n "(cached) " >&6
13442 eval "$as_ac_Header=\$ac_header_preproc"
13444 ac_res=`eval 'as_val=${'$as_ac_Header'}
13445 $as_echo "$as_val"'`
13446 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13447 $as_echo "$ac_res" >&6; }
13450 as_val=`eval 'as_val=${'$as_ac_Header'}
13451 $as_echo "$as_val"'`
13452 if test "x$as_val" = x""yes; then
13453 cat >>confdefs.h <<_ACEOF
13454 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13459 for ac_header in pam/pam_appl.h
13461 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13463 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13464 $as_echo_n "checking for $ac_header... " >&6; }
13465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13466 $as_echo_n "(cached) " >&6
13468 ac_res=`eval 'as_val=${'$as_ac_Header'}
13469 $as_echo "$as_val"'`
13470 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13471 $as_echo "$ac_res" >&6; }
13473 # Is the header compilable?
13474 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13475 $as_echo_n "checking $ac_header usability... " >&6; }
13476 cat >conftest.$ac_ext <<_ACEOF
13479 cat confdefs.h >>conftest.$ac_ext
13480 cat >>conftest.$ac_ext <<_ACEOF
13481 /* end confdefs.h. */
13482 $ac_includes_default
13483 #include <$ac_header>
13485 rm -f conftest.$ac_objext
13486 if { (ac_try="$ac_compile"
13487 case "(($ac_try" in
13488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489 *) ac_try_echo=$ac_try;;
13491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13492 $as_echo "$ac_try_echo") >&5
13493 (eval "$ac_compile") 2>conftest.er1
13495 grep -v '^ *+' conftest.er1 >conftest.err
13497 cat conftest.err >&5
13498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } && {
13500 test -z "$ac_c_werror_flag" ||
13501 test ! -s conftest.err
13502 } && test -s conftest.$ac_objext; then
13503 ac_header_compiler=yes
13505 $as_echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13508 ac_header_compiler=no
13511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13512 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13513 $as_echo "$ac_header_compiler" >&6; }
13515 # Is the header present?
13516 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13517 $as_echo_n "checking $ac_header presence... " >&6; }
13518 cat >conftest.$ac_ext <<_ACEOF
13521 cat confdefs.h >>conftest.$ac_ext
13522 cat >>conftest.$ac_ext <<_ACEOF
13523 /* end confdefs.h. */
13524 #include <$ac_header>
13526 if { (ac_try="$ac_cpp conftest.$ac_ext"
13527 case "(($ac_try" in
13528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529 *) ac_try_echo=$ac_try;;
13531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13532 $as_echo "$ac_try_echo") >&5
13533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13535 grep -v '^ *+' conftest.er1 >conftest.err
13537 cat conftest.err >&5
13538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); } >/dev/null && {
13540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13541 test ! -s conftest.err
13543 ac_header_preproc=yes
13545 $as_echo "$as_me: failed program was:" >&5
13546 sed 's/^/| /' conftest.$ac_ext >&5
13548 ac_header_preproc=no
13551 rm -f conftest.err conftest.$ac_ext
13552 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13553 $as_echo "$ac_header_preproc" >&6; }
13555 # So? What about this header?
13556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13559 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13560 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13561 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13562 ac_header_preproc=yes
13565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13566 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13567 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13568 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13569 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13570 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13571 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13572 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13573 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13574 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13575 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13576 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13578 ## ---------------------------------------- ##
13579 ## Report this to pgsql-bugs@postgresql.org ##
13580 ## ---------------------------------------- ##
13582 ) | sed "s/^/$as_me: WARNING: /" >&2
13585 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13586 $as_echo_n "checking for $ac_header... " >&6; }
13587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13588 $as_echo_n "(cached) " >&6
13590 eval "$as_ac_Header=\$ac_header_preproc"
13592 ac_res=`eval 'as_val=${'$as_ac_Header'}
13593 $as_echo "$as_val"'`
13594 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13595 $as_echo "$ac_res" >&6; }
13598 as_val=`eval 'as_val=${'$as_ac_Header'}
13599 $as_echo "$as_val"'`
13600 if test "x$as_val" = x""yes; then
13601 cat >>confdefs.h <<_ACEOF
13602 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13606 { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13607 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13608 { (exit 1); exit 1; }; }
13619 if test "$with_libxml" = yes ; then
13620 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13621 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13622 $as_echo_n "checking for libxml/parser.h... " >&6; }
13623 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13624 $as_echo_n "(cached) " >&6
13626 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13627 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13629 # Is the header compilable?
13630 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13631 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13632 cat >conftest.$ac_ext <<_ACEOF
13635 cat confdefs.h >>conftest.$ac_ext
13636 cat >>conftest.$ac_ext <<_ACEOF
13637 /* end confdefs.h. */
13638 $ac_includes_default
13639 #include <libxml/parser.h>
13641 rm -f conftest.$ac_objext
13642 if { (ac_try="$ac_compile"
13643 case "(($ac_try" in
13644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13645 *) ac_try_echo=$ac_try;;
13647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13648 $as_echo "$ac_try_echo") >&5
13649 (eval "$ac_compile") 2>conftest.er1
13651 grep -v '^ *+' conftest.er1 >conftest.err
13653 cat conftest.err >&5
13654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); } && {
13656 test -z "$ac_c_werror_flag" ||
13657 test ! -s conftest.err
13658 } && test -s conftest.$ac_objext; then
13659 ac_header_compiler=yes
13661 $as_echo "$as_me: failed program was:" >&5
13662 sed 's/^/| /' conftest.$ac_ext >&5
13664 ac_header_compiler=no
13667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13668 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13669 $as_echo "$ac_header_compiler" >&6; }
13671 # Is the header present?
13672 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13673 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13674 cat >conftest.$ac_ext <<_ACEOF
13677 cat confdefs.h >>conftest.$ac_ext
13678 cat >>conftest.$ac_ext <<_ACEOF
13679 /* end confdefs.h. */
13680 #include <libxml/parser.h>
13682 if { (ac_try="$ac_cpp conftest.$ac_ext"
13683 case "(($ac_try" in
13684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685 *) ac_try_echo=$ac_try;;
13687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13688 $as_echo "$ac_try_echo") >&5
13689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13691 grep -v '^ *+' conftest.er1 >conftest.err
13693 cat conftest.err >&5
13694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); } >/dev/null && {
13696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13697 test ! -s conftest.err
13699 ac_header_preproc=yes
13701 $as_echo "$as_me: failed program was:" >&5
13702 sed 's/^/| /' conftest.$ac_ext >&5
13704 ac_header_preproc=no
13707 rm -f conftest.err conftest.$ac_ext
13708 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13709 $as_echo "$ac_header_preproc" >&6; }
13711 # So? What about this header?
13712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13714 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13715 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13716 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13717 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13718 ac_header_preproc=yes
13721 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13722 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13723 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
13724 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
13725 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13726 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13727 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
13728 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
13729 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13730 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13731 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13732 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13734 ## ---------------------------------------- ##
13735 ## Report this to pgsql-bugs@postgresql.org ##
13736 ## ---------------------------------------- ##
13738 ) | sed "s/^/$as_me: WARNING: /" >&2
13741 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13742 $as_echo_n "checking for libxml/parser.h... " >&6; }
13743 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13744 $as_echo_n "(cached) " >&6
13746 ac_cv_header_libxml_parser_h=$ac_header_preproc
13748 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13749 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13752 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13755 { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13756 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13757 { (exit 1); exit 1; }; }
13763 if test "$with_libxslt" = yes ; then
13764 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13765 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13766 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13767 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13768 $as_echo_n "(cached) " >&6
13770 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13771 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13773 # Is the header compilable?
13774 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13775 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13776 cat >conftest.$ac_ext <<_ACEOF
13779 cat confdefs.h >>conftest.$ac_ext
13780 cat >>conftest.$ac_ext <<_ACEOF
13781 /* end confdefs.h. */
13782 $ac_includes_default
13783 #include <libxslt/xslt.h>
13785 rm -f conftest.$ac_objext
13786 if { (ac_try="$ac_compile"
13787 case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13792 $as_echo "$ac_try_echo") >&5
13793 (eval "$ac_compile") 2>conftest.er1
13795 grep -v '^ *+' conftest.er1 >conftest.err
13797 cat conftest.err >&5
13798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); } && {
13800 test -z "$ac_c_werror_flag" ||
13801 test ! -s conftest.err
13802 } && test -s conftest.$ac_objext; then
13803 ac_header_compiler=yes
13805 $as_echo "$as_me: failed program was:" >&5
13806 sed 's/^/| /' conftest.$ac_ext >&5
13808 ac_header_compiler=no
13811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13812 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13813 $as_echo "$ac_header_compiler" >&6; }
13815 # Is the header present?
13816 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13817 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13818 cat >conftest.$ac_ext <<_ACEOF
13821 cat confdefs.h >>conftest.$ac_ext
13822 cat >>conftest.$ac_ext <<_ACEOF
13823 /* end confdefs.h. */
13824 #include <libxslt/xslt.h>
13826 if { (ac_try="$ac_cpp conftest.$ac_ext"
13827 case "(($ac_try" in
13828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829 *) ac_try_echo=$ac_try;;
13831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13832 $as_echo "$ac_try_echo") >&5
13833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13835 grep -v '^ *+' conftest.er1 >conftest.err
13837 cat conftest.err >&5
13838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); } >/dev/null && {
13840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13841 test ! -s conftest.err
13843 ac_header_preproc=yes
13845 $as_echo "$as_me: failed program was:" >&5
13846 sed 's/^/| /' conftest.$ac_ext >&5
13848 ac_header_preproc=no
13851 rm -f conftest.err conftest.$ac_ext
13852 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13853 $as_echo "$ac_header_preproc" >&6; }
13855 # So? What about this header?
13856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13858 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13859 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13860 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13861 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13862 ac_header_preproc=yes
13865 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13866 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13867 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
13868 $as_echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
13869 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13870 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13871 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
13872 $as_echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
13873 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13874 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13875 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13876 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13878 ## ---------------------------------------- ##
13879 ## Report this to pgsql-bugs@postgresql.org ##
13880 ## ---------------------------------------- ##
13882 ) | sed "s/^/$as_me: WARNING: /" >&2
13885 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13886 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13887 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13888 $as_echo_n "(cached) " >&6
13890 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13892 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13893 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13896 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13899 { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13900 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13901 { (exit 1); exit 1; }; }
13907 if test "$with_ldap" = yes ; then
13908 if test "$PORTNAME" != "win32"; then
13910 for ac_header in ldap.h
13912 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13914 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13915 $as_echo_n "checking for $ac_header... " >&6; }
13916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13917 $as_echo_n "(cached) " >&6
13919 ac_res=`eval 'as_val=${'$as_ac_Header'}
13920 $as_echo "$as_val"'`
13921 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13922 $as_echo "$ac_res" >&6; }
13924 # Is the header compilable?
13925 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13926 $as_echo_n "checking $ac_header usability... " >&6; }
13927 cat >conftest.$ac_ext <<_ACEOF
13930 cat confdefs.h >>conftest.$ac_ext
13931 cat >>conftest.$ac_ext <<_ACEOF
13932 /* end confdefs.h. */
13933 $ac_includes_default
13934 #include <$ac_header>
13936 rm -f conftest.$ac_objext
13937 if { (ac_try="$ac_compile"
13938 case "(($ac_try" in
13939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940 *) ac_try_echo=$ac_try;;
13942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13943 $as_echo "$ac_try_echo") >&5
13944 (eval "$ac_compile") 2>conftest.er1
13946 grep -v '^ *+' conftest.er1 >conftest.err
13948 cat conftest.err >&5
13949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); } && {
13951 test -z "$ac_c_werror_flag" ||
13952 test ! -s conftest.err
13953 } && test -s conftest.$ac_objext; then
13954 ac_header_compiler=yes
13956 $as_echo "$as_me: failed program was:" >&5
13957 sed 's/^/| /' conftest.$ac_ext >&5
13959 ac_header_compiler=no
13962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13963 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13964 $as_echo "$ac_header_compiler" >&6; }
13966 # Is the header present?
13967 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13968 $as_echo_n "checking $ac_header presence... " >&6; }
13969 cat >conftest.$ac_ext <<_ACEOF
13972 cat confdefs.h >>conftest.$ac_ext
13973 cat >>conftest.$ac_ext <<_ACEOF
13974 /* end confdefs.h. */
13975 #include <$ac_header>
13977 if { (ac_try="$ac_cpp conftest.$ac_ext"
13978 case "(($ac_try" in
13979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13980 *) ac_try_echo=$ac_try;;
13982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13983 $as_echo "$ac_try_echo") >&5
13984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13986 grep -v '^ *+' conftest.er1 >conftest.err
13988 cat conftest.err >&5
13989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } >/dev/null && {
13991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13992 test ! -s conftest.err
13994 ac_header_preproc=yes
13996 $as_echo "$as_me: failed program was:" >&5
13997 sed 's/^/| /' conftest.$ac_ext >&5
13999 ac_header_preproc=no
14002 rm -f conftest.err conftest.$ac_ext
14003 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14004 $as_echo "$ac_header_preproc" >&6; }
14006 # So? What about this header?
14007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14010 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14012 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14013 ac_header_preproc=yes
14016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14017 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14019 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14021 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14023 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14025 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14027 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14029 ## ---------------------------------------- ##
14030 ## Report this to pgsql-bugs@postgresql.org ##
14031 ## ---------------------------------------- ##
14033 ) | sed "s/^/$as_me: WARNING: /" >&2
14036 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14037 $as_echo_n "checking for $ac_header... " >&6; }
14038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14039 $as_echo_n "(cached) " >&6
14041 eval "$as_ac_Header=\$ac_header_preproc"
14043 ac_res=`eval 'as_val=${'$as_ac_Header'}
14044 $as_echo "$as_val"'`
14045 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14046 $as_echo "$ac_res" >&6; }
14049 as_val=`eval 'as_val=${'$as_ac_Header'}
14050 $as_echo "$as_val"'`
14051 if test "x$as_val" = x""yes; then
14052 cat >>confdefs.h <<_ACEOF
14053 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14057 { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
14058 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
14059 { (exit 1); exit 1; }; }
14066 for ac_header in winldap.h
14068 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14069 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14070 $as_echo_n "checking for $ac_header... " >&6; }
14071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14072 $as_echo_n "(cached) " >&6
14074 cat >conftest.$ac_ext <<_ACEOF
14077 cat confdefs.h >>conftest.$ac_ext
14078 cat >>conftest.$ac_ext <<_ACEOF
14079 /* end confdefs.h. */
14080 $ac_includes_default
14081 #include <windows.h>
14084 #include <$ac_header>
14086 rm -f conftest.$ac_objext
14087 if { (ac_try="$ac_compile"
14088 case "(($ac_try" in
14089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14090 *) ac_try_echo=$ac_try;;
14092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14093 $as_echo "$ac_try_echo") >&5
14094 (eval "$ac_compile") 2>conftest.er1
14096 grep -v '^ *+' conftest.er1 >conftest.err
14098 cat conftest.err >&5
14099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } && {
14101 test -z "$ac_c_werror_flag" ||
14102 test ! -s conftest.err
14103 } && test -s conftest.$ac_objext; then
14104 eval "$as_ac_Header=yes"
14106 $as_echo "$as_me: failed program was:" >&5
14107 sed 's/^/| /' conftest.$ac_ext >&5
14109 eval "$as_ac_Header=no"
14112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14114 ac_res=`eval 'as_val=${'$as_ac_Header'}
14115 $as_echo "$as_val"'`
14116 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14117 $as_echo "$ac_res" >&6; }
14118 as_val=`eval 'as_val=${'$as_ac_Header'}
14119 $as_echo "$as_val"'`
14120 if test "x$as_val" = x""yes; then
14121 cat >>confdefs.h <<_ACEOF
14122 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14126 { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
14127 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
14128 { (exit 1); exit 1; }; }
14136 if test "$with_bonjour" = yes ; then
14137 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14138 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
14139 $as_echo_n "checking for dns_sd.h... " >&6; }
14140 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14141 $as_echo_n "(cached) " >&6
14143 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14144 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14146 # Is the header compilable?
14147 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
14148 $as_echo_n "checking dns_sd.h usability... " >&6; }
14149 cat >conftest.$ac_ext <<_ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14155 $ac_includes_default
14156 #include <dns_sd.h>
14158 rm -f conftest.$ac_objext
14159 if { (ac_try="$ac_compile"
14160 case "(($ac_try" in
14161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14162 *) ac_try_echo=$ac_try;;
14164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14165 $as_echo "$ac_try_echo") >&5
14166 (eval "$ac_compile") 2>conftest.er1
14168 grep -v '^ *+' conftest.er1 >conftest.err
14170 cat conftest.err >&5
14171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); } && {
14173 test -z "$ac_c_werror_flag" ||
14174 test ! -s conftest.err
14175 } && test -s conftest.$ac_objext; then
14176 ac_header_compiler=yes
14178 $as_echo "$as_me: failed program was:" >&5
14179 sed 's/^/| /' conftest.$ac_ext >&5
14181 ac_header_compiler=no
14184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14185 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14186 $as_echo "$ac_header_compiler" >&6; }
14188 # Is the header present?
14189 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
14190 $as_echo_n "checking dns_sd.h presence... " >&6; }
14191 cat >conftest.$ac_ext <<_ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14197 #include <dns_sd.h>
14199 if { (ac_try="$ac_cpp conftest.$ac_ext"
14200 case "(($ac_try" in
14201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14202 *) ac_try_echo=$ac_try;;
14204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14205 $as_echo "$ac_try_echo") >&5
14206 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14208 grep -v '^ *+' conftest.er1 >conftest.err
14210 cat conftest.err >&5
14211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); } >/dev/null && {
14213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14214 test ! -s conftest.err
14216 ac_header_preproc=yes
14218 $as_echo "$as_me: failed program was:" >&5
14219 sed 's/^/| /' conftest.$ac_ext >&5
14221 ac_header_preproc=no
14224 rm -f conftest.err conftest.$ac_ext
14225 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14226 $as_echo "$ac_header_preproc" >&6; }
14228 # So? What about this header?
14229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14231 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
14232 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14233 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
14234 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
14235 ac_header_preproc=yes
14238 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
14239 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
14240 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: check for missing prerequisite headers?" >&5
14241 $as_echo "$as_me: WARNING: dns_sd.h: check for missing prerequisite headers?" >&2;}
14242 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
14243 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
14244 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&5
14245 $as_echo "$as_me: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&2;}
14246 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
14247 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
14248 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
14249 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
14251 ## ---------------------------------------- ##
14252 ## Report this to pgsql-bugs@postgresql.org ##
14253 ## ---------------------------------------- ##
14255 ) | sed "s/^/$as_me: WARNING: /" >&2
14258 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
14259 $as_echo_n "checking for dns_sd.h... " >&6; }
14260 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14261 $as_echo_n "(cached) " >&6
14263 ac_cv_header_dns_sd_h=$ac_header_preproc
14265 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14266 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14269 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
14272 { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
14273 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
14274 { (exit 1); exit 1; }; }
14280 # for contrib/uuid-ossp
14281 if test "$with_ossp_uuid" = yes ; then
14283 for ac_header in ossp/uuid.h
14285 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14287 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14288 $as_echo_n "checking for $ac_header... " >&6; }
14289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14290 $as_echo_n "(cached) " >&6
14292 ac_res=`eval 'as_val=${'$as_ac_Header'}
14293 $as_echo "$as_val"'`
14294 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14295 $as_echo "$ac_res" >&6; }
14297 # Is the header compilable?
14298 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14299 $as_echo_n "checking $ac_header usability... " >&6; }
14300 cat >conftest.$ac_ext <<_ACEOF
14303 cat confdefs.h >>conftest.$ac_ext
14304 cat >>conftest.$ac_ext <<_ACEOF
14305 /* end confdefs.h. */
14306 $ac_includes_default
14307 #include <$ac_header>
14309 rm -f conftest.$ac_objext
14310 if { (ac_try="$ac_compile"
14311 case "(($ac_try" in
14312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313 *) ac_try_echo=$ac_try;;
14315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14316 $as_echo "$ac_try_echo") >&5
14317 (eval "$ac_compile") 2>conftest.er1
14319 grep -v '^ *+' conftest.er1 >conftest.err
14321 cat conftest.err >&5
14322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); } && {
14324 test -z "$ac_c_werror_flag" ||
14325 test ! -s conftest.err
14326 } && test -s conftest.$ac_objext; then
14327 ac_header_compiler=yes
14329 $as_echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14332 ac_header_compiler=no
14335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14336 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14337 $as_echo "$ac_header_compiler" >&6; }
14339 # Is the header present?
14340 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14341 $as_echo_n "checking $ac_header presence... " >&6; }
14342 cat >conftest.$ac_ext <<_ACEOF
14345 cat confdefs.h >>conftest.$ac_ext
14346 cat >>conftest.$ac_ext <<_ACEOF
14347 /* end confdefs.h. */
14348 #include <$ac_header>
14350 if { (ac_try="$ac_cpp conftest.$ac_ext"
14351 case "(($ac_try" in
14352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14353 *) ac_try_echo=$ac_try;;
14355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14356 $as_echo "$ac_try_echo") >&5
14357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14359 grep -v '^ *+' conftest.er1 >conftest.err
14361 cat conftest.err >&5
14362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } >/dev/null && {
14364 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14365 test ! -s conftest.err
14367 ac_header_preproc=yes
14369 $as_echo "$as_me: failed program was:" >&5
14370 sed 's/^/| /' conftest.$ac_ext >&5
14372 ac_header_preproc=no
14375 rm -f conftest.err conftest.$ac_ext
14376 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14377 $as_echo "$ac_header_preproc" >&6; }
14379 # So? What about this header?
14380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14383 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14385 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14386 ac_header_preproc=yes
14389 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14390 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14392 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14394 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14396 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14398 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14400 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14402 ## ---------------------------------------- ##
14403 ## Report this to pgsql-bugs@postgresql.org ##
14404 ## ---------------------------------------- ##
14406 ) | sed "s/^/$as_me: WARNING: /" >&2
14409 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14410 $as_echo_n "checking for $ac_header... " >&6; }
14411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14412 $as_echo_n "(cached) " >&6
14414 eval "$as_ac_Header=\$ac_header_preproc"
14416 ac_res=`eval 'as_val=${'$as_ac_Header'}
14417 $as_echo "$as_val"'`
14418 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14419 $as_echo "$ac_res" >&6; }
14422 as_val=`eval 'as_val=${'$as_ac_Header'}
14423 $as_echo "$as_val"'`
14424 if test "x$as_val" = x""yes; then
14425 cat >>confdefs.h <<_ACEOF
14426 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14432 for ac_header in uuid.h
14434 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14436 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14437 $as_echo_n "checking for $ac_header... " >&6; }
14438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14439 $as_echo_n "(cached) " >&6
14441 ac_res=`eval 'as_val=${'$as_ac_Header'}
14442 $as_echo "$as_val"'`
14443 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14444 $as_echo "$ac_res" >&6; }
14446 # Is the header compilable?
14447 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14448 $as_echo_n "checking $ac_header usability... " >&6; }
14449 cat >conftest.$ac_ext <<_ACEOF
14452 cat confdefs.h >>conftest.$ac_ext
14453 cat >>conftest.$ac_ext <<_ACEOF
14454 /* end confdefs.h. */
14455 $ac_includes_default
14456 #include <$ac_header>
14458 rm -f conftest.$ac_objext
14459 if { (ac_try="$ac_compile"
14460 case "(($ac_try" in
14461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14462 *) ac_try_echo=$ac_try;;
14464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14465 $as_echo "$ac_try_echo") >&5
14466 (eval "$ac_compile") 2>conftest.er1
14468 grep -v '^ *+' conftest.er1 >conftest.err
14470 cat conftest.err >&5
14471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); } && {
14473 test -z "$ac_c_werror_flag" ||
14474 test ! -s conftest.err
14475 } && test -s conftest.$ac_objext; then
14476 ac_header_compiler=yes
14478 $as_echo "$as_me: failed program was:" >&5
14479 sed 's/^/| /' conftest.$ac_ext >&5
14481 ac_header_compiler=no
14484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14485 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14486 $as_echo "$ac_header_compiler" >&6; }
14488 # Is the header present?
14489 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14490 $as_echo_n "checking $ac_header presence... " >&6; }
14491 cat >conftest.$ac_ext <<_ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h. */
14497 #include <$ac_header>
14499 if { (ac_try="$ac_cpp conftest.$ac_ext"
14500 case "(($ac_try" in
14501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14502 *) ac_try_echo=$ac_try;;
14504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14505 $as_echo "$ac_try_echo") >&5
14506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14508 grep -v '^ *+' conftest.er1 >conftest.err
14510 cat conftest.err >&5
14511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); } >/dev/null && {
14513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14514 test ! -s conftest.err
14516 ac_header_preproc=yes
14518 $as_echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14521 ac_header_preproc=no
14524 rm -f conftest.err conftest.$ac_ext
14525 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14526 $as_echo "$ac_header_preproc" >&6; }
14528 # So? What about this header?
14529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14532 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14534 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14535 ac_header_preproc=yes
14538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14539 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14541 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14543 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14545 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14547 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14549 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14551 ## ---------------------------------------- ##
14552 ## Report this to pgsql-bugs@postgresql.org ##
14553 ## ---------------------------------------- ##
14555 ) | sed "s/^/$as_me: WARNING: /" >&2
14558 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14559 $as_echo_n "checking for $ac_header... " >&6; }
14560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14561 $as_echo_n "(cached) " >&6
14563 eval "$as_ac_Header=\$ac_header_preproc"
14565 ac_res=`eval 'as_val=${'$as_ac_Header'}
14566 $as_echo "$as_val"'`
14567 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14568 $as_echo "$ac_res" >&6; }
14571 as_val=`eval 'as_val=${'$as_ac_Header'}
14572 $as_echo "$as_val"'`
14573 if test "x$as_val" = x""yes; then
14574 cat >>confdefs.h <<_ACEOF
14575 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14579 { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14580 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14581 { (exit 1); exit 1; }; }
14592 if test "$PORTNAME" = "win32" ; then
14594 for ac_header in crtdefs.h
14596 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14598 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14599 $as_echo_n "checking for $ac_header... " >&6; }
14600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14601 $as_echo_n "(cached) " >&6
14603 ac_res=`eval 'as_val=${'$as_ac_Header'}
14604 $as_echo "$as_val"'`
14605 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14606 $as_echo "$ac_res" >&6; }
14608 # Is the header compilable?
14609 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14610 $as_echo_n "checking $ac_header usability... " >&6; }
14611 cat >conftest.$ac_ext <<_ACEOF
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h. */
14617 $ac_includes_default
14618 #include <$ac_header>
14620 rm -f conftest.$ac_objext
14621 if { (ac_try="$ac_compile"
14622 case "(($ac_try" in
14623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14624 *) ac_try_echo=$ac_try;;
14626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14627 $as_echo "$ac_try_echo") >&5
14628 (eval "$ac_compile") 2>conftest.er1
14630 grep -v '^ *+' conftest.er1 >conftest.err
14632 cat conftest.err >&5
14633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); } && {
14635 test -z "$ac_c_werror_flag" ||
14636 test ! -s conftest.err
14637 } && test -s conftest.$ac_objext; then
14638 ac_header_compiler=yes
14640 $as_echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14643 ac_header_compiler=no
14646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14647 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14648 $as_echo "$ac_header_compiler" >&6; }
14650 # Is the header present?
14651 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14652 $as_echo_n "checking $ac_header presence... " >&6; }
14653 cat >conftest.$ac_ext <<_ACEOF
14656 cat confdefs.h >>conftest.$ac_ext
14657 cat >>conftest.$ac_ext <<_ACEOF
14658 /* end confdefs.h. */
14659 #include <$ac_header>
14661 if { (ac_try="$ac_cpp conftest.$ac_ext"
14662 case "(($ac_try" in
14663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14664 *) ac_try_echo=$ac_try;;
14666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14667 $as_echo "$ac_try_echo") >&5
14668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14670 grep -v '^ *+' conftest.er1 >conftest.err
14672 cat conftest.err >&5
14673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); } >/dev/null && {
14675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14676 test ! -s conftest.err
14678 ac_header_preproc=yes
14680 $as_echo "$as_me: failed program was:" >&5
14681 sed 's/^/| /' conftest.$ac_ext >&5
14683 ac_header_preproc=no
14686 rm -f conftest.err conftest.$ac_ext
14687 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14688 $as_echo "$ac_header_preproc" >&6; }
14690 # So? What about this header?
14691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14694 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14696 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14697 ac_header_preproc=yes
14700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14701 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14703 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14705 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14707 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14709 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14711 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14713 ## ---------------------------------------- ##
14714 ## Report this to pgsql-bugs@postgresql.org ##
14715 ## ---------------------------------------- ##
14717 ) | sed "s/^/$as_me: WARNING: /" >&2
14720 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14721 $as_echo_n "checking for $ac_header... " >&6; }
14722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14723 $as_echo_n "(cached) " >&6
14725 eval "$as_ac_Header=\$ac_header_preproc"
14727 ac_res=`eval 'as_val=${'$as_ac_Header'}
14728 $as_echo "$as_val"'`
14729 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14730 $as_echo "$ac_res" >&6; }
14733 as_val=`eval 'as_val=${'$as_ac_Header'}
14734 $as_echo "$as_val"'`
14735 if test "x$as_val" = x""yes; then
14736 cat >>confdefs.h <<_ACEOF
14737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14747 ## Types, structures, compiler characteristics
14751 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14752 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14753 if test "${ac_cv_c_bigendian+set}" = set; then
14754 $as_echo_n "(cached) " >&6
14756 ac_cv_c_bigendian=unknown
14757 # See if we're dealing with a universal compiler.
14758 cat >conftest.$ac_ext <<_ACEOF
14761 cat confdefs.h >>conftest.$ac_ext
14762 cat >>conftest.$ac_ext <<_ACEOF
14763 /* end confdefs.h. */
14764 #ifndef __APPLE_CC__
14765 not a universal capable compiler
14770 rm -f conftest.$ac_objext
14771 if { (ac_try="$ac_compile"
14772 case "(($ac_try" in
14773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14774 *) ac_try_echo=$ac_try;;
14776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14777 $as_echo "$ac_try_echo") >&5
14778 (eval "$ac_compile") 2>conftest.er1
14780 grep -v '^ *+' conftest.er1 >conftest.err
14782 cat conftest.err >&5
14783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); } && {
14785 test -z "$ac_c_werror_flag" ||
14786 test ! -s conftest.err
14787 } && test -s conftest.$ac_objext; then
14789 # Check for potential -arch flags. It is not universal unless
14790 # there are some -arch flags. Note that *ppc* also matches
14791 # ppc64. This check is also rather less than ideal.
14792 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14793 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14796 $as_echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14803 if test $ac_cv_c_bigendian = unknown; then
14804 # See if sys/param.h defines the BYTE_ORDER macro.
14805 cat >conftest.$ac_ext <<_ACEOF
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h. */
14811 #include <sys/types.h>
14812 #include <sys/param.h>
14817 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14818 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14820 bogus endian macros
14827 rm -f conftest.$ac_objext
14828 if { (ac_try="$ac_compile"
14829 case "(($ac_try" in
14830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831 *) ac_try_echo=$ac_try;;
14833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14834 $as_echo "$ac_try_echo") >&5
14835 (eval "$ac_compile") 2>conftest.er1
14837 grep -v '^ *+' conftest.er1 >conftest.err
14839 cat conftest.err >&5
14840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } && {
14842 test -z "$ac_c_werror_flag" ||
14843 test ! -s conftest.err
14844 } && test -s conftest.$ac_objext; then
14845 # It does; now see whether it defined to BIG_ENDIAN or not.
14846 cat >conftest.$ac_ext <<_ACEOF
14849 cat confdefs.h >>conftest.$ac_ext
14850 cat >>conftest.$ac_ext <<_ACEOF
14851 /* end confdefs.h. */
14852 #include <sys/types.h>
14853 #include <sys/param.h>
14858 #if BYTE_ORDER != BIG_ENDIAN
14866 rm -f conftest.$ac_objext
14867 if { (ac_try="$ac_compile"
14868 case "(($ac_try" in
14869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14870 *) ac_try_echo=$ac_try;;
14872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14873 $as_echo "$ac_try_echo") >&5
14874 (eval "$ac_compile") 2>conftest.er1
14876 grep -v '^ *+' conftest.er1 >conftest.err
14878 cat conftest.err >&5
14879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } && {
14881 test -z "$ac_c_werror_flag" ||
14882 test ! -s conftest.err
14883 } && test -s conftest.$ac_objext; then
14884 ac_cv_c_bigendian=yes
14886 $as_echo "$as_me: failed program was:" >&5
14887 sed 's/^/| /' conftest.$ac_ext >&5
14889 ac_cv_c_bigendian=no
14892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14894 $as_echo "$as_me: failed program was:" >&5
14895 sed 's/^/| /' conftest.$ac_ext >&5
14900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14902 if test $ac_cv_c_bigendian = unknown; then
14903 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14904 cat >conftest.$ac_ext <<_ACEOF
14907 cat confdefs.h >>conftest.$ac_ext
14908 cat >>conftest.$ac_ext <<_ACEOF
14909 /* end confdefs.h. */
14910 #include <limits.h>
14915 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14916 bogus endian macros
14923 rm -f conftest.$ac_objext
14924 if { (ac_try="$ac_compile"
14925 case "(($ac_try" in
14926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14927 *) ac_try_echo=$ac_try;;
14929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14930 $as_echo "$ac_try_echo") >&5
14931 (eval "$ac_compile") 2>conftest.er1
14933 grep -v '^ *+' conftest.er1 >conftest.err
14935 cat conftest.err >&5
14936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); } && {
14938 test -z "$ac_c_werror_flag" ||
14939 test ! -s conftest.err
14940 } && test -s conftest.$ac_objext; then
14941 # It does; now see whether it defined to _BIG_ENDIAN or not.
14942 cat >conftest.$ac_ext <<_ACEOF
14945 cat confdefs.h >>conftest.$ac_ext
14946 cat >>conftest.$ac_ext <<_ACEOF
14947 /* end confdefs.h. */
14948 #include <limits.h>
14953 #ifndef _BIG_ENDIAN
14961 rm -f conftest.$ac_objext
14962 if { (ac_try="$ac_compile"
14963 case "(($ac_try" in
14964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965 *) ac_try_echo=$ac_try;;
14967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14968 $as_echo "$ac_try_echo") >&5
14969 (eval "$ac_compile") 2>conftest.er1
14971 grep -v '^ *+' conftest.er1 >conftest.err
14973 cat conftest.err >&5
14974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } && {
14976 test -z "$ac_c_werror_flag" ||
14977 test ! -s conftest.err
14978 } && test -s conftest.$ac_objext; then
14979 ac_cv_c_bigendian=yes
14981 $as_echo "$as_me: failed program was:" >&5
14982 sed 's/^/| /' conftest.$ac_ext >&5
14984 ac_cv_c_bigendian=no
14987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14989 $as_echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.$ac_ext >&5
14995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14997 if test $ac_cv_c_bigendian = unknown; then
14998 # Compile a test program.
14999 if test "$cross_compiling" = yes; then
15000 # Try to guess by grepping values from an object file.
15001 cat >conftest.$ac_ext <<_ACEOF
15004 cat confdefs.h >>conftest.$ac_ext
15005 cat >>conftest.$ac_ext <<_ACEOF
15006 /* end confdefs.h. */
15007 short int ascii_mm[] =
15008 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15009 short int ascii_ii[] =
15010 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15011 int use_ascii (int i) {
15012 return ascii_mm[i] + ascii_ii[i];
15014 short int ebcdic_ii[] =
15015 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15016 short int ebcdic_mm[] =
15017 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15018 int use_ebcdic (int i) {
15019 return ebcdic_mm[i] + ebcdic_ii[i];
15026 return use_ascii (foo) == use_ebcdic (foo);
15031 rm -f conftest.$ac_objext
15032 if { (ac_try="$ac_compile"
15033 case "(($ac_try" in
15034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035 *) ac_try_echo=$ac_try;;
15037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15038 $as_echo "$ac_try_echo") >&5
15039 (eval "$ac_compile") 2>conftest.er1
15041 grep -v '^ *+' conftest.er1 >conftest.err
15043 cat conftest.err >&5
15044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); } && {
15046 test -z "$ac_c_werror_flag" ||
15047 test ! -s conftest.err
15048 } && test -s conftest.$ac_objext; then
15049 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15050 ac_cv_c_bigendian=yes
15052 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15053 if test "$ac_cv_c_bigendian" = unknown; then
15054 ac_cv_c_bigendian=no
15056 # finding both strings is unlikely to happen, but who knows?
15057 ac_cv_c_bigendian=unknown
15061 $as_echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15069 cat >conftest.$ac_ext <<_ACEOF
15072 cat confdefs.h >>conftest.$ac_ext
15073 cat >>conftest.$ac_ext <<_ACEOF
15074 /* end confdefs.h. */
15075 $ac_includes_default
15080 /* Are we little or big endian? From Harbison&Steele. */
15084 char c[sizeof (long int)];
15087 return u.c[sizeof (long int) - 1] == 1;
15093 rm -f conftest$ac_exeext
15094 if { (ac_try="$ac_link"
15095 case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15100 $as_echo "$ac_try_echo") >&5
15101 (eval "$ac_link") 2>&5
15103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15105 { (case "(($ac_try" in
15106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107 *) ac_try_echo=$ac_try;;
15109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15110 $as_echo "$ac_try_echo") >&5
15111 (eval "$ac_try") 2>&5
15113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); }; }; then
15115 ac_cv_c_bigendian=no
15117 $as_echo "$as_me: program exited with status $ac_status" >&5
15118 $as_echo "$as_me: failed program was:" >&5
15119 sed 's/^/| /' conftest.$ac_ext >&5
15121 ( exit $ac_status )
15122 ac_cv_c_bigendian=yes
15124 rm -rf conftest.dSYM
15125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15131 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15132 $as_echo "$ac_cv_c_bigendian" >&6; }
15133 case $ac_cv_c_bigendian in #(
15135 cat >>confdefs.h <<\_ACEOF
15136 #define WORDS_BIGENDIAN 1
15143 cat >>confdefs.h <<\_ACEOF
15144 #define AC_APPLE_UNIVERSAL_BUILD 1
15149 { { $as_echo "$as_me:$LINENO: error: unknown endianness
15150 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15151 $as_echo "$as_me: error: unknown endianness
15152 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15153 { (exit 1); exit 1; }; } ;;
15156 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15157 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15158 if test "${ac_cv_c_const+set}" = set; then
15159 $as_echo_n "(cached) " >&6
15161 cat >conftest.$ac_ext <<_ACEOF
15164 cat confdefs.h >>conftest.$ac_ext
15165 cat >>conftest.$ac_ext <<_ACEOF
15166 /* end confdefs.h. */
15171 /* FIXME: Include the comments suggested by Paul. */
15172 #ifndef __cplusplus
15173 /* Ultrix mips cc rejects this. */
15174 typedef int charset[2];
15176 /* SunOS 4.1.1 cc rejects this. */
15177 char const *const *pcpcc;
15179 /* NEC SVR4.0.2 mips cc rejects this. */
15180 struct point {int x, y;};
15181 static struct point const zero = {0,0};
15182 /* AIX XL C 1.02.0.0 rejects this.
15183 It does not let you subtract one const X* pointer from another in
15184 an arm of an if-expression whose if-part is not a constant
15186 const char *g = "string";
15187 pcpcc = &g + (g ? g-g : 0);
15188 /* HPUX 7.0 cc rejects these. */
15190 ppc = (char**) pcpcc;
15191 pcpcc = (char const *const *) ppc;
15192 { /* SCO 3.2v4 cc rejects this. */
15194 char const *s = 0 ? (char *) 0 : (char const *) 0;
15199 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15200 int x[] = {25, 17};
15201 const int *foo = &x[0];
15204 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15205 typedef const int *iptr;
15209 { /* AIX XL C 1.02.0.0 rejects this saying
15210 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15211 struct s { int j; const int *ap[3]; };
15212 struct s *b; b->j = 5;
15214 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15215 const int foo = 10;
15216 if (!foo) return 0;
15218 return !cs[0] && !zero.x;
15225 rm -f conftest.$ac_objext
15226 if { (ac_try="$ac_compile"
15227 case "(($ac_try" in
15228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15229 *) ac_try_echo=$ac_try;;
15231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15232 $as_echo "$ac_try_echo") >&5
15233 (eval "$ac_compile") 2>conftest.er1
15235 grep -v '^ *+' conftest.er1 >conftest.err
15237 cat conftest.err >&5
15238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); } && {
15240 test -z "$ac_c_werror_flag" ||
15241 test ! -s conftest.err
15242 } && test -s conftest.$ac_objext; then
15245 $as_echo "$as_me: failed program was:" >&5
15246 sed 's/^/| /' conftest.$ac_ext >&5
15251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15253 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15254 $as_echo "$ac_cv_c_const" >&6; }
15255 if test $ac_cv_c_const = no; then
15257 cat >>confdefs.h <<\_ACEOF
15263 { $as_echo "$as_me:$LINENO: checking for inline" >&5
15264 $as_echo_n "checking for inline... " >&6; }
15265 if test "${ac_cv_c_inline+set}" = set; then
15266 $as_echo_n "(cached) " >&6
15269 for ac_kw in inline __inline__ __inline; do
15270 cat >conftest.$ac_ext <<_ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h. */
15276 #ifndef __cplusplus
15278 static $ac_kw foo_t static_foo () {return 0; }
15279 $ac_kw foo_t foo () {return 0; }
15283 rm -f conftest.$ac_objext
15284 if { (ac_try="$ac_compile"
15285 case "(($ac_try" in
15286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15287 *) ac_try_echo=$ac_try;;
15289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15290 $as_echo "$ac_try_echo") >&5
15291 (eval "$ac_compile") 2>conftest.er1
15293 grep -v '^ *+' conftest.er1 >conftest.err
15295 cat conftest.err >&5
15296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); } && {
15298 test -z "$ac_c_werror_flag" ||
15299 test ! -s conftest.err
15300 } && test -s conftest.$ac_objext; then
15301 ac_cv_c_inline=$ac_kw
15303 $as_echo "$as_me: failed program was:" >&5
15304 sed 's/^/| /' conftest.$ac_ext >&5
15309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15310 test "$ac_cv_c_inline" != no && break
15314 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15315 $as_echo "$ac_cv_c_inline" >&6; }
15318 case $ac_cv_c_inline in
15321 case $ac_cv_c_inline in
15323 *) ac_val=$ac_cv_c_inline;;
15325 cat >>confdefs.h <<_ACEOF
15326 #ifndef __cplusplus
15327 #define inline $ac_val
15333 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
15334 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
15335 if test "${pgac_cv_c_inline_quietly+set}" = set; then
15336 $as_echo_n "(cached) " >&6
15338 pgac_cv_c_inline_quietly=no
15339 if test "$ac_cv_c_inline" != no; then
15340 pgac_c_inline_save_werror=$ac_c_werror_flag
15341 ac_c_werror_flag=yes
15342 cat >conftest.$ac_ext <<_ACEOF
15345 cat confdefs.h >>conftest.$ac_ext
15346 cat >>conftest.$ac_ext <<_ACEOF
15347 /* end confdefs.h. */
15348 static inline int fun () {return 0;}
15357 rm -f conftest.$ac_objext conftest$ac_exeext
15358 if { (ac_try="$ac_link"
15359 case "(($ac_try" in
15360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15361 *) ac_try_echo=$ac_try;;
15363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15364 $as_echo "$ac_try_echo") >&5
15365 (eval "$ac_link") 2>conftest.er1
15367 grep -v '^ *+' conftest.er1 >conftest.err
15369 cat conftest.err >&5
15370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } && {
15372 test -z "$ac_c_werror_flag" ||
15373 test ! -s conftest.err
15374 } && test -s conftest$ac_exeext && {
15375 test "$cross_compiling" = yes ||
15376 $as_test_x conftest$ac_exeext
15378 pgac_cv_c_inline_quietly=yes
15380 $as_echo "$as_me: failed program was:" >&5
15381 sed 's/^/| /' conftest.$ac_ext >&5
15386 rm -rf conftest.dSYM
15387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15388 conftest$ac_exeext conftest.$ac_ext
15389 ac_c_werror_flag=$pgac_c_inline_save_werror
15392 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
15393 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
15394 if test "$pgac_cv_c_inline_quietly" != no; then
15396 cat >>confdefs.h <<_ACEOF
15397 #define PG_USE_INLINE 1
15402 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
15403 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
15404 if test "${ac_cv_c_stringize+set}" = set; then
15405 $as_echo_n "(cached) " >&6
15407 cat >conftest.$ac_ext <<_ACEOF
15410 cat confdefs.h >>conftest.$ac_ext
15411 cat >>conftest.$ac_ext <<_ACEOF
15412 /* end confdefs.h. */
15415 char *s = x(teststring);
15417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15418 $EGREP "#teststring" >/dev/null 2>&1; then
15419 ac_cv_c_stringize=no
15421 ac_cv_c_stringize=yes
15426 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
15427 $as_echo "$ac_cv_c_stringize" >&6; }
15428 if test $ac_cv_c_stringize = yes; then
15430 cat >>confdefs.h <<\_ACEOF
15431 #define HAVE_STRINGIZE 1
15437 { $as_echo "$as_me:$LINENO: checking for flexible array members" >&5
15438 $as_echo_n "checking for flexible array members... " >&6; }
15439 if test "${ac_cv_c_flexmember+set}" = set; then
15440 $as_echo_n "(cached) " >&6
15442 cat >conftest.$ac_ext <<_ACEOF
15445 cat confdefs.h >>conftest.$ac_ext
15446 cat >>conftest.$ac_ext <<_ACEOF
15447 /* end confdefs.h. */
15448 #include <stdlib.h>
15450 #include <stddef.h>
15451 struct s { int n; double d[]; };
15455 int m = getchar ();
15456 struct s *p = malloc (offsetof (struct s, d)
15457 + m * sizeof (double));
15459 return p->d != (double *) NULL;
15464 rm -f conftest.$ac_objext
15465 if { (ac_try="$ac_compile"
15466 case "(($ac_try" in
15467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15468 *) ac_try_echo=$ac_try;;
15470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15471 $as_echo "$ac_try_echo") >&5
15472 (eval "$ac_compile") 2>conftest.er1
15474 grep -v '^ *+' conftest.er1 >conftest.err
15476 cat conftest.err >&5
15477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } && {
15479 test -z "$ac_c_werror_flag" ||
15480 test ! -s conftest.err
15481 } && test -s conftest.$ac_objext; then
15482 ac_cv_c_flexmember=yes
15484 $as_echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.$ac_ext >&5
15487 ac_cv_c_flexmember=no
15490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15492 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
15493 $as_echo "$ac_cv_c_flexmember" >&6; }
15494 if test $ac_cv_c_flexmember = yes; then
15496 cat >>confdefs.h <<\_ACEOF
15497 #define FLEXIBLE_ARRAY_MEMBER /**/
15501 cat >>confdefs.h <<\_ACEOF
15502 #define FLEXIBLE_ARRAY_MEMBER 1
15507 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
15508 $as_echo_n "checking for signed types... " >&6; }
15509 if test "${pgac_cv_c_signed+set}" = set; then
15510 $as_echo_n "(cached) " >&6
15512 cat >conftest.$ac_ext <<_ACEOF
15515 cat confdefs.h >>conftest.$ac_ext
15516 cat >>conftest.$ac_ext <<_ACEOF
15517 /* end confdefs.h. */
15522 signed char c; signed short s; signed int i;
15527 rm -f conftest.$ac_objext
15528 if { (ac_try="$ac_compile"
15529 case "(($ac_try" in
15530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531 *) ac_try_echo=$ac_try;;
15533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15534 $as_echo "$ac_try_echo") >&5
15535 (eval "$ac_compile") 2>conftest.er1
15537 grep -v '^ *+' conftest.er1 >conftest.err
15539 cat conftest.err >&5
15540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); } && {
15542 test -z "$ac_c_werror_flag" ||
15543 test ! -s conftest.err
15544 } && test -s conftest.$ac_objext; then
15545 pgac_cv_c_signed=yes
15547 $as_echo "$as_me: failed program was:" >&5
15548 sed 's/^/| /' conftest.$ac_ext >&5
15550 pgac_cv_c_signed=no
15553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15555 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
15556 $as_echo "$pgac_cv_c_signed" >&6; }
15557 if test x"$pgac_cv_c_signed" = xno ; then
15559 cat >>confdefs.h <<\_ACEOF
15560 #define signed /**/
15564 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
15565 $as_echo_n "checking for working volatile... " >&6; }
15566 if test "${ac_cv_c_volatile+set}" = set; then
15567 $as_echo_n "(cached) " >&6
15569 cat >conftest.$ac_ext <<_ACEOF
15572 cat confdefs.h >>conftest.$ac_ext
15573 cat >>conftest.$ac_ext <<_ACEOF
15574 /* end confdefs.h. */
15581 int * volatile y = (int *) 0;
15587 rm -f conftest.$ac_objext
15588 if { (ac_try="$ac_compile"
15589 case "(($ac_try" in
15590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591 *) ac_try_echo=$ac_try;;
15593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15594 $as_echo "$ac_try_echo") >&5
15595 (eval "$ac_compile") 2>conftest.er1
15597 grep -v '^ *+' conftest.er1 >conftest.err
15599 cat conftest.err >&5
15600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); } && {
15602 test -z "$ac_c_werror_flag" ||
15603 test ! -s conftest.err
15604 } && test -s conftest.$ac_objext; then
15605 ac_cv_c_volatile=yes
15607 $as_echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15610 ac_cv_c_volatile=no
15613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15615 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
15616 $as_echo "$ac_cv_c_volatile" >&6; }
15617 if test $ac_cv_c_volatile = no; then
15619 cat >>confdefs.h <<\_ACEOF
15620 #define volatile /**/
15625 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
15626 $as_echo_n "checking for __func__... " >&6; }
15627 if test "${pgac_cv_funcname_func_support+set}" = set; then
15628 $as_echo_n "(cached) " >&6
15630 cat >conftest.$ac_ext <<_ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15640 printf("%s\n", __func__);
15645 rm -f conftest.$ac_objext
15646 if { (ac_try="$ac_compile"
15647 case "(($ac_try" in
15648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15649 *) ac_try_echo=$ac_try;;
15651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15652 $as_echo "$ac_try_echo") >&5
15653 (eval "$ac_compile") 2>conftest.er1
15655 grep -v '^ *+' conftest.er1 >conftest.err
15657 cat conftest.err >&5
15658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); } && {
15660 test -z "$ac_c_werror_flag" ||
15661 test ! -s conftest.err
15662 } && test -s conftest.$ac_objext; then
15663 pgac_cv_funcname_func_support=yes
15665 $as_echo "$as_me: failed program was:" >&5
15666 sed 's/^/| /' conftest.$ac_ext >&5
15668 pgac_cv_funcname_func_support=no
15671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15673 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15674 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15675 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15677 cat >>confdefs.h <<\_ACEOF
15678 #define HAVE_FUNCNAME__FUNC 1
15682 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15683 $as_echo_n "checking for __FUNCTION__... " >&6; }
15684 if test "${pgac_cv_funcname_function_support+set}" = set; then
15685 $as_echo_n "(cached) " >&6
15687 cat >conftest.$ac_ext <<_ACEOF
15690 cat confdefs.h >>conftest.$ac_ext
15691 cat >>conftest.$ac_ext <<_ACEOF
15692 /* end confdefs.h. */
15697 printf("%s\n", __FUNCTION__);
15702 rm -f conftest.$ac_objext
15703 if { (ac_try="$ac_compile"
15704 case "(($ac_try" in
15705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15706 *) ac_try_echo=$ac_try;;
15708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15709 $as_echo "$ac_try_echo") >&5
15710 (eval "$ac_compile") 2>conftest.er1
15712 grep -v '^ *+' conftest.er1 >conftest.err
15714 cat conftest.err >&5
15715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); } && {
15717 test -z "$ac_c_werror_flag" ||
15718 test ! -s conftest.err
15719 } && test -s conftest.$ac_objext; then
15720 pgac_cv_funcname_function_support=yes
15722 $as_echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.$ac_ext >&5
15725 pgac_cv_funcname_function_support=no
15728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15730 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15731 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15732 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15734 cat >>confdefs.h <<\_ACEOF
15735 #define HAVE_FUNCNAME__FUNCTION 1
15740 { $as_echo "$as_me:$LINENO: checking for _Static_assert" >&5
15741 $as_echo_n "checking for _Static_assert... " >&6; }
15742 if test "${pgac_cv__static_assert+set}" = set; then
15743 $as_echo_n "(cached) " >&6
15745 cat >conftest.$ac_ext <<_ACEOF
15748 cat confdefs.h >>conftest.$ac_ext
15749 cat >>conftest.$ac_ext <<_ACEOF
15750 /* end confdefs.h. */
15755 ({ _Static_assert(1, "foo"); })
15760 rm -f conftest.$ac_objext conftest$ac_exeext
15761 if { (ac_try="$ac_link"
15762 case "(($ac_try" in
15763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15764 *) ac_try_echo=$ac_try;;
15766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15767 $as_echo "$ac_try_echo") >&5
15768 (eval "$ac_link") 2>conftest.er1
15770 grep -v '^ *+' conftest.er1 >conftest.err
15772 cat conftest.err >&5
15773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } && {
15775 test -z "$ac_c_werror_flag" ||
15776 test ! -s conftest.err
15777 } && test -s conftest$ac_exeext && {
15778 test "$cross_compiling" = yes ||
15779 $as_test_x conftest$ac_exeext
15781 pgac_cv__static_assert=yes
15783 $as_echo "$as_me: failed program was:" >&5
15784 sed 's/^/| /' conftest.$ac_ext >&5
15786 pgac_cv__static_assert=no
15789 rm -rf conftest.dSYM
15790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15791 conftest$ac_exeext conftest.$ac_ext
15793 { $as_echo "$as_me:$LINENO: result: $pgac_cv__static_assert" >&5
15794 $as_echo "$pgac_cv__static_assert" >&6; }
15795 if test x"$pgac_cv__static_assert" = xyes ; then
15797 cat >>confdefs.h <<\_ACEOF
15798 #define HAVE__STATIC_ASSERT 1
15802 { $as_echo "$as_me:$LINENO: checking for __builtin_types_compatible_p" >&5
15803 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
15804 if test "${pgac_cv__types_compatible+set}" = set; then
15805 $as_echo_n "(cached) " >&6
15807 cat >conftest.$ac_ext <<_ACEOF
15810 cat confdefs.h >>conftest.$ac_ext
15811 cat >>conftest.$ac_ext <<_ACEOF
15812 /* end confdefs.h. */
15817 int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
15822 rm -f conftest.$ac_objext
15823 if { (ac_try="$ac_compile"
15824 case "(($ac_try" in
15825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826 *) ac_try_echo=$ac_try;;
15828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15829 $as_echo "$ac_try_echo") >&5
15830 (eval "$ac_compile") 2>conftest.er1
15832 grep -v '^ *+' conftest.er1 >conftest.err
15834 cat conftest.err >&5
15835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); } && {
15837 test -z "$ac_c_werror_flag" ||
15838 test ! -s conftest.err
15839 } && test -s conftest.$ac_objext; then
15840 pgac_cv__types_compatible=yes
15842 $as_echo "$as_me: failed program was:" >&5
15843 sed 's/^/| /' conftest.$ac_ext >&5
15845 pgac_cv__types_compatible=no
15848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15850 { $as_echo "$as_me:$LINENO: result: $pgac_cv__types_compatible" >&5
15851 $as_echo "$pgac_cv__types_compatible" >&6; }
15852 if test x"$pgac_cv__types_compatible" = xyes ; then
15854 cat >>confdefs.h <<\_ACEOF
15855 #define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1
15859 { $as_echo "$as_me:$LINENO: checking for __builtin_constant_p" >&5
15860 $as_echo_n "checking for __builtin_constant_p... " >&6; }
15861 if test "${pgac_cv__builtin_constant_p+set}" = set; then
15862 $as_echo_n "(cached) " >&6
15864 cat >conftest.$ac_ext <<_ACEOF
15867 cat confdefs.h >>conftest.$ac_ext
15868 cat >>conftest.$ac_ext <<_ACEOF
15869 /* end confdefs.h. */
15870 static int x; static int y[__builtin_constant_p(x) ? x : 1];
15879 rm -f conftest.$ac_objext
15880 if { (ac_try="$ac_compile"
15881 case "(($ac_try" in
15882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15883 *) ac_try_echo=$ac_try;;
15885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15886 $as_echo "$ac_try_echo") >&5
15887 (eval "$ac_compile") 2>conftest.er1
15889 grep -v '^ *+' conftest.er1 >conftest.err
15891 cat conftest.err >&5
15892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } && {
15894 test -z "$ac_c_werror_flag" ||
15895 test ! -s conftest.err
15896 } && test -s conftest.$ac_objext; then
15897 pgac_cv__builtin_constant_p=yes
15899 $as_echo "$as_me: failed program was:" >&5
15900 sed 's/^/| /' conftest.$ac_ext >&5
15902 pgac_cv__builtin_constant_p=no
15905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15907 { $as_echo "$as_me:$LINENO: result: $pgac_cv__builtin_constant_p" >&5
15908 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
15909 if test x"$pgac_cv__builtin_constant_p" = xyes ; then
15911 cat >>confdefs.h <<\_ACEOF
15912 #define HAVE__BUILTIN_CONSTANT_P 1
15916 { $as_echo "$as_me:$LINENO: checking for __builtin_unreachable" >&5
15917 $as_echo_n "checking for __builtin_unreachable... " >&6; }
15918 if test "${pgac_cv__builtin_unreachable+set}" = set; then
15919 $as_echo_n "(cached) " >&6
15921 cat >conftest.$ac_ext <<_ACEOF
15924 cat confdefs.h >>conftest.$ac_ext
15925 cat >>conftest.$ac_ext <<_ACEOF
15926 /* end confdefs.h. */
15931 __builtin_unreachable();
15936 rm -f conftest.$ac_objext conftest$ac_exeext
15937 if { (ac_try="$ac_link"
15938 case "(($ac_try" in
15939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940 *) ac_try_echo=$ac_try;;
15942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15943 $as_echo "$ac_try_echo") >&5
15944 (eval "$ac_link") 2>conftest.er1
15946 grep -v '^ *+' conftest.er1 >conftest.err
15948 cat conftest.err >&5
15949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } && {
15951 test -z "$ac_c_werror_flag" ||
15952 test ! -s conftest.err
15953 } && test -s conftest$ac_exeext && {
15954 test "$cross_compiling" = yes ||
15955 $as_test_x conftest$ac_exeext
15957 pgac_cv__builtin_unreachable=yes
15959 $as_echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15962 pgac_cv__builtin_unreachable=no
15965 rm -rf conftest.dSYM
15966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15967 conftest$ac_exeext conftest.$ac_ext
15969 { $as_echo "$as_me:$LINENO: result: $pgac_cv__builtin_unreachable" >&5
15970 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
15971 if test x"$pgac_cv__builtin_unreachable" = xyes ; then
15973 cat >>confdefs.h <<\_ACEOF
15974 #define HAVE__BUILTIN_UNREACHABLE 1
15978 { $as_echo "$as_me:$LINENO: checking for __VA_ARGS__" >&5
15979 $as_echo_n "checking for __VA_ARGS__... " >&6; }
15980 if test "${pgac_cv__va_args+set}" = set; then
15981 $as_echo_n "(cached) " >&6
15983 cat >conftest.$ac_ext <<_ACEOF
15986 cat confdefs.h >>conftest.$ac_ext
15987 cat >>conftest.$ac_ext <<_ACEOF
15988 /* end confdefs.h. */
15993 #define debug(...) fprintf(stderr, __VA_ARGS__)
15994 debug("%s", "blarg");
16000 rm -f conftest.$ac_objext
16001 if { (ac_try="$ac_compile"
16002 case "(($ac_try" in
16003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004 *) ac_try_echo=$ac_try;;
16006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16007 $as_echo "$ac_try_echo") >&5
16008 (eval "$ac_compile") 2>conftest.er1
16010 grep -v '^ *+' conftest.er1 >conftest.err
16012 cat conftest.err >&5
16013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); } && {
16015 test -z "$ac_c_werror_flag" ||
16016 test ! -s conftest.err
16017 } && test -s conftest.$ac_objext; then
16018 pgac_cv__va_args=yes
16020 $as_echo "$as_me: failed program was:" >&5
16021 sed 's/^/| /' conftest.$ac_ext >&5
16023 pgac_cv__va_args=no
16026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16028 { $as_echo "$as_me:$LINENO: result: $pgac_cv__va_args" >&5
16029 $as_echo "$pgac_cv__va_args" >&6; }
16030 if test x"$pgac_cv__va_args" = xyes ; then
16032 cat >>confdefs.h <<\_ACEOF
16033 #define HAVE__VA_ARGS 1
16037 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16038 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
16039 if test "${ac_cv_struct_tm+set}" = set; then
16040 $as_echo_n "(cached) " >&6
16042 cat >conftest.$ac_ext <<_ACEOF
16045 cat confdefs.h >>conftest.$ac_ext
16046 cat >>conftest.$ac_ext <<_ACEOF
16047 /* end confdefs.h. */
16048 #include <sys/types.h>
16055 int *p = &tm.tm_sec;
16061 rm -f conftest.$ac_objext
16062 if { (ac_try="$ac_compile"
16063 case "(($ac_try" in
16064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065 *) ac_try_echo=$ac_try;;
16067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16068 $as_echo "$ac_try_echo") >&5
16069 (eval "$ac_compile") 2>conftest.er1
16071 grep -v '^ *+' conftest.er1 >conftest.err
16073 cat conftest.err >&5
16074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } && {
16076 test -z "$ac_c_werror_flag" ||
16077 test ! -s conftest.err
16078 } && test -s conftest.$ac_objext; then
16079 ac_cv_struct_tm=time.h
16081 $as_echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16084 ac_cv_struct_tm=sys/time.h
16087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16089 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16090 $as_echo "$ac_cv_struct_tm" >&6; }
16091 if test $ac_cv_struct_tm = sys/time.h; then
16093 cat >>confdefs.h <<\_ACEOF
16094 #define TM_IN_SYS_TIME 1
16099 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16100 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
16101 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16102 $as_echo_n "(cached) " >&6
16104 cat >conftest.$ac_ext <<_ACEOF
16107 cat confdefs.h >>conftest.$ac_ext
16108 cat >>conftest.$ac_ext <<_ACEOF
16109 /* end confdefs.h. */
16110 #include <sys/types.h>
16111 #include <$ac_cv_struct_tm>
16117 static struct tm ac_aggr;
16118 if (ac_aggr.tm_zone)
16124 rm -f conftest.$ac_objext
16125 if { (ac_try="$ac_compile"
16126 case "(($ac_try" in
16127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16128 *) ac_try_echo=$ac_try;;
16130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16131 $as_echo "$ac_try_echo") >&5
16132 (eval "$ac_compile") 2>conftest.er1
16134 grep -v '^ *+' conftest.er1 >conftest.err
16136 cat conftest.err >&5
16137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); } && {
16139 test -z "$ac_c_werror_flag" ||
16140 test ! -s conftest.err
16141 } && test -s conftest.$ac_objext; then
16142 ac_cv_member_struct_tm_tm_zone=yes
16144 $as_echo "$as_me: failed program was:" >&5
16145 sed 's/^/| /' conftest.$ac_ext >&5
16147 cat >conftest.$ac_ext <<_ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h. */
16153 #include <sys/types.h>
16154 #include <$ac_cv_struct_tm>
16160 static struct tm ac_aggr;
16161 if (sizeof ac_aggr.tm_zone)
16167 rm -f conftest.$ac_objext
16168 if { (ac_try="$ac_compile"
16169 case "(($ac_try" in
16170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16171 *) ac_try_echo=$ac_try;;
16173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16174 $as_echo "$ac_try_echo") >&5
16175 (eval "$ac_compile") 2>conftest.er1
16177 grep -v '^ *+' conftest.er1 >conftest.err
16179 cat conftest.err >&5
16180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181 (exit $ac_status); } && {
16182 test -z "$ac_c_werror_flag" ||
16183 test ! -s conftest.err
16184 } && test -s conftest.$ac_objext; then
16185 ac_cv_member_struct_tm_tm_zone=yes
16187 $as_echo "$as_me: failed program was:" >&5
16188 sed 's/^/| /' conftest.$ac_ext >&5
16190 ac_cv_member_struct_tm_tm_zone=no
16193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16198 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16199 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
16200 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
16202 cat >>confdefs.h <<_ACEOF
16203 #define HAVE_STRUCT_TM_TM_ZONE 1
16209 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16211 cat >>confdefs.h <<\_ACEOF
16212 #define HAVE_TM_ZONE 1
16216 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
16217 $as_echo_n "checking for tzname... " >&6; }
16218 if test "${ac_cv_var_tzname+set}" = set; then
16219 $as_echo_n "(cached) " >&6
16221 cat >conftest.$ac_ext <<_ACEOF
16224 cat confdefs.h >>conftest.$ac_ext
16225 cat >>conftest.$ac_ext <<_ACEOF
16226 /* end confdefs.h. */
16228 #ifndef tzname /* For SGI. */
16229 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
16240 rm -f conftest.$ac_objext conftest$ac_exeext
16241 if { (ac_try="$ac_link"
16242 case "(($ac_try" in
16243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16244 *) ac_try_echo=$ac_try;;
16246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16247 $as_echo "$ac_try_echo") >&5
16248 (eval "$ac_link") 2>conftest.er1
16250 grep -v '^ *+' conftest.er1 >conftest.err
16252 cat conftest.err >&5
16253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } && {
16255 test -z "$ac_c_werror_flag" ||
16256 test ! -s conftest.err
16257 } && test -s conftest$ac_exeext && {
16258 test "$cross_compiling" = yes ||
16259 $as_test_x conftest$ac_exeext
16261 ac_cv_var_tzname=yes
16263 $as_echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16266 ac_cv_var_tzname=no
16269 rm -rf conftest.dSYM
16270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16271 conftest$ac_exeext conftest.$ac_ext
16273 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
16274 $as_echo "$ac_cv_var_tzname" >&6; }
16275 if test $ac_cv_var_tzname = yes; then
16277 cat >>confdefs.h <<\_ACEOF
16278 #define HAVE_TZNAME 1
16283 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
16284 $as_echo_n "checking for union semun... " >&6; }
16285 if test "${ac_cv_type_union_semun+set}" = set; then
16286 $as_echo_n "(cached) " >&6
16288 ac_cv_type_union_semun=no
16289 cat >conftest.$ac_ext <<_ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h. */
16295 #include <sys/types.h>
16296 #include <sys/ipc.h>
16297 #include <sys/sem.h>
16302 if (sizeof (union semun))
16308 rm -f conftest.$ac_objext
16309 if { (ac_try="$ac_compile"
16310 case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16315 $as_echo "$ac_try_echo") >&5
16316 (eval "$ac_compile") 2>conftest.er1
16318 grep -v '^ *+' conftest.er1 >conftest.err
16320 cat conftest.err >&5
16321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); } && {
16323 test -z "$ac_c_werror_flag" ||
16324 test ! -s conftest.err
16325 } && test -s conftest.$ac_objext; then
16326 cat >conftest.$ac_ext <<_ACEOF
16329 cat confdefs.h >>conftest.$ac_ext
16330 cat >>conftest.$ac_ext <<_ACEOF
16331 /* end confdefs.h. */
16332 #include <sys/types.h>
16333 #include <sys/ipc.h>
16334 #include <sys/sem.h>
16339 if (sizeof ((union semun)))
16345 rm -f conftest.$ac_objext
16346 if { (ac_try="$ac_compile"
16347 case "(($ac_try" in
16348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16349 *) ac_try_echo=$ac_try;;
16351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16352 $as_echo "$ac_try_echo") >&5
16353 (eval "$ac_compile") 2>conftest.er1
16355 grep -v '^ *+' conftest.er1 >conftest.err
16357 cat conftest.err >&5
16358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); } && {
16360 test -z "$ac_c_werror_flag" ||
16361 test ! -s conftest.err
16362 } && test -s conftest.$ac_objext; then
16365 $as_echo "$as_me: failed program was:" >&5
16366 sed 's/^/| /' conftest.$ac_ext >&5
16368 ac_cv_type_union_semun=yes
16371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16373 $as_echo "$as_me: failed program was:" >&5
16374 sed 's/^/| /' conftest.$ac_ext >&5
16379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16381 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
16382 $as_echo "$ac_cv_type_union_semun" >&6; }
16383 if test "x$ac_cv_type_union_semun" = x""yes; then
16385 cat >>confdefs.h <<_ACEOF
16386 #define HAVE_UNION_SEMUN 1
16392 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
16393 $as_echo_n "checking for struct sockaddr_un... " >&6; }
16394 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
16395 $as_echo_n "(cached) " >&6
16397 ac_cv_type_struct_sockaddr_un=no
16398 cat >conftest.$ac_ext <<_ACEOF
16401 cat confdefs.h >>conftest.$ac_ext
16402 cat >>conftest.$ac_ext <<_ACEOF
16403 /* end confdefs.h. */
16404 #include <sys/types.h>
16405 #ifdef HAVE_SYS_UN_H
16406 #include <sys/un.h>
16413 if (sizeof (struct sockaddr_un))
16419 rm -f conftest.$ac_objext
16420 if { (ac_try="$ac_compile"
16421 case "(($ac_try" in
16422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423 *) ac_try_echo=$ac_try;;
16425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16426 $as_echo "$ac_try_echo") >&5
16427 (eval "$ac_compile") 2>conftest.er1
16429 grep -v '^ *+' conftest.er1 >conftest.err
16431 cat conftest.err >&5
16432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); } && {
16434 test -z "$ac_c_werror_flag" ||
16435 test ! -s conftest.err
16436 } && test -s conftest.$ac_objext; then
16437 cat >conftest.$ac_ext <<_ACEOF
16440 cat confdefs.h >>conftest.$ac_ext
16441 cat >>conftest.$ac_ext <<_ACEOF
16442 /* end confdefs.h. */
16443 #include <sys/types.h>
16444 #ifdef HAVE_SYS_UN_H
16445 #include <sys/un.h>
16452 if (sizeof ((struct sockaddr_un)))
16458 rm -f conftest.$ac_objext
16459 if { (ac_try="$ac_compile"
16460 case "(($ac_try" in
16461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16462 *) ac_try_echo=$ac_try;;
16464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16465 $as_echo "$ac_try_echo") >&5
16466 (eval "$ac_compile") 2>conftest.er1
16468 grep -v '^ *+' conftest.er1 >conftest.err
16470 cat conftest.err >&5
16471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); } && {
16473 test -z "$ac_c_werror_flag" ||
16474 test ! -s conftest.err
16475 } && test -s conftest.$ac_objext; then
16478 $as_echo "$as_me: failed program was:" >&5
16479 sed 's/^/| /' conftest.$ac_ext >&5
16481 ac_cv_type_struct_sockaddr_un=yes
16484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16486 $as_echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.$ac_ext >&5
16492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16494 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
16495 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
16496 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
16498 cat >>confdefs.h <<\_ACEOF
16499 #define HAVE_UNIX_SOCKETS 1
16504 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
16505 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
16506 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
16507 $as_echo_n "(cached) " >&6
16509 ac_cv_type_struct_sockaddr_storage=no
16510 cat >conftest.$ac_ext <<_ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h. */
16516 #include <sys/types.h>
16517 #ifdef HAVE_SYS_SOCKET_H
16518 #include <sys/socket.h>
16525 if (sizeof (struct sockaddr_storage))
16531 rm -f conftest.$ac_objext
16532 if { (ac_try="$ac_compile"
16533 case "(($ac_try" in
16534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16535 *) ac_try_echo=$ac_try;;
16537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16538 $as_echo "$ac_try_echo") >&5
16539 (eval "$ac_compile") 2>conftest.er1
16541 grep -v '^ *+' conftest.er1 >conftest.err
16543 cat conftest.err >&5
16544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); } && {
16546 test -z "$ac_c_werror_flag" ||
16547 test ! -s conftest.err
16548 } && test -s conftest.$ac_objext; then
16549 cat >conftest.$ac_ext <<_ACEOF
16552 cat confdefs.h >>conftest.$ac_ext
16553 cat >>conftest.$ac_ext <<_ACEOF
16554 /* end confdefs.h. */
16555 #include <sys/types.h>
16556 #ifdef HAVE_SYS_SOCKET_H
16557 #include <sys/socket.h>
16564 if (sizeof ((struct sockaddr_storage)))
16570 rm -f conftest.$ac_objext
16571 if { (ac_try="$ac_compile"
16572 case "(($ac_try" in
16573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574 *) ac_try_echo=$ac_try;;
16576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16577 $as_echo "$ac_try_echo") >&5
16578 (eval "$ac_compile") 2>conftest.er1
16580 grep -v '^ *+' conftest.er1 >conftest.err
16582 cat conftest.err >&5
16583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } && {
16585 test -z "$ac_c_werror_flag" ||
16586 test ! -s conftest.err
16587 } && test -s conftest.$ac_objext; then
16590 $as_echo "$as_me: failed program was:" >&5
16591 sed 's/^/| /' conftest.$ac_ext >&5
16593 ac_cv_type_struct_sockaddr_storage=yes
16596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16598 $as_echo "$as_me: failed program was:" >&5
16599 sed 's/^/| /' conftest.$ac_ext >&5
16604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16606 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
16607 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
16608 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
16610 cat >>confdefs.h <<_ACEOF
16611 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
16617 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
16618 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
16619 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
16620 $as_echo_n "(cached) " >&6
16622 cat >conftest.$ac_ext <<_ACEOF
16625 cat confdefs.h >>conftest.$ac_ext
16626 cat >>conftest.$ac_ext <<_ACEOF
16627 /* end confdefs.h. */
16628 #include <sys/types.h>
16629 #ifdef HAVE_SYS_SOCKET_H
16630 #include <sys/socket.h>
16637 static struct sockaddr_storage ac_aggr;
16638 if (ac_aggr.ss_family)
16644 rm -f conftest.$ac_objext
16645 if { (ac_try="$ac_compile"
16646 case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16651 $as_echo "$ac_try_echo") >&5
16652 (eval "$ac_compile") 2>conftest.er1
16654 grep -v '^ *+' conftest.er1 >conftest.err
16656 cat conftest.err >&5
16657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); } && {
16659 test -z "$ac_c_werror_flag" ||
16660 test ! -s conftest.err
16661 } && test -s conftest.$ac_objext; then
16662 ac_cv_member_struct_sockaddr_storage_ss_family=yes
16664 $as_echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16667 cat >conftest.$ac_ext <<_ACEOF
16670 cat confdefs.h >>conftest.$ac_ext
16671 cat >>conftest.$ac_ext <<_ACEOF
16672 /* end confdefs.h. */
16673 #include <sys/types.h>
16674 #ifdef HAVE_SYS_SOCKET_H
16675 #include <sys/socket.h>
16682 static struct sockaddr_storage ac_aggr;
16683 if (sizeof ac_aggr.ss_family)
16689 rm -f conftest.$ac_objext
16690 if { (ac_try="$ac_compile"
16691 case "(($ac_try" in
16692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16693 *) ac_try_echo=$ac_try;;
16695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16696 $as_echo "$ac_try_echo") >&5
16697 (eval "$ac_compile") 2>conftest.er1
16699 grep -v '^ *+' conftest.er1 >conftest.err
16701 cat conftest.err >&5
16702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } && {
16704 test -z "$ac_c_werror_flag" ||
16705 test ! -s conftest.err
16706 } && test -s conftest.$ac_objext; then
16707 ac_cv_member_struct_sockaddr_storage_ss_family=yes
16709 $as_echo "$as_me: failed program was:" >&5
16710 sed 's/^/| /' conftest.$ac_ext >&5
16712 ac_cv_member_struct_sockaddr_storage_ss_family=no
16715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16720 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
16721 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
16722 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
16724 cat >>confdefs.h <<_ACEOF
16725 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
16730 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
16731 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
16732 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
16733 $as_echo_n "(cached) " >&6
16735 cat >conftest.$ac_ext <<_ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h. */
16741 #include <sys/types.h>
16742 #ifdef HAVE_SYS_SOCKET_H
16743 #include <sys/socket.h>
16750 static struct sockaddr_storage ac_aggr;
16751 if (ac_aggr.__ss_family)
16757 rm -f conftest.$ac_objext
16758 if { (ac_try="$ac_compile"
16759 case "(($ac_try" in
16760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16761 *) ac_try_echo=$ac_try;;
16763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16764 $as_echo "$ac_try_echo") >&5
16765 (eval "$ac_compile") 2>conftest.er1
16767 grep -v '^ *+' conftest.er1 >conftest.err
16769 cat conftest.err >&5
16770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } && {
16772 test -z "$ac_c_werror_flag" ||
16773 test ! -s conftest.err
16774 } && test -s conftest.$ac_objext; then
16775 ac_cv_member_struct_sockaddr_storage___ss_family=yes
16777 $as_echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16780 cat >conftest.$ac_ext <<_ACEOF
16783 cat confdefs.h >>conftest.$ac_ext
16784 cat >>conftest.$ac_ext <<_ACEOF
16785 /* end confdefs.h. */
16786 #include <sys/types.h>
16787 #ifdef HAVE_SYS_SOCKET_H
16788 #include <sys/socket.h>
16795 static struct sockaddr_storage ac_aggr;
16796 if (sizeof ac_aggr.__ss_family)
16802 rm -f conftest.$ac_objext
16803 if { (ac_try="$ac_compile"
16804 case "(($ac_try" in
16805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806 *) ac_try_echo=$ac_try;;
16808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16809 $as_echo "$ac_try_echo") >&5
16810 (eval "$ac_compile") 2>conftest.er1
16812 grep -v '^ *+' conftest.er1 >conftest.err
16814 cat conftest.err >&5
16815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); } && {
16817 test -z "$ac_c_werror_flag" ||
16818 test ! -s conftest.err
16819 } && test -s conftest.$ac_objext; then
16820 ac_cv_member_struct_sockaddr_storage___ss_family=yes
16822 $as_echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16825 ac_cv_member_struct_sockaddr_storage___ss_family=no
16828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16833 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
16834 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
16835 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
16837 cat >>confdefs.h <<_ACEOF
16838 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
16843 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
16844 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
16845 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
16846 $as_echo_n "(cached) " >&6
16848 cat >conftest.$ac_ext <<_ACEOF
16851 cat confdefs.h >>conftest.$ac_ext
16852 cat >>conftest.$ac_ext <<_ACEOF
16853 /* end confdefs.h. */
16854 #include <sys/types.h>
16855 #ifdef HAVE_SYS_SOCKET_H
16856 #include <sys/socket.h>
16863 static struct sockaddr_storage ac_aggr;
16864 if (ac_aggr.ss_len)
16870 rm -f conftest.$ac_objext
16871 if { (ac_try="$ac_compile"
16872 case "(($ac_try" in
16873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16874 *) ac_try_echo=$ac_try;;
16876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16877 $as_echo "$ac_try_echo") >&5
16878 (eval "$ac_compile") 2>conftest.er1
16880 grep -v '^ *+' conftest.er1 >conftest.err
16882 cat conftest.err >&5
16883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); } && {
16885 test -z "$ac_c_werror_flag" ||
16886 test ! -s conftest.err
16887 } && test -s conftest.$ac_objext; then
16888 ac_cv_member_struct_sockaddr_storage_ss_len=yes
16890 $as_echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16893 cat >conftest.$ac_ext <<_ACEOF
16896 cat confdefs.h >>conftest.$ac_ext
16897 cat >>conftest.$ac_ext <<_ACEOF
16898 /* end confdefs.h. */
16899 #include <sys/types.h>
16900 #ifdef HAVE_SYS_SOCKET_H
16901 #include <sys/socket.h>
16908 static struct sockaddr_storage ac_aggr;
16909 if (sizeof ac_aggr.ss_len)
16915 rm -f conftest.$ac_objext
16916 if { (ac_try="$ac_compile"
16917 case "(($ac_try" in
16918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919 *) ac_try_echo=$ac_try;;
16921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16922 $as_echo "$ac_try_echo") >&5
16923 (eval "$ac_compile") 2>conftest.er1
16925 grep -v '^ *+' conftest.er1 >conftest.err
16927 cat conftest.err >&5
16928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } && {
16930 test -z "$ac_c_werror_flag" ||
16931 test ! -s conftest.err
16932 } && test -s conftest.$ac_objext; then
16933 ac_cv_member_struct_sockaddr_storage_ss_len=yes
16935 $as_echo "$as_me: failed program was:" >&5
16936 sed 's/^/| /' conftest.$ac_ext >&5
16938 ac_cv_member_struct_sockaddr_storage_ss_len=no
16941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16946 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
16947 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
16948 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
16950 cat >>confdefs.h <<_ACEOF
16951 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
16956 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
16957 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
16958 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
16959 $as_echo_n "(cached) " >&6
16961 cat >conftest.$ac_ext <<_ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h. */
16967 #include <sys/types.h>
16968 #ifdef HAVE_SYS_SOCKET_H
16969 #include <sys/socket.h>
16976 static struct sockaddr_storage ac_aggr;
16977 if (ac_aggr.__ss_len)
16983 rm -f conftest.$ac_objext
16984 if { (ac_try="$ac_compile"
16985 case "(($ac_try" in
16986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16990 $as_echo "$ac_try_echo") >&5
16991 (eval "$ac_compile") 2>conftest.er1
16993 grep -v '^ *+' conftest.er1 >conftest.err
16995 cat conftest.err >&5
16996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); } && {
16998 test -z "$ac_c_werror_flag" ||
16999 test ! -s conftest.err
17000 } && test -s conftest.$ac_objext; then
17001 ac_cv_member_struct_sockaddr_storage___ss_len=yes
17003 $as_echo "$as_me: failed program was:" >&5
17004 sed 's/^/| /' conftest.$ac_ext >&5
17006 cat >conftest.$ac_ext <<_ACEOF
17009 cat confdefs.h >>conftest.$ac_ext
17010 cat >>conftest.$ac_ext <<_ACEOF
17011 /* end confdefs.h. */
17012 #include <sys/types.h>
17013 #ifdef HAVE_SYS_SOCKET_H
17014 #include <sys/socket.h>
17021 static struct sockaddr_storage ac_aggr;
17022 if (sizeof ac_aggr.__ss_len)
17028 rm -f conftest.$ac_objext
17029 if { (ac_try="$ac_compile"
17030 case "(($ac_try" in
17031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032 *) ac_try_echo=$ac_try;;
17034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17035 $as_echo "$ac_try_echo") >&5
17036 (eval "$ac_compile") 2>conftest.er1
17038 grep -v '^ *+' conftest.er1 >conftest.err
17040 cat conftest.err >&5
17041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); } && {
17043 test -z "$ac_c_werror_flag" ||
17044 test ! -s conftest.err
17045 } && test -s conftest.$ac_objext; then
17046 ac_cv_member_struct_sockaddr_storage___ss_len=yes
17048 $as_echo "$as_me: failed program was:" >&5
17049 sed 's/^/| /' conftest.$ac_ext >&5
17051 ac_cv_member_struct_sockaddr_storage___ss_len=no
17054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17059 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
17060 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
17061 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
17063 cat >>confdefs.h <<_ACEOF
17064 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
17069 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
17070 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
17071 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
17072 $as_echo_n "(cached) " >&6
17074 cat >conftest.$ac_ext <<_ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h. */
17080 #include <sys/types.h>
17081 #ifdef HAVE_SYS_SOCKET_H
17082 #include <sys/socket.h>
17089 static struct sockaddr ac_aggr;
17090 if (ac_aggr.sa_len)
17096 rm -f conftest.$ac_objext
17097 if { (ac_try="$ac_compile"
17098 case "(($ac_try" in
17099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100 *) ac_try_echo=$ac_try;;
17102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17103 $as_echo "$ac_try_echo") >&5
17104 (eval "$ac_compile") 2>conftest.er1
17106 grep -v '^ *+' conftest.er1 >conftest.err
17108 cat conftest.err >&5
17109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } && {
17111 test -z "$ac_c_werror_flag" ||
17112 test ! -s conftest.err
17113 } && test -s conftest.$ac_objext; then
17114 ac_cv_member_struct_sockaddr_sa_len=yes
17116 $as_echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.$ac_ext >&5
17119 cat >conftest.$ac_ext <<_ACEOF
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h. */
17125 #include <sys/types.h>
17126 #ifdef HAVE_SYS_SOCKET_H
17127 #include <sys/socket.h>
17134 static struct sockaddr ac_aggr;
17135 if (sizeof ac_aggr.sa_len)
17141 rm -f conftest.$ac_objext
17142 if { (ac_try="$ac_compile"
17143 case "(($ac_try" in
17144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17145 *) ac_try_echo=$ac_try;;
17147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17148 $as_echo "$ac_try_echo") >&5
17149 (eval "$ac_compile") 2>conftest.er1
17151 grep -v '^ *+' conftest.er1 >conftest.err
17153 cat conftest.err >&5
17154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } && {
17156 test -z "$ac_c_werror_flag" ||
17157 test ! -s conftest.err
17158 } && test -s conftest.$ac_objext; then
17159 ac_cv_member_struct_sockaddr_sa_len=yes
17161 $as_echo "$as_me: failed program was:" >&5
17162 sed 's/^/| /' conftest.$ac_ext >&5
17164 ac_cv_member_struct_sockaddr_sa_len=no
17167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17172 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
17173 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
17174 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
17176 cat >>confdefs.h <<_ACEOF
17177 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
17183 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
17184 $as_echo_n "checking for struct addrinfo... " >&6; }
17185 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
17186 $as_echo_n "(cached) " >&6
17188 ac_cv_type_struct_addrinfo=no
17189 cat >conftest.$ac_ext <<_ACEOF
17192 cat confdefs.h >>conftest.$ac_ext
17193 cat >>conftest.$ac_ext <<_ACEOF
17194 /* end confdefs.h. */
17195 #include <sys/types.h>
17196 #include <sys/socket.h>
17203 if (sizeof (struct addrinfo))
17209 rm -f conftest.$ac_objext
17210 if { (ac_try="$ac_compile"
17211 case "(($ac_try" in
17212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213 *) ac_try_echo=$ac_try;;
17215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17216 $as_echo "$ac_try_echo") >&5
17217 (eval "$ac_compile") 2>conftest.er1
17219 grep -v '^ *+' conftest.er1 >conftest.err
17221 cat conftest.err >&5
17222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); } && {
17224 test -z "$ac_c_werror_flag" ||
17225 test ! -s conftest.err
17226 } && test -s conftest.$ac_objext; then
17227 cat >conftest.$ac_ext <<_ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h. */
17233 #include <sys/types.h>
17234 #include <sys/socket.h>
17241 if (sizeof ((struct addrinfo)))
17247 rm -f conftest.$ac_objext
17248 if { (ac_try="$ac_compile"
17249 case "(($ac_try" in
17250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251 *) ac_try_echo=$ac_try;;
17253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17254 $as_echo "$ac_try_echo") >&5
17255 (eval "$ac_compile") 2>conftest.er1
17257 grep -v '^ *+' conftest.er1 >conftest.err
17259 cat conftest.err >&5
17260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); } && {
17262 test -z "$ac_c_werror_flag" ||
17263 test ! -s conftest.err
17264 } && test -s conftest.$ac_objext; then
17267 $as_echo "$as_me: failed program was:" >&5
17268 sed 's/^/| /' conftest.$ac_ext >&5
17270 ac_cv_type_struct_addrinfo=yes
17273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17275 $as_echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17283 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
17284 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
17285 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
17287 cat >>confdefs.h <<_ACEOF
17288 #define HAVE_STRUCT_ADDRINFO 1
17295 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
17296 $as_echo_n "checking for intptr_t... " >&6; }
17297 if test "${ac_cv_type_intptr_t+set}" = set; then
17298 $as_echo_n "(cached) " >&6
17300 ac_cv_type_intptr_t=no
17301 cat >conftest.$ac_ext <<_ACEOF
17304 cat confdefs.h >>conftest.$ac_ext
17305 cat >>conftest.$ac_ext <<_ACEOF
17306 /* end confdefs.h. */
17307 $ac_includes_default
17311 if (sizeof (intptr_t))
17317 rm -f conftest.$ac_objext
17318 if { (ac_try="$ac_compile"
17319 case "(($ac_try" in
17320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321 *) ac_try_echo=$ac_try;;
17323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17324 $as_echo "$ac_try_echo") >&5
17325 (eval "$ac_compile") 2>conftest.er1
17327 grep -v '^ *+' conftest.er1 >conftest.err
17329 cat conftest.err >&5
17330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); } && {
17332 test -z "$ac_c_werror_flag" ||
17333 test ! -s conftest.err
17334 } && test -s conftest.$ac_objext; then
17335 cat >conftest.$ac_ext <<_ACEOF
17338 cat confdefs.h >>conftest.$ac_ext
17339 cat >>conftest.$ac_ext <<_ACEOF
17340 /* end confdefs.h. */
17341 $ac_includes_default
17345 if (sizeof ((intptr_t)))
17351 rm -f conftest.$ac_objext
17352 if { (ac_try="$ac_compile"
17353 case "(($ac_try" in
17354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17358 $as_echo "$ac_try_echo") >&5
17359 (eval "$ac_compile") 2>conftest.er1
17361 grep -v '^ *+' conftest.er1 >conftest.err
17363 cat conftest.err >&5
17364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } && {
17366 test -z "$ac_c_werror_flag" ||
17367 test ! -s conftest.err
17368 } && test -s conftest.$ac_objext; then
17371 $as_echo "$as_me: failed program was:" >&5
17372 sed 's/^/| /' conftest.$ac_ext >&5
17374 ac_cv_type_intptr_t=yes
17377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17379 $as_echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17387 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
17388 $as_echo "$ac_cv_type_intptr_t" >&6; }
17389 if test "x$ac_cv_type_intptr_t" = x""yes; then
17391 cat >>confdefs.h <<\_ACEOF
17392 #define HAVE_INTPTR_T 1
17396 for ac_type in 'int' 'long int' 'long long int'; do
17397 cat >conftest.$ac_ext <<_ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h. */
17403 $ac_includes_default
17407 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17414 rm -f conftest.$ac_objext
17415 if { (ac_try="$ac_compile"
17416 case "(($ac_try" in
17417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17418 *) ac_try_echo=$ac_try;;
17420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17421 $as_echo "$ac_try_echo") >&5
17422 (eval "$ac_compile") 2>conftest.er1
17424 grep -v '^ *+' conftest.er1 >conftest.err
17426 cat conftest.err >&5
17427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); } && {
17429 test -z "$ac_c_werror_flag" ||
17430 test ! -s conftest.err
17431 } && test -s conftest.$ac_objext; then
17433 cat >>confdefs.h <<_ACEOF
17434 #define intptr_t $ac_type
17439 $as_echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17446 test -z "$ac_type" && break
17452 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
17453 $as_echo_n "checking for uintptr_t... " >&6; }
17454 if test "${ac_cv_type_uintptr_t+set}" = set; then
17455 $as_echo_n "(cached) " >&6
17457 ac_cv_type_uintptr_t=no
17458 cat >conftest.$ac_ext <<_ACEOF
17461 cat confdefs.h >>conftest.$ac_ext
17462 cat >>conftest.$ac_ext <<_ACEOF
17463 /* end confdefs.h. */
17464 $ac_includes_default
17468 if (sizeof (uintptr_t))
17474 rm -f conftest.$ac_objext
17475 if { (ac_try="$ac_compile"
17476 case "(($ac_try" in
17477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17478 *) ac_try_echo=$ac_try;;
17480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17481 $as_echo "$ac_try_echo") >&5
17482 (eval "$ac_compile") 2>conftest.er1
17484 grep -v '^ *+' conftest.er1 >conftest.err
17486 cat conftest.err >&5
17487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } && {
17489 test -z "$ac_c_werror_flag" ||
17490 test ! -s conftest.err
17491 } && test -s conftest.$ac_objext; then
17492 cat >conftest.$ac_ext <<_ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h. */
17498 $ac_includes_default
17502 if (sizeof ((uintptr_t)))
17508 rm -f conftest.$ac_objext
17509 if { (ac_try="$ac_compile"
17510 case "(($ac_try" in
17511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512 *) ac_try_echo=$ac_try;;
17514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17515 $as_echo "$ac_try_echo") >&5
17516 (eval "$ac_compile") 2>conftest.er1
17518 grep -v '^ *+' conftest.er1 >conftest.err
17520 cat conftest.err >&5
17521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); } && {
17523 test -z "$ac_c_werror_flag" ||
17524 test ! -s conftest.err
17525 } && test -s conftest.$ac_objext; then
17528 $as_echo "$as_me: failed program was:" >&5
17529 sed 's/^/| /' conftest.$ac_ext >&5
17531 ac_cv_type_uintptr_t=yes
17534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17536 $as_echo "$as_me: failed program was:" >&5
17537 sed 's/^/| /' conftest.$ac_ext >&5
17542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17544 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
17545 $as_echo "$ac_cv_type_uintptr_t" >&6; }
17546 if test "x$ac_cv_type_uintptr_t" = x""yes; then
17548 cat >>confdefs.h <<\_ACEOF
17549 #define HAVE_UINTPTR_T 1
17553 for ac_type in 'unsigned int' 'unsigned long int' \
17554 'unsigned long long int'; do
17555 cat >conftest.$ac_ext <<_ACEOF
17558 cat confdefs.h >>conftest.$ac_ext
17559 cat >>conftest.$ac_ext <<_ACEOF
17560 /* end confdefs.h. */
17561 $ac_includes_default
17565 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17572 rm -f conftest.$ac_objext
17573 if { (ac_try="$ac_compile"
17574 case "(($ac_try" in
17575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576 *) ac_try_echo=$ac_try;;
17578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17579 $as_echo "$ac_try_echo") >&5
17580 (eval "$ac_compile") 2>conftest.er1
17582 grep -v '^ *+' conftest.er1 >conftest.err
17584 cat conftest.err >&5
17585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); } && {
17587 test -z "$ac_c_werror_flag" ||
17588 test ! -s conftest.err
17589 } && test -s conftest.$ac_objext; then
17591 cat >>confdefs.h <<_ACEOF
17592 #define uintptr_t $ac_type
17597 $as_echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17604 test -z "$ac_type" && break
17610 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
17611 $as_echo_n "checking for long long int... " >&6; }
17612 if test "${ac_cv_type_long_long_int+set}" = set; then
17613 $as_echo_n "(cached) " >&6
17615 cat >conftest.$ac_ext <<_ACEOF
17619 cat confdefs.h >>conftest.$ac_ext
17620 cat >>conftest.$ac_ext <<_ACEOF
17621 /* end confdefs.h. */
17622 /* For now, do not test the preprocessor; as of 2007 there are too many
17623 implementations with broken preprocessors. Perhaps this can
17624 be revisited in 2012. In the meantime, code should not expect
17625 #if to work with literals wider than 32 bits. */
17626 /* Test literals. */
17627 long long int ll = 9223372036854775807ll;
17628 long long int nll = -9223372036854775807LL;
17629 unsigned long long int ull = 18446744073709551615ULL;
17630 /* Test constant expressions. */
17631 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17633 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17639 /* Test availability of runtime routines for shift and division. */
17640 long long int llmax = 9223372036854775807ll;
17641 unsigned long long int ullmax = 18446744073709551615ull;
17642 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17643 | (llmax / ll) | (llmax % ll)
17644 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17645 | (ullmax / ull) | (ullmax % ull));
17651 rm -f conftest.$ac_objext conftest$ac_exeext
17652 if { (ac_try="$ac_link"
17653 case "(($ac_try" in
17654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17655 *) ac_try_echo=$ac_try;;
17657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17658 $as_echo "$ac_try_echo") >&5
17659 (eval "$ac_link") 2>conftest.er1
17661 grep -v '^ *+' conftest.er1 >conftest.err
17663 cat conftest.err >&5
17664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); } && {
17666 test -z "$ac_c_werror_flag" ||
17667 test ! -s conftest.err
17668 } && test -s conftest$ac_exeext && {
17669 test "$cross_compiling" = yes ||
17670 $as_test_x conftest$ac_exeext
17672 if test "$cross_compiling" = yes; then
17673 ac_cv_type_long_long_int=yes
17675 cat >conftest.$ac_ext <<_ACEOF
17678 cat confdefs.h >>conftest.$ac_ext
17679 cat >>conftest.$ac_ext <<_ACEOF
17680 /* end confdefs.h. */
17681 #include <limits.h>
17684 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17685 # define LLONG_MAX (HALF - 1 + HALF)
17690 long long int n = 1;
17694 long long int m = n << i;
17697 if (LLONG_MAX / 2 < m)
17705 rm -f conftest$ac_exeext
17706 if { (ac_try="$ac_link"
17707 case "(($ac_try" in
17708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709 *) ac_try_echo=$ac_try;;
17711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17712 $as_echo "$ac_try_echo") >&5
17713 (eval "$ac_link") 2>&5
17715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17717 { (case "(($ac_try" in
17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17722 $as_echo "$ac_try_echo") >&5
17723 (eval "$ac_try") 2>&5
17725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); }; }; then
17727 ac_cv_type_long_long_int=yes
17729 $as_echo "$as_me: program exited with status $ac_status" >&5
17730 $as_echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17733 ( exit $ac_status )
17734 ac_cv_type_long_long_int=no
17736 rm -rf conftest.dSYM
17737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17742 $as_echo "$as_me: failed program was:" >&5
17743 sed 's/^/| /' conftest.$ac_ext >&5
17745 ac_cv_type_long_long_int=no
17748 rm -rf conftest.dSYM
17749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17750 conftest$ac_exeext conftest.$ac_ext
17752 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17753 $as_echo "$ac_cv_type_long_long_int" >&6; }
17754 if test $ac_cv_type_long_long_int = yes; then
17756 cat >>confdefs.h <<\_ACEOF
17757 #define HAVE_LONG_LONG_INT 1
17763 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
17764 $as_echo_n "checking for locale_t... " >&6; }
17765 if test "${pgac_cv_type_locale_t+set}" = set; then
17766 $as_echo_n "(cached) " >&6
17768 cat >conftest.$ac_ext <<_ACEOF
17771 cat confdefs.h >>conftest.$ac_ext
17772 cat >>conftest.$ac_ext <<_ACEOF
17773 /* end confdefs.h. */
17774 #include <locale.h>
17784 rm -f conftest.$ac_objext
17785 if { (ac_try="$ac_compile"
17786 case "(($ac_try" in
17787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17788 *) ac_try_echo=$ac_try;;
17790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17791 $as_echo "$ac_try_echo") >&5
17792 (eval "$ac_compile") 2>conftest.er1
17794 grep -v '^ *+' conftest.er1 >conftest.err
17796 cat conftest.err >&5
17797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); } && {
17799 test -z "$ac_c_werror_flag" ||
17800 test ! -s conftest.err
17801 } && test -s conftest.$ac_objext; then
17802 pgac_cv_type_locale_t=yes
17804 $as_echo "$as_me: failed program was:" >&5
17805 sed 's/^/| /' conftest.$ac_ext >&5
17807 cat >conftest.$ac_ext <<_ACEOF
17810 cat confdefs.h >>conftest.$ac_ext
17811 cat >>conftest.$ac_ext <<_ACEOF
17812 /* end confdefs.h. */
17813 #include <xlocale.h>
17823 rm -f conftest.$ac_objext
17824 if { (ac_try="$ac_compile"
17825 case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17830 $as_echo "$ac_try_echo") >&5
17831 (eval "$ac_compile") 2>conftest.er1
17833 grep -v '^ *+' conftest.er1 >conftest.err
17835 cat conftest.err >&5
17836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); } && {
17838 test -z "$ac_c_werror_flag" ||
17839 test ! -s conftest.err
17840 } && test -s conftest.$ac_objext; then
17841 pgac_cv_type_locale_t='yes (in xlocale.h)'
17843 $as_echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17846 pgac_cv_type_locale_t=no
17849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17854 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_locale_t" >&5
17855 $as_echo "$pgac_cv_type_locale_t" >&6; }
17856 if test "$pgac_cv_type_locale_t" != no; then
17858 cat >>confdefs.h <<\_ACEOF
17859 #define HAVE_LOCALE_T 1
17863 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
17865 cat >>confdefs.h <<\_ACEOF
17866 #define LOCALE_T_IN_XLOCALE 1
17871 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
17872 $as_echo_n "checking for struct cmsgcred... " >&6; }
17873 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
17874 $as_echo_n "(cached) " >&6
17876 ac_cv_type_struct_cmsgcred=no
17877 cat >conftest.$ac_ext <<_ACEOF
17880 cat confdefs.h >>conftest.$ac_ext
17881 cat >>conftest.$ac_ext <<_ACEOF
17882 /* end confdefs.h. */
17883 #include <sys/socket.h>
17884 #include <sys/param.h>
17885 #ifdef HAVE_SYS_UCRED_H
17886 #include <sys/ucred.h>
17892 if (sizeof (struct cmsgcred))
17898 rm -f conftest.$ac_objext
17899 if { (ac_try="$ac_compile"
17900 case "(($ac_try" in
17901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902 *) ac_try_echo=$ac_try;;
17904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17905 $as_echo "$ac_try_echo") >&5
17906 (eval "$ac_compile") 2>conftest.er1
17908 grep -v '^ *+' conftest.er1 >conftest.err
17910 cat conftest.err >&5
17911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); } && {
17913 test -z "$ac_c_werror_flag" ||
17914 test ! -s conftest.err
17915 } && test -s conftest.$ac_objext; then
17916 cat >conftest.$ac_ext <<_ACEOF
17919 cat confdefs.h >>conftest.$ac_ext
17920 cat >>conftest.$ac_ext <<_ACEOF
17921 /* end confdefs.h. */
17922 #include <sys/socket.h>
17923 #include <sys/param.h>
17924 #ifdef HAVE_SYS_UCRED_H
17925 #include <sys/ucred.h>
17931 if (sizeof ((struct cmsgcred)))
17937 rm -f conftest.$ac_objext
17938 if { (ac_try="$ac_compile"
17939 case "(($ac_try" in
17940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941 *) ac_try_echo=$ac_try;;
17943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17944 $as_echo "$ac_try_echo") >&5
17945 (eval "$ac_compile") 2>conftest.er1
17947 grep -v '^ *+' conftest.er1 >conftest.err
17949 cat conftest.err >&5
17950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); } && {
17952 test -z "$ac_c_werror_flag" ||
17953 test ! -s conftest.err
17954 } && test -s conftest.$ac_objext; then
17957 $as_echo "$as_me: failed program was:" >&5
17958 sed 's/^/| /' conftest.$ac_ext >&5
17960 ac_cv_type_struct_cmsgcred=yes
17963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17965 $as_echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17973 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
17974 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
17975 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
17977 cat >>confdefs.h <<_ACEOF
17978 #define HAVE_STRUCT_CMSGCRED 1
17985 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
17986 $as_echo_n "checking for struct option... " >&6; }
17987 if test "${ac_cv_type_struct_option+set}" = set; then
17988 $as_echo_n "(cached) " >&6
17990 ac_cv_type_struct_option=no
17991 cat >conftest.$ac_ext <<_ACEOF
17994 cat confdefs.h >>conftest.$ac_ext
17995 cat >>conftest.$ac_ext <<_ACEOF
17996 /* end confdefs.h. */
17997 #ifdef HAVE_GETOPT_H
17998 #include <getopt.h>
18004 if (sizeof (struct option))
18010 rm -f conftest.$ac_objext
18011 if { (ac_try="$ac_compile"
18012 case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18017 $as_echo "$ac_try_echo") >&5
18018 (eval "$ac_compile") 2>conftest.er1
18020 grep -v '^ *+' conftest.er1 >conftest.err
18022 cat conftest.err >&5
18023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); } && {
18025 test -z "$ac_c_werror_flag" ||
18026 test ! -s conftest.err
18027 } && test -s conftest.$ac_objext; then
18028 cat >conftest.$ac_ext <<_ACEOF
18031 cat confdefs.h >>conftest.$ac_ext
18032 cat >>conftest.$ac_ext <<_ACEOF
18033 /* end confdefs.h. */
18034 #ifdef HAVE_GETOPT_H
18035 #include <getopt.h>
18041 if (sizeof ((struct option)))
18047 rm -f conftest.$ac_objext
18048 if { (ac_try="$ac_compile"
18049 case "(($ac_try" in
18050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18051 *) ac_try_echo=$ac_try;;
18053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18054 $as_echo "$ac_try_echo") >&5
18055 (eval "$ac_compile") 2>conftest.er1
18057 grep -v '^ *+' conftest.er1 >conftest.err
18059 cat conftest.err >&5
18060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); } && {
18062 test -z "$ac_c_werror_flag" ||
18063 test ! -s conftest.err
18064 } && test -s conftest.$ac_objext; then
18067 $as_echo "$as_me: failed program was:" >&5
18068 sed 's/^/| /' conftest.$ac_ext >&5
18070 ac_cv_type_struct_option=yes
18073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18075 $as_echo "$as_me: failed program was:" >&5
18076 sed 's/^/| /' conftest.$ac_ext >&5
18081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18083 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
18084 $as_echo "$ac_cv_type_struct_option" >&6; }
18085 if test "x$ac_cv_type_struct_option" = x""yes; then
18087 cat >>confdefs.h <<_ACEOF
18088 #define HAVE_STRUCT_OPTION 1
18095 if test "$with_zlib" = yes; then
18096 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
18097 # did not). While we could work around the lack of z_streamp, it
18098 # seems unwise to encourage people to use such old zlib versions...
18099 { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
18100 $as_echo_n "checking for z_streamp... " >&6; }
18101 if test "${ac_cv_type_z_streamp+set}" = set; then
18102 $as_echo_n "(cached) " >&6
18104 ac_cv_type_z_streamp=no
18105 cat >conftest.$ac_ext <<_ACEOF
18108 cat confdefs.h >>conftest.$ac_ext
18109 cat >>conftest.$ac_ext <<_ACEOF
18110 /* end confdefs.h. */
18116 if (sizeof (z_streamp))
18122 rm -f conftest.$ac_objext
18123 if { (ac_try="$ac_compile"
18124 case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18129 $as_echo "$ac_try_echo") >&5
18130 (eval "$ac_compile") 2>conftest.er1
18132 grep -v '^ *+' conftest.er1 >conftest.err
18134 cat conftest.err >&5
18135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); } && {
18137 test -z "$ac_c_werror_flag" ||
18138 test ! -s conftest.err
18139 } && test -s conftest.$ac_objext; then
18140 cat >conftest.$ac_ext <<_ACEOF
18143 cat confdefs.h >>conftest.$ac_ext
18144 cat >>conftest.$ac_ext <<_ACEOF
18145 /* end confdefs.h. */
18151 if (sizeof ((z_streamp)))
18157 rm -f conftest.$ac_objext
18158 if { (ac_try="$ac_compile"
18159 case "(($ac_try" in
18160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161 *) ac_try_echo=$ac_try;;
18163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18164 $as_echo "$ac_try_echo") >&5
18165 (eval "$ac_compile") 2>conftest.er1
18167 grep -v '^ *+' conftest.er1 >conftest.err
18169 cat conftest.err >&5
18170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); } && {
18172 test -z "$ac_c_werror_flag" ||
18173 test ! -s conftest.err
18174 } && test -s conftest.$ac_objext; then
18177 $as_echo "$as_me: failed program was:" >&5
18178 sed 's/^/| /' conftest.$ac_ext >&5
18180 ac_cv_type_z_streamp=yes
18183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18185 $as_echo "$as_me: failed program was:" >&5
18186 sed 's/^/| /' conftest.$ac_ext >&5
18191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18193 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
18194 $as_echo "$ac_cv_type_z_streamp" >&6; }
18195 if test "x$ac_cv_type_z_streamp" = x""yes; then
18198 { { $as_echo "$as_me:$LINENO: error: zlib version is too old
18199 Use --without-zlib to disable zlib support." >&5
18200 $as_echo "$as_me: error: zlib version is too old
18201 Use --without-zlib to disable zlib support." >&2;}
18202 { (exit 1); exit 1; }; }
18207 if test "$with_krb5" = yes; then
18208 # Check for differences between MIT and Heimdal (KTH) releases
18209 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
18210 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
18211 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
18212 $as_echo_n "(cached) " >&6
18214 cat >conftest.$ac_ext <<_ACEOF
18217 cat confdefs.h >>conftest.$ac_ext
18218 cat >>conftest.$ac_ext <<_ACEOF
18219 /* end confdefs.h. */
18225 static krb5_ticket ac_aggr;
18226 if (ac_aggr.enc_part2)
18232 rm -f conftest.$ac_objext
18233 if { (ac_try="$ac_compile"
18234 case "(($ac_try" in
18235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18236 *) ac_try_echo=$ac_try;;
18238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18239 $as_echo "$ac_try_echo") >&5
18240 (eval "$ac_compile") 2>conftest.er1
18242 grep -v '^ *+' conftest.er1 >conftest.err
18244 cat conftest.err >&5
18245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); } && {
18247 test -z "$ac_c_werror_flag" ||
18248 test ! -s conftest.err
18249 } && test -s conftest.$ac_objext; then
18250 ac_cv_member_krb5_ticket_enc_part2=yes
18252 $as_echo "$as_me: failed program was:" >&5
18253 sed 's/^/| /' conftest.$ac_ext >&5
18255 cat >conftest.$ac_ext <<_ACEOF
18258 cat confdefs.h >>conftest.$ac_ext
18259 cat >>conftest.$ac_ext <<_ACEOF
18260 /* end confdefs.h. */
18266 static krb5_ticket ac_aggr;
18267 if (sizeof ac_aggr.enc_part2)
18273 rm -f conftest.$ac_objext
18274 if { (ac_try="$ac_compile"
18275 case "(($ac_try" in
18276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277 *) ac_try_echo=$ac_try;;
18279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18280 $as_echo "$ac_try_echo") >&5
18281 (eval "$ac_compile") 2>conftest.er1
18283 grep -v '^ *+' conftest.er1 >conftest.err
18285 cat conftest.err >&5
18286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287 (exit $ac_status); } && {
18288 test -z "$ac_c_werror_flag" ||
18289 test ! -s conftest.err
18290 } && test -s conftest.$ac_objext; then
18291 ac_cv_member_krb5_ticket_enc_part2=yes
18293 $as_echo "$as_me: failed program was:" >&5
18294 sed 's/^/| /' conftest.$ac_ext >&5
18296 ac_cv_member_krb5_ticket_enc_part2=no
18299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18304 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
18305 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
18306 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
18308 cat >>confdefs.h <<_ACEOF
18309 #define HAVE_KRB5_TICKET_ENC_PART2 1
18314 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
18315 $as_echo_n "checking for krb5_ticket.client... " >&6; }
18316 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
18317 $as_echo_n "(cached) " >&6
18319 cat >conftest.$ac_ext <<_ACEOF
18322 cat confdefs.h >>conftest.$ac_ext
18323 cat >>conftest.$ac_ext <<_ACEOF
18324 /* end confdefs.h. */
18330 static krb5_ticket ac_aggr;
18331 if (ac_aggr.client)
18337 rm -f conftest.$ac_objext
18338 if { (ac_try="$ac_compile"
18339 case "(($ac_try" in
18340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18341 *) ac_try_echo=$ac_try;;
18343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18344 $as_echo "$ac_try_echo") >&5
18345 (eval "$ac_compile") 2>conftest.er1
18347 grep -v '^ *+' conftest.er1 >conftest.err
18349 cat conftest.err >&5
18350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); } && {
18352 test -z "$ac_c_werror_flag" ||
18353 test ! -s conftest.err
18354 } && test -s conftest.$ac_objext; then
18355 ac_cv_member_krb5_ticket_client=yes
18357 $as_echo "$as_me: failed program was:" >&5
18358 sed 's/^/| /' conftest.$ac_ext >&5
18360 cat >conftest.$ac_ext <<_ACEOF
18363 cat confdefs.h >>conftest.$ac_ext
18364 cat >>conftest.$ac_ext <<_ACEOF
18365 /* end confdefs.h. */
18371 static krb5_ticket ac_aggr;
18372 if (sizeof ac_aggr.client)
18378 rm -f conftest.$ac_objext
18379 if { (ac_try="$ac_compile"
18380 case "(($ac_try" in
18381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18382 *) ac_try_echo=$ac_try;;
18384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18385 $as_echo "$ac_try_echo") >&5
18386 (eval "$ac_compile") 2>conftest.er1
18388 grep -v '^ *+' conftest.er1 >conftest.err
18390 cat conftest.err >&5
18391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); } && {
18393 test -z "$ac_c_werror_flag" ||
18394 test ! -s conftest.err
18395 } && test -s conftest.$ac_objext; then
18396 ac_cv_member_krb5_ticket_client=yes
18398 $as_echo "$as_me: failed program was:" >&5
18399 sed 's/^/| /' conftest.$ac_ext >&5
18401 ac_cv_member_krb5_ticket_client=no
18404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18409 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
18410 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
18411 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
18413 cat >>confdefs.h <<_ACEOF
18414 #define HAVE_KRB5_TICKET_CLIENT 1
18419 { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
18420 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
18421 { (exit 1); exit 1; }; }
18426 { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
18427 $as_echo_n "checking for krb5_error.text.data... " >&6; }
18428 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
18429 $as_echo_n "(cached) " >&6
18431 cat >conftest.$ac_ext <<_ACEOF
18434 cat confdefs.h >>conftest.$ac_ext
18435 cat >>conftest.$ac_ext <<_ACEOF
18436 /* end confdefs.h. */
18442 static krb5_error ac_aggr;
18443 if (ac_aggr.text.data)
18449 rm -f conftest.$ac_objext
18450 if { (ac_try="$ac_compile"
18451 case "(($ac_try" in
18452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18453 *) ac_try_echo=$ac_try;;
18455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18456 $as_echo "$ac_try_echo") >&5
18457 (eval "$ac_compile") 2>conftest.er1
18459 grep -v '^ *+' conftest.er1 >conftest.err
18461 cat conftest.err >&5
18462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); } && {
18464 test -z "$ac_c_werror_flag" ||
18465 test ! -s conftest.err
18466 } && test -s conftest.$ac_objext; then
18467 ac_cv_member_krb5_error_text_data=yes
18469 $as_echo "$as_me: failed program was:" >&5
18470 sed 's/^/| /' conftest.$ac_ext >&5
18472 cat >conftest.$ac_ext <<_ACEOF
18475 cat confdefs.h >>conftest.$ac_ext
18476 cat >>conftest.$ac_ext <<_ACEOF
18477 /* end confdefs.h. */
18483 static krb5_error ac_aggr;
18484 if (sizeof ac_aggr.text.data)
18490 rm -f conftest.$ac_objext
18491 if { (ac_try="$ac_compile"
18492 case "(($ac_try" in
18493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18494 *) ac_try_echo=$ac_try;;
18496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18497 $as_echo "$ac_try_echo") >&5
18498 (eval "$ac_compile") 2>conftest.er1
18500 grep -v '^ *+' conftest.er1 >conftest.err
18502 cat conftest.err >&5
18503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); } && {
18505 test -z "$ac_c_werror_flag" ||
18506 test ! -s conftest.err
18507 } && test -s conftest.$ac_objext; then
18508 ac_cv_member_krb5_error_text_data=yes
18510 $as_echo "$as_me: failed program was:" >&5
18511 sed 's/^/| /' conftest.$ac_ext >&5
18513 ac_cv_member_krb5_error_text_data=no
18516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18521 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
18522 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
18523 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
18525 cat >>confdefs.h <<_ACEOF
18526 #define HAVE_KRB5_ERROR_TEXT_DATA 1
18531 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
18532 $as_echo_n "checking for krb5_error.e_data... " >&6; }
18533 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
18534 $as_echo_n "(cached) " >&6
18536 cat >conftest.$ac_ext <<_ACEOF
18539 cat confdefs.h >>conftest.$ac_ext
18540 cat >>conftest.$ac_ext <<_ACEOF
18541 /* end confdefs.h. */
18547 static krb5_error ac_aggr;
18548 if (ac_aggr.e_data)
18554 rm -f conftest.$ac_objext
18555 if { (ac_try="$ac_compile"
18556 case "(($ac_try" in
18557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18558 *) ac_try_echo=$ac_try;;
18560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18561 $as_echo "$ac_try_echo") >&5
18562 (eval "$ac_compile") 2>conftest.er1
18564 grep -v '^ *+' conftest.er1 >conftest.err
18566 cat conftest.err >&5
18567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); } && {
18569 test -z "$ac_c_werror_flag" ||
18570 test ! -s conftest.err
18571 } && test -s conftest.$ac_objext; then
18572 ac_cv_member_krb5_error_e_data=yes
18574 $as_echo "$as_me: failed program was:" >&5
18575 sed 's/^/| /' conftest.$ac_ext >&5
18577 cat >conftest.$ac_ext <<_ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h. */
18588 static krb5_error ac_aggr;
18589 if (sizeof ac_aggr.e_data)
18595 rm -f conftest.$ac_objext
18596 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
18613 ac_cv_member_krb5_error_e_data=yes
18615 $as_echo "$as_me: failed program was:" >&5
18616 sed 's/^/| /' conftest.$ac_ext >&5
18618 ac_cv_member_krb5_error_e_data=no
18621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18626 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
18627 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
18628 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
18630 cat >>confdefs.h <<_ACEOF
18631 #define HAVE_KRB5_ERROR_E_DATA 1
18636 { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
18637 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
18638 { (exit 1); exit 1; }; }
18644 # Win32 requires headers to be loaded for __stdcall, so can't use
18645 # AC_CHECK_FUNCS here.
18646 { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
18647 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
18648 cat >conftest.$ac_ext <<_ACEOF
18651 cat confdefs.h >>conftest.$ac_ext
18652 cat >>conftest.$ac_ext <<_ACEOF
18653 /* end confdefs.h. */
18658 krb5_free_unparsed_name(NULL,NULL);
18663 rm -f conftest.$ac_objext conftest$ac_exeext
18664 if { (ac_try="$ac_link"
18665 case "(($ac_try" in
18666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667 *) ac_try_echo=$ac_try;;
18669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18670 $as_echo "$ac_try_echo") >&5
18671 (eval "$ac_link") 2>conftest.er1
18673 grep -v '^ *+' conftest.er1 >conftest.err
18675 cat conftest.err >&5
18676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } && {
18678 test -z "$ac_c_werror_flag" ||
18679 test ! -s conftest.err
18680 } && test -s conftest$ac_exeext && {
18681 test "$cross_compiling" = yes ||
18682 $as_test_x conftest$ac_exeext
18685 cat >>confdefs.h <<\_ACEOF
18686 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
18689 { $as_echo "$as_me:$LINENO: result: yes" >&5
18690 $as_echo "yes" >&6; }
18692 $as_echo "$as_me: failed program was:" >&5
18693 sed 's/^/| /' conftest.$ac_ext >&5
18695 { $as_echo "$as_me:$LINENO: result: no" >&5
18696 $as_echo "no" >&6; }
18699 rm -rf conftest.dSYM
18700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18701 conftest$ac_exeext conftest.$ac_ext
18704 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
18707 { $as_echo "$as_me:$LINENO: checking whether assembler supports lwarx hint bit" >&5
18708 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
18709 cat >conftest.$ac_ext <<_ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h. */
18719 int a = 0; int *p = &a; int r;
18720 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
18725 rm -f conftest.$ac_objext
18726 if { (ac_try="$ac_compile"
18727 case "(($ac_try" in
18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18732 $as_echo "$ac_try_echo") >&5
18733 (eval "$ac_compile") 2>conftest.er1
18735 grep -v '^ *+' conftest.er1 >conftest.err
18737 cat conftest.err >&5
18738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); } && {
18740 test -z "$ac_c_werror_flag" ||
18741 test ! -s conftest.err
18742 } && test -s conftest.$ac_objext; then
18743 pgac_cv_have_ppc_mutex_hint=yes
18745 $as_echo "$as_me: failed program was:" >&5
18746 sed 's/^/| /' conftest.$ac_ext >&5
18748 pgac_cv_have_ppc_mutex_hint=no
18751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18752 { $as_echo "$as_me:$LINENO: result: $pgac_cv_have_ppc_mutex_hint" >&5
18753 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
18754 if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
18756 cat >>confdefs.h <<\_ACEOF
18757 #define HAVE_PPC_LWARX_MUTEX_HINT 1
18764 # Check largefile support. You might think this is a system service not a
18765 # compiler characteristic, but you'd be wrong. We must check this before
18766 # probing existence of related functions such as fseeko, since the largefile
18767 # defines can affect what is generated for that.
18768 if test "$PORTNAME" != "win32"; then
18769 # Check whether --enable-largefile was given.
18770 if test "${enable_largefile+set}" = set; then
18771 enableval=$enable_largefile;
18774 if test "$enable_largefile" != no; then
18776 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18777 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18778 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18779 $as_echo_n "(cached) " >&6
18781 ac_cv_sys_largefile_CC=no
18782 if test "$GCC" != yes; then
18785 # IRIX 6.2 and later do not support large files by default,
18786 # so use the C compiler's -n32 option if that helps.
18787 cat >conftest.$ac_ext <<_ACEOF
18790 cat confdefs.h >>conftest.$ac_ext
18791 cat >>conftest.$ac_ext <<_ACEOF
18792 /* end confdefs.h. */
18793 #include <sys/types.h>
18794 /* Check that off_t can represent 2**63 - 1 correctly.
18795 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18796 since some C++ compilers masquerading as C compilers
18797 incorrectly reject 9223372036854775807. */
18798 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18799 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18800 && LARGE_OFF_T % 2147483647 == 1)
18810 rm -f conftest.$ac_objext
18811 if { (ac_try="$ac_compile"
18812 case "(($ac_try" in
18813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814 *) ac_try_echo=$ac_try;;
18816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18817 $as_echo "$ac_try_echo") >&5
18818 (eval "$ac_compile") 2>conftest.er1
18820 grep -v '^ *+' conftest.er1 >conftest.err
18822 cat conftest.err >&5
18823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); } && {
18825 test -z "$ac_c_werror_flag" ||
18826 test ! -s conftest.err
18827 } && test -s conftest.$ac_objext; then
18830 $as_echo "$as_me: failed program was:" >&5
18831 sed 's/^/| /' conftest.$ac_ext >&5
18836 rm -f core conftest.err conftest.$ac_objext
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_largefile_CC=' -n32'; 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
18868 rm -f conftest.$ac_ext
18871 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18872 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18873 if test "$ac_cv_sys_largefile_CC" != no; then
18874 CC=$CC$ac_cv_sys_largefile_CC
18877 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18878 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18879 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18880 $as_echo_n "(cached) " >&6
18883 cat >conftest.$ac_ext <<_ACEOF
18886 cat confdefs.h >>conftest.$ac_ext
18887 cat >>conftest.$ac_ext <<_ACEOF
18888 /* end confdefs.h. */
18889 #include <sys/types.h>
18890 /* Check that off_t can represent 2**63 - 1 correctly.
18891 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18892 since some C++ compilers masquerading as C compilers
18893 incorrectly reject 9223372036854775807. */
18894 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18895 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18896 && LARGE_OFF_T % 2147483647 == 1)
18906 rm -f conftest.$ac_objext
18907 if { (ac_try="$ac_compile"
18908 case "(($ac_try" in
18909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18910 *) ac_try_echo=$ac_try;;
18912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18913 $as_echo "$ac_try_echo") >&5
18914 (eval "$ac_compile") 2>conftest.er1
18916 grep -v '^ *+' conftest.er1 >conftest.err
18918 cat conftest.err >&5
18919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920 (exit $ac_status); } && {
18921 test -z "$ac_c_werror_flag" ||
18922 test ! -s conftest.err
18923 } && test -s conftest.$ac_objext; then
18924 ac_cv_sys_file_offset_bits=no; break
18926 $as_echo "$as_me: failed program was:" >&5
18927 sed 's/^/| /' conftest.$ac_ext >&5
18932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18933 cat >conftest.$ac_ext <<_ACEOF
18936 cat confdefs.h >>conftest.$ac_ext
18937 cat >>conftest.$ac_ext <<_ACEOF
18938 /* end confdefs.h. */
18939 #define _FILE_OFFSET_BITS 64
18940 #include <sys/types.h>
18941 /* Check that off_t can represent 2**63 - 1 correctly.
18942 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18943 since some C++ compilers masquerading as C compilers
18944 incorrectly reject 9223372036854775807. */
18945 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18946 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18947 && LARGE_OFF_T % 2147483647 == 1)
18957 rm -f conftest.$ac_objext
18958 if { (ac_try="$ac_compile"
18959 case "(($ac_try" in
18960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18961 *) ac_try_echo=$ac_try;;
18963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18964 $as_echo "$ac_try_echo") >&5
18965 (eval "$ac_compile") 2>conftest.er1
18967 grep -v '^ *+' conftest.er1 >conftest.err
18969 cat conftest.err >&5
18970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); } && {
18972 test -z "$ac_c_werror_flag" ||
18973 test ! -s conftest.err
18974 } && test -s conftest.$ac_objext; then
18975 ac_cv_sys_file_offset_bits=64; break
18977 $as_echo "$as_me: failed program was:" >&5
18978 sed 's/^/| /' conftest.$ac_ext >&5
18983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18984 ac_cv_sys_file_offset_bits=unknown
18988 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18989 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18990 case $ac_cv_sys_file_offset_bits in #(
18993 cat >>confdefs.h <<_ACEOF
18994 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18999 if test $ac_cv_sys_file_offset_bits = unknown; then
19000 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19001 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
19002 if test "${ac_cv_sys_large_files+set}" = set; then
19003 $as_echo_n "(cached) " >&6
19006 cat >conftest.$ac_ext <<_ACEOF
19009 cat confdefs.h >>conftest.$ac_ext
19010 cat >>conftest.$ac_ext <<_ACEOF
19011 /* end confdefs.h. */
19012 #include <sys/types.h>
19013 /* Check that off_t can represent 2**63 - 1 correctly.
19014 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19015 since some C++ compilers masquerading as C compilers
19016 incorrectly reject 9223372036854775807. */
19017 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19018 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19019 && LARGE_OFF_T % 2147483647 == 1)
19029 rm -f conftest.$ac_objext
19030 if { (ac_try="$ac_compile"
19031 case "(($ac_try" in
19032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19033 *) ac_try_echo=$ac_try;;
19035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19036 $as_echo "$ac_try_echo") >&5
19037 (eval "$ac_compile") 2>conftest.er1
19039 grep -v '^ *+' conftest.er1 >conftest.err
19041 cat conftest.err >&5
19042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); } && {
19044 test -z "$ac_c_werror_flag" ||
19045 test ! -s conftest.err
19046 } && test -s conftest.$ac_objext; then
19047 ac_cv_sys_large_files=no; break
19049 $as_echo "$as_me: failed program was:" >&5
19050 sed 's/^/| /' conftest.$ac_ext >&5
19055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19056 cat >conftest.$ac_ext <<_ACEOF
19059 cat confdefs.h >>conftest.$ac_ext
19060 cat >>conftest.$ac_ext <<_ACEOF
19061 /* end confdefs.h. */
19062 #define _LARGE_FILES 1
19063 #include <sys/types.h>
19064 /* Check that off_t can represent 2**63 - 1 correctly.
19065 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19066 since some C++ compilers masquerading as C compilers
19067 incorrectly reject 9223372036854775807. */
19068 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19069 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19070 && LARGE_OFF_T % 2147483647 == 1)
19080 rm -f conftest.$ac_objext
19081 if { (ac_try="$ac_compile"
19082 case "(($ac_try" in
19083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19084 *) ac_try_echo=$ac_try;;
19086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19087 $as_echo "$ac_try_echo") >&5
19088 (eval "$ac_compile") 2>conftest.er1
19090 grep -v '^ *+' conftest.er1 >conftest.err
19092 cat conftest.err >&5
19093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); } && {
19095 test -z "$ac_c_werror_flag" ||
19096 test ! -s conftest.err
19097 } && test -s conftest.$ac_objext; then
19098 ac_cv_sys_large_files=1; break
19100 $as_echo "$as_me: failed program was:" >&5
19101 sed 's/^/| /' conftest.$ac_ext >&5
19106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19107 ac_cv_sys_large_files=unknown
19111 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19112 $as_echo "$ac_cv_sys_large_files" >&6; }
19113 case $ac_cv_sys_large_files in #(
19116 cat >>confdefs.h <<_ACEOF
19117 #define _LARGE_FILES $ac_cv_sys_large_files
19127 # Check for largefile support (must be after AC_SYS_LARGEFILE)
19128 # The cast to long int works around a bug in the HP C Compiler
19129 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19130 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19131 # This bug is HP SR number 8606223364.
19132 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
19133 $as_echo_n "checking size of off_t... " >&6; }
19134 if test "${ac_cv_sizeof_off_t+set}" = set; then
19135 $as_echo_n "(cached) " >&6
19137 if test "$cross_compiling" = yes; then
19138 # Depending upon the size, compute the lo and hi bounds.
19139 cat >conftest.$ac_ext <<_ACEOF
19142 cat confdefs.h >>conftest.$ac_ext
19143 cat >>conftest.$ac_ext <<_ACEOF
19144 /* end confdefs.h. */
19145 $ac_includes_default
19149 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
19156 rm -f conftest.$ac_objext
19157 if { (ac_try="$ac_compile"
19158 case "(($ac_try" in
19159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19160 *) ac_try_echo=$ac_try;;
19162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19163 $as_echo "$ac_try_echo") >&5
19164 (eval "$ac_compile") 2>conftest.er1
19166 grep -v '^ *+' conftest.er1 >conftest.err
19168 cat conftest.err >&5
19169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); } && {
19171 test -z "$ac_c_werror_flag" ||
19172 test ! -s conftest.err
19173 } && test -s conftest.$ac_objext; then
19176 cat >conftest.$ac_ext <<_ACEOF
19179 cat confdefs.h >>conftest.$ac_ext
19180 cat >>conftest.$ac_ext <<_ACEOF
19181 /* end confdefs.h. */
19182 $ac_includes_default
19186 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
19193 rm -f conftest.$ac_objext
19194 if { (ac_try="$ac_compile"
19195 case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19200 $as_echo "$ac_try_echo") >&5
19201 (eval "$ac_compile") 2>conftest.er1
19203 grep -v '^ *+' conftest.er1 >conftest.err
19205 cat conftest.err >&5
19206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } && {
19208 test -z "$ac_c_werror_flag" ||
19209 test ! -s conftest.err
19210 } && test -s conftest.$ac_objext; then
19211 ac_hi=$ac_mid; break
19213 $as_echo "$as_me: failed program was:" >&5
19214 sed 's/^/| /' conftest.$ac_ext >&5
19216 ac_lo=`expr $ac_mid + 1`
19217 if test $ac_lo -le $ac_mid; then
19221 ac_mid=`expr 2 '*' $ac_mid + 1`
19224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19227 $as_echo "$as_me: failed program was:" >&5
19228 sed 's/^/| /' conftest.$ac_ext >&5
19230 cat >conftest.$ac_ext <<_ACEOF
19233 cat confdefs.h >>conftest.$ac_ext
19234 cat >>conftest.$ac_ext <<_ACEOF
19235 /* end confdefs.h. */
19236 $ac_includes_default
19240 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
19247 rm -f conftest.$ac_objext
19248 if { (ac_try="$ac_compile"
19249 case "(($ac_try" in
19250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19251 *) ac_try_echo=$ac_try;;
19253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19254 $as_echo "$ac_try_echo") >&5
19255 (eval "$ac_compile") 2>conftest.er1
19257 grep -v '^ *+' conftest.er1 >conftest.err
19259 cat conftest.err >&5
19260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); } && {
19262 test -z "$ac_c_werror_flag" ||
19263 test ! -s conftest.err
19264 } && test -s conftest.$ac_objext; then
19267 cat >conftest.$ac_ext <<_ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.h. */
19273 $ac_includes_default
19277 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
19284 rm -f conftest.$ac_objext
19285 if { (ac_try="$ac_compile"
19286 case "(($ac_try" in
19287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19288 *) ac_try_echo=$ac_try;;
19290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19291 $as_echo "$ac_try_echo") >&5
19292 (eval "$ac_compile") 2>conftest.er1
19294 grep -v '^ *+' conftest.er1 >conftest.err
19296 cat conftest.err >&5
19297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298 (exit $ac_status); } && {
19299 test -z "$ac_c_werror_flag" ||
19300 test ! -s conftest.err
19301 } && test -s conftest.$ac_objext; then
19302 ac_lo=$ac_mid; break
19304 $as_echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19307 ac_hi=`expr '(' $ac_mid ')' - 1`
19308 if test $ac_mid -le $ac_hi; then
19312 ac_mid=`expr 2 '*' $ac_mid`
19315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19318 $as_echo "$as_me: failed program was:" >&5
19319 sed 's/^/| /' conftest.$ac_ext >&5
19324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19328 # Binary search between lo and hi bounds.
19329 while test "x$ac_lo" != "x$ac_hi"; do
19330 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19331 cat >conftest.$ac_ext <<_ACEOF
19334 cat confdefs.h >>conftest.$ac_ext
19335 cat >>conftest.$ac_ext <<_ACEOF
19336 /* end confdefs.h. */
19337 $ac_includes_default
19341 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
19348 rm -f conftest.$ac_objext
19349 if { (ac_try="$ac_compile"
19350 case "(($ac_try" in
19351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19352 *) ac_try_echo=$ac_try;;
19354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19355 $as_echo "$ac_try_echo") >&5
19356 (eval "$ac_compile") 2>conftest.er1
19358 grep -v '^ *+' conftest.er1 >conftest.err
19360 cat conftest.err >&5
19361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); } && {
19363 test -z "$ac_c_werror_flag" ||
19364 test ! -s conftest.err
19365 } && test -s conftest.$ac_objext; then
19368 $as_echo "$as_me: failed program was:" >&5
19369 sed 's/^/| /' conftest.$ac_ext >&5
19371 ac_lo=`expr '(' $ac_mid ')' + 1`
19374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19377 ?*) ac_cv_sizeof_off_t=$ac_lo;;
19378 '') if test "$ac_cv_type_off_t" = yes; then
19379 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19381 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
19382 See \`config.log' for more details." >&5
19383 $as_echo "$as_me: error: cannot compute sizeof (off_t)
19384 See \`config.log' for more details." >&2;}
19385 { (exit 77); exit 77; }; }; }
19387 ac_cv_sizeof_off_t=0
19391 cat >conftest.$ac_ext <<_ACEOF
19394 cat confdefs.h >>conftest.$ac_ext
19395 cat >>conftest.$ac_ext <<_ACEOF
19396 /* end confdefs.h. */
19397 $ac_includes_default
19398 static long int longval () { return (long int) (sizeof (off_t)); }
19399 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
19401 #include <stdlib.h>
19406 FILE *f = fopen ("conftest.val", "w");
19409 if (((long int) (sizeof (off_t))) < 0)
19411 long int i = longval ();
19412 if (i != ((long int) (sizeof (off_t))))
19414 fprintf (f, "%ld", i);
19418 unsigned long int i = ulongval ();
19419 if (i != ((long int) (sizeof (off_t))))
19421 fprintf (f, "%lu", i);
19423 /* Do not output a trailing newline, as this causes \r\n confusion
19424 on some platforms. */
19425 return ferror (f) || fclose (f) != 0;
19431 rm -f conftest$ac_exeext
19432 if { (ac_try="$ac_link"
19433 case "(($ac_try" in
19434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435 *) ac_try_echo=$ac_try;;
19437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19438 $as_echo "$ac_try_echo") >&5
19439 (eval "$ac_link") 2>&5
19441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19443 { (case "(($ac_try" in
19444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19445 *) ac_try_echo=$ac_try;;
19447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19448 $as_echo "$ac_try_echo") >&5
19449 (eval "$ac_try") 2>&5
19451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); }; }; then
19453 ac_cv_sizeof_off_t=`cat conftest.val`
19455 $as_echo "$as_me: program exited with status $ac_status" >&5
19456 $as_echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.$ac_ext >&5
19459 ( exit $ac_status )
19460 if test "$ac_cv_type_off_t" = yes; then
19461 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19463 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
19464 See \`config.log' for more details." >&5
19465 $as_echo "$as_me: error: cannot compute sizeof (off_t)
19466 See \`config.log' for more details." >&2;}
19467 { (exit 77); exit 77; }; }; }
19469 ac_cv_sizeof_off_t=0
19472 rm -rf conftest.dSYM
19473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19477 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
19478 $as_echo "$ac_cv_sizeof_off_t" >&6; }
19482 cat >>confdefs.h <<_ACEOF
19483 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
19488 # If we don't have largefile support, can't handle segsize >= 2GB.
19489 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
19490 { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
19491 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
19492 { (exit 1); exit 1; }; }
19497 ## Functions, global variables
19500 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
19501 $as_echo_n "checking for int timezone... " >&6; }
19502 if test "${pgac_cv_var_int_timezone+set}" = set; then
19503 $as_echo_n "(cached) " >&6
19505 cat >conftest.$ac_ext <<_ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h. */
19517 res = timezone / 60;
19519 res = _timezone / 60;
19525 rm -f conftest.$ac_objext conftest$ac_exeext
19526 if { (ac_try="$ac_link"
19527 case "(($ac_try" in
19528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529 *) ac_try_echo=$ac_try;;
19531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19532 $as_echo "$ac_try_echo") >&5
19533 (eval "$ac_link") 2>conftest.er1
19535 grep -v '^ *+' conftest.er1 >conftest.err
19537 cat conftest.err >&5
19538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); } && {
19540 test -z "$ac_c_werror_flag" ||
19541 test ! -s conftest.err
19542 } && test -s conftest$ac_exeext && {
19543 test "$cross_compiling" = yes ||
19544 $as_test_x conftest$ac_exeext
19546 pgac_cv_var_int_timezone=yes
19548 $as_echo "$as_me: failed program was:" >&5
19549 sed 's/^/| /' conftest.$ac_ext >&5
19551 pgac_cv_var_int_timezone=no
19554 rm -rf conftest.dSYM
19555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19556 conftest$ac_exeext conftest.$ac_ext
19558 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
19559 $as_echo "$pgac_cv_var_int_timezone" >&6; }
19560 if test x"$pgac_cv_var_int_timezone" = xyes ; then
19562 cat >>confdefs.h <<\_ACEOF
19563 #define HAVE_INT_TIMEZONE 1
19567 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
19568 $as_echo_n "checking types of arguments for accept()... " >&6; }
19569 if test "${ac_cv_func_accept_return+set}" = set; then
19570 $as_echo_n "(cached) " >&6
19572 if test "${ac_cv_func_accept_arg1+set}" = set; then
19573 $as_echo_n "(cached) " >&6
19575 if test "${ac_cv_func_accept_arg2+set}" = set; then
19576 $as_echo_n "(cached) " >&6
19578 if test "${ac_cv_func_accept_arg3+set}" = set; then
19579 $as_echo_n "(cached) " >&6
19581 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
19582 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
19583 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
19584 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
19585 cat >conftest.$ac_ext <<_ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h. */
19591 #ifdef HAVE_SYS_TYPES_H
19592 #include <sys/types.h>
19594 #ifdef HAVE_SYS_SOCKET_H
19595 #include <sys/socket.h>
19597 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
19606 rm -f conftest.$ac_objext
19607 if { (ac_try="$ac_compile"
19608 case "(($ac_try" in
19609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19610 *) ac_try_echo=$ac_try;;
19612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19613 $as_echo "$ac_try_echo") >&5
19614 (eval "$ac_compile") 2>conftest.er1
19616 grep -v '^ *+' conftest.er1 >conftest.err
19618 cat conftest.err >&5
19619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } && {
19621 test -z "$ac_c_werror_flag" ||
19622 test ! -s conftest.err
19623 } && test -s conftest.$ac_objext; then
19624 ac_not_found=no; break 4
19626 $as_echo "$as_me: failed program was:" >&5
19627 sed 's/^/| /' conftest.$ac_ext >&5
19632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19637 if test "$ac_not_found" = yes; then
19638 { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
19639 $as_echo "$as_me: error: could not determine argument types" >&2;}
19640 { (exit 1); exit 1; }; }
19642 if test "$ac_cv_func_accept_arg3" = "void"; then
19643 ac_cv_func_accept_arg3=int
19653 { $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
19654 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
19656 cat >>confdefs.h <<_ACEOF
19657 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
19661 cat >>confdefs.h <<_ACEOF
19662 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
19666 cat >>confdefs.h <<_ACEOF
19667 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
19671 cat >>confdefs.h <<_ACEOF
19672 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
19676 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
19677 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
19678 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
19679 $as_echo_n "(cached) " >&6
19681 cat >conftest.$ac_ext <<_ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19687 #include <sys/time.h>
19691 struct timeval *tp;
19692 struct timezone *tzp;
19693 gettimeofday(tp,tzp);
19698 rm -f conftest.$ac_objext
19699 if { (ac_try="$ac_compile"
19700 case "(($ac_try" in
19701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702 *) ac_try_echo=$ac_try;;
19704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19705 $as_echo "$ac_try_echo") >&5
19706 (eval "$ac_compile") 2>conftest.er1
19708 grep -v '^ *+' conftest.er1 >conftest.err
19710 cat conftest.err >&5
19711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } && {
19713 test -z "$ac_c_werror_flag" ||
19714 test ! -s conftest.err
19715 } && test -s conftest.$ac_objext; then
19716 pgac_cv_func_gettimeofday_1arg=no
19718 $as_echo "$as_me: failed program was:" >&5
19719 sed 's/^/| /' conftest.$ac_ext >&5
19721 pgac_cv_func_gettimeofday_1arg=yes
19724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19726 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
19727 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
19728 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
19730 cat >>confdefs.h <<\_ACEOF
19731 #define GETTIMEOFDAY_1ARG 1
19738 # Some versions of libedit contain strlcpy(), setproctitle(), and other
19739 # symbols that that library has no business exposing to the world. Pending
19740 # acquisition of a clue by those developers, ignore libedit (including its
19741 # possible alias of libreadline) while checking for everything else.
19742 LIBS_including_readline="$LIBS"
19743 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
19767 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
19769 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19770 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19771 $as_echo_n "checking for $ac_func... " >&6; }
19772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19773 $as_echo_n "(cached) " >&6
19775 cat >conftest.$ac_ext <<_ACEOF
19778 cat confdefs.h >>conftest.$ac_ext
19779 cat >>conftest.$ac_ext <<_ACEOF
19780 /* end confdefs.h. */
19781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19783 #define $ac_func innocuous_$ac_func
19785 /* System header to define __stub macros and hopefully few prototypes,
19786 which can conflict with char $ac_func (); below.
19787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19788 <limits.h> exists even on freestanding compilers. */
19791 # include <limits.h>
19793 # include <assert.h>
19798 /* Override any GCC internal prototype to avoid an error.
19799 Use char because int might match the return type of a GCC
19800 builtin and then its argument prototype would still apply. */
19805 /* The GNU C library defines this for functions which it implements
19806 to always fail with ENOSYS. Some functions are actually named
19807 something starting with __ and the normal name is an alias. */
19808 #if defined __stub_$ac_func || defined __stub___$ac_func
19815 return $ac_func ();
19820 rm -f conftest.$ac_objext conftest$ac_exeext
19821 if { (ac_try="$ac_link"
19822 case "(($ac_try" in
19823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19824 *) ac_try_echo=$ac_try;;
19826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19827 $as_echo "$ac_try_echo") >&5
19828 (eval "$ac_link") 2>conftest.er1
19830 grep -v '^ *+' conftest.er1 >conftest.err
19832 cat conftest.err >&5
19833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834 (exit $ac_status); } && {
19835 test -z "$ac_c_werror_flag" ||
19836 test ! -s conftest.err
19837 } && test -s conftest$ac_exeext && {
19838 test "$cross_compiling" = yes ||
19839 $as_test_x conftest$ac_exeext
19841 eval "$as_ac_var=yes"
19843 $as_echo "$as_me: failed program was:" >&5
19844 sed 's/^/| /' conftest.$ac_ext >&5
19846 eval "$as_ac_var=no"
19849 rm -rf conftest.dSYM
19850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19851 conftest$ac_exeext conftest.$ac_ext
19853 ac_res=`eval 'as_val=${'$as_ac_var'}
19854 $as_echo "$as_val"'`
19855 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19856 $as_echo "$ac_res" >&6; }
19857 as_val=`eval 'as_val=${'$as_ac_var'}
19858 $as_echo "$as_val"'`
19859 if test "x$as_val" = x""yes; then
19860 cat >>confdefs.h <<_ACEOF
19861 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19869 for ac_func in fseeko
19871 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19872 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19873 $as_echo_n "checking for $ac_func... " >&6; }
19874 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19875 $as_echo_n "(cached) " >&6
19877 cat >conftest.$ac_ext <<_ACEOF
19880 cat confdefs.h >>conftest.$ac_ext
19881 cat >>conftest.$ac_ext <<_ACEOF
19882 /* end confdefs.h. */
19883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19885 #define $ac_func innocuous_$ac_func
19887 /* System header to define __stub macros and hopefully few prototypes,
19888 which can conflict with char $ac_func (); below.
19889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19890 <limits.h> exists even on freestanding compilers. */
19893 # include <limits.h>
19895 # include <assert.h>
19900 /* Override any GCC internal prototype to avoid an error.
19901 Use char because int might match the return type of a GCC
19902 builtin and then its argument prototype would still apply. */
19907 /* The GNU C library defines this for functions which it implements
19908 to always fail with ENOSYS. Some functions are actually named
19909 something starting with __ and the normal name is an alias. */
19910 #if defined __stub_$ac_func || defined __stub___$ac_func
19917 return $ac_func ();
19922 rm -f conftest.$ac_objext conftest$ac_exeext
19923 if { (ac_try="$ac_link"
19924 case "(($ac_try" in
19925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19926 *) ac_try_echo=$ac_try;;
19928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19929 $as_echo "$ac_try_echo") >&5
19930 (eval "$ac_link") 2>conftest.er1
19932 grep -v '^ *+' conftest.er1 >conftest.err
19934 cat conftest.err >&5
19935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); } && {
19937 test -z "$ac_c_werror_flag" ||
19938 test ! -s conftest.err
19939 } && test -s conftest$ac_exeext && {
19940 test "$cross_compiling" = yes ||
19941 $as_test_x conftest$ac_exeext
19943 eval "$as_ac_var=yes"
19945 $as_echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.$ac_ext >&5
19948 eval "$as_ac_var=no"
19951 rm -rf conftest.dSYM
19952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19953 conftest$ac_exeext conftest.$ac_ext
19955 ac_res=`eval 'as_val=${'$as_ac_var'}
19956 $as_echo "$as_val"'`
19957 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19958 $as_echo "$ac_res" >&6; }
19959 as_val=`eval 'as_val=${'$as_ac_var'}
19960 $as_echo "$as_val"'`
19961 if test "x$as_val" = x""yes; then
19962 cat >>confdefs.h <<_ACEOF
19963 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19967 case " $LIBOBJS " in
19968 *" $ac_func.$ac_objext "* ) ;;
19969 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19978 # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
19979 # Mingw uses macros to access Win32 API calls
19982 cat >>confdefs.h <<\_ACEOF
19983 #define HAVE_FSEEKO 1
19986 ac_cv_func_fseeko=yes;;
19988 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19989 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19990 if test "${ac_cv_sys_largefile_source+set}" = set; then
19991 $as_echo_n "(cached) " >&6
19994 cat >conftest.$ac_ext <<_ACEOF
19997 cat confdefs.h >>conftest.$ac_ext
19998 cat >>conftest.$ac_ext <<_ACEOF
19999 /* end confdefs.h. */
20000 #include <sys/types.h> /* for off_t */
20005 int (*fp) (FILE *, off_t, int) = fseeko;
20006 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20011 rm -f conftest.$ac_objext conftest$ac_exeext
20012 if { (ac_try="$ac_link"
20013 case "(($ac_try" in
20014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20015 *) ac_try_echo=$ac_try;;
20017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20018 $as_echo "$ac_try_echo") >&5
20019 (eval "$ac_link") 2>conftest.er1
20021 grep -v '^ *+' conftest.er1 >conftest.err
20023 cat conftest.err >&5
20024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); } && {
20026 test -z "$ac_c_werror_flag" ||
20027 test ! -s conftest.err
20028 } && test -s conftest$ac_exeext && {
20029 test "$cross_compiling" = yes ||
20030 $as_test_x conftest$ac_exeext
20032 ac_cv_sys_largefile_source=no; break
20034 $as_echo "$as_me: failed program was:" >&5
20035 sed 's/^/| /' conftest.$ac_ext >&5
20040 rm -rf conftest.dSYM
20041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20042 conftest$ac_exeext conftest.$ac_ext
20043 cat >conftest.$ac_ext <<_ACEOF
20046 cat confdefs.h >>conftest.$ac_ext
20047 cat >>conftest.$ac_ext <<_ACEOF
20048 /* end confdefs.h. */
20049 #define _LARGEFILE_SOURCE 1
20050 #include <sys/types.h> /* for off_t */
20055 int (*fp) (FILE *, off_t, int) = fseeko;
20056 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20061 rm -f conftest.$ac_objext conftest$ac_exeext
20062 if { (ac_try="$ac_link"
20063 case "(($ac_try" in
20064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20065 *) ac_try_echo=$ac_try;;
20067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20068 $as_echo "$ac_try_echo") >&5
20069 (eval "$ac_link") 2>conftest.er1
20071 grep -v '^ *+' conftest.er1 >conftest.err
20073 cat conftest.err >&5
20074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); } && {
20076 test -z "$ac_c_werror_flag" ||
20077 test ! -s conftest.err
20078 } && test -s conftest$ac_exeext && {
20079 test "$cross_compiling" = yes ||
20080 $as_test_x conftest$ac_exeext
20082 ac_cv_sys_largefile_source=1; break
20084 $as_echo "$as_me: failed program was:" >&5
20085 sed 's/^/| /' conftest.$ac_ext >&5
20090 rm -rf conftest.dSYM
20091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20092 conftest$ac_exeext conftest.$ac_ext
20093 ac_cv_sys_largefile_source=unknown
20097 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20098 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20099 case $ac_cv_sys_largefile_source in #(
20102 cat >>confdefs.h <<_ACEOF
20103 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20109 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20110 # in glibc 2.1.3, but that breaks too many other things.
20111 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20112 if test $ac_cv_sys_largefile_source != unknown; then
20114 cat >>confdefs.h <<\_ACEOF
20115 #define HAVE_FSEEKO 1
20122 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
20123 # by calling it, 2009-04-02
20124 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
20125 if test "$PORTNAME" != "solaris"; then
20127 for ac_func in posix_fadvise
20129 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20130 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20131 $as_echo_n "checking for $ac_func... " >&6; }
20132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20133 $as_echo_n "(cached) " >&6
20135 cat >conftest.$ac_ext <<_ACEOF
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h. */
20141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20143 #define $ac_func innocuous_$ac_func
20145 /* System header to define __stub macros and hopefully few prototypes,
20146 which can conflict with char $ac_func (); below.
20147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20148 <limits.h> exists even on freestanding compilers. */
20151 # include <limits.h>
20153 # include <assert.h>
20158 /* Override any GCC internal prototype to avoid an error.
20159 Use char because int might match the return type of a GCC
20160 builtin and then its argument prototype would still apply. */
20165 /* The GNU C library defines this for functions which it implements
20166 to always fail with ENOSYS. Some functions are actually named
20167 something starting with __ and the normal name is an alias. */
20168 #if defined __stub_$ac_func || defined __stub___$ac_func
20175 return $ac_func ();
20180 rm -f conftest.$ac_objext conftest$ac_exeext
20181 if { (ac_try="$ac_link"
20182 case "(($ac_try" in
20183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184 *) ac_try_echo=$ac_try;;
20186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20187 $as_echo "$ac_try_echo") >&5
20188 (eval "$ac_link") 2>conftest.er1
20190 grep -v '^ *+' conftest.er1 >conftest.err
20192 cat conftest.err >&5
20193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); } && {
20195 test -z "$ac_c_werror_flag" ||
20196 test ! -s conftest.err
20197 } && test -s conftest$ac_exeext && {
20198 test "$cross_compiling" = yes ||
20199 $as_test_x conftest$ac_exeext
20201 eval "$as_ac_var=yes"
20203 $as_echo "$as_me: failed program was:" >&5
20204 sed 's/^/| /' conftest.$ac_ext >&5
20206 eval "$as_ac_var=no"
20209 rm -rf conftest.dSYM
20210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20211 conftest$ac_exeext conftest.$ac_ext
20213 ac_res=`eval 'as_val=${'$as_ac_var'}
20214 $as_echo "$as_val"'`
20215 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20216 $as_echo "$ac_res" >&6; }
20217 as_val=`eval 'as_val=${'$as_ac_var'}
20218 $as_echo "$as_val"'`
20219 if test "x$as_val" = x""yes; then
20220 cat >>confdefs.h <<_ACEOF
20221 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20227 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
20228 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
20229 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
20230 $as_echo_n "(cached) " >&6
20232 cat >conftest.$ac_ext <<_ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h. */
20243 #ifndef posix_fadvise
20244 (void) posix_fadvise;
20251 rm -f conftest.$ac_objext
20252 if { (ac_try="$ac_compile"
20253 case "(($ac_try" in
20254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20255 *) ac_try_echo=$ac_try;;
20257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20258 $as_echo "$ac_try_echo") >&5
20259 (eval "$ac_compile") 2>conftest.er1
20261 grep -v '^ *+' conftest.er1 >conftest.err
20263 cat conftest.err >&5
20264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); } && {
20266 test -z "$ac_c_werror_flag" ||
20267 test ! -s conftest.err
20268 } && test -s conftest.$ac_objext; then
20269 ac_cv_have_decl_posix_fadvise=yes
20271 $as_echo "$as_me: failed program was:" >&5
20272 sed 's/^/| /' conftest.$ac_ext >&5
20274 ac_cv_have_decl_posix_fadvise=no
20277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20279 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
20280 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
20281 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
20283 cat >>confdefs.h <<_ACEOF
20284 #define HAVE_DECL_POSIX_FADVISE 1
20289 cat >>confdefs.h <<_ACEOF
20290 #define HAVE_DECL_POSIX_FADVISE 0
20299 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
20300 $as_echo_n "checking whether fdatasync is declared... " >&6; }
20301 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
20302 $as_echo_n "(cached) " >&6
20304 cat >conftest.$ac_ext <<_ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h. */
20310 #include <unistd.h>
20323 rm -f conftest.$ac_objext
20324 if { (ac_try="$ac_compile"
20325 case "(($ac_try" in
20326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20327 *) ac_try_echo=$ac_try;;
20329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20330 $as_echo "$ac_try_echo") >&5
20331 (eval "$ac_compile") 2>conftest.er1
20333 grep -v '^ *+' conftest.er1 >conftest.err
20335 cat conftest.err >&5
20336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); } && {
20338 test -z "$ac_c_werror_flag" ||
20339 test ! -s conftest.err
20340 } && test -s conftest.$ac_objext; then
20341 ac_cv_have_decl_fdatasync=yes
20343 $as_echo "$as_me: failed program was:" >&5
20344 sed 's/^/| /' conftest.$ac_ext >&5
20346 ac_cv_have_decl_fdatasync=no
20349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20351 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
20352 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
20353 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
20355 cat >>confdefs.h <<_ACEOF
20356 #define HAVE_DECL_FDATASYNC 1
20361 cat >>confdefs.h <<_ACEOF
20362 #define HAVE_DECL_FDATASYNC 0
20369 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
20370 $as_echo_n "checking whether strlcat is declared... " >&6; }
20371 if test "${ac_cv_have_decl_strlcat+set}" = set; then
20372 $as_echo_n "(cached) " >&6
20374 cat >conftest.$ac_ext <<_ACEOF
20377 cat confdefs.h >>conftest.$ac_ext
20378 cat >>conftest.$ac_ext <<_ACEOF
20379 /* end confdefs.h. */
20380 $ac_includes_default
20392 rm -f conftest.$ac_objext
20393 if { (ac_try="$ac_compile"
20394 case "(($ac_try" in
20395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20396 *) ac_try_echo=$ac_try;;
20398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20399 $as_echo "$ac_try_echo") >&5
20400 (eval "$ac_compile") 2>conftest.er1
20402 grep -v '^ *+' conftest.er1 >conftest.err
20404 cat conftest.err >&5
20405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); } && {
20407 test -z "$ac_c_werror_flag" ||
20408 test ! -s conftest.err
20409 } && test -s conftest.$ac_objext; then
20410 ac_cv_have_decl_strlcat=yes
20412 $as_echo "$as_me: failed program was:" >&5
20413 sed 's/^/| /' conftest.$ac_ext >&5
20415 ac_cv_have_decl_strlcat=no
20418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20420 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
20421 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
20422 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
20424 cat >>confdefs.h <<_ACEOF
20425 #define HAVE_DECL_STRLCAT 1
20430 cat >>confdefs.h <<_ACEOF
20431 #define HAVE_DECL_STRLCAT 0
20436 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
20437 $as_echo_n "checking whether strlcpy is declared... " >&6; }
20438 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
20439 $as_echo_n "(cached) " >&6
20441 cat >conftest.$ac_ext <<_ACEOF
20444 cat confdefs.h >>conftest.$ac_ext
20445 cat >>conftest.$ac_ext <<_ACEOF
20446 /* end confdefs.h. */
20447 $ac_includes_default
20459 rm -f conftest.$ac_objext
20460 if { (ac_try="$ac_compile"
20461 case "(($ac_try" in
20462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463 *) ac_try_echo=$ac_try;;
20465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20466 $as_echo "$ac_try_echo") >&5
20467 (eval "$ac_compile") 2>conftest.er1
20469 grep -v '^ *+' conftest.er1 >conftest.err
20471 cat conftest.err >&5
20472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); } && {
20474 test -z "$ac_c_werror_flag" ||
20475 test ! -s conftest.err
20476 } && test -s conftest.$ac_objext; then
20477 ac_cv_have_decl_strlcpy=yes
20479 $as_echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20482 ac_cv_have_decl_strlcpy=no
20485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20487 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
20488 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
20489 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
20491 cat >>confdefs.h <<_ACEOF
20492 #define HAVE_DECL_STRLCPY 1
20497 cat >>confdefs.h <<_ACEOF
20498 #define HAVE_DECL_STRLCPY 0
20505 # This is probably only present on Darwin, but may as well check always
20506 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
20507 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
20508 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
20509 $as_echo_n "(cached) " >&6
20511 cat >conftest.$ac_ext <<_ACEOF
20514 cat confdefs.h >>conftest.$ac_ext
20515 cat >>conftest.$ac_ext <<_ACEOF
20516 /* end confdefs.h. */
20522 #ifndef F_FULLFSYNC
20523 (void) F_FULLFSYNC;
20530 rm -f conftest.$ac_objext
20531 if { (ac_try="$ac_compile"
20532 case "(($ac_try" in
20533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20534 *) ac_try_echo=$ac_try;;
20536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20537 $as_echo "$ac_try_echo") >&5
20538 (eval "$ac_compile") 2>conftest.er1
20540 grep -v '^ *+' conftest.er1 >conftest.err
20542 cat conftest.err >&5
20543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); } && {
20545 test -z "$ac_c_werror_flag" ||
20546 test ! -s conftest.err
20547 } && test -s conftest.$ac_objext; then
20548 ac_cv_have_decl_F_FULLFSYNC=yes
20550 $as_echo "$as_me: failed program was:" >&5
20551 sed 's/^/| /' conftest.$ac_ext >&5
20553 ac_cv_have_decl_F_FULLFSYNC=no
20556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20558 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
20559 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
20560 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
20562 cat >>confdefs.h <<_ACEOF
20563 #define HAVE_DECL_F_FULLFSYNC 1
20568 cat >>confdefs.h <<_ACEOF
20569 #define HAVE_DECL_F_FULLFSYNC 0
20578 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
20579 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
20580 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
20581 $as_echo_n "(cached) " >&6
20583 ac_cv_type_struct_sockaddr_in6=no
20584 cat >conftest.$ac_ext <<_ACEOF
20587 cat confdefs.h >>conftest.$ac_ext
20588 cat >>conftest.$ac_ext <<_ACEOF
20589 /* end confdefs.h. */
20590 $ac_includes_default
20591 #include <netinet/in.h>
20596 if (sizeof (struct sockaddr_in6))
20602 rm -f conftest.$ac_objext
20603 if { (ac_try="$ac_compile"
20604 case "(($ac_try" in
20605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606 *) ac_try_echo=$ac_try;;
20608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20609 $as_echo "$ac_try_echo") >&5
20610 (eval "$ac_compile") 2>conftest.er1
20612 grep -v '^ *+' conftest.er1 >conftest.err
20614 cat conftest.err >&5
20615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); } && {
20617 test -z "$ac_c_werror_flag" ||
20618 test ! -s conftest.err
20619 } && test -s conftest.$ac_objext; then
20620 cat >conftest.$ac_ext <<_ACEOF
20623 cat confdefs.h >>conftest.$ac_ext
20624 cat >>conftest.$ac_ext <<_ACEOF
20625 /* end confdefs.h. */
20626 $ac_includes_default
20627 #include <netinet/in.h>
20632 if (sizeof ((struct sockaddr_in6)))
20638 rm -f conftest.$ac_objext
20639 if { (ac_try="$ac_compile"
20640 case "(($ac_try" in
20641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642 *) ac_try_echo=$ac_try;;
20644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20645 $as_echo "$ac_try_echo") >&5
20646 (eval "$ac_compile") 2>conftest.er1
20648 grep -v '^ *+' conftest.er1 >conftest.err
20650 cat conftest.err >&5
20651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652 (exit $ac_status); } && {
20653 test -z "$ac_c_werror_flag" ||
20654 test ! -s conftest.err
20655 } && test -s conftest.$ac_objext; then
20658 $as_echo "$as_me: failed program was:" >&5
20659 sed 's/^/| /' conftest.$ac_ext >&5
20661 ac_cv_type_struct_sockaddr_in6=yes
20664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20666 $as_echo "$as_me: failed program was:" >&5
20667 sed 's/^/| /' conftest.$ac_ext >&5
20672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20674 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
20675 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
20676 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
20678 cat >>confdefs.h <<\_ACEOF
20679 #define HAVE_IPV6 1
20687 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
20688 $as_echo_n "checking for PS_STRINGS... " >&6; }
20689 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
20690 $as_echo_n "(cached) " >&6
20692 cat >conftest.$ac_ext <<_ACEOF
20695 cat confdefs.h >>conftest.$ac_ext
20696 cat >>conftest.$ac_ext <<_ACEOF
20697 /* end confdefs.h. */
20698 #include <machine/vmparam.h>
20699 #include <sys/exec.h>
20704 PS_STRINGS->ps_nargvstr = 1;
20705 PS_STRINGS->ps_argvstr = "foo";
20710 rm -f conftest.$ac_objext conftest$ac_exeext
20711 if { (ac_try="$ac_link"
20712 case "(($ac_try" in
20713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20714 *) ac_try_echo=$ac_try;;
20716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20717 $as_echo "$ac_try_echo") >&5
20718 (eval "$ac_link") 2>conftest.er1
20720 grep -v '^ *+' conftest.er1 >conftest.err
20722 cat conftest.err >&5
20723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20724 (exit $ac_status); } && {
20725 test -z "$ac_c_werror_flag" ||
20726 test ! -s conftest.err
20727 } && test -s conftest$ac_exeext && {
20728 test "$cross_compiling" = yes ||
20729 $as_test_x conftest$ac_exeext
20731 pgac_cv_var_PS_STRINGS=yes
20733 $as_echo "$as_me: failed program was:" >&5
20734 sed 's/^/| /' conftest.$ac_ext >&5
20736 pgac_cv_var_PS_STRINGS=no
20739 rm -rf conftest.dSYM
20740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20741 conftest$ac_exeext conftest.$ac_ext
20743 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
20744 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
20745 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
20747 cat >>confdefs.h <<\_ACEOF
20748 #define HAVE_PS_STRINGS 1
20754 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
20755 # is missing. Yes, there are machines that have only one. We may
20756 # also decide to use snprintf.c if snprintf() is present but does not
20757 # have all the features we need --- see below.
20759 if test "$PORTNAME" = "win32"; then
20760 # Win32 gets snprintf.c built unconditionally.
20762 # To properly translate all NLS languages strings, we must support the
20763 # *printf() %$ format, which allows *printf() arguments to be selected
20764 # by position in the translated string.
20766 # libintl versions < 0.13 use the native *printf() functions, and Win32
20767 # *printf() doesn't understand %$, so we must use our /port versions,
20768 # which do understand %$. libintl versions >= 0.13 include their own
20769 # *printf versions on Win32. The libintl 0.13 release note text is:
20771 # C format strings with positions, as they arise when a translator
20772 # needs to reorder a sentence, are now supported on all platforms.
20773 # On those few platforms (NetBSD and Woe32) for which the native
20774 # printf()/fprintf()/... functions don't support such format
20775 # strings, replacements are provided through <libintl.h>.
20777 # We could use libintl >= 0.13's *printf() if we were sure that we had
20778 # a litint >= 0.13 at runtime, but seeing that there is no clean way
20779 # to guarantee that, it is best to just use our own, so we are sure to
20780 # get %$ support. In include/port.h we disable the *printf() macros
20781 # that might have been defined by libintl.
20783 # We do this unconditionally whether NLS is used or not so we are sure
20784 # that all Win32 libraries and binaries behave the same.
20785 pgac_need_repl_snprintf=yes
20787 pgac_need_repl_snprintf=no
20789 for ac_func in snprintf
20791 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20792 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20793 $as_echo_n "checking for $ac_func... " >&6; }
20794 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20795 $as_echo_n "(cached) " >&6
20797 cat >conftest.$ac_ext <<_ACEOF
20800 cat confdefs.h >>conftest.$ac_ext
20801 cat >>conftest.$ac_ext <<_ACEOF
20802 /* end confdefs.h. */
20803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20805 #define $ac_func innocuous_$ac_func
20807 /* System header to define __stub macros and hopefully few prototypes,
20808 which can conflict with char $ac_func (); below.
20809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20810 <limits.h> exists even on freestanding compilers. */
20813 # include <limits.h>
20815 # include <assert.h>
20820 /* Override any GCC internal prototype to avoid an error.
20821 Use char because int might match the return type of a GCC
20822 builtin and then its argument prototype would still apply. */
20827 /* The GNU C library defines this for functions which it implements
20828 to always fail with ENOSYS. Some functions are actually named
20829 something starting with __ and the normal name is an alias. */
20830 #if defined __stub_$ac_func || defined __stub___$ac_func
20837 return $ac_func ();
20842 rm -f conftest.$ac_objext conftest$ac_exeext
20843 if { (ac_try="$ac_link"
20844 case "(($ac_try" in
20845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20846 *) ac_try_echo=$ac_try;;
20848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20849 $as_echo "$ac_try_echo") >&5
20850 (eval "$ac_link") 2>conftest.er1
20852 grep -v '^ *+' conftest.er1 >conftest.err
20854 cat conftest.err >&5
20855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); } && {
20857 test -z "$ac_c_werror_flag" ||
20858 test ! -s conftest.err
20859 } && test -s conftest$ac_exeext && {
20860 test "$cross_compiling" = yes ||
20861 $as_test_x conftest$ac_exeext
20863 eval "$as_ac_var=yes"
20865 $as_echo "$as_me: failed program was:" >&5
20866 sed 's/^/| /' conftest.$ac_ext >&5
20868 eval "$as_ac_var=no"
20871 rm -rf conftest.dSYM
20872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20873 conftest$ac_exeext conftest.$ac_ext
20875 ac_res=`eval 'as_val=${'$as_ac_var'}
20876 $as_echo "$as_val"'`
20877 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20878 $as_echo "$ac_res" >&6; }
20879 as_val=`eval 'as_val=${'$as_ac_var'}
20880 $as_echo "$as_val"'`
20881 if test "x$as_val" = x""yes; then
20882 cat >>confdefs.h <<_ACEOF
20883 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20887 pgac_need_repl_snprintf=yes
20892 for ac_func in vsnprintf
20894 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20895 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20896 $as_echo_n "checking for $ac_func... " >&6; }
20897 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20898 $as_echo_n "(cached) " >&6
20900 cat >conftest.$ac_ext <<_ACEOF
20903 cat confdefs.h >>conftest.$ac_ext
20904 cat >>conftest.$ac_ext <<_ACEOF
20905 /* end confdefs.h. */
20906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20908 #define $ac_func innocuous_$ac_func
20910 /* System header to define __stub macros and hopefully few prototypes,
20911 which can conflict with char $ac_func (); below.
20912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20913 <limits.h> exists even on freestanding compilers. */
20916 # include <limits.h>
20918 # include <assert.h>
20923 /* Override any GCC internal prototype to avoid an error.
20924 Use char because int might match the return type of a GCC
20925 builtin and then its argument prototype would still apply. */
20930 /* The GNU C library defines this for functions which it implements
20931 to always fail with ENOSYS. Some functions are actually named
20932 something starting with __ and the normal name is an alias. */
20933 #if defined __stub_$ac_func || defined __stub___$ac_func
20940 return $ac_func ();
20945 rm -f conftest.$ac_objext conftest$ac_exeext
20946 if { (ac_try="$ac_link"
20947 case "(($ac_try" in
20948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20949 *) ac_try_echo=$ac_try;;
20951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20952 $as_echo "$ac_try_echo") >&5
20953 (eval "$ac_link") 2>conftest.er1
20955 grep -v '^ *+' conftest.er1 >conftest.err
20957 cat conftest.err >&5
20958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); } && {
20960 test -z "$ac_c_werror_flag" ||
20961 test ! -s conftest.err
20962 } && test -s conftest$ac_exeext && {
20963 test "$cross_compiling" = yes ||
20964 $as_test_x conftest$ac_exeext
20966 eval "$as_ac_var=yes"
20968 $as_echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20971 eval "$as_ac_var=no"
20974 rm -rf conftest.dSYM
20975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20976 conftest$ac_exeext conftest.$ac_ext
20978 ac_res=`eval 'as_val=${'$as_ac_var'}
20979 $as_echo "$as_val"'`
20980 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20981 $as_echo "$ac_res" >&6; }
20982 as_val=`eval 'as_val=${'$as_ac_var'}
20983 $as_echo "$as_val"'`
20984 if test "x$as_val" = x""yes; then
20985 cat >>confdefs.h <<_ACEOF
20986 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20990 pgac_need_repl_snprintf=yes
20997 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
20998 # include/c.h will provide declarations. Note this is a separate test
20999 # from whether the functions exist in the C library --- there are
21000 # systems that have the functions but don't bother to declare them :-(
21002 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
21003 $as_echo_n "checking whether snprintf is declared... " >&6; }
21004 if test "${ac_cv_have_decl_snprintf+set}" = set; then
21005 $as_echo_n "(cached) " >&6
21007 cat >conftest.$ac_ext <<_ACEOF
21010 cat confdefs.h >>conftest.$ac_ext
21011 cat >>conftest.$ac_ext <<_ACEOF
21012 /* end confdefs.h. */
21013 $ac_includes_default
21025 rm -f conftest.$ac_objext
21026 if { (ac_try="$ac_compile"
21027 case "(($ac_try" in
21028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21029 *) ac_try_echo=$ac_try;;
21031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21032 $as_echo "$ac_try_echo") >&5
21033 (eval "$ac_compile") 2>conftest.er1
21035 grep -v '^ *+' conftest.er1 >conftest.err
21037 cat conftest.err >&5
21038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); } && {
21040 test -z "$ac_c_werror_flag" ||
21041 test ! -s conftest.err
21042 } && test -s conftest.$ac_objext; then
21043 ac_cv_have_decl_snprintf=yes
21045 $as_echo "$as_me: failed program was:" >&5
21046 sed 's/^/| /' conftest.$ac_ext >&5
21048 ac_cv_have_decl_snprintf=no
21051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21053 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
21054 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
21055 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
21057 cat >>confdefs.h <<_ACEOF
21058 #define HAVE_DECL_SNPRINTF 1
21063 cat >>confdefs.h <<_ACEOF
21064 #define HAVE_DECL_SNPRINTF 0
21069 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
21070 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
21071 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
21072 $as_echo_n "(cached) " >&6
21074 cat >conftest.$ac_ext <<_ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h. */
21080 $ac_includes_default
21092 rm -f conftest.$ac_objext
21093 if { (ac_try="$ac_compile"
21094 case "(($ac_try" in
21095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21096 *) ac_try_echo=$ac_try;;
21098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21099 $as_echo "$ac_try_echo") >&5
21100 (eval "$ac_compile") 2>conftest.er1
21102 grep -v '^ *+' conftest.er1 >conftest.err
21104 cat conftest.err >&5
21105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); } && {
21107 test -z "$ac_c_werror_flag" ||
21108 test ! -s conftest.err
21109 } && test -s conftest.$ac_objext; then
21110 ac_cv_have_decl_vsnprintf=yes
21112 $as_echo "$as_me: failed program was:" >&5
21113 sed 's/^/| /' conftest.$ac_ext >&5
21115 ac_cv_have_decl_vsnprintf=no
21118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21120 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
21121 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
21122 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
21124 cat >>confdefs.h <<_ACEOF
21125 #define HAVE_DECL_VSNPRINTF 1
21130 cat >>confdefs.h <<_ACEOF
21131 #define HAVE_DECL_VSNPRINTF 0
21140 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
21141 $as_echo_n "checking for isinf... " >&6; }
21142 if test "${ac_cv_func_isinf+set}" = set; then
21143 $as_echo_n "(cached) " >&6
21145 cat >conftest.$ac_ext <<_ACEOF
21148 cat confdefs.h >>conftest.$ac_ext
21149 cat >>conftest.$ac_ext <<_ACEOF
21150 /* end confdefs.h. */
21153 double glob_double;
21158 return isinf(glob_double) ? 0 : 1;
21163 rm -f conftest.$ac_objext conftest$ac_exeext
21164 if { (ac_try="$ac_link"
21165 case "(($ac_try" in
21166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21167 *) ac_try_echo=$ac_try;;
21169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21170 $as_echo "$ac_try_echo") >&5
21171 (eval "$ac_link") 2>conftest.er1
21173 grep -v '^ *+' conftest.er1 >conftest.err
21175 cat conftest.err >&5
21176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); } && {
21178 test -z "$ac_c_werror_flag" ||
21179 test ! -s conftest.err
21180 } && test -s conftest$ac_exeext && {
21181 test "$cross_compiling" = yes ||
21182 $as_test_x conftest$ac_exeext
21184 ac_cv_func_isinf=yes
21186 $as_echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21189 ac_cv_func_isinf=no
21192 rm -rf conftest.dSYM
21193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21194 conftest$ac_exeext conftest.$ac_ext
21196 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
21197 $as_echo "$ac_cv_func_isinf" >&6; }
21199 if test $ac_cv_func_isinf = yes ; then
21201 cat >>confdefs.h <<\_ACEOF
21202 #define HAVE_ISINF 1
21206 case " $LIBOBJS " in
21207 *" isinf.$ac_objext "* ) ;;
21208 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
21212 # Look for a way to implement a substitute for isinf()
21217 for ac_func in fpclass fp_class fp_class_d class
21219 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21220 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21221 $as_echo_n "checking for $ac_func... " >&6; }
21222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21223 $as_echo_n "(cached) " >&6
21225 cat >conftest.$ac_ext <<_ACEOF
21228 cat confdefs.h >>conftest.$ac_ext
21229 cat >>conftest.$ac_ext <<_ACEOF
21230 /* end confdefs.h. */
21231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21233 #define $ac_func innocuous_$ac_func
21235 /* System header to define __stub macros and hopefully few prototypes,
21236 which can conflict with char $ac_func (); below.
21237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21238 <limits.h> exists even on freestanding compilers. */
21241 # include <limits.h>
21243 # include <assert.h>
21248 /* Override any GCC internal prototype to avoid an error.
21249 Use char because int might match the return type of a GCC
21250 builtin and then its argument prototype would still apply. */
21255 /* The GNU C library defines this for functions which it implements
21256 to always fail with ENOSYS. Some functions are actually named
21257 something starting with __ and the normal name is an alias. */
21258 #if defined __stub_$ac_func || defined __stub___$ac_func
21265 return $ac_func ();
21270 rm -f conftest.$ac_objext conftest$ac_exeext
21271 if { (ac_try="$ac_link"
21272 case "(($ac_try" in
21273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21274 *) ac_try_echo=$ac_try;;
21276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21277 $as_echo "$ac_try_echo") >&5
21278 (eval "$ac_link") 2>conftest.er1
21280 grep -v '^ *+' conftest.er1 >conftest.err
21282 cat conftest.err >&5
21283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); } && {
21285 test -z "$ac_c_werror_flag" ||
21286 test ! -s conftest.err
21287 } && test -s conftest$ac_exeext && {
21288 test "$cross_compiling" = yes ||
21289 $as_test_x conftest$ac_exeext
21291 eval "$as_ac_var=yes"
21293 $as_echo "$as_me: failed program was:" >&5
21294 sed 's/^/| /' conftest.$ac_ext >&5
21296 eval "$as_ac_var=no"
21299 rm -rf conftest.dSYM
21300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21301 conftest$ac_exeext conftest.$ac_ext
21303 ac_res=`eval 'as_val=${'$as_ac_var'}
21304 $as_echo "$as_val"'`
21305 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21306 $as_echo "$ac_res" >&6; }
21307 as_val=`eval 'as_val=${'$as_ac_var'}
21308 $as_echo "$as_val"'`
21309 if test "x$as_val" = x""yes; then
21310 cat >>confdefs.h <<_ACEOF
21311 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21330 for ac_func in crypt fls getopt getrusage inet_aton random rint srandom strerror strlcat strlcpy
21332 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21333 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21334 $as_echo_n "checking for $ac_func... " >&6; }
21335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21336 $as_echo_n "(cached) " >&6
21338 cat >conftest.$ac_ext <<_ACEOF
21341 cat confdefs.h >>conftest.$ac_ext
21342 cat >>conftest.$ac_ext <<_ACEOF
21343 /* end confdefs.h. */
21344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21346 #define $ac_func innocuous_$ac_func
21348 /* System header to define __stub macros and hopefully few prototypes,
21349 which can conflict with char $ac_func (); below.
21350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21351 <limits.h> exists even on freestanding compilers. */
21354 # include <limits.h>
21356 # include <assert.h>
21361 /* Override any GCC internal prototype to avoid an error.
21362 Use char because int might match the return type of a GCC
21363 builtin and then its argument prototype would still apply. */
21368 /* The GNU C library defines this for functions which it implements
21369 to always fail with ENOSYS. Some functions are actually named
21370 something starting with __ and the normal name is an alias. */
21371 #if defined __stub_$ac_func || defined __stub___$ac_func
21378 return $ac_func ();
21383 rm -f conftest.$ac_objext conftest$ac_exeext
21384 if { (ac_try="$ac_link"
21385 case "(($ac_try" in
21386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21387 *) ac_try_echo=$ac_try;;
21389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21390 $as_echo "$ac_try_echo") >&5
21391 (eval "$ac_link") 2>conftest.er1
21393 grep -v '^ *+' conftest.er1 >conftest.err
21395 cat conftest.err >&5
21396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); } && {
21398 test -z "$ac_c_werror_flag" ||
21399 test ! -s conftest.err
21400 } && test -s conftest$ac_exeext && {
21401 test "$cross_compiling" = yes ||
21402 $as_test_x conftest$ac_exeext
21404 eval "$as_ac_var=yes"
21406 $as_echo "$as_me: failed program was:" >&5
21407 sed 's/^/| /' conftest.$ac_ext >&5
21409 eval "$as_ac_var=no"
21412 rm -rf conftest.dSYM
21413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21414 conftest$ac_exeext conftest.$ac_ext
21416 ac_res=`eval 'as_val=${'$as_ac_var'}
21417 $as_echo "$as_val"'`
21418 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21419 $as_echo "$ac_res" >&6; }
21420 as_val=`eval 'as_val=${'$as_ac_var'}
21421 $as_echo "$as_val"'`
21422 if test "x$as_val" = x""yes; then
21423 cat >>confdefs.h <<_ACEOF
21424 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21428 case " $LIBOBJS " in
21429 *" $ac_func.$ac_objext "* ) ;;
21430 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21441 # Windows uses a specialised env handler
21442 # and doesn't need a replacement getpeereid because it doesn't use
21446 cat >>confdefs.h <<\_ACEOF
21447 #define HAVE_UNSETENV 1
21451 cat >>confdefs.h <<\_ACEOF
21452 #define HAVE_GETPEEREID 1
21455 ac_cv_func_unsetenv=yes
21456 ac_cv_func_getpeereid=yes;;
21460 for ac_func in unsetenv getpeereid
21462 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21463 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21464 $as_echo_n "checking for $ac_func... " >&6; }
21465 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21466 $as_echo_n "(cached) " >&6
21468 cat >conftest.$ac_ext <<_ACEOF
21471 cat confdefs.h >>conftest.$ac_ext
21472 cat >>conftest.$ac_ext <<_ACEOF
21473 /* end confdefs.h. */
21474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21476 #define $ac_func innocuous_$ac_func
21478 /* System header to define __stub macros and hopefully few prototypes,
21479 which can conflict with char $ac_func (); below.
21480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21481 <limits.h> exists even on freestanding compilers. */
21484 # include <limits.h>
21486 # include <assert.h>
21491 /* Override any GCC internal prototype to avoid an error.
21492 Use char because int might match the return type of a GCC
21493 builtin and then its argument prototype would still apply. */
21498 /* The GNU C library defines this for functions which it implements
21499 to always fail with ENOSYS. Some functions are actually named
21500 something starting with __ and the normal name is an alias. */
21501 #if defined __stub_$ac_func || defined __stub___$ac_func
21508 return $ac_func ();
21513 rm -f conftest.$ac_objext conftest$ac_exeext
21514 if { (ac_try="$ac_link"
21515 case "(($ac_try" in
21516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21517 *) ac_try_echo=$ac_try;;
21519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21520 $as_echo "$ac_try_echo") >&5
21521 (eval "$ac_link") 2>conftest.er1
21523 grep -v '^ *+' conftest.er1 >conftest.err
21525 cat conftest.err >&5
21526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); } && {
21528 test -z "$ac_c_werror_flag" ||
21529 test ! -s conftest.err
21530 } && test -s conftest$ac_exeext && {
21531 test "$cross_compiling" = yes ||
21532 $as_test_x conftest$ac_exeext
21534 eval "$as_ac_var=yes"
21536 $as_echo "$as_me: failed program was:" >&5
21537 sed 's/^/| /' conftest.$ac_ext >&5
21539 eval "$as_ac_var=no"
21542 rm -rf conftest.dSYM
21543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21544 conftest$ac_exeext conftest.$ac_ext
21546 ac_res=`eval 'as_val=${'$as_ac_var'}
21547 $as_echo "$as_val"'`
21548 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21549 $as_echo "$ac_res" >&6; }
21550 as_val=`eval 'as_val=${'$as_ac_var'}
21551 $as_echo "$as_val"'`
21552 if test "x$as_val" = x""yes; then
21553 cat >>confdefs.h <<_ACEOF
21554 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21558 case " $LIBOBJS " in
21559 *" $ac_func.$ac_objext "* ) ;;
21560 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21571 # System's version of getaddrinfo(), if any, may be used only if we found
21572 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
21573 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
21574 # versions of getaddrinfo don't follow normal C call protocol. This is OK
21575 # because we want to use our own getaddrinfo.c on Windows anyway.)
21576 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
21578 for ac_func in getaddrinfo
21580 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21581 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21582 $as_echo_n "checking for $ac_func... " >&6; }
21583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21584 $as_echo_n "(cached) " >&6
21586 cat >conftest.$ac_ext <<_ACEOF
21589 cat confdefs.h >>conftest.$ac_ext
21590 cat >>conftest.$ac_ext <<_ACEOF
21591 /* end confdefs.h. */
21592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21594 #define $ac_func innocuous_$ac_func
21596 /* System header to define __stub macros and hopefully few prototypes,
21597 which can conflict with char $ac_func (); below.
21598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21599 <limits.h> exists even on freestanding compilers. */
21602 # include <limits.h>
21604 # include <assert.h>
21609 /* Override any GCC internal prototype to avoid an error.
21610 Use char because int might match the return type of a GCC
21611 builtin and then its argument prototype would still apply. */
21616 /* The GNU C library defines this for functions which it implements
21617 to always fail with ENOSYS. Some functions are actually named
21618 something starting with __ and the normal name is an alias. */
21619 #if defined __stub_$ac_func || defined __stub___$ac_func
21626 return $ac_func ();
21631 rm -f conftest.$ac_objext conftest$ac_exeext
21632 if { (ac_try="$ac_link"
21633 case "(($ac_try" in
21634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21635 *) ac_try_echo=$ac_try;;
21637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21638 $as_echo "$ac_try_echo") >&5
21639 (eval "$ac_link") 2>conftest.er1
21641 grep -v '^ *+' conftest.er1 >conftest.err
21643 cat conftest.err >&5
21644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); } && {
21646 test -z "$ac_c_werror_flag" ||
21647 test ! -s conftest.err
21648 } && test -s conftest$ac_exeext && {
21649 test "$cross_compiling" = yes ||
21650 $as_test_x conftest$ac_exeext
21652 eval "$as_ac_var=yes"
21654 $as_echo "$as_me: failed program was:" >&5
21655 sed 's/^/| /' conftest.$ac_ext >&5
21657 eval "$as_ac_var=no"
21660 rm -rf conftest.dSYM
21661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21662 conftest$ac_exeext conftest.$ac_ext
21664 ac_res=`eval 'as_val=${'$as_ac_var'}
21665 $as_echo "$as_val"'`
21666 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21667 $as_echo "$ac_res" >&6; }
21668 as_val=`eval 'as_val=${'$as_ac_var'}
21669 $as_echo "$as_val"'`
21670 if test "x$as_val" = x""yes; then
21671 cat >>confdefs.h <<_ACEOF
21672 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21676 case " $LIBOBJS " in
21677 *" $ac_func.$ac_objext "* ) ;;
21678 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21687 case " $LIBOBJS " in
21688 *" getaddrinfo.$ac_objext "* ) ;;
21689 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21695 # Similarly, use system's getopt_long() only if system provides struct option.
21696 if test x"$ac_cv_type_struct_option" = xyes ; then
21698 for ac_func in getopt_long
21700 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21701 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21702 $as_echo_n "checking for $ac_func... " >&6; }
21703 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21704 $as_echo_n "(cached) " >&6
21706 cat >conftest.$ac_ext <<_ACEOF
21709 cat confdefs.h >>conftest.$ac_ext
21710 cat >>conftest.$ac_ext <<_ACEOF
21711 /* end confdefs.h. */
21712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21714 #define $ac_func innocuous_$ac_func
21716 /* System header to define __stub macros and hopefully few prototypes,
21717 which can conflict with char $ac_func (); below.
21718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21719 <limits.h> exists even on freestanding compilers. */
21722 # include <limits.h>
21724 # include <assert.h>
21729 /* Override any GCC internal prototype to avoid an error.
21730 Use char because int might match the return type of a GCC
21731 builtin and then its argument prototype would still apply. */
21736 /* The GNU C library defines this for functions which it implements
21737 to always fail with ENOSYS. Some functions are actually named
21738 something starting with __ and the normal name is an alias. */
21739 #if defined __stub_$ac_func || defined __stub___$ac_func
21746 return $ac_func ();
21751 rm -f conftest.$ac_objext conftest$ac_exeext
21752 if { (ac_try="$ac_link"
21753 case "(($ac_try" in
21754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755 *) ac_try_echo=$ac_try;;
21757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21758 $as_echo "$ac_try_echo") >&5
21759 (eval "$ac_link") 2>conftest.er1
21761 grep -v '^ *+' conftest.er1 >conftest.err
21763 cat conftest.err >&5
21764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); } && {
21766 test -z "$ac_c_werror_flag" ||
21767 test ! -s conftest.err
21768 } && test -s conftest$ac_exeext && {
21769 test "$cross_compiling" = yes ||
21770 $as_test_x conftest$ac_exeext
21772 eval "$as_ac_var=yes"
21774 $as_echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21777 eval "$as_ac_var=no"
21780 rm -rf conftest.dSYM
21781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21782 conftest$ac_exeext conftest.$ac_ext
21784 ac_res=`eval 'as_val=${'$as_ac_var'}
21785 $as_echo "$as_val"'`
21786 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21787 $as_echo "$ac_res" >&6; }
21788 as_val=`eval 'as_val=${'$as_ac_var'}
21789 $as_echo "$as_val"'`
21790 if test "x$as_val" = x""yes; then
21791 cat >>confdefs.h <<_ACEOF
21792 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21796 case " $LIBOBJS " in
21797 *" $ac_func.$ac_objext "* ) ;;
21798 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21807 case " $LIBOBJS " in
21808 *" getopt_long.$ac_objext "* ) ;;
21809 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21815 # Solaris' getopt() doesn't do what we want for long options, so always use
21816 # our version on that platform.
21817 if test "$PORTNAME" = "solaris"; then
21818 case " $LIBOBJS " in
21819 *" getopt.$ac_objext "* ) ;;
21820 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21826 # mingw has adopted a GNU-centric interpretation of optind/optreset,
21827 # so always use our version on Windows.
21828 if test "$PORTNAME" = "win32"; then
21829 case " $LIBOBJS " in
21830 *" getopt.$ac_objext "* ) ;;
21831 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21835 case " $LIBOBJS " in
21836 *" getopt_long.$ac_objext "* ) ;;
21837 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21844 if test "$PORTNAME" = "win32"; then
21846 for ac_func in gettimeofday
21848 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21849 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21850 $as_echo_n "checking for $ac_func... " >&6; }
21851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21852 $as_echo_n "(cached) " >&6
21854 cat >conftest.$ac_ext <<_ACEOF
21857 cat confdefs.h >>conftest.$ac_ext
21858 cat >>conftest.$ac_ext <<_ACEOF
21859 /* end confdefs.h. */
21860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21862 #define $ac_func innocuous_$ac_func
21864 /* System header to define __stub macros and hopefully few prototypes,
21865 which can conflict with char $ac_func (); below.
21866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21867 <limits.h> exists even on freestanding compilers. */
21870 # include <limits.h>
21872 # include <assert.h>
21877 /* Override any GCC internal prototype to avoid an error.
21878 Use char because int might match the return type of a GCC
21879 builtin and then its argument prototype would still apply. */
21884 /* The GNU C library defines this for functions which it implements
21885 to always fail with ENOSYS. Some functions are actually named
21886 something starting with __ and the normal name is an alias. */
21887 #if defined __stub_$ac_func || defined __stub___$ac_func
21894 return $ac_func ();
21899 rm -f conftest.$ac_objext conftest$ac_exeext
21900 if { (ac_try="$ac_link"
21901 case "(($ac_try" in
21902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21903 *) ac_try_echo=$ac_try;;
21905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21906 $as_echo "$ac_try_echo") >&5
21907 (eval "$ac_link") 2>conftest.er1
21909 grep -v '^ *+' conftest.er1 >conftest.err
21911 cat conftest.err >&5
21912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913 (exit $ac_status); } && {
21914 test -z "$ac_c_werror_flag" ||
21915 test ! -s conftest.err
21916 } && test -s conftest$ac_exeext && {
21917 test "$cross_compiling" = yes ||
21918 $as_test_x conftest$ac_exeext
21920 eval "$as_ac_var=yes"
21922 $as_echo "$as_me: failed program was:" >&5
21923 sed 's/^/| /' conftest.$ac_ext >&5
21925 eval "$as_ac_var=no"
21928 rm -rf conftest.dSYM
21929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21930 conftest$ac_exeext conftest.$ac_ext
21932 ac_res=`eval 'as_val=${'$as_ac_var'}
21933 $as_echo "$as_val"'`
21934 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21935 $as_echo "$ac_res" >&6; }
21936 as_val=`eval 'as_val=${'$as_ac_var'}
21937 $as_echo "$as_val"'`
21938 if test "x$as_val" = x""yes; then
21939 cat >>confdefs.h <<_ACEOF
21940 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21944 case " $LIBOBJS " in
21945 *" $ac_func.$ac_objext "* ) ;;
21946 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21954 case " $LIBOBJS " in
21955 *" kill.$ac_objext "* ) ;;
21956 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
21960 case " $LIBOBJS " in
21961 *" open.$ac_objext "* ) ;;
21962 *) LIBOBJS="$LIBOBJS open.$ac_objext"
21966 case " $LIBOBJS " in
21967 *" win32env.$ac_objext "* ) ;;
21968 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
21972 case " $LIBOBJS " in
21973 *" win32error.$ac_objext "* ) ;;
21974 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
21978 case " $LIBOBJS " in
21979 *" win32setlocale.$ac_objext "* ) ;;
21980 *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
21985 cat >>confdefs.h <<\_ACEOF
21986 #define HAVE_SYMLINK 1
21989 { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
21990 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
21991 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
21992 $as_echo_n "(cached) " >&6
21994 ac_cv_type_MINIDUMP_TYPE=no
21995 cat >conftest.$ac_ext <<_ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h. */
22002 #define WIN32_LEAN_AND_MEAN
22003 #include <windows.h>
22004 #include <string.h>
22005 #include <dbghelp.h>
22010 if (sizeof (MINIDUMP_TYPE))
22016 rm -f conftest.$ac_objext
22017 if { (ac_try="$ac_compile"
22018 case "(($ac_try" in
22019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22020 *) ac_try_echo=$ac_try;;
22022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22023 $as_echo "$ac_try_echo") >&5
22024 (eval "$ac_compile") 2>conftest.er1
22026 grep -v '^ *+' conftest.er1 >conftest.err
22028 cat conftest.err >&5
22029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030 (exit $ac_status); } && {
22031 test -z "$ac_c_werror_flag" ||
22032 test ! -s conftest.err
22033 } && test -s conftest.$ac_objext; then
22034 cat >conftest.$ac_ext <<_ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h. */
22041 #define WIN32_LEAN_AND_MEAN
22042 #include <windows.h>
22043 #include <string.h>
22044 #include <dbghelp.h>
22049 if (sizeof ((MINIDUMP_TYPE)))
22055 rm -f conftest.$ac_objext
22056 if { (ac_try="$ac_compile"
22057 case "(($ac_try" in
22058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22059 *) ac_try_echo=$ac_try;;
22061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22062 $as_echo "$ac_try_echo") >&5
22063 (eval "$ac_compile") 2>conftest.er1
22065 grep -v '^ *+' conftest.er1 >conftest.err
22067 cat conftest.err >&5
22068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069 (exit $ac_status); } && {
22070 test -z "$ac_c_werror_flag" ||
22071 test ! -s conftest.err
22072 } && test -s conftest.$ac_objext; then
22075 $as_echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22078 ac_cv_type_MINIDUMP_TYPE=yes
22081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22083 $as_echo "$as_me: failed program was:" >&5
22084 sed 's/^/| /' conftest.$ac_ext >&5
22089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22091 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
22092 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
22093 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
22095 cat >>confdefs.h <<_ACEOF
22096 #define HAVE_MINIDUMP_TYPE 1
22099 pgac_minidump_type=yes
22101 pgac_minidump_type=no
22105 if test x"$pgac_minidump_type" = x"yes" ; then
22106 have_win32_dbghelp=yes
22109 have_win32_dbghelp=no
22113 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
22114 $as_echo_n "checking for sigsetjmp... " >&6; }
22115 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
22116 $as_echo_n "(cached) " >&6
22118 cat >conftest.$ac_ext <<_ACEOF
22121 cat confdefs.h >>conftest.$ac_ext
22122 cat >>conftest.$ac_ext <<_ACEOF
22123 /* end confdefs.h. */
22124 #include <setjmp.h>
22128 sigjmp_buf x; sigsetjmp(x, 1);
22133 rm -f conftest.$ac_objext conftest$ac_exeext
22134 if { (ac_try="$ac_link"
22135 case "(($ac_try" in
22136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22137 *) ac_try_echo=$ac_try;;
22139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22140 $as_echo "$ac_try_echo") >&5
22141 (eval "$ac_link") 2>conftest.er1
22143 grep -v '^ *+' conftest.er1 >conftest.err
22145 cat conftest.err >&5
22146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); } && {
22148 test -z "$ac_c_werror_flag" ||
22149 test ! -s conftest.err
22150 } && test -s conftest$ac_exeext && {
22151 test "$cross_compiling" = yes ||
22152 $as_test_x conftest$ac_exeext
22154 pgac_cv_func_sigsetjmp=yes
22156 $as_echo "$as_me: failed program was:" >&5
22157 sed 's/^/| /' conftest.$ac_ext >&5
22159 pgac_cv_func_sigsetjmp=no
22162 rm -rf conftest.dSYM
22163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22164 conftest$ac_exeext conftest.$ac_ext
22166 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
22167 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
22168 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
22170 cat >>confdefs.h <<\_ACEOF
22171 #define HAVE_SIGSETJMP 1
22176 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
22177 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
22178 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
22179 $as_echo_n "(cached) " >&6
22181 cat >conftest.$ac_ext <<_ACEOF
22184 cat confdefs.h >>conftest.$ac_ext
22185 cat >>conftest.$ac_ext <<_ACEOF
22186 /* end confdefs.h. */
22187 #include <signal.h>
22188 /* NetBSD declares sys_siglist in unistd.h. */
22189 #ifdef HAVE_UNISTD_H
22190 # include <unistd.h>
22197 #ifndef sys_siglist
22198 (void) sys_siglist;
22205 rm -f conftest.$ac_objext
22206 if { (ac_try="$ac_compile"
22207 case "(($ac_try" in
22208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22209 *) ac_try_echo=$ac_try;;
22211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22212 $as_echo "$ac_try_echo") >&5
22213 (eval "$ac_compile") 2>conftest.er1
22215 grep -v '^ *+' conftest.er1 >conftest.err
22217 cat conftest.err >&5
22218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); } && {
22220 test -z "$ac_c_werror_flag" ||
22221 test ! -s conftest.err
22222 } && test -s conftest.$ac_objext; then
22223 ac_cv_have_decl_sys_siglist=yes
22225 $as_echo "$as_me: failed program was:" >&5
22226 sed 's/^/| /' conftest.$ac_ext >&5
22228 ac_cv_have_decl_sys_siglist=no
22231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22233 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
22234 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
22235 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
22237 cat >>confdefs.h <<_ACEOF
22238 #define HAVE_DECL_SYS_SIGLIST 1
22243 cat >>confdefs.h <<_ACEOF
22244 #define HAVE_DECL_SYS_SIGLIST 0
22253 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
22254 $as_echo_n "checking for syslog... " >&6; }
22255 if test "${ac_cv_func_syslog+set}" = set; then
22256 $as_echo_n "(cached) " >&6
22258 cat >conftest.$ac_ext <<_ACEOF
22261 cat confdefs.h >>conftest.$ac_ext
22262 cat >>conftest.$ac_ext <<_ACEOF
22263 /* end confdefs.h. */
22264 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
22265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22266 #define syslog innocuous_syslog
22268 /* System header to define __stub macros and hopefully few prototypes,
22269 which can conflict with char syslog (); below.
22270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22271 <limits.h> exists even on freestanding compilers. */
22274 # include <limits.h>
22276 # include <assert.h>
22281 /* Override any GCC internal prototype to avoid an error.
22282 Use char because int might match the return type of a GCC
22283 builtin and then its argument prototype would still apply. */
22288 /* The GNU C library defines this for functions which it implements
22289 to always fail with ENOSYS. Some functions are actually named
22290 something starting with __ and the normal name is an alias. */
22291 #if defined __stub_syslog || defined __stub___syslog
22303 rm -f conftest.$ac_objext conftest$ac_exeext
22304 if { (ac_try="$ac_link"
22305 case "(($ac_try" in
22306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22307 *) ac_try_echo=$ac_try;;
22309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22310 $as_echo "$ac_try_echo") >&5
22311 (eval "$ac_link") 2>conftest.er1
22313 grep -v '^ *+' conftest.er1 >conftest.err
22315 cat conftest.err >&5
22316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); } && {
22318 test -z "$ac_c_werror_flag" ||
22319 test ! -s conftest.err
22320 } && test -s conftest$ac_exeext && {
22321 test "$cross_compiling" = yes ||
22322 $as_test_x conftest$ac_exeext
22324 ac_cv_func_syslog=yes
22326 $as_echo "$as_me: failed program was:" >&5
22327 sed 's/^/| /' conftest.$ac_ext >&5
22329 ac_cv_func_syslog=no
22332 rm -rf conftest.dSYM
22333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22334 conftest$ac_exeext conftest.$ac_ext
22336 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
22337 $as_echo "$ac_cv_func_syslog" >&6; }
22338 if test "x$ac_cv_func_syslog" = x""yes; then
22339 if test "${ac_cv_header_syslog_h+set}" = set; then
22340 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22341 $as_echo_n "checking for syslog.h... " >&6; }
22342 if test "${ac_cv_header_syslog_h+set}" = set; then
22343 $as_echo_n "(cached) " >&6
22345 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22346 $as_echo "$ac_cv_header_syslog_h" >&6; }
22348 # Is the header compilable?
22349 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
22350 $as_echo_n "checking syslog.h usability... " >&6; }
22351 cat >conftest.$ac_ext <<_ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h. */
22357 $ac_includes_default
22358 #include <syslog.h>
22360 rm -f conftest.$ac_objext
22361 if { (ac_try="$ac_compile"
22362 case "(($ac_try" in
22363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22364 *) ac_try_echo=$ac_try;;
22366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22367 $as_echo "$ac_try_echo") >&5
22368 (eval "$ac_compile") 2>conftest.er1
22370 grep -v '^ *+' conftest.er1 >conftest.err
22372 cat conftest.err >&5
22373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374 (exit $ac_status); } && {
22375 test -z "$ac_c_werror_flag" ||
22376 test ! -s conftest.err
22377 } && test -s conftest.$ac_objext; then
22378 ac_header_compiler=yes
22380 $as_echo "$as_me: failed program was:" >&5
22381 sed 's/^/| /' conftest.$ac_ext >&5
22383 ac_header_compiler=no
22386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22387 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22388 $as_echo "$ac_header_compiler" >&6; }
22390 # Is the header present?
22391 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
22392 $as_echo_n "checking syslog.h presence... " >&6; }
22393 cat >conftest.$ac_ext <<_ACEOF
22396 cat confdefs.h >>conftest.$ac_ext
22397 cat >>conftest.$ac_ext <<_ACEOF
22398 /* end confdefs.h. */
22399 #include <syslog.h>
22401 if { (ac_try="$ac_cpp conftest.$ac_ext"
22402 case "(($ac_try" in
22403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22404 *) ac_try_echo=$ac_try;;
22406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22407 $as_echo "$ac_try_echo") >&5
22408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22410 grep -v '^ *+' conftest.er1 >conftest.err
22412 cat conftest.err >&5
22413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414 (exit $ac_status); } >/dev/null && {
22415 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22416 test ! -s conftest.err
22418 ac_header_preproc=yes
22420 $as_echo "$as_me: failed program was:" >&5
22421 sed 's/^/| /' conftest.$ac_ext >&5
22423 ac_header_preproc=no
22426 rm -f conftest.err conftest.$ac_ext
22427 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22428 $as_echo "$ac_header_preproc" >&6; }
22430 # So? What about this header?
22431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22433 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
22434 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22435 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
22436 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
22437 ac_header_preproc=yes
22440 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
22441 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
22442 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
22443 $as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
22444 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
22445 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
22446 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
22447 $as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
22448 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
22449 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
22450 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
22451 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
22453 ## ---------------------------------------- ##
22454 ## Report this to pgsql-bugs@postgresql.org ##
22455 ## ---------------------------------------- ##
22457 ) | sed "s/^/$as_me: WARNING: /" >&2
22460 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22461 $as_echo_n "checking for syslog.h... " >&6; }
22462 if test "${ac_cv_header_syslog_h+set}" = set; then
22463 $as_echo_n "(cached) " >&6
22465 ac_cv_header_syslog_h=$ac_header_preproc
22467 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22468 $as_echo "$ac_cv_header_syslog_h" >&6; }
22471 if test "x$ac_cv_header_syslog_h" = x""yes; then
22473 cat >>confdefs.h <<\_ACEOF
22474 #define HAVE_SYSLOG 1
22483 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
22484 $as_echo_n "checking for opterr... " >&6; }
22485 if test "${pgac_cv_var_int_opterr+set}" = set; then
22486 $as_echo_n "(cached) " >&6
22488 cat >conftest.$ac_ext <<_ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h. */
22494 #include <unistd.h>
22498 extern int opterr; opterr = 1;
22503 rm -f conftest.$ac_objext conftest$ac_exeext
22504 if { (ac_try="$ac_link"
22505 case "(($ac_try" in
22506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22507 *) ac_try_echo=$ac_try;;
22509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22510 $as_echo "$ac_try_echo") >&5
22511 (eval "$ac_link") 2>conftest.er1
22513 grep -v '^ *+' conftest.er1 >conftest.err
22515 cat conftest.err >&5
22516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517 (exit $ac_status); } && {
22518 test -z "$ac_c_werror_flag" ||
22519 test ! -s conftest.err
22520 } && test -s conftest$ac_exeext && {
22521 test "$cross_compiling" = yes ||
22522 $as_test_x conftest$ac_exeext
22524 pgac_cv_var_int_opterr=yes
22526 $as_echo "$as_me: failed program was:" >&5
22527 sed 's/^/| /' conftest.$ac_ext >&5
22529 pgac_cv_var_int_opterr=no
22532 rm -rf conftest.dSYM
22533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22534 conftest$ac_exeext conftest.$ac_ext
22536 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22537 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22538 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22540 cat >>confdefs.h <<\_ACEOF
22541 #define HAVE_INT_OPTERR 1
22546 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22547 $as_echo_n "checking for optreset... " >&6; }
22548 if test "${pgac_cv_var_int_optreset+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 #include <unistd.h>
22561 extern int optreset; optreset = 1;
22566 rm -f conftest.$ac_objext conftest$ac_exeext
22567 if { (ac_try="$ac_link"
22568 case "(($ac_try" in
22569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22570 *) ac_try_echo=$ac_try;;
22572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22573 $as_echo "$ac_try_echo") >&5
22574 (eval "$ac_link") 2>conftest.er1
22576 grep -v '^ *+' conftest.er1 >conftest.err
22578 cat conftest.err >&5
22579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580 (exit $ac_status); } && {
22581 test -z "$ac_c_werror_flag" ||
22582 test ! -s conftest.err
22583 } && test -s conftest$ac_exeext && {
22584 test "$cross_compiling" = yes ||
22585 $as_test_x conftest$ac_exeext
22587 pgac_cv_var_int_optreset=yes
22589 $as_echo "$as_me: failed program was:" >&5
22590 sed 's/^/| /' conftest.$ac_ext >&5
22592 pgac_cv_var_int_optreset=no
22595 rm -rf conftest.dSYM
22596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22597 conftest$ac_exeext conftest.$ac_ext
22599 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22600 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22601 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22603 cat >>confdefs.h <<\_ACEOF
22604 #define HAVE_INT_OPTRESET 1
22611 for ac_func in strtoll strtoq
22613 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22614 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22615 $as_echo_n "checking for $ac_func... " >&6; }
22616 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22617 $as_echo_n "(cached) " >&6
22619 cat >conftest.$ac_ext <<_ACEOF
22622 cat confdefs.h >>conftest.$ac_ext
22623 cat >>conftest.$ac_ext <<_ACEOF
22624 /* end confdefs.h. */
22625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22627 #define $ac_func innocuous_$ac_func
22629 /* System header to define __stub macros and hopefully few prototypes,
22630 which can conflict with char $ac_func (); below.
22631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22632 <limits.h> exists even on freestanding compilers. */
22635 # include <limits.h>
22637 # include <assert.h>
22642 /* Override any GCC internal prototype to avoid an error.
22643 Use char because int might match the return type of a GCC
22644 builtin and then its argument prototype would still apply. */
22649 /* The GNU C library defines this for functions which it implements
22650 to always fail with ENOSYS. Some functions are actually named
22651 something starting with __ and the normal name is an alias. */
22652 #if defined __stub_$ac_func || defined __stub___$ac_func
22659 return $ac_func ();
22664 rm -f conftest.$ac_objext conftest$ac_exeext
22665 if { (ac_try="$ac_link"
22666 case "(($ac_try" in
22667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22668 *) ac_try_echo=$ac_try;;
22670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22671 $as_echo "$ac_try_echo") >&5
22672 (eval "$ac_link") 2>conftest.er1
22674 grep -v '^ *+' conftest.er1 >conftest.err
22676 cat conftest.err >&5
22677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678 (exit $ac_status); } && {
22679 test -z "$ac_c_werror_flag" ||
22680 test ! -s conftest.err
22681 } && test -s conftest$ac_exeext && {
22682 test "$cross_compiling" = yes ||
22683 $as_test_x conftest$ac_exeext
22685 eval "$as_ac_var=yes"
22687 $as_echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22690 eval "$as_ac_var=no"
22693 rm -rf conftest.dSYM
22694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22695 conftest$ac_exeext conftest.$ac_ext
22697 ac_res=`eval 'as_val=${'$as_ac_var'}
22698 $as_echo "$as_val"'`
22699 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22700 $as_echo "$ac_res" >&6; }
22701 as_val=`eval 'as_val=${'$as_ac_var'}
22702 $as_echo "$as_val"'`
22703 if test "x$as_val" = x""yes; then
22704 cat >>confdefs.h <<_ACEOF
22705 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22713 for ac_func in strtoull strtouq
22715 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22716 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22717 $as_echo_n "checking for $ac_func... " >&6; }
22718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22719 $as_echo_n "(cached) " >&6
22721 cat >conftest.$ac_ext <<_ACEOF
22724 cat confdefs.h >>conftest.$ac_ext
22725 cat >>conftest.$ac_ext <<_ACEOF
22726 /* end confdefs.h. */
22727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22729 #define $ac_func innocuous_$ac_func
22731 /* System header to define __stub macros and hopefully few prototypes,
22732 which can conflict with char $ac_func (); below.
22733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22734 <limits.h> exists even on freestanding compilers. */
22737 # include <limits.h>
22739 # include <assert.h>
22744 /* Override any GCC internal prototype to avoid an error.
22745 Use char because int might match the return type of a GCC
22746 builtin and then its argument prototype would still apply. */
22751 /* The GNU C library defines this for functions which it implements
22752 to always fail with ENOSYS. Some functions are actually named
22753 something starting with __ and the normal name is an alias. */
22754 #if defined __stub_$ac_func || defined __stub___$ac_func
22761 return $ac_func ();
22766 rm -f conftest.$ac_objext conftest$ac_exeext
22767 if { (ac_try="$ac_link"
22768 case "(($ac_try" in
22769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22770 *) ac_try_echo=$ac_try;;
22772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22773 $as_echo "$ac_try_echo") >&5
22774 (eval "$ac_link") 2>conftest.er1
22776 grep -v '^ *+' conftest.er1 >conftest.err
22778 cat conftest.err >&5
22779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); } && {
22781 test -z "$ac_c_werror_flag" ||
22782 test ! -s conftest.err
22783 } && test -s conftest$ac_exeext && {
22784 test "$cross_compiling" = yes ||
22785 $as_test_x conftest$ac_exeext
22787 eval "$as_ac_var=yes"
22789 $as_echo "$as_me: failed program was:" >&5
22790 sed 's/^/| /' conftest.$ac_ext >&5
22792 eval "$as_ac_var=no"
22795 rm -rf conftest.dSYM
22796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22797 conftest$ac_exeext conftest.$ac_ext
22799 ac_res=`eval 'as_val=${'$as_ac_var'}
22800 $as_echo "$as_val"'`
22801 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22802 $as_echo "$ac_res" >&6; }
22803 as_val=`eval 'as_val=${'$as_ac_var'}
22804 $as_echo "$as_val"'`
22805 if test "x$as_val" = x""yes; then
22806 cat >>confdefs.h <<_ACEOF
22807 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22814 { $as_echo "$as_me:$LINENO: checking for builtin locking functions" >&5
22815 $as_echo_n "checking for builtin locking functions... " >&6; }
22816 if test "${pgac_cv_gcc_int_atomics+set}" = set; then
22817 $as_echo_n "(cached) " >&6
22819 cat >conftest.$ac_ext <<_ACEOF
22822 cat confdefs.h >>conftest.$ac_ext
22823 cat >>conftest.$ac_ext <<_ACEOF
22824 /* end confdefs.h. */
22830 __sync_lock_test_and_set(&lock, 1);
22831 __sync_lock_release(&lock);
22836 rm -f conftest.$ac_objext conftest$ac_exeext
22837 if { (ac_try="$ac_link"
22838 case "(($ac_try" in
22839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22840 *) ac_try_echo=$ac_try;;
22842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22843 $as_echo "$ac_try_echo") >&5
22844 (eval "$ac_link") 2>conftest.er1
22846 grep -v '^ *+' conftest.er1 >conftest.err
22848 cat conftest.err >&5
22849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850 (exit $ac_status); } && {
22851 test -z "$ac_c_werror_flag" ||
22852 test ! -s conftest.err
22853 } && test -s conftest$ac_exeext && {
22854 test "$cross_compiling" = yes ||
22855 $as_test_x conftest$ac_exeext
22857 pgac_cv_gcc_int_atomics="yes"
22859 $as_echo "$as_me: failed program was:" >&5
22860 sed 's/^/| /' conftest.$ac_ext >&5
22862 pgac_cv_gcc_int_atomics="no"
22865 rm -rf conftest.dSYM
22866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22867 conftest$ac_exeext conftest.$ac_ext
22869 { $as_echo "$as_me:$LINENO: result: $pgac_cv_gcc_int_atomics" >&5
22870 $as_echo "$pgac_cv_gcc_int_atomics" >&6; }
22871 if test x"$pgac_cv_gcc_int_atomics" = x"yes"; then
22873 cat >>confdefs.h <<\_ACEOF
22874 #define HAVE_GCC_INT_ATOMICS 1
22879 # Lastly, restore full LIBS list and check for readline/libedit symbols
22880 LIBS="$LIBS_including_readline"
22882 if test "$with_readline" = yes; then
22883 { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
22884 $as_echo_n "checking for rl_completion_append_character... " >&6; }
22885 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
22886 $as_echo_n "(cached) " >&6
22888 cat >conftest.$ac_ext <<_ACEOF
22891 cat confdefs.h >>conftest.$ac_ext
22892 cat >>conftest.$ac_ext <<_ACEOF
22893 /* end confdefs.h. */
22895 #ifdef HAVE_READLINE_READLINE_H
22896 # include <readline/readline.h>
22897 #elif defined(HAVE_READLINE_H)
22898 # include <readline.h>
22904 rl_completion_append_character = 'x';
22909 rm -f conftest.$ac_objext conftest$ac_exeext
22910 if { (ac_try="$ac_link"
22911 case "(($ac_try" in
22912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22913 *) ac_try_echo=$ac_try;;
22915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22916 $as_echo "$ac_try_echo") >&5
22917 (eval "$ac_link") 2>conftest.er1
22919 grep -v '^ *+' conftest.er1 >conftest.err
22921 cat conftest.err >&5
22922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923 (exit $ac_status); } && {
22924 test -z "$ac_c_werror_flag" ||
22925 test ! -s conftest.err
22926 } && test -s conftest$ac_exeext && {
22927 test "$cross_compiling" = yes ||
22928 $as_test_x conftest$ac_exeext
22930 pgac_cv_var_rl_completion_append_character=yes
22932 $as_echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22935 pgac_cv_var_rl_completion_append_character=no
22938 rm -rf conftest.dSYM
22939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22940 conftest$ac_exeext conftest.$ac_ext
22942 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
22943 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
22944 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
22946 cat >>confdefs.h <<\_ACEOF
22947 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
22953 for ac_func in rl_completion_matches rl_filename_completion_function
22955 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22956 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22957 $as_echo_n "checking for $ac_func... " >&6; }
22958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22959 $as_echo_n "(cached) " >&6
22961 cat >conftest.$ac_ext <<_ACEOF
22964 cat confdefs.h >>conftest.$ac_ext
22965 cat >>conftest.$ac_ext <<_ACEOF
22966 /* end confdefs.h. */
22967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22969 #define $ac_func innocuous_$ac_func
22971 /* System header to define __stub macros and hopefully few prototypes,
22972 which can conflict with char $ac_func (); below.
22973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22974 <limits.h> exists even on freestanding compilers. */
22977 # include <limits.h>
22979 # include <assert.h>
22984 /* Override any GCC internal prototype to avoid an error.
22985 Use char because int might match the return type of a GCC
22986 builtin and then its argument prototype would still apply. */
22991 /* The GNU C library defines this for functions which it implements
22992 to always fail with ENOSYS. Some functions are actually named
22993 something starting with __ and the normal name is an alias. */
22994 #if defined __stub_$ac_func || defined __stub___$ac_func
23001 return $ac_func ();
23006 rm -f conftest.$ac_objext conftest$ac_exeext
23007 if { (ac_try="$ac_link"
23008 case "(($ac_try" in
23009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23010 *) ac_try_echo=$ac_try;;
23012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23013 $as_echo "$ac_try_echo") >&5
23014 (eval "$ac_link") 2>conftest.er1
23016 grep -v '^ *+' conftest.er1 >conftest.err
23018 cat conftest.err >&5
23019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020 (exit $ac_status); } && {
23021 test -z "$ac_c_werror_flag" ||
23022 test ! -s conftest.err
23023 } && test -s conftest$ac_exeext && {
23024 test "$cross_compiling" = yes ||
23025 $as_test_x conftest$ac_exeext
23027 eval "$as_ac_var=yes"
23029 $as_echo "$as_me: failed program was:" >&5
23030 sed 's/^/| /' conftest.$ac_ext >&5
23032 eval "$as_ac_var=no"
23035 rm -rf conftest.dSYM
23036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23037 conftest$ac_exeext conftest.$ac_ext
23039 ac_res=`eval 'as_val=${'$as_ac_var'}
23040 $as_echo "$as_val"'`
23041 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23042 $as_echo "$ac_res" >&6; }
23043 as_val=`eval 'as_val=${'$as_ac_var'}
23044 $as_echo "$as_val"'`
23045 if test "x$as_val" = x""yes; then
23046 cat >>confdefs.h <<_ACEOF
23047 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23055 for ac_func in append_history history_truncate_file
23057 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23058 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23059 $as_echo_n "checking for $ac_func... " >&6; }
23060 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23061 $as_echo_n "(cached) " >&6
23063 cat >conftest.$ac_ext <<_ACEOF
23066 cat confdefs.h >>conftest.$ac_ext
23067 cat >>conftest.$ac_ext <<_ACEOF
23068 /* end confdefs.h. */
23069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23071 #define $ac_func innocuous_$ac_func
23073 /* System header to define __stub macros and hopefully few prototypes,
23074 which can conflict with char $ac_func (); below.
23075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23076 <limits.h> exists even on freestanding compilers. */
23079 # include <limits.h>
23081 # include <assert.h>
23086 /* Override any GCC internal prototype to avoid an error.
23087 Use char because int might match the return type of a GCC
23088 builtin and then its argument prototype would still apply. */
23093 /* The GNU C library defines this for functions which it implements
23094 to always fail with ENOSYS. Some functions are actually named
23095 something starting with __ and the normal name is an alias. */
23096 #if defined __stub_$ac_func || defined __stub___$ac_func
23103 return $ac_func ();
23108 rm -f conftest.$ac_objext conftest$ac_exeext
23109 if { (ac_try="$ac_link"
23110 case "(($ac_try" in
23111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23112 *) ac_try_echo=$ac_try;;
23114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23115 $as_echo "$ac_try_echo") >&5
23116 (eval "$ac_link") 2>conftest.er1
23118 grep -v '^ *+' conftest.er1 >conftest.err
23120 cat conftest.err >&5
23121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122 (exit $ac_status); } && {
23123 test -z "$ac_c_werror_flag" ||
23124 test ! -s conftest.err
23125 } && test -s conftest$ac_exeext && {
23126 test "$cross_compiling" = yes ||
23127 $as_test_x conftest$ac_exeext
23129 eval "$as_ac_var=yes"
23131 $as_echo "$as_me: failed program was:" >&5
23132 sed 's/^/| /' conftest.$ac_ext >&5
23134 eval "$as_ac_var=no"
23137 rm -rf conftest.dSYM
23138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23139 conftest$ac_exeext conftest.$ac_ext
23141 ac_res=`eval 'as_val=${'$as_ac_var'}
23142 $as_echo "$as_val"'`
23143 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23144 $as_echo "$ac_res" >&6; }
23145 as_val=`eval 'as_val=${'$as_ac_var'}
23146 $as_echo "$as_val"'`
23147 if test "x$as_val" = x""yes; then
23148 cat >>confdefs.h <<_ACEOF
23149 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23161 # For each platform, we need to know about any special compile and link
23162 # libraries, and whether the normal C function names are thread-safe.
23163 # See the comment at the top of src/port/thread.c for more information.
23164 # WIN32 doesn't need the pthread tests; it always uses threads
23165 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
23170 ac_cpp='$CPP $CPPFLAGS'
23171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23177 # We used to check for pthread.h first, but this fails if pthread.h
23178 # requires special compiler flags (e.g. on True64 or Sequent).
23179 # It gets checked for in the link test anyway.
23181 # First of all, check if the user has set any of the PTHREAD_LIBS,
23182 # etcetera environment variables, and if threads linking works using
23184 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
23185 save_CFLAGS="$CFLAGS"
23186 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23188 LIBS="$PTHREAD_LIBS $LIBS"
23189 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
23190 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
23191 cat >conftest.$ac_ext <<_ACEOF
23194 cat confdefs.h >>conftest.$ac_ext
23195 cat >>conftest.$ac_ext <<_ACEOF
23196 /* end confdefs.h. */
23198 /* Override any GCC internal prototype to avoid an error.
23199 Use char because int might match the return type of a GCC
23200 builtin and then its argument prototype would still apply. */
23204 char pthread_join ();
23208 return pthread_join ();
23213 rm -f conftest.$ac_objext conftest$ac_exeext
23214 if { (ac_try="$ac_link"
23215 case "(($ac_try" in
23216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23217 *) ac_try_echo=$ac_try;;
23219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23220 $as_echo "$ac_try_echo") >&5
23221 (eval "$ac_link") 2>conftest.er1
23223 grep -v '^ *+' conftest.er1 >conftest.err
23225 cat conftest.err >&5
23226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); } && {
23228 test -z "$ac_c_werror_flag" ||
23229 test ! -s conftest.err
23230 } && test -s conftest$ac_exeext && {
23231 test "$cross_compiling" = yes ||
23232 $as_test_x conftest$ac_exeext
23236 $as_echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23242 rm -rf conftest.dSYM
23243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23244 conftest$ac_exeext conftest.$ac_ext
23245 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23246 $as_echo "$acx_pthread_ok" >&6; }
23247 if test x"$acx_pthread_ok" = xno; then
23252 CFLAGS="$save_CFLAGS"
23255 # We must check for the threads library under a number of different
23256 # names; the ordering is very important because some systems
23257 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
23258 # libraries is broken (non-POSIX).
23260 # Create a list of thread flags to try. Items starting with a "-" are
23261 # C compiler flags, and other items are library names, except for "none"
23262 # which indicates that we try without any flags at all, and "pthread-config"
23263 # which is a program returning the flags for the Pth emulation library.
23265 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
23267 # The ordering *is* (sometimes) important. Some notes on the
23268 # individual items follow:
23270 # pthreads: AIX (must check this before -lpthread)
23271 # none: in case threads are in libc; should be tried before -Kthread and
23272 # other compiler flags to prevent continual compiler warnings
23273 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
23274 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
23275 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
23276 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
23277 # -pthreads: Solaris/gcc
23278 # -mthreads: Mingw32/gcc, Lynx/gcc
23279 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
23280 # doesn't hurt to check since this sometimes defines pthreads too;
23281 # also defines -D_REENTRANT)
23282 # pthread: Linux, etcetera
23283 # --thread-safe: KAI C++
23284 # pthread-config: use pthread-config program (for GNU Pth library)
23286 case "${host_cpu}-${host_os}" in
23289 # On Solaris (at least, for some versions), libc contains stubbed
23290 # (non-functional) versions of the pthreads routines, so link-based
23291 # tests will erroneously succeed. (We need to link with -pthread or
23292 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
23293 # a function called by this macro, so we could check for that, but
23294 # who knows whether they'll stub that too in a future libc.) So,
23295 # we'll just look for -pthreads and -lpthread first:
23297 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
23301 if test x"$acx_pthread_ok" = xno; then
23302 for flag in $acx_pthread_flags; do
23304 tryPTHREAD_CFLAGS=""
23308 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
23309 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
23313 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
23314 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
23315 tryPTHREAD_CFLAGS="$flag"
23319 # skip this if we already have flags defined, for PostgreSQL
23320 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
23321 # Extract the first word of "pthread-config", so it can be a program name with args.
23322 set dummy pthread-config; ac_word=$2
23323 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23324 $as_echo_n "checking for $ac_word... " >&6; }
23325 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
23326 $as_echo_n "(cached) " >&6
23328 if test -n "$acx_pthread_config"; then
23329 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
23331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23332 for as_dir in $PATH
23335 test -z "$as_dir" && as_dir=.
23336 for ac_exec_ext in '' $ac_executable_extensions; do
23337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23338 ac_cv_prog_acx_pthread_config="yes"
23339 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23346 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
23349 acx_pthread_config=$ac_cv_prog_acx_pthread_config
23350 if test -n "$acx_pthread_config"; then
23351 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
23352 $as_echo "$acx_pthread_config" >&6; }
23354 { $as_echo "$as_me:$LINENO: result: no" >&5
23355 $as_echo "no" >&6; }
23359 if test x"$acx_pthread_config" = xno; then continue; fi
23360 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
23361 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
23365 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
23366 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
23367 tryPTHREAD_LIBS="-l$flag"
23372 save_CFLAGS="$CFLAGS"
23373 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
23374 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
23376 # Check for various functions. We must include pthread.h,
23377 # since some functions may be macros. (On the Sequent, we
23378 # need a special flag -Kthread to make this header compile.)
23379 # We check for pthread_join because it is in -lpthread on IRIX
23380 # while pthread_create is in libc. We check for pthread_attr_init
23381 # due to DEC craziness with -lpthreads. We check for
23382 # pthread_cleanup_push because it is one of the few pthread
23383 # functions on Solaris that doesn't have a non-functional libc stub.
23384 # We try pthread_create on general principles.
23385 cat >conftest.$ac_ext <<_ACEOF
23388 cat confdefs.h >>conftest.$ac_ext
23389 cat >>conftest.$ac_ext <<_ACEOF
23390 /* end confdefs.h. */
23391 #include <pthread.h>
23395 pthread_t th; pthread_join(th, 0);
23396 pthread_attr_init(0); pthread_cleanup_push(0, 0);
23397 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23402 rm -f conftest.$ac_objext conftest$ac_exeext
23403 if { (ac_try="$ac_link"
23404 case "(($ac_try" in
23405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23406 *) ac_try_echo=$ac_try;;
23408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23409 $as_echo "$ac_try_echo") >&5
23410 (eval "$ac_link") 2>conftest.er1
23412 grep -v '^ *+' conftest.er1 >conftest.err
23414 cat conftest.err >&5
23415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416 (exit $ac_status); } && {
23417 test -z "$ac_c_werror_flag" ||
23418 test ! -s conftest.err
23419 } && test -s conftest$ac_exeext && {
23420 test "$cross_compiling" = yes ||
23421 $as_test_x conftest$ac_exeext
23425 $as_echo "$as_me: failed program was:" >&5
23426 sed 's/^/| /' conftest.$ac_ext >&5
23431 rm -rf conftest.dSYM
23432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23433 conftest$ac_exeext conftest.$ac_ext
23435 if test "x$acx_pthread_ok" = xyes; then
23436 # Don't use options that are ignored by the compiler.
23437 # We find them by checking stderror.
23438 cat >conftest.$ac_ext <<_ACEOF
23440 main (int argc, char **argv)
23447 rm -f conftest.$ac_objext conftest$ac_exeext
23448 # Check both linking and compiling, because they might tolerate different options.
23449 if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
23450 # we continue with more flags because Linux needs -lpthread
23451 # for libpq builds on PostgreSQL. The test above only
23452 # tests for building binaries, not shared libraries.
23453 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
23454 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
23455 else acx_pthread_ok=no
23460 CFLAGS="$save_CFLAGS"
23462 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23463 $as_echo "$acx_pthread_ok" >&6; }
23467 # Various other checks:
23468 if test "x$acx_pthread_ok" = xyes; then
23470 LIBS="$PTHREAD_LIBS $LIBS"
23471 save_CFLAGS="$CFLAGS"
23472 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23474 # Detect AIX lossage: threads are created detached by default
23475 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
23476 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
23477 $as_echo_n "checking for joinable pthread attribute... " >&6; }
23478 cat >conftest.$ac_ext <<_ACEOF
23481 cat confdefs.h >>conftest.$ac_ext
23482 cat >>conftest.$ac_ext <<_ACEOF
23483 /* end confdefs.h. */
23484 #include <pthread.h>
23488 int attr=PTHREAD_CREATE_JOINABLE;
23493 rm -f conftest.$ac_objext conftest$ac_exeext
23494 if { (ac_try="$ac_link"
23495 case "(($ac_try" in
23496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23497 *) ac_try_echo=$ac_try;;
23499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23500 $as_echo "$ac_try_echo") >&5
23501 (eval "$ac_link") 2>conftest.er1
23503 grep -v '^ *+' conftest.er1 >conftest.err
23505 cat conftest.err >&5
23506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507 (exit $ac_status); } && {
23508 test -z "$ac_c_werror_flag" ||
23509 test ! -s conftest.err
23510 } && test -s conftest$ac_exeext && {
23511 test "$cross_compiling" = yes ||
23512 $as_test_x conftest$ac_exeext
23514 ok=PTHREAD_CREATE_JOINABLE
23516 $as_echo "$as_me: failed program was:" >&5
23517 sed 's/^/| /' conftest.$ac_ext >&5
23522 rm -rf conftest.dSYM
23523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23524 conftest$ac_exeext conftest.$ac_ext
23525 if test x"$ok" = xunknown; then
23526 cat >conftest.$ac_ext <<_ACEOF
23529 cat confdefs.h >>conftest.$ac_ext
23530 cat >>conftest.$ac_ext <<_ACEOF
23531 /* end confdefs.h. */
23532 #include <pthread.h>
23536 int attr=PTHREAD_CREATE_UNDETACHED;
23541 rm -f conftest.$ac_objext conftest$ac_exeext
23542 if { (ac_try="$ac_link"
23543 case "(($ac_try" in
23544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23545 *) ac_try_echo=$ac_try;;
23547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23548 $as_echo "$ac_try_echo") >&5
23549 (eval "$ac_link") 2>conftest.er1
23551 grep -v '^ *+' conftest.er1 >conftest.err
23553 cat conftest.err >&5
23554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); } && {
23556 test -z "$ac_c_werror_flag" ||
23557 test ! -s conftest.err
23558 } && test -s conftest$ac_exeext && {
23559 test "$cross_compiling" = yes ||
23560 $as_test_x conftest$ac_exeext
23562 ok=PTHREAD_CREATE_UNDETACHED
23564 $as_echo "$as_me: failed program was:" >&5
23565 sed 's/^/| /' conftest.$ac_ext >&5
23570 rm -rf conftest.dSYM
23571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23572 conftest$ac_exeext conftest.$ac_ext
23574 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
23576 cat >>confdefs.h <<\_ACEOF
23577 #define PTHREAD_CREATE_JOINABLE $ok
23581 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
23582 $as_echo "${ok}" >&6; }
23583 if test x"$ok" = xunknown; then
23584 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
23585 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
23588 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23589 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
23591 # We always add these in PostgreSQL
23592 # case "${host_cpu}-${host_os}" in
23593 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23594 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23596 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
23597 $as_echo "${flag}" >&6; }
23598 if test "x$flag" != xno; then
23599 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23603 CFLAGS="$save_CFLAGS"
23605 # Supporting cc_r would require a special CC in all places that
23606 # use libpq, and that is ugly, so we don't do it. Users can still
23607 # define their compiler as cc_r to do thread builds of everything.
23608 # More AIX lossage: must compile with cc_r
23609 # Extract the first word of "cc_r", so it can be a program name with args.
23610 set dummy cc_r; ac_word=$2
23611 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23612 $as_echo_n "checking for $ac_word... " >&6; }
23613 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23614 $as_echo_n "(cached) " >&6
23616 if test -n "$PTHREAD_CC"; then
23617 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23620 for as_dir in $PATH
23623 test -z "$as_dir" && as_dir=.
23624 for ac_exec_ext in '' $ac_executable_extensions; do
23625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23626 ac_cv_prog_PTHREAD_CC="cc_r"
23627 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23634 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23637 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23638 if test -n "$PTHREAD_CC"; then
23639 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23640 $as_echo "$PTHREAD_CC" >&6; }
23642 { $as_echo "$as_me:$LINENO: result: no" >&5
23643 $as_echo "no" >&6; }
23655 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23656 if test x"$acx_pthread_ok" = xyes; then
23658 cat >>confdefs.h <<\_ACEOF
23659 #define HAVE_PTHREAD 1
23668 ac_cpp='$CPP $CPPFLAGS'
23669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23675 # Some platforms use these, so just define them. They can't hurt if they
23676 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23677 # enables 5-arg getpwuid_r, among other things.
23678 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23681 # At this point, we don't want to muck with the compiler name for threading.
23682 # Let's see who fails, perhaps AIX. 2004-04-23
23683 if test "$PTHREAD_CC" != "$CC"; then
23684 { { $as_echo "$as_me:$LINENO: error:
23685 PostgreSQL does not support platforms that require a special compiler
23686 for thread safety; use --disable-thread-safety to disable thread safety." >&5
23687 $as_echo "$as_me: error:
23688 PostgreSQL does not support platforms that require a special compiler
23689 for thread safety; use --disable-thread-safety to disable thread safety." >&2;}
23690 { (exit 1); exit 1; }; }
23693 # Check for *_r functions
23696 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23697 LIBS="$LIBS $PTHREAD_LIBS"
23699 if test "$PORTNAME" != "win32"; then
23700 if test "${ac_cv_header_pthread_h+set}" = set; then
23701 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23702 $as_echo_n "checking for pthread.h... " >&6; }
23703 if test "${ac_cv_header_pthread_h+set}" = set; then
23704 $as_echo_n "(cached) " >&6
23706 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23707 $as_echo "$ac_cv_header_pthread_h" >&6; }
23709 # Is the header compilable?
23710 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23711 $as_echo_n "checking pthread.h usability... " >&6; }
23712 cat >conftest.$ac_ext <<_ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h. */
23718 $ac_includes_default
23719 #include <pthread.h>
23721 rm -f conftest.$ac_objext
23722 if { (ac_try="$ac_compile"
23723 case "(($ac_try" in
23724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23725 *) ac_try_echo=$ac_try;;
23727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23728 $as_echo "$ac_try_echo") >&5
23729 (eval "$ac_compile") 2>conftest.er1
23731 grep -v '^ *+' conftest.er1 >conftest.err
23733 cat conftest.err >&5
23734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735 (exit $ac_status); } && {
23736 test -z "$ac_c_werror_flag" ||
23737 test ! -s conftest.err
23738 } && test -s conftest.$ac_objext; then
23739 ac_header_compiler=yes
23741 $as_echo "$as_me: failed program was:" >&5
23742 sed 's/^/| /' conftest.$ac_ext >&5
23744 ac_header_compiler=no
23747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23748 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23749 $as_echo "$ac_header_compiler" >&6; }
23751 # Is the header present?
23752 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23753 $as_echo_n "checking pthread.h presence... " >&6; }
23754 cat >conftest.$ac_ext <<_ACEOF
23757 cat confdefs.h >>conftest.$ac_ext
23758 cat >>conftest.$ac_ext <<_ACEOF
23759 /* end confdefs.h. */
23760 #include <pthread.h>
23762 if { (ac_try="$ac_cpp conftest.$ac_ext"
23763 case "(($ac_try" in
23764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23765 *) ac_try_echo=$ac_try;;
23767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23768 $as_echo "$ac_try_echo") >&5
23769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23771 grep -v '^ *+' conftest.er1 >conftest.err
23773 cat conftest.err >&5
23774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775 (exit $ac_status); } >/dev/null && {
23776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23777 test ! -s conftest.err
23779 ac_header_preproc=yes
23781 $as_echo "$as_me: failed program was:" >&5
23782 sed 's/^/| /' conftest.$ac_ext >&5
23784 ac_header_preproc=no
23787 rm -f conftest.err conftest.$ac_ext
23788 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23789 $as_echo "$ac_header_preproc" >&6; }
23791 # So? What about this header?
23792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23794 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23795 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23796 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23797 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23798 ac_header_preproc=yes
23801 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23802 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23803 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
23804 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
23805 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23806 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23807 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
23808 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
23809 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23810 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23811 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23812 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23814 ## ---------------------------------------- ##
23815 ## Report this to pgsql-bugs@postgresql.org ##
23816 ## ---------------------------------------- ##
23818 ) | sed "s/^/$as_me: WARNING: /" >&2
23821 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23822 $as_echo_n "checking for pthread.h... " >&6; }
23823 if test "${ac_cv_header_pthread_h+set}" = set; then
23824 $as_echo_n "(cached) " >&6
23826 ac_cv_header_pthread_h=$ac_header_preproc
23828 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23829 $as_echo "$ac_cv_header_pthread_h" >&6; }
23832 if test "x$ac_cv_header_pthread_h" = x""yes; then
23835 { { $as_echo "$as_me:$LINENO: error:
23836 pthread.h not found; use --disable-thread-safety to disable thread safety" >&5
23837 $as_echo "$as_me: error:
23838 pthread.h not found; use --disable-thread-safety to disable thread safety" >&2;}
23839 { (exit 1); exit 1; }; }
23848 for ac_func in strerror_r getpwuid_r gethostbyname_r
23850 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23851 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23852 $as_echo_n "checking for $ac_func... " >&6; }
23853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23854 $as_echo_n "(cached) " >&6
23856 cat >conftest.$ac_ext <<_ACEOF
23859 cat confdefs.h >>conftest.$ac_ext
23860 cat >>conftest.$ac_ext <<_ACEOF
23861 /* end confdefs.h. */
23862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23864 #define $ac_func innocuous_$ac_func
23866 /* System header to define __stub macros and hopefully few prototypes,
23867 which can conflict with char $ac_func (); below.
23868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23869 <limits.h> exists even on freestanding compilers. */
23872 # include <limits.h>
23874 # include <assert.h>
23879 /* Override any GCC internal prototype to avoid an error.
23880 Use char because int might match the return type of a GCC
23881 builtin and then its argument prototype would still apply. */
23886 /* The GNU C library defines this for functions which it implements
23887 to always fail with ENOSYS. Some functions are actually named
23888 something starting with __ and the normal name is an alias. */
23889 #if defined __stub_$ac_func || defined __stub___$ac_func
23896 return $ac_func ();
23901 rm -f conftest.$ac_objext conftest$ac_exeext
23902 if { (ac_try="$ac_link"
23903 case "(($ac_try" in
23904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23905 *) ac_try_echo=$ac_try;;
23907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23908 $as_echo "$ac_try_echo") >&5
23909 (eval "$ac_link") 2>conftest.er1
23911 grep -v '^ *+' conftest.er1 >conftest.err
23913 cat conftest.err >&5
23914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915 (exit $ac_status); } && {
23916 test -z "$ac_c_werror_flag" ||
23917 test ! -s conftest.err
23918 } && test -s conftest$ac_exeext && {
23919 test "$cross_compiling" = yes ||
23920 $as_test_x conftest$ac_exeext
23922 eval "$as_ac_var=yes"
23924 $as_echo "$as_me: failed program was:" >&5
23925 sed 's/^/| /' conftest.$ac_ext >&5
23927 eval "$as_ac_var=no"
23930 rm -rf conftest.dSYM
23931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23932 conftest$ac_exeext conftest.$ac_ext
23934 ac_res=`eval 'as_val=${'$as_ac_var'}
23935 $as_echo "$as_val"'`
23936 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23937 $as_echo "$ac_res" >&6; }
23938 as_val=`eval 'as_val=${'$as_ac_var'}
23939 $as_echo "$as_val"'`
23940 if test "x$as_val" = x""yes; then
23941 cat >>confdefs.h <<_ACEOF
23942 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23949 # Do test here with the proper thread flags
23950 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23951 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23952 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23953 $as_echo_n "(cached) " >&6
23955 cat >conftest.$ac_ext <<_ACEOF
23958 cat confdefs.h >>conftest.$ac_ext
23959 cat >>conftest.$ac_ext <<_ACEOF
23960 /* end confdefs.h. */
23961 #include <sys/types.h>
23967 struct passwd *space;
23970 struct passwd **result;
23971 getpwuid_r(uid, space, buf, bufsize, result);
23976 rm -f conftest.$ac_objext
23977 if { (ac_try="$ac_compile"
23978 case "(($ac_try" in
23979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23980 *) ac_try_echo=$ac_try;;
23982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23983 $as_echo "$ac_try_echo") >&5
23984 (eval "$ac_compile") 2>conftest.er1
23986 grep -v '^ *+' conftest.er1 >conftest.err
23988 cat conftest.err >&5
23989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990 (exit $ac_status); } && {
23991 test -z "$ac_c_werror_flag" ||
23992 test ! -s conftest.err
23993 } && test -s conftest.$ac_objext; then
23994 pgac_cv_func_getpwuid_r_5arg=yes
23996 $as_echo "$as_me: failed program was:" >&5
23997 sed 's/^/| /' conftest.$ac_ext >&5
23999 pgac_cv_func_getpwuid_r_5arg=no
24002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24004 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
24005 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
24006 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
24008 cat >>confdefs.h <<\_ACEOF
24009 #define GETPWUID_R_5ARG 1
24014 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
24015 $as_echo_n "checking whether strerror_r returns int... " >&6; }
24016 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
24017 $as_echo_n "(cached) " >&6
24019 cat >conftest.$ac_ext <<_ACEOF
24022 cat confdefs.h >>conftest.$ac_ext
24023 cat >>conftest.$ac_ext <<_ACEOF
24024 /* end confdefs.h. */
24025 #include <string.h>
24030 int strerror_r(int, char *, size_t);
24032 /* Older AIX has 'int' for the third argument so we don't test the args. */
24039 rm -f conftest.$ac_objext
24040 if { (ac_try="$ac_compile"
24041 case "(($ac_try" in
24042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24043 *) ac_try_echo=$ac_try;;
24045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24046 $as_echo "$ac_try_echo") >&5
24047 (eval "$ac_compile") 2>conftest.er1
24049 grep -v '^ *+' conftest.er1 >conftest.err
24051 cat conftest.err >&5
24052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053 (exit $ac_status); } && {
24054 test -z "$ac_c_werror_flag" ||
24055 test ! -s conftest.err
24056 } && test -s conftest.$ac_objext; then
24057 pgac_cv_func_strerror_r_int=yes
24059 $as_echo "$as_me: failed program was:" >&5
24060 sed 's/^/| /' conftest.$ac_ext >&5
24062 pgac_cv_func_strerror_r_int=no
24065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24067 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
24068 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
24069 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
24071 cat >>confdefs.h <<\_ACEOF
24072 #define STRERROR_R_INT 1
24082 # do not use values from template file
24091 # We can test for libldap_r only after we know PTHREAD_LIBS
24092 if test "$with_ldap" = yes ; then
24094 if test "$PORTNAME" != "win32"; then
24096 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
24097 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
24098 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
24099 $as_echo_n "(cached) " >&6
24101 ac_check_lib_save_LIBS=$LIBS
24102 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
24103 cat >conftest.$ac_ext <<_ACEOF
24106 cat confdefs.h >>conftest.$ac_ext
24107 cat >>conftest.$ac_ext <<_ACEOF
24108 /* end confdefs.h. */
24110 /* Override any GCC internal prototype to avoid an error.
24111 Use char because int might match the return type of a GCC
24112 builtin and then its argument prototype would still apply. */
24120 return ldap_bind ();
24125 rm -f conftest.$ac_objext conftest$ac_exeext
24126 if { (ac_try="$ac_link"
24127 case "(($ac_try" in
24128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24129 *) ac_try_echo=$ac_try;;
24131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24132 $as_echo "$ac_try_echo") >&5
24133 (eval "$ac_link") 2>conftest.er1
24135 grep -v '^ *+' conftest.er1 >conftest.err
24137 cat conftest.err >&5
24138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139 (exit $ac_status); } && {
24140 test -z "$ac_c_werror_flag" ||
24141 test ! -s conftest.err
24142 } && test -s conftest$ac_exeext && {
24143 test "$cross_compiling" = yes ||
24144 $as_test_x conftest$ac_exeext
24146 ac_cv_lib_ldap_ldap_bind=yes
24148 $as_echo "$as_me: failed program was:" >&5
24149 sed 's/^/| /' conftest.$ac_ext >&5
24151 ac_cv_lib_ldap_ldap_bind=no
24154 rm -rf conftest.dSYM
24155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24156 conftest$ac_exeext conftest.$ac_ext
24157 LIBS=$ac_check_lib_save_LIBS
24159 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
24160 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
24161 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
24162 cat >>confdefs.h <<_ACEOF
24163 #define HAVE_LIBLDAP 1
24166 LIBS="-lldap $LIBS"
24169 { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
24170 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
24171 { (exit 1); exit 1; }; }
24174 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
24175 if test "$enable_thread_safety" = yes; then
24176 # on some platforms ldap_r fails to link without PTHREAD_LIBS
24178 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
24179 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
24180 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
24181 $as_echo_n "(cached) " >&6
24183 ac_check_lib_save_LIBS=$LIBS
24184 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
24185 cat >conftest.$ac_ext <<_ACEOF
24188 cat confdefs.h >>conftest.$ac_ext
24189 cat >>conftest.$ac_ext <<_ACEOF
24190 /* end confdefs.h. */
24192 /* Override any GCC internal prototype to avoid an error.
24193 Use char because int might match the return type of a GCC
24194 builtin and then its argument prototype would still apply. */
24198 char ldap_simple_bind ();
24202 return ldap_simple_bind ();
24207 rm -f conftest.$ac_objext conftest$ac_exeext
24208 if { (ac_try="$ac_link"
24209 case "(($ac_try" in
24210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24211 *) ac_try_echo=$ac_try;;
24213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24214 $as_echo "$ac_try_echo") >&5
24215 (eval "$ac_link") 2>conftest.er1
24217 grep -v '^ *+' conftest.er1 >conftest.err
24219 cat conftest.err >&5
24220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24221 (exit $ac_status); } && {
24222 test -z "$ac_c_werror_flag" ||
24223 test ! -s conftest.err
24224 } && test -s conftest$ac_exeext && {
24225 test "$cross_compiling" = yes ||
24226 $as_test_x conftest$ac_exeext
24228 ac_cv_lib_ldap_r_ldap_simple_bind=yes
24230 $as_echo "$as_me: failed program was:" >&5
24231 sed 's/^/| /' conftest.$ac_ext >&5
24233 ac_cv_lib_ldap_r_ldap_simple_bind=no
24236 rm -rf conftest.dSYM
24237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24238 conftest$ac_exeext conftest.$ac_ext
24239 LIBS=$ac_check_lib_save_LIBS
24241 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
24242 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
24243 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
24244 cat >>confdefs.h <<_ACEOF
24245 #define HAVE_LIBLDAP_R 1
24248 LIBS="-lldap_r $LIBS"
24251 { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
24252 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
24253 { (exit 1); exit 1; }; }
24256 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
24258 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
24262 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
24263 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
24264 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
24265 $as_echo_n "(cached) " >&6
24267 ac_check_lib_save_LIBS=$LIBS
24268 LIBS="-lwldap32 $LIBS"
24269 cat >conftest.$ac_ext <<_ACEOF
24272 cat confdefs.h >>conftest.$ac_ext
24273 cat >>conftest.$ac_ext <<_ACEOF
24274 /* end confdefs.h. */
24276 /* Override any GCC internal prototype to avoid an error.
24277 Use char because int might match the return type of a GCC
24278 builtin and then its argument prototype would still apply. */
24286 return ldap_bind ();
24291 rm -f conftest.$ac_objext conftest$ac_exeext
24292 if { (ac_try="$ac_link"
24293 case "(($ac_try" in
24294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24295 *) ac_try_echo=$ac_try;;
24297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24298 $as_echo "$ac_try_echo") >&5
24299 (eval "$ac_link") 2>conftest.er1
24301 grep -v '^ *+' conftest.er1 >conftest.err
24303 cat conftest.err >&5
24304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24305 (exit $ac_status); } && {
24306 test -z "$ac_c_werror_flag" ||
24307 test ! -s conftest.err
24308 } && test -s conftest$ac_exeext && {
24309 test "$cross_compiling" = yes ||
24310 $as_test_x conftest$ac_exeext
24312 ac_cv_lib_wldap32_ldap_bind=yes
24314 $as_echo "$as_me: failed program was:" >&5
24315 sed 's/^/| /' conftest.$ac_ext >&5
24317 ac_cv_lib_wldap32_ldap_bind=no
24320 rm -rf conftest.dSYM
24321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24322 conftest$ac_exeext conftest.$ac_ext
24323 LIBS=$ac_check_lib_save_LIBS
24325 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
24326 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
24327 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
24328 cat >>confdefs.h <<_ACEOF
24329 #define HAVE_LIBWLDAP32 1
24332 LIBS="-lwldap32 $LIBS"
24335 { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
24336 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
24337 { (exit 1); exit 1; }; }
24340 LDAP_LIBS_FE="-lwldap32"
24341 LDAP_LIBS_BE="-lwldap32"
24349 # This test makes sure that run tests work at all. Sometimes a shared
24350 # library is found by the linker, but the runtime linker can't find it.
24351 # This check should come after all modifications of compiler or linker
24352 # variables, and before any other run tests.
24353 { $as_echo "$as_me:$LINENO: checking test program" >&5
24354 $as_echo_n "checking test program... " >&6; }
24355 if test "$cross_compiling" = yes; then
24356 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
24357 $as_echo "cross-compiling" >&6; }
24359 cat >conftest.$ac_ext <<_ACEOF
24362 cat confdefs.h >>conftest.$ac_ext
24363 cat >>conftest.$ac_ext <<_ACEOF
24364 /* end confdefs.h. */
24365 int main() { return 0; }
24367 rm -f conftest$ac_exeext
24368 if { (ac_try="$ac_link"
24369 case "(($ac_try" in
24370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24371 *) ac_try_echo=$ac_try;;
24373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24374 $as_echo "$ac_try_echo") >&5
24375 (eval "$ac_link") 2>&5
24377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24379 { (case "(($ac_try" in
24380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24381 *) ac_try_echo=$ac_try;;
24383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24384 $as_echo "$ac_try_echo") >&5
24385 (eval "$ac_try") 2>&5
24387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388 (exit $ac_status); }; }; then
24389 { $as_echo "$as_me:$LINENO: result: ok" >&5
24390 $as_echo "ok" >&6; }
24392 $as_echo "$as_me: program exited with status $ac_status" >&5
24393 $as_echo "$as_me: failed program was:" >&5
24394 sed 's/^/| /' conftest.$ac_ext >&5
24396 ( exit $ac_status )
24397 { $as_echo "$as_me:$LINENO: result: failed" >&5
24398 $as_echo "failed" >&6; }
24399 { { $as_echo "$as_me:$LINENO: error:
24400 Could not execute a simple test program. This may be a problem
24401 related to locating shared libraries. Check the file 'config.log'
24402 for the exact reason." >&5
24403 $as_echo "$as_me: error:
24404 Could not execute a simple test program. This may be a problem
24405 related to locating shared libraries. Check the file 'config.log'
24406 for the exact reason." >&2;}
24407 { (exit 1); exit 1; }; }
24409 rm -rf conftest.dSYM
24410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24415 # --------------------
24416 # Run tests below here
24417 # --------------------
24419 # Force use of our snprintf if system's doesn't do arg control
24420 # See comment above at snprintf test for details.
24421 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
24422 { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
24423 $as_echo_n "checking whether printf supports argument control... " >&6; }
24424 if test "${pgac_cv_printf_arg_control+set}" = set; then
24425 $as_echo_n "(cached) " >&6
24427 if test "$cross_compiling" = yes; then
24428 pgac_cv_printf_arg_control=cross
24430 cat >conftest.$ac_ext <<_ACEOF
24433 cat confdefs.h >>conftest.$ac_ext
24434 cat >>conftest.$ac_ext <<_ACEOF
24435 /* end confdefs.h. */
24437 #include <string.h>
24443 /* can it swap arguments? */
24444 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
24445 if (strcmp(buf, "4 3") != 0)
24450 rm -f conftest$ac_exeext
24451 if { (ac_try="$ac_link"
24452 case "(($ac_try" in
24453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24454 *) ac_try_echo=$ac_try;;
24456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24457 $as_echo "$ac_try_echo") >&5
24458 (eval "$ac_link") 2>&5
24460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24462 { (case "(($ac_try" in
24463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24464 *) ac_try_echo=$ac_try;;
24466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24467 $as_echo "$ac_try_echo") >&5
24468 (eval "$ac_try") 2>&5
24470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24471 (exit $ac_status); }; }; then
24472 pgac_cv_printf_arg_control=yes
24474 $as_echo "$as_me: program exited with status $ac_status" >&5
24475 $as_echo "$as_me: failed program was:" >&5
24476 sed 's/^/| /' conftest.$ac_ext >&5
24478 ( exit $ac_status )
24479 pgac_cv_printf_arg_control=no
24481 rm -rf conftest.dSYM
24482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24488 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
24489 $as_echo "$pgac_cv_printf_arg_control" >&6; }
24491 if test $pgac_cv_printf_arg_control != yes ; then
24492 pgac_need_repl_snprintf=yes
24499 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
24500 $as_echo_n "checking whether long int is 64 bits... " >&6; }
24501 if test "${pgac_cv_type_long_int_64+set}" = set; then
24502 $as_echo_n "(cached) " >&6
24504 if test "$cross_compiling" = yes; then
24505 # If cross-compiling, check the size reported by the compiler and
24506 # trust that the arithmetic works.
24507 cat >conftest.$ac_ext <<_ACEOF
24510 cat confdefs.h >>conftest.$ac_ext
24511 cat >>conftest.$ac_ext <<_ACEOF
24512 /* end confdefs.h. */
24517 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
24524 rm -f conftest.$ac_objext
24525 if { (ac_try="$ac_compile"
24526 case "(($ac_try" in
24527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24528 *) ac_try_echo=$ac_try;;
24530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24531 $as_echo "$ac_try_echo") >&5
24532 (eval "$ac_compile") 2>conftest.er1
24534 grep -v '^ *+' conftest.er1 >conftest.err
24536 cat conftest.err >&5
24537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538 (exit $ac_status); } && {
24539 test -z "$ac_c_werror_flag" ||
24540 test ! -s conftest.err
24541 } && test -s conftest.$ac_objext; then
24542 pgac_cv_type_long_int_64=yes
24544 $as_echo "$as_me: failed program was:" >&5
24545 sed 's/^/| /' conftest.$ac_ext >&5
24547 pgac_cv_type_long_int_64=no
24550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24552 cat >conftest.$ac_ext <<_ACEOF
24555 cat confdefs.h >>conftest.$ac_ext
24556 cat >>conftest.$ac_ext <<_ACEOF
24557 /* end confdefs.h. */
24558 typedef long int ac_int64;
24561 * These are globals to discourage the compiler from folding all the
24562 * arithmetic tests down to compile-time constants.
24564 ac_int64 a = 20000001;
24565 ac_int64 b = 40000005;
24567 int does_int64_work()
24571 if (sizeof(ac_int64) != 8)
24572 return 0; /* definitely not the right size */
24574 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24582 exit(! does_int64_work());
24585 rm -f conftest$ac_exeext
24586 if { (ac_try="$ac_link"
24587 case "(($ac_try" in
24588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24589 *) ac_try_echo=$ac_try;;
24591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24592 $as_echo "$ac_try_echo") >&5
24593 (eval "$ac_link") 2>&5
24595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
24605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); }; }; then
24607 pgac_cv_type_long_int_64=yes
24609 $as_echo "$as_me: program exited with status $ac_status" >&5
24610 $as_echo "$as_me: failed program was:" >&5
24611 sed 's/^/| /' conftest.$ac_ext >&5
24613 ( exit $ac_status )
24614 pgac_cv_type_long_int_64=no
24616 rm -rf conftest.dSYM
24617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24622 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
24623 $as_echo "$pgac_cv_type_long_int_64" >&6; }
24625 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
24626 if test x"$pgac_cv_type_long_int_64" = xyes ; then
24628 cat >>confdefs.h <<\_ACEOF
24629 #define HAVE_LONG_INT_64 1
24635 if test x"$HAVE_LONG_INT_64" = x"yes" ; then
24636 pg_int64_type="long int"
24638 { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24639 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24640 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24641 $as_echo_n "(cached) " >&6
24643 if test "$cross_compiling" = yes; then
24644 # If cross-compiling, check the size reported by the compiler and
24645 # trust that the arithmetic works.
24646 cat >conftest.$ac_ext <<_ACEOF
24649 cat confdefs.h >>conftest.$ac_ext
24650 cat >>conftest.$ac_ext <<_ACEOF
24651 /* end confdefs.h. */
24656 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24663 rm -f conftest.$ac_objext
24664 if { (ac_try="$ac_compile"
24665 case "(($ac_try" in
24666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24667 *) ac_try_echo=$ac_try;;
24669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24670 $as_echo "$ac_try_echo") >&5
24671 (eval "$ac_compile") 2>conftest.er1
24673 grep -v '^ *+' conftest.er1 >conftest.err
24675 cat conftest.err >&5
24676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); } && {
24678 test -z "$ac_c_werror_flag" ||
24679 test ! -s conftest.err
24680 } && test -s conftest.$ac_objext; then
24681 pgac_cv_type_long_long_int_64=yes
24683 $as_echo "$as_me: failed program was:" >&5
24684 sed 's/^/| /' conftest.$ac_ext >&5
24686 pgac_cv_type_long_long_int_64=no
24689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24691 cat >conftest.$ac_ext <<_ACEOF
24694 cat confdefs.h >>conftest.$ac_ext
24695 cat >>conftest.$ac_ext <<_ACEOF
24696 /* end confdefs.h. */
24697 typedef long long int ac_int64;
24700 * These are globals to discourage the compiler from folding all the
24701 * arithmetic tests down to compile-time constants.
24703 ac_int64 a = 20000001;
24704 ac_int64 b = 40000005;
24706 int does_int64_work()
24710 if (sizeof(ac_int64) != 8)
24711 return 0; /* definitely not the right size */
24713 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24721 exit(! does_int64_work());
24724 rm -f conftest$ac_exeext
24725 if { (ac_try="$ac_link"
24726 case "(($ac_try" in
24727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24728 *) ac_try_echo=$ac_try;;
24730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24731 $as_echo "$ac_try_echo") >&5
24732 (eval "$ac_link") 2>&5
24734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24736 { (case "(($ac_try" in
24737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24738 *) ac_try_echo=$ac_try;;
24740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24741 $as_echo "$ac_try_echo") >&5
24742 (eval "$ac_try") 2>&5
24744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24745 (exit $ac_status); }; }; then
24746 pgac_cv_type_long_long_int_64=yes
24748 $as_echo "$as_me: program exited with status $ac_status" >&5
24749 $as_echo "$as_me: failed program was:" >&5
24750 sed 's/^/| /' conftest.$ac_ext >&5
24752 ( exit $ac_status )
24753 pgac_cv_type_long_long_int_64=no
24755 rm -rf conftest.dSYM
24756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24761 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24762 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24764 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24765 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24767 cat >>confdefs.h <<\_ACEOF
24768 #define HAVE_LONG_LONG_INT_64 1
24773 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
24774 pg_int64_type="long long int"
24776 { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24777 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24778 { (exit 1); exit 1; }; }
24783 cat >>confdefs.h <<_ACEOF
24784 #define PG_INT64_TYPE $pg_int64_type
24789 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24790 cat >conftest.$ac_ext <<_ACEOF
24793 cat confdefs.h >>conftest.$ac_ext
24794 cat >>conftest.$ac_ext <<_ACEOF
24795 /* end confdefs.h. */
24797 #define INT64CONST(x) x##LL
24798 long long int foo = INT64CONST(0x1234567890123456);
24808 rm -f conftest.$ac_objext
24809 if { (ac_try="$ac_compile"
24810 case "(($ac_try" in
24811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24812 *) ac_try_echo=$ac_try;;
24814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24815 $as_echo "$ac_try_echo") >&5
24816 (eval "$ac_compile") 2>conftest.er1
24818 grep -v '^ *+' conftest.er1 >conftest.err
24820 cat conftest.err >&5
24821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24822 (exit $ac_status); } && {
24823 test -z "$ac_c_werror_flag" ||
24824 test ! -s conftest.err
24825 } && test -s conftest.$ac_objext; then
24827 cat >>confdefs.h <<\_ACEOF
24828 #define HAVE_LL_CONSTANTS 1
24832 $as_echo "$as_me: failed program was:" >&5
24833 sed 's/^/| /' conftest.$ac_ext >&5
24838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24842 # If we found "long int" is 64 bits, assume snprintf handles it. If
24843 # we found we need to use "long long int", better check. We cope with
24844 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
24845 # work, fall back to our own snprintf emulation (which we know uses %lld).
24847 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
24848 if test $pgac_need_repl_snprintf = no; then
24849 { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
24850 $as_echo_n "checking snprintf format for long long int... " >&6; }
24851 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
24852 $as_echo_n "(cached) " >&6
24854 for pgac_format in '%lld' '%qd' '%I64d'; do
24855 if test "$cross_compiling" = yes; then
24856 pgac_cv_snprintf_long_long_int_format=cross; break
24858 cat >conftest.$ac_ext <<_ACEOF
24861 cat confdefs.h >>conftest.$ac_ext
24862 cat >>conftest.$ac_ext <<_ACEOF
24863 /* end confdefs.h. */
24865 typedef long long int ac_int64;
24866 #define INT64_FORMAT "$pgac_format"
24868 ac_int64 a = 20000001;
24869 ac_int64 b = 40000005;
24871 int does_int64_snprintf_work()
24876 if (sizeof(ac_int64) != 8)
24877 return 0; /* doesn't look like the right size */
24880 snprintf(buf, 100, INT64_FORMAT, c);
24881 if (strcmp(buf, "800000140000005") != 0)
24882 return 0; /* either multiply or snprintf is busted */
24886 exit(! does_int64_snprintf_work());
24889 rm -f conftest$ac_exeext
24890 if { (ac_try="$ac_link"
24891 case "(($ac_try" in
24892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24893 *) ac_try_echo=$ac_try;;
24895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24896 $as_echo "$ac_try_echo") >&5
24897 (eval "$ac_link") 2>&5
24899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24901 { (case "(($ac_try" in
24902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24903 *) ac_try_echo=$ac_try;;
24905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24906 $as_echo "$ac_try_echo") >&5
24907 (eval "$ac_try") 2>&5
24909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24910 (exit $ac_status); }; }; then
24911 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
24913 $as_echo "$as_me: program exited with status $ac_status" >&5
24914 $as_echo "$as_me: failed program was:" >&5
24915 sed 's/^/| /' conftest.$ac_ext >&5
24918 rm -rf conftest.dSYM
24919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24926 LONG_LONG_INT_FORMAT=''
24928 case $pgac_cv_snprintf_long_long_int_format in
24929 cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24930 $as_echo "cannot test (not on host machine)" >&6; };;
24931 ?*) { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24932 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24933 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24934 *) { $as_echo "$as_me:$LINENO: result: none" >&5
24935 $as_echo "none" >&6; };;
24937 if test "$LONG_LONG_INT_FORMAT" = ""; then
24938 # Force usage of our own snprintf, since system snprintf is broken
24939 pgac_need_repl_snprintf=yes
24940 LONG_LONG_INT_FORMAT='%lld'
24943 # Here if we previously decided we needed to use our own snprintf
24944 LONG_LONG_INT_FORMAT='%lld'
24946 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24947 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24948 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24950 # Here if we are not using 'long long int' at all
24951 INT64_FORMAT='"%ld"'
24952 UINT64_FORMAT='"%lu"'
24956 cat >>confdefs.h <<_ACEOF
24957 #define INT64_FORMAT $INT64_FORMAT
24962 cat >>confdefs.h <<_ACEOF
24963 #define UINT64_FORMAT $UINT64_FORMAT
24967 # Now we have checked all the reasons to replace snprintf
24968 if test $pgac_need_repl_snprintf = yes; then
24970 cat >>confdefs.h <<\_ACEOF
24971 #define USE_REPL_SNPRINTF 1
24974 case " $LIBOBJS " in
24975 *" snprintf.$ac_objext "* ) ;;
24976 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24982 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24983 # The cast to long int works around a bug in the HP C Compiler
24984 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24985 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24986 # This bug is HP SR number 8606223364.
24987 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24988 $as_echo_n "checking size of void *... " >&6; }
24989 if test "${ac_cv_sizeof_void_p+set}" = set; then
24990 $as_echo_n "(cached) " >&6
24992 if test "$cross_compiling" = yes; then
24993 # Depending upon the size, compute the lo and hi bounds.
24994 cat >conftest.$ac_ext <<_ACEOF
24997 cat confdefs.h >>conftest.$ac_ext
24998 cat >>conftest.$ac_ext <<_ACEOF
24999 /* end confdefs.h. */
25000 $ac_includes_default
25004 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
25011 rm -f conftest.$ac_objext
25012 if { (ac_try="$ac_compile"
25013 case "(($ac_try" in
25014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25015 *) ac_try_echo=$ac_try;;
25017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25018 $as_echo "$ac_try_echo") >&5
25019 (eval "$ac_compile") 2>conftest.er1
25021 grep -v '^ *+' conftest.er1 >conftest.err
25023 cat conftest.err >&5
25024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25025 (exit $ac_status); } && {
25026 test -z "$ac_c_werror_flag" ||
25027 test ! -s conftest.err
25028 } && test -s conftest.$ac_objext; then
25031 cat >conftest.$ac_ext <<_ACEOF
25034 cat confdefs.h >>conftest.$ac_ext
25035 cat >>conftest.$ac_ext <<_ACEOF
25036 /* end confdefs.h. */
25037 $ac_includes_default
25041 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
25048 rm -f conftest.$ac_objext
25049 if { (ac_try="$ac_compile"
25050 case "(($ac_try" in
25051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25052 *) ac_try_echo=$ac_try;;
25054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25055 $as_echo "$ac_try_echo") >&5
25056 (eval "$ac_compile") 2>conftest.er1
25058 grep -v '^ *+' conftest.er1 >conftest.err
25060 cat conftest.err >&5
25061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062 (exit $ac_status); } && {
25063 test -z "$ac_c_werror_flag" ||
25064 test ! -s conftest.err
25065 } && test -s conftest.$ac_objext; then
25066 ac_hi=$ac_mid; break
25068 $as_echo "$as_me: failed program was:" >&5
25069 sed 's/^/| /' conftest.$ac_ext >&5
25071 ac_lo=`expr $ac_mid + 1`
25072 if test $ac_lo -le $ac_mid; then
25076 ac_mid=`expr 2 '*' $ac_mid + 1`
25079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25082 $as_echo "$as_me: failed program was:" >&5
25083 sed 's/^/| /' conftest.$ac_ext >&5
25085 cat >conftest.$ac_ext <<_ACEOF
25088 cat confdefs.h >>conftest.$ac_ext
25089 cat >>conftest.$ac_ext <<_ACEOF
25090 /* end confdefs.h. */
25091 $ac_includes_default
25095 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
25102 rm -f conftest.$ac_objext
25103 if { (ac_try="$ac_compile"
25104 case "(($ac_try" in
25105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25106 *) ac_try_echo=$ac_try;;
25108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25109 $as_echo "$ac_try_echo") >&5
25110 (eval "$ac_compile") 2>conftest.er1
25112 grep -v '^ *+' conftest.er1 >conftest.err
25114 cat conftest.err >&5
25115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116 (exit $ac_status); } && {
25117 test -z "$ac_c_werror_flag" ||
25118 test ! -s conftest.err
25119 } && test -s conftest.$ac_objext; then
25122 cat >conftest.$ac_ext <<_ACEOF
25125 cat confdefs.h >>conftest.$ac_ext
25126 cat >>conftest.$ac_ext <<_ACEOF
25127 /* end confdefs.h. */
25128 $ac_includes_default
25132 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
25139 rm -f conftest.$ac_objext
25140 if { (ac_try="$ac_compile"
25141 case "(($ac_try" in
25142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25143 *) ac_try_echo=$ac_try;;
25145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25146 $as_echo "$ac_try_echo") >&5
25147 (eval "$ac_compile") 2>conftest.er1
25149 grep -v '^ *+' conftest.er1 >conftest.err
25151 cat conftest.err >&5
25152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153 (exit $ac_status); } && {
25154 test -z "$ac_c_werror_flag" ||
25155 test ! -s conftest.err
25156 } && test -s conftest.$ac_objext; then
25157 ac_lo=$ac_mid; break
25159 $as_echo "$as_me: failed program was:" >&5
25160 sed 's/^/| /' conftest.$ac_ext >&5
25162 ac_hi=`expr '(' $ac_mid ')' - 1`
25163 if test $ac_mid -le $ac_hi; then
25167 ac_mid=`expr 2 '*' $ac_mid`
25170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25173 $as_echo "$as_me: failed program was:" >&5
25174 sed 's/^/| /' conftest.$ac_ext >&5
25179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25183 # Binary search between lo and hi bounds.
25184 while test "x$ac_lo" != "x$ac_hi"; do
25185 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25186 cat >conftest.$ac_ext <<_ACEOF
25189 cat confdefs.h >>conftest.$ac_ext
25190 cat >>conftest.$ac_ext <<_ACEOF
25191 /* end confdefs.h. */
25192 $ac_includes_default
25196 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
25203 rm -f conftest.$ac_objext
25204 if { (ac_try="$ac_compile"
25205 case "(($ac_try" in
25206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25207 *) ac_try_echo=$ac_try;;
25209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25210 $as_echo "$ac_try_echo") >&5
25211 (eval "$ac_compile") 2>conftest.er1
25213 grep -v '^ *+' conftest.er1 >conftest.err
25215 cat conftest.err >&5
25216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217 (exit $ac_status); } && {
25218 test -z "$ac_c_werror_flag" ||
25219 test ! -s conftest.err
25220 } && test -s conftest.$ac_objext; then
25223 $as_echo "$as_me: failed program was:" >&5
25224 sed 's/^/| /' conftest.$ac_ext >&5
25226 ac_lo=`expr '(' $ac_mid ')' + 1`
25229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25232 ?*) ac_cv_sizeof_void_p=$ac_lo;;
25233 '') if test "$ac_cv_type_void_p" = yes; then
25234 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25236 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
25237 See \`config.log' for more details." >&5
25238 $as_echo "$as_me: error: cannot compute sizeof (void *)
25239 See \`config.log' for more details." >&2;}
25240 { (exit 77); exit 77; }; }; }
25242 ac_cv_sizeof_void_p=0
25246 cat >conftest.$ac_ext <<_ACEOF
25249 cat confdefs.h >>conftest.$ac_ext
25250 cat >>conftest.$ac_ext <<_ACEOF
25251 /* end confdefs.h. */
25252 $ac_includes_default
25253 static long int longval () { return (long int) (sizeof (void *)); }
25254 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
25256 #include <stdlib.h>
25261 FILE *f = fopen ("conftest.val", "w");
25264 if (((long int) (sizeof (void *))) < 0)
25266 long int i = longval ();
25267 if (i != ((long int) (sizeof (void *))))
25269 fprintf (f, "%ld", i);
25273 unsigned long int i = ulongval ();
25274 if (i != ((long int) (sizeof (void *))))
25276 fprintf (f, "%lu", i);
25278 /* Do not output a trailing newline, as this causes \r\n confusion
25279 on some platforms. */
25280 return ferror (f) || fclose (f) != 0;
25286 rm -f conftest$ac_exeext
25287 if { (ac_try="$ac_link"
25288 case "(($ac_try" in
25289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25290 *) ac_try_echo=$ac_try;;
25292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25293 $as_echo "$ac_try_echo") >&5
25294 (eval "$ac_link") 2>&5
25296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25298 { (case "(($ac_try" in
25299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25300 *) ac_try_echo=$ac_try;;
25302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25303 $as_echo "$ac_try_echo") >&5
25304 (eval "$ac_try") 2>&5
25306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25307 (exit $ac_status); }; }; then
25308 ac_cv_sizeof_void_p=`cat conftest.val`
25310 $as_echo "$as_me: program exited with status $ac_status" >&5
25311 $as_echo "$as_me: failed program was:" >&5
25312 sed 's/^/| /' conftest.$ac_ext >&5
25314 ( exit $ac_status )
25315 if test "$ac_cv_type_void_p" = yes; then
25316 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25318 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
25319 See \`config.log' for more details." >&5
25320 $as_echo "$as_me: error: cannot compute sizeof (void *)
25321 See \`config.log' for more details." >&2;}
25322 { (exit 77); exit 77; }; }; }
25324 ac_cv_sizeof_void_p=0
25327 rm -rf conftest.dSYM
25328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25332 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
25333 $as_echo "$ac_cv_sizeof_void_p" >&6; }
25337 cat >>confdefs.h <<_ACEOF
25338 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
25342 # The cast to long int works around a bug in the HP C Compiler
25343 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25344 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25345 # This bug is HP SR number 8606223364.
25346 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
25347 $as_echo_n "checking size of size_t... " >&6; }
25348 if test "${ac_cv_sizeof_size_t+set}" = set; then
25349 $as_echo_n "(cached) " >&6
25351 if test "$cross_compiling" = yes; then
25352 # Depending upon the size, compute the lo and hi bounds.
25353 cat >conftest.$ac_ext <<_ACEOF
25356 cat confdefs.h >>conftest.$ac_ext
25357 cat >>conftest.$ac_ext <<_ACEOF
25358 /* end confdefs.h. */
25359 $ac_includes_default
25363 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
25370 rm -f conftest.$ac_objext
25371 if { (ac_try="$ac_compile"
25372 case "(($ac_try" in
25373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25374 *) ac_try_echo=$ac_try;;
25376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25377 $as_echo "$ac_try_echo") >&5
25378 (eval "$ac_compile") 2>conftest.er1
25380 grep -v '^ *+' conftest.er1 >conftest.err
25382 cat conftest.err >&5
25383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25384 (exit $ac_status); } && {
25385 test -z "$ac_c_werror_flag" ||
25386 test ! -s conftest.err
25387 } && test -s conftest.$ac_objext; then
25390 cat >conftest.$ac_ext <<_ACEOF
25393 cat confdefs.h >>conftest.$ac_ext
25394 cat >>conftest.$ac_ext <<_ACEOF
25395 /* end confdefs.h. */
25396 $ac_includes_default
25400 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25407 rm -f conftest.$ac_objext
25408 if { (ac_try="$ac_compile"
25409 case "(($ac_try" in
25410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25411 *) ac_try_echo=$ac_try;;
25413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25414 $as_echo "$ac_try_echo") >&5
25415 (eval "$ac_compile") 2>conftest.er1
25417 grep -v '^ *+' conftest.er1 >conftest.err
25419 cat conftest.err >&5
25420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25421 (exit $ac_status); } && {
25422 test -z "$ac_c_werror_flag" ||
25423 test ! -s conftest.err
25424 } && test -s conftest.$ac_objext; then
25425 ac_hi=$ac_mid; break
25427 $as_echo "$as_me: failed program was:" >&5
25428 sed 's/^/| /' conftest.$ac_ext >&5
25430 ac_lo=`expr $ac_mid + 1`
25431 if test $ac_lo -le $ac_mid; then
25435 ac_mid=`expr 2 '*' $ac_mid + 1`
25438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25441 $as_echo "$as_me: failed program was:" >&5
25442 sed 's/^/| /' conftest.$ac_ext >&5
25444 cat >conftest.$ac_ext <<_ACEOF
25447 cat confdefs.h >>conftest.$ac_ext
25448 cat >>conftest.$ac_ext <<_ACEOF
25449 /* end confdefs.h. */
25450 $ac_includes_default
25454 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
25461 rm -f conftest.$ac_objext
25462 if { (ac_try="$ac_compile"
25463 case "(($ac_try" in
25464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25465 *) ac_try_echo=$ac_try;;
25467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25468 $as_echo "$ac_try_echo") >&5
25469 (eval "$ac_compile") 2>conftest.er1
25471 grep -v '^ *+' conftest.er1 >conftest.err
25473 cat conftest.err >&5
25474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475 (exit $ac_status); } && {
25476 test -z "$ac_c_werror_flag" ||
25477 test ! -s conftest.err
25478 } && test -s conftest.$ac_objext; then
25481 cat >conftest.$ac_ext <<_ACEOF
25484 cat confdefs.h >>conftest.$ac_ext
25485 cat >>conftest.$ac_ext <<_ACEOF
25486 /* end confdefs.h. */
25487 $ac_includes_default
25491 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
25498 rm -f conftest.$ac_objext
25499 if { (ac_try="$ac_compile"
25500 case "(($ac_try" in
25501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25502 *) ac_try_echo=$ac_try;;
25504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25505 $as_echo "$ac_try_echo") >&5
25506 (eval "$ac_compile") 2>conftest.er1
25508 grep -v '^ *+' conftest.er1 >conftest.err
25510 cat conftest.err >&5
25511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25512 (exit $ac_status); } && {
25513 test -z "$ac_c_werror_flag" ||
25514 test ! -s conftest.err
25515 } && test -s conftest.$ac_objext; then
25516 ac_lo=$ac_mid; break
25518 $as_echo "$as_me: failed program was:" >&5
25519 sed 's/^/| /' conftest.$ac_ext >&5
25521 ac_hi=`expr '(' $ac_mid ')' - 1`
25522 if test $ac_mid -le $ac_hi; then
25526 ac_mid=`expr 2 '*' $ac_mid`
25529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25532 $as_echo "$as_me: failed program was:" >&5
25533 sed 's/^/| /' conftest.$ac_ext >&5
25538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25542 # Binary search between lo and hi bounds.
25543 while test "x$ac_lo" != "x$ac_hi"; do
25544 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25545 cat >conftest.$ac_ext <<_ACEOF
25548 cat confdefs.h >>conftest.$ac_ext
25549 cat >>conftest.$ac_ext <<_ACEOF
25550 /* end confdefs.h. */
25551 $ac_includes_default
25555 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25562 rm -f conftest.$ac_objext
25563 if { (ac_try="$ac_compile"
25564 case "(($ac_try" in
25565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25566 *) ac_try_echo=$ac_try;;
25568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25569 $as_echo "$ac_try_echo") >&5
25570 (eval "$ac_compile") 2>conftest.er1
25572 grep -v '^ *+' conftest.er1 >conftest.err
25574 cat conftest.err >&5
25575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25576 (exit $ac_status); } && {
25577 test -z "$ac_c_werror_flag" ||
25578 test ! -s conftest.err
25579 } && test -s conftest.$ac_objext; then
25582 $as_echo "$as_me: failed program was:" >&5
25583 sed 's/^/| /' conftest.$ac_ext >&5
25585 ac_lo=`expr '(' $ac_mid ')' + 1`
25588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25591 ?*) ac_cv_sizeof_size_t=$ac_lo;;
25592 '') if test "$ac_cv_type_size_t" = yes; then
25593 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25595 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25596 See \`config.log' for more details." >&5
25597 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25598 See \`config.log' for more details." >&2;}
25599 { (exit 77); exit 77; }; }; }
25601 ac_cv_sizeof_size_t=0
25605 cat >conftest.$ac_ext <<_ACEOF
25608 cat confdefs.h >>conftest.$ac_ext
25609 cat >>conftest.$ac_ext <<_ACEOF
25610 /* end confdefs.h. */
25611 $ac_includes_default
25612 static long int longval () { return (long int) (sizeof (size_t)); }
25613 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
25615 #include <stdlib.h>
25620 FILE *f = fopen ("conftest.val", "w");
25623 if (((long int) (sizeof (size_t))) < 0)
25625 long int i = longval ();
25626 if (i != ((long int) (sizeof (size_t))))
25628 fprintf (f, "%ld", i);
25632 unsigned long int i = ulongval ();
25633 if (i != ((long int) (sizeof (size_t))))
25635 fprintf (f, "%lu", i);
25637 /* Do not output a trailing newline, as this causes \r\n confusion
25638 on some platforms. */
25639 return ferror (f) || fclose (f) != 0;
25645 rm -f conftest$ac_exeext
25646 if { (ac_try="$ac_link"
25647 case "(($ac_try" in
25648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25649 *) ac_try_echo=$ac_try;;
25651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25652 $as_echo "$ac_try_echo") >&5
25653 (eval "$ac_link") 2>&5
25655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25657 { (case "(($ac_try" in
25658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25659 *) ac_try_echo=$ac_try;;
25661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25662 $as_echo "$ac_try_echo") >&5
25663 (eval "$ac_try") 2>&5
25665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666 (exit $ac_status); }; }; then
25667 ac_cv_sizeof_size_t=`cat conftest.val`
25669 $as_echo "$as_me: program exited with status $ac_status" >&5
25670 $as_echo "$as_me: failed program was:" >&5
25671 sed 's/^/| /' conftest.$ac_ext >&5
25673 ( exit $ac_status )
25674 if test "$ac_cv_type_size_t" = yes; then
25675 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25677 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25678 See \`config.log' for more details." >&5
25679 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25680 See \`config.log' for more details." >&2;}
25681 { (exit 77); exit 77; }; }; }
25683 ac_cv_sizeof_size_t=0
25686 rm -rf conftest.dSYM
25687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25691 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25692 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25696 cat >>confdefs.h <<_ACEOF
25697 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25701 # The cast to long int works around a bug in the HP C Compiler
25702 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25703 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25704 # This bug is HP SR number 8606223364.
25705 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25706 $as_echo_n "checking size of long... " >&6; }
25707 if test "${ac_cv_sizeof_long+set}" = set; then
25708 $as_echo_n "(cached) " >&6
25710 if test "$cross_compiling" = yes; then
25711 # Depending upon the size, compute the lo and hi bounds.
25712 cat >conftest.$ac_ext <<_ACEOF
25715 cat confdefs.h >>conftest.$ac_ext
25716 cat >>conftest.$ac_ext <<_ACEOF
25717 /* end confdefs.h. */
25718 $ac_includes_default
25722 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25729 rm -f conftest.$ac_objext
25730 if { (ac_try="$ac_compile"
25731 case "(($ac_try" in
25732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25733 *) ac_try_echo=$ac_try;;
25735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25736 $as_echo "$ac_try_echo") >&5
25737 (eval "$ac_compile") 2>conftest.er1
25739 grep -v '^ *+' conftest.er1 >conftest.err
25741 cat conftest.err >&5
25742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743 (exit $ac_status); } && {
25744 test -z "$ac_c_werror_flag" ||
25745 test ! -s conftest.err
25746 } && test -s conftest.$ac_objext; then
25749 cat >conftest.$ac_ext <<_ACEOF
25752 cat confdefs.h >>conftest.$ac_ext
25753 cat >>conftest.$ac_ext <<_ACEOF
25754 /* end confdefs.h. */
25755 $ac_includes_default
25759 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25766 rm -f conftest.$ac_objext
25767 if { (ac_try="$ac_compile"
25768 case "(($ac_try" in
25769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25770 *) ac_try_echo=$ac_try;;
25772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25773 $as_echo "$ac_try_echo") >&5
25774 (eval "$ac_compile") 2>conftest.er1
25776 grep -v '^ *+' conftest.er1 >conftest.err
25778 cat conftest.err >&5
25779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25780 (exit $ac_status); } && {
25781 test -z "$ac_c_werror_flag" ||
25782 test ! -s conftest.err
25783 } && test -s conftest.$ac_objext; then
25784 ac_hi=$ac_mid; break
25786 $as_echo "$as_me: failed program was:" >&5
25787 sed 's/^/| /' conftest.$ac_ext >&5
25789 ac_lo=`expr $ac_mid + 1`
25790 if test $ac_lo -le $ac_mid; then
25794 ac_mid=`expr 2 '*' $ac_mid + 1`
25797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25800 $as_echo "$as_me: failed program was:" >&5
25801 sed 's/^/| /' conftest.$ac_ext >&5
25803 cat >conftest.$ac_ext <<_ACEOF
25806 cat confdefs.h >>conftest.$ac_ext
25807 cat >>conftest.$ac_ext <<_ACEOF
25808 /* end confdefs.h. */
25809 $ac_includes_default
25813 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25820 rm -f conftest.$ac_objext
25821 if { (ac_try="$ac_compile"
25822 case "(($ac_try" in
25823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25824 *) ac_try_echo=$ac_try;;
25826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25827 $as_echo "$ac_try_echo") >&5
25828 (eval "$ac_compile") 2>conftest.er1
25830 grep -v '^ *+' conftest.er1 >conftest.err
25832 cat conftest.err >&5
25833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834 (exit $ac_status); } && {
25835 test -z "$ac_c_werror_flag" ||
25836 test ! -s conftest.err
25837 } && test -s conftest.$ac_objext; then
25840 cat >conftest.$ac_ext <<_ACEOF
25843 cat confdefs.h >>conftest.$ac_ext
25844 cat >>conftest.$ac_ext <<_ACEOF
25845 /* end confdefs.h. */
25846 $ac_includes_default
25850 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
25857 rm -f conftest.$ac_objext
25858 if { (ac_try="$ac_compile"
25859 case "(($ac_try" in
25860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25861 *) ac_try_echo=$ac_try;;
25863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25864 $as_echo "$ac_try_echo") >&5
25865 (eval "$ac_compile") 2>conftest.er1
25867 grep -v '^ *+' conftest.er1 >conftest.err
25869 cat conftest.err >&5
25870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25871 (exit $ac_status); } && {
25872 test -z "$ac_c_werror_flag" ||
25873 test ! -s conftest.err
25874 } && test -s conftest.$ac_objext; then
25875 ac_lo=$ac_mid; break
25877 $as_echo "$as_me: failed program was:" >&5
25878 sed 's/^/| /' conftest.$ac_ext >&5
25880 ac_hi=`expr '(' $ac_mid ')' - 1`
25881 if test $ac_mid -le $ac_hi; then
25885 ac_mid=`expr 2 '*' $ac_mid`
25888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25891 $as_echo "$as_me: failed program was:" >&5
25892 sed 's/^/| /' conftest.$ac_ext >&5
25897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25901 # Binary search between lo and hi bounds.
25902 while test "x$ac_lo" != "x$ac_hi"; do
25903 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25904 cat >conftest.$ac_ext <<_ACEOF
25907 cat confdefs.h >>conftest.$ac_ext
25908 cat >>conftest.$ac_ext <<_ACEOF
25909 /* end confdefs.h. */
25910 $ac_includes_default
25914 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25921 rm -f conftest.$ac_objext
25922 if { (ac_try="$ac_compile"
25923 case "(($ac_try" in
25924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25925 *) ac_try_echo=$ac_try;;
25927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25928 $as_echo "$ac_try_echo") >&5
25929 (eval "$ac_compile") 2>conftest.er1
25931 grep -v '^ *+' conftest.er1 >conftest.err
25933 cat conftest.err >&5
25934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935 (exit $ac_status); } && {
25936 test -z "$ac_c_werror_flag" ||
25937 test ! -s conftest.err
25938 } && test -s conftest.$ac_objext; then
25941 $as_echo "$as_me: failed program was:" >&5
25942 sed 's/^/| /' conftest.$ac_ext >&5
25944 ac_lo=`expr '(' $ac_mid ')' + 1`
25947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25950 ?*) ac_cv_sizeof_long=$ac_lo;;
25951 '') if test "$ac_cv_type_long" = yes; then
25952 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25954 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25955 See \`config.log' for more details." >&5
25956 $as_echo "$as_me: error: cannot compute sizeof (long)
25957 See \`config.log' for more details." >&2;}
25958 { (exit 77); exit 77; }; }; }
25960 ac_cv_sizeof_long=0
25964 cat >conftest.$ac_ext <<_ACEOF
25967 cat confdefs.h >>conftest.$ac_ext
25968 cat >>conftest.$ac_ext <<_ACEOF
25969 /* end confdefs.h. */
25970 $ac_includes_default
25971 static long int longval () { return (long int) (sizeof (long)); }
25972 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25974 #include <stdlib.h>
25979 FILE *f = fopen ("conftest.val", "w");
25982 if (((long int) (sizeof (long))) < 0)
25984 long int i = longval ();
25985 if (i != ((long int) (sizeof (long))))
25987 fprintf (f, "%ld", i);
25991 unsigned long int i = ulongval ();
25992 if (i != ((long int) (sizeof (long))))
25994 fprintf (f, "%lu", i);
25996 /* Do not output a trailing newline, as this causes \r\n confusion
25997 on some platforms. */
25998 return ferror (f) || fclose (f) != 0;
26004 rm -f conftest$ac_exeext
26005 if { (ac_try="$ac_link"
26006 case "(($ac_try" in
26007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26008 *) ac_try_echo=$ac_try;;
26010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26011 $as_echo "$ac_try_echo") >&5
26012 (eval "$ac_link") 2>&5
26014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26016 { (case "(($ac_try" in
26017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26018 *) ac_try_echo=$ac_try;;
26020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26021 $as_echo "$ac_try_echo") >&5
26022 (eval "$ac_try") 2>&5
26024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26025 (exit $ac_status); }; }; then
26026 ac_cv_sizeof_long=`cat conftest.val`
26028 $as_echo "$as_me: program exited with status $ac_status" >&5
26029 $as_echo "$as_me: failed program was:" >&5
26030 sed 's/^/| /' conftest.$ac_ext >&5
26032 ( exit $ac_status )
26033 if test "$ac_cv_type_long" = yes; then
26034 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26036 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26037 See \`config.log' for more details." >&5
26038 $as_echo "$as_me: error: cannot compute sizeof (long)
26039 See \`config.log' for more details." >&2;}
26040 { (exit 77); exit 77; }; }; }
26042 ac_cv_sizeof_long=0
26045 rm -rf conftest.dSYM
26046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26050 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
26051 $as_echo "$ac_cv_sizeof_long" >&6; }
26055 cat >>confdefs.h <<_ACEOF
26056 #define SIZEOF_LONG $ac_cv_sizeof_long
26061 # Decide whether float4 is passed by value: user-selectable, enabled by default
26062 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
26063 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
26066 # Check whether --enable-float4-byval was given.
26067 if test "${enable_float4_byval+set}" = set; then
26068 enableval=$enable_float4_byval;
26072 cat >>confdefs.h <<\_ACEOF
26073 #define USE_FLOAT4_BYVAL 1
26076 float4passbyval=true
26079 float4passbyval=false
26082 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
26083 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
26084 { (exit 1); exit 1; }; }
26089 enable_float4_byval=yes
26091 cat >>confdefs.h <<\_ACEOF
26092 #define USE_FLOAT4_BYVAL 1
26095 float4passbyval=true
26099 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
26100 $as_echo "$enable_float4_byval" >&6; }
26102 cat >>confdefs.h <<_ACEOF
26103 #define FLOAT4PASSBYVAL $float4passbyval
26107 # Decide whether float8 is passed by value.
26108 # Note: this setting also controls int8 and related types such as timestamp.
26109 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
26110 # If not, trying to select it is an error.
26111 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
26112 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
26113 if test $ac_cv_sizeof_void_p -ge 8 ; then
26116 # Check whether --enable-float8-byval was given.
26117 if test "${enable_float8_byval+set}" = set; then
26118 enableval=$enable_float8_byval;
26127 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
26128 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
26129 { (exit 1); exit 1; }; }
26134 enable_float8_byval=yes
26142 # Check whether --enable-float8-byval was given.
26143 if test "${enable_float8_byval+set}" = set; then
26144 enableval=$enable_float8_byval;
26153 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
26154 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
26155 { (exit 1); exit 1; }; }
26160 enable_float8_byval=no
26165 if test "$enable_float8_byval" = yes ; then
26166 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
26167 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
26168 { (exit 1); exit 1; }; }
26171 if test "$enable_float8_byval" = yes ; then
26173 cat >>confdefs.h <<\_ACEOF
26174 #define USE_FLOAT8_BYVAL 1
26177 float8passbyval=true
26179 float8passbyval=false
26181 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
26182 $as_echo "$enable_float8_byval" >&6; }
26184 cat >>confdefs.h <<_ACEOF
26185 #define FLOAT8PASSBYVAL $float8passbyval
26189 # Determine memory alignment requirements for the basic C data types.
26191 # The cast to long int works around a bug in the HP C Compiler,
26192 # see AC_CHECK_SIZEOF for more information.
26193 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
26194 $as_echo_n "checking alignment of short... " >&6; }
26195 if test "${ac_cv_alignof_short+set}" = set; then
26196 $as_echo_n "(cached) " >&6
26198 if test "$cross_compiling" = yes; then
26199 # Depending upon the size, compute the lo and hi bounds.
26200 cat >conftest.$ac_ext <<_ACEOF
26203 cat confdefs.h >>conftest.$ac_ext
26204 cat >>conftest.$ac_ext <<_ACEOF
26205 /* end confdefs.h. */
26206 $ac_includes_default
26208 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26210 typedef struct { char x; short y; } ac__type_alignof_;
26214 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26221 rm -f conftest.$ac_objext
26222 if { (ac_try="$ac_compile"
26223 case "(($ac_try" in
26224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26225 *) ac_try_echo=$ac_try;;
26227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26228 $as_echo "$ac_try_echo") >&5
26229 (eval "$ac_compile") 2>conftest.er1
26231 grep -v '^ *+' conftest.er1 >conftest.err
26233 cat conftest.err >&5
26234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26235 (exit $ac_status); } && {
26236 test -z "$ac_c_werror_flag" ||
26237 test ! -s conftest.err
26238 } && test -s conftest.$ac_objext; then
26241 cat >conftest.$ac_ext <<_ACEOF
26244 cat confdefs.h >>conftest.$ac_ext
26245 cat >>conftest.$ac_ext <<_ACEOF
26246 /* end confdefs.h. */
26247 $ac_includes_default
26249 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26251 typedef struct { char x; short y; } ac__type_alignof_;
26255 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26262 rm -f conftest.$ac_objext
26263 if { (ac_try="$ac_compile"
26264 case "(($ac_try" in
26265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26266 *) ac_try_echo=$ac_try;;
26268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26269 $as_echo "$ac_try_echo") >&5
26270 (eval "$ac_compile") 2>conftest.er1
26272 grep -v '^ *+' conftest.er1 >conftest.err
26274 cat conftest.err >&5
26275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26276 (exit $ac_status); } && {
26277 test -z "$ac_c_werror_flag" ||
26278 test ! -s conftest.err
26279 } && test -s conftest.$ac_objext; then
26280 ac_hi=$ac_mid; break
26282 $as_echo "$as_me: failed program was:" >&5
26283 sed 's/^/| /' conftest.$ac_ext >&5
26285 ac_lo=`expr $ac_mid + 1`
26286 if test $ac_lo -le $ac_mid; then
26290 ac_mid=`expr 2 '*' $ac_mid + 1`
26293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26296 $as_echo "$as_me: failed program was:" >&5
26297 sed 's/^/| /' conftest.$ac_ext >&5
26299 cat >conftest.$ac_ext <<_ACEOF
26302 cat confdefs.h >>conftest.$ac_ext
26303 cat >>conftest.$ac_ext <<_ACEOF
26304 /* end confdefs.h. */
26305 $ac_includes_default
26307 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26309 typedef struct { char x; short y; } ac__type_alignof_;
26313 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26320 rm -f conftest.$ac_objext
26321 if { (ac_try="$ac_compile"
26322 case "(($ac_try" in
26323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26324 *) ac_try_echo=$ac_try;;
26326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26327 $as_echo "$ac_try_echo") >&5
26328 (eval "$ac_compile") 2>conftest.er1
26330 grep -v '^ *+' conftest.er1 >conftest.err
26332 cat conftest.err >&5
26333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334 (exit $ac_status); } && {
26335 test -z "$ac_c_werror_flag" ||
26336 test ! -s conftest.err
26337 } && test -s conftest.$ac_objext; then
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
26379 ac_lo=$ac_mid; break
26381 $as_echo "$as_me: failed program was:" >&5
26382 sed 's/^/| /' conftest.$ac_ext >&5
26384 ac_hi=`expr '(' $ac_mid ')' - 1`
26385 if test $ac_mid -le $ac_hi; then
26389 ac_mid=`expr 2 '*' $ac_mid`
26392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26395 $as_echo "$as_me: failed program was:" >&5
26396 sed 's/^/| /' conftest.$ac_ext >&5
26401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26405 # Binary search between lo and hi bounds.
26406 while test "x$ac_lo" != "x$ac_hi"; do
26407 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26408 cat >conftest.$ac_ext <<_ACEOF
26411 cat confdefs.h >>conftest.$ac_ext
26412 cat >>conftest.$ac_ext <<_ACEOF
26413 /* end confdefs.h. */
26414 $ac_includes_default
26416 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26418 typedef struct { char x; short y; } ac__type_alignof_;
26422 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26429 rm -f conftest.$ac_objext
26430 if { (ac_try="$ac_compile"
26431 case "(($ac_try" in
26432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26433 *) ac_try_echo=$ac_try;;
26435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26436 $as_echo "$ac_try_echo") >&5
26437 (eval "$ac_compile") 2>conftest.er1
26439 grep -v '^ *+' conftest.er1 >conftest.err
26441 cat conftest.err >&5
26442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443 (exit $ac_status); } && {
26444 test -z "$ac_c_werror_flag" ||
26445 test ! -s conftest.err
26446 } && test -s conftest.$ac_objext; then
26449 $as_echo "$as_me: failed program was:" >&5
26450 sed 's/^/| /' conftest.$ac_ext >&5
26452 ac_lo=`expr '(' $ac_mid ')' + 1`
26455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26458 ?*) ac_cv_alignof_short=$ac_lo;;
26459 '') if test "$ac_cv_type_short" = yes; then
26460 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26462 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26463 See \`config.log' for more details." >&5
26464 $as_echo "$as_me: error: cannot compute alignment of short
26465 See \`config.log' for more details." >&2;}
26466 { (exit 77); exit 77; }; }; }
26468 ac_cv_alignof_short=0
26472 cat >conftest.$ac_ext <<_ACEOF
26475 cat confdefs.h >>conftest.$ac_ext
26476 cat >>conftest.$ac_ext <<_ACEOF
26477 /* end confdefs.h. */
26478 $ac_includes_default
26480 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26482 typedef struct { char x; short y; } ac__type_alignof_;
26483 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26484 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26486 #include <stdlib.h>
26491 FILE *f = fopen ("conftest.val", "w");
26494 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26496 long int i = longval ();
26497 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26499 fprintf (f, "%ld", i);
26503 unsigned long int i = ulongval ();
26504 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26506 fprintf (f, "%lu", i);
26508 /* Do not output a trailing newline, as this causes \r\n confusion
26509 on some platforms. */
26510 return ferror (f) || fclose (f) != 0;
26516 rm -f conftest$ac_exeext
26517 if { (ac_try="$ac_link"
26518 case "(($ac_try" in
26519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26520 *) ac_try_echo=$ac_try;;
26522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26523 $as_echo "$ac_try_echo") >&5
26524 (eval "$ac_link") 2>&5
26526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26528 { (case "(($ac_try" in
26529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26530 *) ac_try_echo=$ac_try;;
26532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26533 $as_echo "$ac_try_echo") >&5
26534 (eval "$ac_try") 2>&5
26536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26537 (exit $ac_status); }; }; then
26538 ac_cv_alignof_short=`cat conftest.val`
26540 $as_echo "$as_me: program exited with status $ac_status" >&5
26541 $as_echo "$as_me: failed program was:" >&5
26542 sed 's/^/| /' conftest.$ac_ext >&5
26544 ( exit $ac_status )
26545 if test "$ac_cv_type_short" = yes; then
26546 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26548 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26549 See \`config.log' for more details." >&5
26550 $as_echo "$as_me: error: cannot compute alignment of short
26551 See \`config.log' for more details." >&2;}
26552 { (exit 77); exit 77; }; }; }
26554 ac_cv_alignof_short=0
26557 rm -rf conftest.dSYM
26558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26562 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
26563 $as_echo "$ac_cv_alignof_short" >&6; }
26567 cat >>confdefs.h <<_ACEOF
26568 #define ALIGNOF_SHORT $ac_cv_alignof_short
26572 # The cast to long int works around a bug in the HP C Compiler,
26573 # see AC_CHECK_SIZEOF for more information.
26574 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
26575 $as_echo_n "checking alignment of int... " >&6; }
26576 if test "${ac_cv_alignof_int+set}" = set; then
26577 $as_echo_n "(cached) " >&6
26579 if test "$cross_compiling" = yes; then
26580 # Depending upon the size, compute the lo and hi bounds.
26581 cat >conftest.$ac_ext <<_ACEOF
26584 cat confdefs.h >>conftest.$ac_ext
26585 cat >>conftest.$ac_ext <<_ACEOF
26586 /* end confdefs.h. */
26587 $ac_includes_default
26589 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26591 typedef struct { char x; int y; } ac__type_alignof_;
26595 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26602 rm -f conftest.$ac_objext
26603 if { (ac_try="$ac_compile"
26604 case "(($ac_try" in
26605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26606 *) ac_try_echo=$ac_try;;
26608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26609 $as_echo "$ac_try_echo") >&5
26610 (eval "$ac_compile") 2>conftest.er1
26612 grep -v '^ *+' conftest.er1 >conftest.err
26614 cat conftest.err >&5
26615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26616 (exit $ac_status); } && {
26617 test -z "$ac_c_werror_flag" ||
26618 test ! -s conftest.err
26619 } && test -s conftest.$ac_objext; then
26622 cat >conftest.$ac_ext <<_ACEOF
26625 cat confdefs.h >>conftest.$ac_ext
26626 cat >>conftest.$ac_ext <<_ACEOF
26627 /* end confdefs.h. */
26628 $ac_includes_default
26630 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26632 typedef struct { char x; int y; } ac__type_alignof_;
26636 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26643 rm -f conftest.$ac_objext
26644 if { (ac_try="$ac_compile"
26645 case "(($ac_try" in
26646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26647 *) ac_try_echo=$ac_try;;
26649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26650 $as_echo "$ac_try_echo") >&5
26651 (eval "$ac_compile") 2>conftest.er1
26653 grep -v '^ *+' conftest.er1 >conftest.err
26655 cat conftest.err >&5
26656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26657 (exit $ac_status); } && {
26658 test -z "$ac_c_werror_flag" ||
26659 test ! -s conftest.err
26660 } && test -s conftest.$ac_objext; then
26661 ac_hi=$ac_mid; break
26663 $as_echo "$as_me: failed program was:" >&5
26664 sed 's/^/| /' conftest.$ac_ext >&5
26666 ac_lo=`expr $ac_mid + 1`
26667 if test $ac_lo -le $ac_mid; then
26671 ac_mid=`expr 2 '*' $ac_mid + 1`
26674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26677 $as_echo "$as_me: failed program was:" >&5
26678 sed 's/^/| /' conftest.$ac_ext >&5
26680 cat >conftest.$ac_ext <<_ACEOF
26683 cat confdefs.h >>conftest.$ac_ext
26684 cat >>conftest.$ac_ext <<_ACEOF
26685 /* end confdefs.h. */
26686 $ac_includes_default
26688 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26690 typedef struct { char x; int y; } ac__type_alignof_;
26694 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26701 rm -f conftest.$ac_objext
26702 if { (ac_try="$ac_compile"
26703 case "(($ac_try" in
26704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26705 *) ac_try_echo=$ac_try;;
26707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26708 $as_echo "$ac_try_echo") >&5
26709 (eval "$ac_compile") 2>conftest.er1
26711 grep -v '^ *+' conftest.er1 >conftest.err
26713 cat conftest.err >&5
26714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715 (exit $ac_status); } && {
26716 test -z "$ac_c_werror_flag" ||
26717 test ! -s conftest.err
26718 } && test -s conftest.$ac_objext; then
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
26760 ac_lo=$ac_mid; break
26762 $as_echo "$as_me: failed program was:" >&5
26763 sed 's/^/| /' conftest.$ac_ext >&5
26765 ac_hi=`expr '(' $ac_mid ')' - 1`
26766 if test $ac_mid -le $ac_hi; then
26770 ac_mid=`expr 2 '*' $ac_mid`
26773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26776 $as_echo "$as_me: failed program was:" >&5
26777 sed 's/^/| /' conftest.$ac_ext >&5
26782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26786 # Binary search between lo and hi bounds.
26787 while test "x$ac_lo" != "x$ac_hi"; do
26788 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26789 cat >conftest.$ac_ext <<_ACEOF
26792 cat confdefs.h >>conftest.$ac_ext
26793 cat >>conftest.$ac_ext <<_ACEOF
26794 /* end confdefs.h. */
26795 $ac_includes_default
26797 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26799 typedef struct { char x; int y; } ac__type_alignof_;
26803 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26810 rm -f conftest.$ac_objext
26811 if { (ac_try="$ac_compile"
26812 case "(($ac_try" in
26813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26814 *) ac_try_echo=$ac_try;;
26816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26817 $as_echo "$ac_try_echo") >&5
26818 (eval "$ac_compile") 2>conftest.er1
26820 grep -v '^ *+' conftest.er1 >conftest.err
26822 cat conftest.err >&5
26823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824 (exit $ac_status); } && {
26825 test -z "$ac_c_werror_flag" ||
26826 test ! -s conftest.err
26827 } && test -s conftest.$ac_objext; then
26830 $as_echo "$as_me: failed program was:" >&5
26831 sed 's/^/| /' conftest.$ac_ext >&5
26833 ac_lo=`expr '(' $ac_mid ')' + 1`
26836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26839 ?*) ac_cv_alignof_int=$ac_lo;;
26840 '') if test "$ac_cv_type_int" = yes; then
26841 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26843 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26844 See \`config.log' for more details." >&5
26845 $as_echo "$as_me: error: cannot compute alignment of int
26846 See \`config.log' for more details." >&2;}
26847 { (exit 77); exit 77; }; }; }
26849 ac_cv_alignof_int=0
26853 cat >conftest.$ac_ext <<_ACEOF
26856 cat confdefs.h >>conftest.$ac_ext
26857 cat >>conftest.$ac_ext <<_ACEOF
26858 /* end confdefs.h. */
26859 $ac_includes_default
26861 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26863 typedef struct { char x; int y; } ac__type_alignof_;
26864 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26865 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26867 #include <stdlib.h>
26872 FILE *f = fopen ("conftest.val", "w");
26875 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26877 long int i = longval ();
26878 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26880 fprintf (f, "%ld", i);
26884 unsigned long int i = ulongval ();
26885 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26887 fprintf (f, "%lu", i);
26889 /* Do not output a trailing newline, as this causes \r\n confusion
26890 on some platforms. */
26891 return ferror (f) || fclose (f) != 0;
26897 rm -f conftest$ac_exeext
26898 if { (ac_try="$ac_link"
26899 case "(($ac_try" in
26900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26901 *) ac_try_echo=$ac_try;;
26903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26904 $as_echo "$ac_try_echo") >&5
26905 (eval "$ac_link") 2>&5
26907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26909 { (case "(($ac_try" in
26910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26911 *) ac_try_echo=$ac_try;;
26913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26914 $as_echo "$ac_try_echo") >&5
26915 (eval "$ac_try") 2>&5
26917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918 (exit $ac_status); }; }; then
26919 ac_cv_alignof_int=`cat conftest.val`
26921 $as_echo "$as_me: program exited with status $ac_status" >&5
26922 $as_echo "$as_me: failed program was:" >&5
26923 sed 's/^/| /' conftest.$ac_ext >&5
26925 ( exit $ac_status )
26926 if test "$ac_cv_type_int" = yes; then
26927 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26929 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26930 See \`config.log' for more details." >&5
26931 $as_echo "$as_me: error: cannot compute alignment of int
26932 See \`config.log' for more details." >&2;}
26933 { (exit 77); exit 77; }; }; }
26935 ac_cv_alignof_int=0
26938 rm -rf conftest.dSYM
26939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26943 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26944 $as_echo "$ac_cv_alignof_int" >&6; }
26948 cat >>confdefs.h <<_ACEOF
26949 #define ALIGNOF_INT $ac_cv_alignof_int
26953 # The cast to long int works around a bug in the HP C Compiler,
26954 # see AC_CHECK_SIZEOF for more information.
26955 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26956 $as_echo_n "checking alignment of long... " >&6; }
26957 if test "${ac_cv_alignof_long+set}" = set; then
26958 $as_echo_n "(cached) " >&6
26960 if test "$cross_compiling" = yes; then
26961 # Depending upon the size, compute the lo and hi bounds.
26962 cat >conftest.$ac_ext <<_ACEOF
26965 cat confdefs.h >>conftest.$ac_ext
26966 cat >>conftest.$ac_ext <<_ACEOF
26967 /* end confdefs.h. */
26968 $ac_includes_default
26970 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26972 typedef struct { char x; long y; } ac__type_alignof_;
26976 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26983 rm -f conftest.$ac_objext
26984 if { (ac_try="$ac_compile"
26985 case "(($ac_try" in
26986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26987 *) ac_try_echo=$ac_try;;
26989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26990 $as_echo "$ac_try_echo") >&5
26991 (eval "$ac_compile") 2>conftest.er1
26993 grep -v '^ *+' conftest.er1 >conftest.err
26995 cat conftest.err >&5
26996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997 (exit $ac_status); } && {
26998 test -z "$ac_c_werror_flag" ||
26999 test ! -s conftest.err
27000 } && test -s conftest.$ac_objext; then
27003 cat >conftest.$ac_ext <<_ACEOF
27006 cat confdefs.h >>conftest.$ac_ext
27007 cat >>conftest.$ac_ext <<_ACEOF
27008 /* end confdefs.h. */
27009 $ac_includes_default
27011 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27013 typedef struct { char x; long y; } ac__type_alignof_;
27017 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27024 rm -f conftest.$ac_objext
27025 if { (ac_try="$ac_compile"
27026 case "(($ac_try" in
27027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27028 *) ac_try_echo=$ac_try;;
27030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27031 $as_echo "$ac_try_echo") >&5
27032 (eval "$ac_compile") 2>conftest.er1
27034 grep -v '^ *+' conftest.er1 >conftest.err
27036 cat conftest.err >&5
27037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038 (exit $ac_status); } && {
27039 test -z "$ac_c_werror_flag" ||
27040 test ! -s conftest.err
27041 } && test -s conftest.$ac_objext; then
27042 ac_hi=$ac_mid; break
27044 $as_echo "$as_me: failed program was:" >&5
27045 sed 's/^/| /' conftest.$ac_ext >&5
27047 ac_lo=`expr $ac_mid + 1`
27048 if test $ac_lo -le $ac_mid; then
27052 ac_mid=`expr 2 '*' $ac_mid + 1`
27055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27058 $as_echo "$as_me: failed program was:" >&5
27059 sed 's/^/| /' conftest.$ac_ext >&5
27061 cat >conftest.$ac_ext <<_ACEOF
27064 cat confdefs.h >>conftest.$ac_ext
27065 cat >>conftest.$ac_ext <<_ACEOF
27066 /* end confdefs.h. */
27067 $ac_includes_default
27069 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27071 typedef struct { char x; long y; } ac__type_alignof_;
27075 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27082 rm -f conftest.$ac_objext
27083 if { (ac_try="$ac_compile"
27084 case "(($ac_try" in
27085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27086 *) ac_try_echo=$ac_try;;
27088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27089 $as_echo "$ac_try_echo") >&5
27090 (eval "$ac_compile") 2>conftest.er1
27092 grep -v '^ *+' conftest.er1 >conftest.err
27094 cat conftest.err >&5
27095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096 (exit $ac_status); } && {
27097 test -z "$ac_c_werror_flag" ||
27098 test ! -s conftest.err
27099 } && test -s conftest.$ac_objext; then
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
27141 ac_lo=$ac_mid; break
27143 $as_echo "$as_me: failed program was:" >&5
27144 sed 's/^/| /' conftest.$ac_ext >&5
27146 ac_hi=`expr '(' $ac_mid ')' - 1`
27147 if test $ac_mid -le $ac_hi; then
27151 ac_mid=`expr 2 '*' $ac_mid`
27154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27157 $as_echo "$as_me: failed program was:" >&5
27158 sed 's/^/| /' conftest.$ac_ext >&5
27163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27167 # Binary search between lo and hi bounds.
27168 while test "x$ac_lo" != "x$ac_hi"; do
27169 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27170 cat >conftest.$ac_ext <<_ACEOF
27173 cat confdefs.h >>conftest.$ac_ext
27174 cat >>conftest.$ac_ext <<_ACEOF
27175 /* end confdefs.h. */
27176 $ac_includes_default
27178 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27180 typedef struct { char x; long y; } ac__type_alignof_;
27184 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27191 rm -f conftest.$ac_objext
27192 if { (ac_try="$ac_compile"
27193 case "(($ac_try" in
27194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27195 *) ac_try_echo=$ac_try;;
27197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27198 $as_echo "$ac_try_echo") >&5
27199 (eval "$ac_compile") 2>conftest.er1
27201 grep -v '^ *+' conftest.er1 >conftest.err
27203 cat conftest.err >&5
27204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205 (exit $ac_status); } && {
27206 test -z "$ac_c_werror_flag" ||
27207 test ! -s conftest.err
27208 } && test -s conftest.$ac_objext; then
27211 $as_echo "$as_me: failed program was:" >&5
27212 sed 's/^/| /' conftest.$ac_ext >&5
27214 ac_lo=`expr '(' $ac_mid ')' + 1`
27217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27220 ?*) ac_cv_alignof_long=$ac_lo;;
27221 '') if test "$ac_cv_type_long" = yes; then
27222 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27224 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
27225 See \`config.log' for more details." >&5
27226 $as_echo "$as_me: error: cannot compute alignment of long
27227 See \`config.log' for more details." >&2;}
27228 { (exit 77); exit 77; }; }; }
27230 ac_cv_alignof_long=0
27234 cat >conftest.$ac_ext <<_ACEOF
27237 cat confdefs.h >>conftest.$ac_ext
27238 cat >>conftest.$ac_ext <<_ACEOF
27239 /* end confdefs.h. */
27240 $ac_includes_default
27242 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27244 typedef struct { char x; long y; } ac__type_alignof_;
27245 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27246 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27248 #include <stdlib.h>
27253 FILE *f = fopen ("conftest.val", "w");
27256 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27258 long int i = longval ();
27259 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27261 fprintf (f, "%ld", i);
27265 unsigned long int i = ulongval ();
27266 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27268 fprintf (f, "%lu", i);
27270 /* Do not output a trailing newline, as this causes \r\n confusion
27271 on some platforms. */
27272 return ferror (f) || fclose (f) != 0;
27278 rm -f conftest$ac_exeext
27279 if { (ac_try="$ac_link"
27280 case "(($ac_try" in
27281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27282 *) ac_try_echo=$ac_try;;
27284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27285 $as_echo "$ac_try_echo") >&5
27286 (eval "$ac_link") 2>&5
27288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27290 { (case "(($ac_try" in
27291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27292 *) ac_try_echo=$ac_try;;
27294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27295 $as_echo "$ac_try_echo") >&5
27296 (eval "$ac_try") 2>&5
27298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299 (exit $ac_status); }; }; then
27300 ac_cv_alignof_long=`cat conftest.val`
27302 $as_echo "$as_me: program exited with status $ac_status" >&5
27303 $as_echo "$as_me: failed program was:" >&5
27304 sed 's/^/| /' conftest.$ac_ext >&5
27306 ( exit $ac_status )
27307 if test "$ac_cv_type_long" = yes; then
27308 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27310 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
27311 See \`config.log' for more details." >&5
27312 $as_echo "$as_me: error: cannot compute alignment of long
27313 See \`config.log' for more details." >&2;}
27314 { (exit 77); exit 77; }; }; }
27316 ac_cv_alignof_long=0
27319 rm -rf conftest.dSYM
27320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27324 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
27325 $as_echo "$ac_cv_alignof_long" >&6; }
27329 cat >>confdefs.h <<_ACEOF
27330 #define ALIGNOF_LONG $ac_cv_alignof_long
27334 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
27335 # The cast to long int works around a bug in the HP C Compiler,
27336 # see AC_CHECK_SIZEOF for more information.
27337 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
27338 $as_echo_n "checking alignment of long long int... " >&6; }
27339 if test "${ac_cv_alignof_long_long_int+set}" = set; then
27340 $as_echo_n "(cached) " >&6
27342 if test "$cross_compiling" = yes; then
27343 # Depending upon the size, compute the lo and hi bounds.
27344 cat >conftest.$ac_ext <<_ACEOF
27347 cat confdefs.h >>conftest.$ac_ext
27348 cat >>conftest.$ac_ext <<_ACEOF
27349 /* end confdefs.h. */
27350 $ac_includes_default
27352 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27354 typedef struct { char x; long long int y; } ac__type_alignof_;
27358 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27365 rm -f conftest.$ac_objext
27366 if { (ac_try="$ac_compile"
27367 case "(($ac_try" in
27368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27369 *) ac_try_echo=$ac_try;;
27371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27372 $as_echo "$ac_try_echo") >&5
27373 (eval "$ac_compile") 2>conftest.er1
27375 grep -v '^ *+' conftest.er1 >conftest.err
27377 cat conftest.err >&5
27378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379 (exit $ac_status); } && {
27380 test -z "$ac_c_werror_flag" ||
27381 test ! -s conftest.err
27382 } && test -s conftest.$ac_objext; then
27385 cat >conftest.$ac_ext <<_ACEOF
27388 cat confdefs.h >>conftest.$ac_ext
27389 cat >>conftest.$ac_ext <<_ACEOF
27390 /* end confdefs.h. */
27391 $ac_includes_default
27393 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27395 typedef struct { char x; long long int y; } ac__type_alignof_;
27399 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27406 rm -f conftest.$ac_objext
27407 if { (ac_try="$ac_compile"
27408 case "(($ac_try" in
27409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27410 *) ac_try_echo=$ac_try;;
27412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27413 $as_echo "$ac_try_echo") >&5
27414 (eval "$ac_compile") 2>conftest.er1
27416 grep -v '^ *+' conftest.er1 >conftest.err
27418 cat conftest.err >&5
27419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27420 (exit $ac_status); } && {
27421 test -z "$ac_c_werror_flag" ||
27422 test ! -s conftest.err
27423 } && test -s conftest.$ac_objext; then
27424 ac_hi=$ac_mid; break
27426 $as_echo "$as_me: failed program was:" >&5
27427 sed 's/^/| /' conftest.$ac_ext >&5
27429 ac_lo=`expr $ac_mid + 1`
27430 if test $ac_lo -le $ac_mid; then
27434 ac_mid=`expr 2 '*' $ac_mid + 1`
27437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27440 $as_echo "$as_me: failed program was:" >&5
27441 sed 's/^/| /' conftest.$ac_ext >&5
27443 cat >conftest.$ac_ext <<_ACEOF
27446 cat confdefs.h >>conftest.$ac_ext
27447 cat >>conftest.$ac_ext <<_ACEOF
27448 /* end confdefs.h. */
27449 $ac_includes_default
27451 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27453 typedef struct { char x; long long int y; } ac__type_alignof_;
27457 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27464 rm -f conftest.$ac_objext
27465 if { (ac_try="$ac_compile"
27466 case "(($ac_try" in
27467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27468 *) ac_try_echo=$ac_try;;
27470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27471 $as_echo "$ac_try_echo") >&5
27472 (eval "$ac_compile") 2>conftest.er1
27474 grep -v '^ *+' conftest.er1 >conftest.err
27476 cat conftest.err >&5
27477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478 (exit $ac_status); } && {
27479 test -z "$ac_c_werror_flag" ||
27480 test ! -s conftest.err
27481 } && test -s conftest.$ac_objext; then
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
27523 ac_lo=$ac_mid; break
27525 $as_echo "$as_me: failed program was:" >&5
27526 sed 's/^/| /' conftest.$ac_ext >&5
27528 ac_hi=`expr '(' $ac_mid ')' - 1`
27529 if test $ac_mid -le $ac_hi; then
27533 ac_mid=`expr 2 '*' $ac_mid`
27536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27539 $as_echo "$as_me: failed program was:" >&5
27540 sed 's/^/| /' conftest.$ac_ext >&5
27545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27549 # Binary search between lo and hi bounds.
27550 while test "x$ac_lo" != "x$ac_hi"; do
27551 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27552 cat >conftest.$ac_ext <<_ACEOF
27555 cat confdefs.h >>conftest.$ac_ext
27556 cat >>conftest.$ac_ext <<_ACEOF
27557 /* end confdefs.h. */
27558 $ac_includes_default
27560 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27562 typedef struct { char x; long long int y; } ac__type_alignof_;
27566 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27573 rm -f conftest.$ac_objext
27574 if { (ac_try="$ac_compile"
27575 case "(($ac_try" in
27576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27577 *) ac_try_echo=$ac_try;;
27579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27580 $as_echo "$ac_try_echo") >&5
27581 (eval "$ac_compile") 2>conftest.er1
27583 grep -v '^ *+' conftest.er1 >conftest.err
27585 cat conftest.err >&5
27586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587 (exit $ac_status); } && {
27588 test -z "$ac_c_werror_flag" ||
27589 test ! -s conftest.err
27590 } && test -s conftest.$ac_objext; then
27593 $as_echo "$as_me: failed program was:" >&5
27594 sed 's/^/| /' conftest.$ac_ext >&5
27596 ac_lo=`expr '(' $ac_mid ')' + 1`
27599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27602 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
27603 '') if test "$ac_cv_type_long_long_int" = yes; then
27604 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27606 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27607 See \`config.log' for more details." >&5
27608 $as_echo "$as_me: error: cannot compute alignment of long long int
27609 See \`config.log' for more details." >&2;}
27610 { (exit 77); exit 77; }; }; }
27612 ac_cv_alignof_long_long_int=0
27616 cat >conftest.$ac_ext <<_ACEOF
27619 cat confdefs.h >>conftest.$ac_ext
27620 cat >>conftest.$ac_ext <<_ACEOF
27621 /* end confdefs.h. */
27622 $ac_includes_default
27624 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27626 typedef struct { char x; long long int y; } ac__type_alignof_;
27627 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27628 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27630 #include <stdlib.h>
27635 FILE *f = fopen ("conftest.val", "w");
27638 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27640 long int i = longval ();
27641 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27643 fprintf (f, "%ld", i);
27647 unsigned long int i = ulongval ();
27648 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27650 fprintf (f, "%lu", i);
27652 /* Do not output a trailing newline, as this causes \r\n confusion
27653 on some platforms. */
27654 return ferror (f) || fclose (f) != 0;
27660 rm -f conftest$ac_exeext
27661 if { (ac_try="$ac_link"
27662 case "(($ac_try" in
27663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27664 *) ac_try_echo=$ac_try;;
27666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27667 $as_echo "$ac_try_echo") >&5
27668 (eval "$ac_link") 2>&5
27670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27672 { (case "(($ac_try" in
27673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27674 *) ac_try_echo=$ac_try;;
27676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27677 $as_echo "$ac_try_echo") >&5
27678 (eval "$ac_try") 2>&5
27680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681 (exit $ac_status); }; }; then
27682 ac_cv_alignof_long_long_int=`cat conftest.val`
27684 $as_echo "$as_me: program exited with status $ac_status" >&5
27685 $as_echo "$as_me: failed program was:" >&5
27686 sed 's/^/| /' conftest.$ac_ext >&5
27688 ( exit $ac_status )
27689 if test "$ac_cv_type_long_long_int" = yes; then
27690 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27692 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27693 See \`config.log' for more details." >&5
27694 $as_echo "$as_me: error: cannot compute alignment of long long int
27695 See \`config.log' for more details." >&2;}
27696 { (exit 77); exit 77; }; }; }
27698 ac_cv_alignof_long_long_int=0
27701 rm -rf conftest.dSYM
27702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27706 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27707 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27711 cat >>confdefs.h <<_ACEOF
27712 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27717 # The cast to long int works around a bug in the HP C Compiler,
27718 # see AC_CHECK_SIZEOF for more information.
27719 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27720 $as_echo_n "checking alignment of double... " >&6; }
27721 if test "${ac_cv_alignof_double+set}" = set; then
27722 $as_echo_n "(cached) " >&6
27724 if test "$cross_compiling" = yes; then
27725 # Depending upon the size, compute the lo and hi bounds.
27726 cat >conftest.$ac_ext <<_ACEOF
27729 cat confdefs.h >>conftest.$ac_ext
27730 cat >>conftest.$ac_ext <<_ACEOF
27731 /* end confdefs.h. */
27732 $ac_includes_default
27734 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27736 typedef struct { char x; double y; } ac__type_alignof_;
27740 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27747 rm -f conftest.$ac_objext
27748 if { (ac_try="$ac_compile"
27749 case "(($ac_try" in
27750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27751 *) ac_try_echo=$ac_try;;
27753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27754 $as_echo "$ac_try_echo") >&5
27755 (eval "$ac_compile") 2>conftest.er1
27757 grep -v '^ *+' conftest.er1 >conftest.err
27759 cat conftest.err >&5
27760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761 (exit $ac_status); } && {
27762 test -z "$ac_c_werror_flag" ||
27763 test ! -s conftest.err
27764 } && test -s conftest.$ac_objext; then
27767 cat >conftest.$ac_ext <<_ACEOF
27770 cat confdefs.h >>conftest.$ac_ext
27771 cat >>conftest.$ac_ext <<_ACEOF
27772 /* end confdefs.h. */
27773 $ac_includes_default
27775 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27777 typedef struct { char x; double y; } ac__type_alignof_;
27781 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27788 rm -f conftest.$ac_objext
27789 if { (ac_try="$ac_compile"
27790 case "(($ac_try" in
27791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27792 *) ac_try_echo=$ac_try;;
27794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27795 $as_echo "$ac_try_echo") >&5
27796 (eval "$ac_compile") 2>conftest.er1
27798 grep -v '^ *+' conftest.er1 >conftest.err
27800 cat conftest.err >&5
27801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27802 (exit $ac_status); } && {
27803 test -z "$ac_c_werror_flag" ||
27804 test ! -s conftest.err
27805 } && test -s conftest.$ac_objext; then
27806 ac_hi=$ac_mid; break
27808 $as_echo "$as_me: failed program was:" >&5
27809 sed 's/^/| /' conftest.$ac_ext >&5
27811 ac_lo=`expr $ac_mid + 1`
27812 if test $ac_lo -le $ac_mid; then
27816 ac_mid=`expr 2 '*' $ac_mid + 1`
27819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27822 $as_echo "$as_me: failed program was:" >&5
27823 sed 's/^/| /' conftest.$ac_ext >&5
27825 cat >conftest.$ac_ext <<_ACEOF
27828 cat confdefs.h >>conftest.$ac_ext
27829 cat >>conftest.$ac_ext <<_ACEOF
27830 /* end confdefs.h. */
27831 $ac_includes_default
27833 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27835 typedef struct { char x; double y; } ac__type_alignof_;
27839 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27846 rm -f conftest.$ac_objext
27847 if { (ac_try="$ac_compile"
27848 case "(($ac_try" in
27849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27850 *) ac_try_echo=$ac_try;;
27852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27853 $as_echo "$ac_try_echo") >&5
27854 (eval "$ac_compile") 2>conftest.er1
27856 grep -v '^ *+' conftest.er1 >conftest.err
27858 cat conftest.err >&5
27859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27860 (exit $ac_status); } && {
27861 test -z "$ac_c_werror_flag" ||
27862 test ! -s conftest.err
27863 } && test -s conftest.$ac_objext; then
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
27905 ac_lo=$ac_mid; break
27907 $as_echo "$as_me: failed program was:" >&5
27908 sed 's/^/| /' conftest.$ac_ext >&5
27910 ac_hi=`expr '(' $ac_mid ')' - 1`
27911 if test $ac_mid -le $ac_hi; then
27915 ac_mid=`expr 2 '*' $ac_mid`
27918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27921 $as_echo "$as_me: failed program was:" >&5
27922 sed 's/^/| /' conftest.$ac_ext >&5
27927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27931 # Binary search between lo and hi bounds.
27932 while test "x$ac_lo" != "x$ac_hi"; do
27933 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27934 cat >conftest.$ac_ext <<_ACEOF
27937 cat confdefs.h >>conftest.$ac_ext
27938 cat >>conftest.$ac_ext <<_ACEOF
27939 /* end confdefs.h. */
27940 $ac_includes_default
27942 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27944 typedef struct { char x; double y; } ac__type_alignof_;
27948 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27955 rm -f conftest.$ac_objext
27956 if { (ac_try="$ac_compile"
27957 case "(($ac_try" in
27958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27959 *) ac_try_echo=$ac_try;;
27961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27962 $as_echo "$ac_try_echo") >&5
27963 (eval "$ac_compile") 2>conftest.er1
27965 grep -v '^ *+' conftest.er1 >conftest.err
27967 cat conftest.err >&5
27968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969 (exit $ac_status); } && {
27970 test -z "$ac_c_werror_flag" ||
27971 test ! -s conftest.err
27972 } && test -s conftest.$ac_objext; then
27975 $as_echo "$as_me: failed program was:" >&5
27976 sed 's/^/| /' conftest.$ac_ext >&5
27978 ac_lo=`expr '(' $ac_mid ')' + 1`
27981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27984 ?*) ac_cv_alignof_double=$ac_lo;;
27985 '') if test "$ac_cv_type_double" = yes; then
27986 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27988 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27989 See \`config.log' for more details." >&5
27990 $as_echo "$as_me: error: cannot compute alignment of double
27991 See \`config.log' for more details." >&2;}
27992 { (exit 77); exit 77; }; }; }
27994 ac_cv_alignof_double=0
27998 cat >conftest.$ac_ext <<_ACEOF
28001 cat confdefs.h >>conftest.$ac_ext
28002 cat >>conftest.$ac_ext <<_ACEOF
28003 /* end confdefs.h. */
28004 $ac_includes_default
28006 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
28008 typedef struct { char x; double y; } ac__type_alignof_;
28009 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
28010 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
28012 #include <stdlib.h>
28017 FILE *f = fopen ("conftest.val", "w");
28020 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
28022 long int i = longval ();
28023 if (i != ((long int) offsetof (ac__type_alignof_, y)))
28025 fprintf (f, "%ld", i);
28029 unsigned long int i = ulongval ();
28030 if (i != ((long int) offsetof (ac__type_alignof_, y)))
28032 fprintf (f, "%lu", i);
28034 /* Do not output a trailing newline, as this causes \r\n confusion
28035 on some platforms. */
28036 return ferror (f) || fclose (f) != 0;
28042 rm -f conftest$ac_exeext
28043 if { (ac_try="$ac_link"
28044 case "(($ac_try" in
28045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28046 *) ac_try_echo=$ac_try;;
28048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28049 $as_echo "$ac_try_echo") >&5
28050 (eval "$ac_link") 2>&5
28052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28054 { (case "(($ac_try" in
28055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28056 *) ac_try_echo=$ac_try;;
28058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28059 $as_echo "$ac_try_echo") >&5
28060 (eval "$ac_try") 2>&5
28062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063 (exit $ac_status); }; }; then
28064 ac_cv_alignof_double=`cat conftest.val`
28066 $as_echo "$as_me: program exited with status $ac_status" >&5
28067 $as_echo "$as_me: failed program was:" >&5
28068 sed 's/^/| /' conftest.$ac_ext >&5
28070 ( exit $ac_status )
28071 if test "$ac_cv_type_double" = yes; then
28072 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28074 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
28075 See \`config.log' for more details." >&5
28076 $as_echo "$as_me: error: cannot compute alignment of double
28077 See \`config.log' for more details." >&2;}
28078 { (exit 77); exit 77; }; }; }
28080 ac_cv_alignof_double=0
28083 rm -rf conftest.dSYM
28084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28088 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
28089 $as_echo "$ac_cv_alignof_double" >&6; }
28093 cat >>confdefs.h <<_ACEOF
28094 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
28099 # Compute maximum alignment of any basic type.
28100 # We assume long's alignment is at least as strong as char, short, or int;
28101 # but we must check long long (if it exists) and double.
28103 MAX_ALIGNOF=$ac_cv_alignof_long
28104 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
28105 MAX_ALIGNOF=$ac_cv_alignof_double
28107 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
28108 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
28111 cat >>confdefs.h <<_ACEOF
28112 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
28117 # Some platforms predefine the types int8, int16, etc. Only check
28118 # a (hopefully) representative subset.
28119 { $as_echo "$as_me:$LINENO: checking for int8" >&5
28120 $as_echo_n "checking for int8... " >&6; }
28121 if test "${ac_cv_type_int8+set}" = set; then
28122 $as_echo_n "(cached) " >&6
28125 cat >conftest.$ac_ext <<_ACEOF
28128 cat confdefs.h >>conftest.$ac_ext
28129 cat >>conftest.$ac_ext <<_ACEOF
28130 /* end confdefs.h. */
28142 rm -f conftest.$ac_objext
28143 if { (ac_try="$ac_compile"
28144 case "(($ac_try" in
28145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28146 *) ac_try_echo=$ac_try;;
28148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28149 $as_echo "$ac_try_echo") >&5
28150 (eval "$ac_compile") 2>conftest.er1
28152 grep -v '^ *+' conftest.er1 >conftest.err
28154 cat conftest.err >&5
28155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28156 (exit $ac_status); } && {
28157 test -z "$ac_c_werror_flag" ||
28158 test ! -s conftest.err
28159 } && test -s conftest.$ac_objext; then
28160 cat >conftest.$ac_ext <<_ACEOF
28163 cat confdefs.h >>conftest.$ac_ext
28164 cat >>conftest.$ac_ext <<_ACEOF
28165 /* end confdefs.h. */
28171 if (sizeof ((int8)))
28177 rm -f conftest.$ac_objext
28178 if { (ac_try="$ac_compile"
28179 case "(($ac_try" in
28180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28181 *) ac_try_echo=$ac_try;;
28183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28184 $as_echo "$ac_try_echo") >&5
28185 (eval "$ac_compile") 2>conftest.er1
28187 grep -v '^ *+' conftest.er1 >conftest.err
28189 cat conftest.err >&5
28190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191 (exit $ac_status); } && {
28192 test -z "$ac_c_werror_flag" ||
28193 test ! -s conftest.err
28194 } && test -s conftest.$ac_objext; then
28197 $as_echo "$as_me: failed program was:" >&5
28198 sed 's/^/| /' conftest.$ac_ext >&5
28200 ac_cv_type_int8=yes
28203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28205 $as_echo "$as_me: failed program was:" >&5
28206 sed 's/^/| /' conftest.$ac_ext >&5
28211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28213 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
28214 $as_echo "$ac_cv_type_int8" >&6; }
28215 if test "x$ac_cv_type_int8" = x""yes; then
28217 cat >>confdefs.h <<_ACEOF
28218 #define HAVE_INT8 1
28223 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
28224 $as_echo_n "checking for uint8... " >&6; }
28225 if test "${ac_cv_type_uint8+set}" = set; then
28226 $as_echo_n "(cached) " >&6
28228 ac_cv_type_uint8=no
28229 cat >conftest.$ac_ext <<_ACEOF
28232 cat confdefs.h >>conftest.$ac_ext
28233 cat >>conftest.$ac_ext <<_ACEOF
28234 /* end confdefs.h. */
28240 if (sizeof (uint8))
28246 rm -f conftest.$ac_objext
28247 if { (ac_try="$ac_compile"
28248 case "(($ac_try" in
28249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28250 *) ac_try_echo=$ac_try;;
28252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28253 $as_echo "$ac_try_echo") >&5
28254 (eval "$ac_compile") 2>conftest.er1
28256 grep -v '^ *+' conftest.er1 >conftest.err
28258 cat conftest.err >&5
28259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260 (exit $ac_status); } && {
28261 test -z "$ac_c_werror_flag" ||
28262 test ! -s conftest.err
28263 } && test -s conftest.$ac_objext; then
28264 cat >conftest.$ac_ext <<_ACEOF
28267 cat confdefs.h >>conftest.$ac_ext
28268 cat >>conftest.$ac_ext <<_ACEOF
28269 /* end confdefs.h. */
28275 if (sizeof ((uint8)))
28281 rm -f conftest.$ac_objext
28282 if { (ac_try="$ac_compile"
28283 case "(($ac_try" in
28284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28285 *) ac_try_echo=$ac_try;;
28287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28288 $as_echo "$ac_try_echo") >&5
28289 (eval "$ac_compile") 2>conftest.er1
28291 grep -v '^ *+' conftest.er1 >conftest.err
28293 cat conftest.err >&5
28294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28295 (exit $ac_status); } && {
28296 test -z "$ac_c_werror_flag" ||
28297 test ! -s conftest.err
28298 } && test -s conftest.$ac_objext; then
28301 $as_echo "$as_me: failed program was:" >&5
28302 sed 's/^/| /' conftest.$ac_ext >&5
28304 ac_cv_type_uint8=yes
28307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28309 $as_echo "$as_me: failed program was:" >&5
28310 sed 's/^/| /' conftest.$ac_ext >&5
28315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28317 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
28318 $as_echo "$ac_cv_type_uint8" >&6; }
28319 if test "x$ac_cv_type_uint8" = x""yes; then
28321 cat >>confdefs.h <<_ACEOF
28322 #define HAVE_UINT8 1
28327 { $as_echo "$as_me:$LINENO: checking for int64" >&5
28328 $as_echo_n "checking for int64... " >&6; }
28329 if test "${ac_cv_type_int64+set}" = set; then
28330 $as_echo_n "(cached) " >&6
28332 ac_cv_type_int64=no
28333 cat >conftest.$ac_ext <<_ACEOF
28336 cat confdefs.h >>conftest.$ac_ext
28337 cat >>conftest.$ac_ext <<_ACEOF
28338 /* end confdefs.h. */
28344 if (sizeof (int64))
28350 rm -f conftest.$ac_objext
28351 if { (ac_try="$ac_compile"
28352 case "(($ac_try" in
28353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28354 *) ac_try_echo=$ac_try;;
28356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28357 $as_echo "$ac_try_echo") >&5
28358 (eval "$ac_compile") 2>conftest.er1
28360 grep -v '^ *+' conftest.er1 >conftest.err
28362 cat conftest.err >&5
28363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364 (exit $ac_status); } && {
28365 test -z "$ac_c_werror_flag" ||
28366 test ! -s conftest.err
28367 } && test -s conftest.$ac_objext; then
28368 cat >conftest.$ac_ext <<_ACEOF
28371 cat confdefs.h >>conftest.$ac_ext
28372 cat >>conftest.$ac_ext <<_ACEOF
28373 /* end confdefs.h. */
28379 if (sizeof ((int64)))
28385 rm -f conftest.$ac_objext
28386 if { (ac_try="$ac_compile"
28387 case "(($ac_try" in
28388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28389 *) ac_try_echo=$ac_try;;
28391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28392 $as_echo "$ac_try_echo") >&5
28393 (eval "$ac_compile") 2>conftest.er1
28395 grep -v '^ *+' conftest.er1 >conftest.err
28397 cat conftest.err >&5
28398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); } && {
28400 test -z "$ac_c_werror_flag" ||
28401 test ! -s conftest.err
28402 } && test -s conftest.$ac_objext; then
28405 $as_echo "$as_me: failed program was:" >&5
28406 sed 's/^/| /' conftest.$ac_ext >&5
28408 ac_cv_type_int64=yes
28411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28413 $as_echo "$as_me: failed program was:" >&5
28414 sed 's/^/| /' conftest.$ac_ext >&5
28419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28421 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
28422 $as_echo "$ac_cv_type_int64" >&6; }
28423 if test "x$ac_cv_type_int64" = x""yes; then
28425 cat >>confdefs.h <<_ACEOF
28426 #define HAVE_INT64 1
28431 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
28432 $as_echo_n "checking for uint64... " >&6; }
28433 if test "${ac_cv_type_uint64+set}" = set; then
28434 $as_echo_n "(cached) " >&6
28436 ac_cv_type_uint64=no
28437 cat >conftest.$ac_ext <<_ACEOF
28440 cat confdefs.h >>conftest.$ac_ext
28441 cat >>conftest.$ac_ext <<_ACEOF
28442 /* end confdefs.h. */
28448 if (sizeof (uint64))
28454 rm -f conftest.$ac_objext
28455 if { (ac_try="$ac_compile"
28456 case "(($ac_try" in
28457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28458 *) ac_try_echo=$ac_try;;
28460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28461 $as_echo "$ac_try_echo") >&5
28462 (eval "$ac_compile") 2>conftest.er1
28464 grep -v '^ *+' conftest.er1 >conftest.err
28466 cat conftest.err >&5
28467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28468 (exit $ac_status); } && {
28469 test -z "$ac_c_werror_flag" ||
28470 test ! -s conftest.err
28471 } && test -s conftest.$ac_objext; then
28472 cat >conftest.$ac_ext <<_ACEOF
28475 cat confdefs.h >>conftest.$ac_ext
28476 cat >>conftest.$ac_ext <<_ACEOF
28477 /* end confdefs.h. */
28483 if (sizeof ((uint64)))
28489 rm -f conftest.$ac_objext
28490 if { (ac_try="$ac_compile"
28491 case "(($ac_try" in
28492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28493 *) ac_try_echo=$ac_try;;
28495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28496 $as_echo "$ac_try_echo") >&5
28497 (eval "$ac_compile") 2>conftest.er1
28499 grep -v '^ *+' conftest.er1 >conftest.err
28501 cat conftest.err >&5
28502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503 (exit $ac_status); } && {
28504 test -z "$ac_c_werror_flag" ||
28505 test ! -s conftest.err
28506 } && test -s conftest.$ac_objext; then
28509 $as_echo "$as_me: failed program was:" >&5
28510 sed 's/^/| /' conftest.$ac_ext >&5
28512 ac_cv_type_uint64=yes
28515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28517 $as_echo "$as_me: failed program was:" >&5
28518 sed 's/^/| /' conftest.$ac_ext >&5
28523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28525 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
28526 $as_echo "$ac_cv_type_uint64" >&6; }
28527 if test "x$ac_cv_type_uint64" = x""yes; then
28529 cat >>confdefs.h <<_ACEOF
28530 #define HAVE_UINT64 1
28537 # We also check for sig_atomic_t, which *should* be defined per ANSI
28538 # C, but is missing on some old platforms.
28539 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
28540 $as_echo_n "checking for sig_atomic_t... " >&6; }
28541 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28542 $as_echo_n "(cached) " >&6
28544 ac_cv_type_sig_atomic_t=no
28545 cat >conftest.$ac_ext <<_ACEOF
28548 cat confdefs.h >>conftest.$ac_ext
28549 cat >>conftest.$ac_ext <<_ACEOF
28550 /* end confdefs.h. */
28551 #include <signal.h>
28556 if (sizeof (sig_atomic_t))
28562 rm -f conftest.$ac_objext
28563 if { (ac_try="$ac_compile"
28564 case "(($ac_try" in
28565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28566 *) ac_try_echo=$ac_try;;
28568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28569 $as_echo "$ac_try_echo") >&5
28570 (eval "$ac_compile") 2>conftest.er1
28572 grep -v '^ *+' conftest.er1 >conftest.err
28574 cat conftest.err >&5
28575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576 (exit $ac_status); } && {
28577 test -z "$ac_c_werror_flag" ||
28578 test ! -s conftest.err
28579 } && test -s conftest.$ac_objext; then
28580 cat >conftest.$ac_ext <<_ACEOF
28583 cat confdefs.h >>conftest.$ac_ext
28584 cat >>conftest.$ac_ext <<_ACEOF
28585 /* end confdefs.h. */
28586 #include <signal.h>
28591 if (sizeof ((sig_atomic_t)))
28597 rm -f conftest.$ac_objext
28598 if { (ac_try="$ac_compile"
28599 case "(($ac_try" in
28600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28601 *) ac_try_echo=$ac_try;;
28603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28604 $as_echo "$ac_try_echo") >&5
28605 (eval "$ac_compile") 2>conftest.er1
28607 grep -v '^ *+' conftest.er1 >conftest.err
28609 cat conftest.err >&5
28610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28611 (exit $ac_status); } && {
28612 test -z "$ac_c_werror_flag" ||
28613 test ! -s conftest.err
28614 } && test -s conftest.$ac_objext; then
28617 $as_echo "$as_me: failed program was:" >&5
28618 sed 's/^/| /' conftest.$ac_ext >&5
28620 ac_cv_type_sig_atomic_t=yes
28623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28625 $as_echo "$as_me: failed program was:" >&5
28626 sed 's/^/| /' conftest.$ac_ext >&5
28631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28633 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28634 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28635 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28637 cat >>confdefs.h <<_ACEOF
28638 #define HAVE_SIG_ATOMIC_T 1
28646 if test "$PORTNAME" != "win32"
28648 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28649 $as_echo_n "checking for POSIX signal interface... " >&6; }
28650 if test "${pgac_cv_func_posix_signals+set}" = set; then
28651 $as_echo_n "(cached) " >&6
28653 cat >conftest.$ac_ext <<_ACEOF
28656 cat confdefs.h >>conftest.$ac_ext
28657 cat >>conftest.$ac_ext <<_ACEOF
28658 /* end confdefs.h. */
28659 #include <signal.h>
28664 struct sigaction act, oact;
28665 sigemptyset(&act.sa_mask);
28666 act.sa_flags = SA_RESTART;
28667 sigaction(0, &act, &oact);
28672 rm -f conftest.$ac_objext conftest$ac_exeext
28673 if { (ac_try="$ac_link"
28674 case "(($ac_try" in
28675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28676 *) ac_try_echo=$ac_try;;
28678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28679 $as_echo "$ac_try_echo") >&5
28680 (eval "$ac_link") 2>conftest.er1
28682 grep -v '^ *+' conftest.er1 >conftest.err
28684 cat conftest.err >&5
28685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686 (exit $ac_status); } && {
28687 test -z "$ac_c_werror_flag" ||
28688 test ! -s conftest.err
28689 } && test -s conftest$ac_exeext && {
28690 test "$cross_compiling" = yes ||
28691 $as_test_x conftest$ac_exeext
28693 pgac_cv_func_posix_signals=yes
28695 $as_echo "$as_me: failed program was:" >&5
28696 sed 's/^/| /' conftest.$ac_ext >&5
28698 pgac_cv_func_posix_signals=no
28701 rm -rf conftest.dSYM
28702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28703 conftest$ac_exeext conftest.$ac_ext
28705 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28706 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28707 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28709 cat >>confdefs.h <<\_ACEOF
28710 #define HAVE_POSIX_SIGNALS 1
28714 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28716 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28717 { { $as_echo "$as_me:$LINENO: error:
28718 Thread-safety requires POSIX signals, which are not supported by this
28719 operating system; use --disable-thread-safety to disable thread safety." >&5
28720 $as_echo "$as_me: error:
28721 Thread-safety requires POSIX signals, which are not supported by this
28722 operating system; use --disable-thread-safety to disable thread safety." >&2;}
28723 { (exit 1); exit 1; }; }
28727 # SunOS doesn't handle negative byte comparisons properly with +/- return
28728 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28729 $as_echo_n "checking for working memcmp... " >&6; }
28730 if test "${ac_cv_func_memcmp_working+set}" = set; then
28731 $as_echo_n "(cached) " >&6
28733 if test "$cross_compiling" = yes; then
28734 ac_cv_func_memcmp_working=no
28736 cat >conftest.$ac_ext <<_ACEOF
28739 cat confdefs.h >>conftest.$ac_ext
28740 cat >>conftest.$ac_ext <<_ACEOF
28741 /* end confdefs.h. */
28742 $ac_includes_default
28747 /* Some versions of memcmp are not 8-bit clean. */
28748 char c0 = '\100', c1 = '\200', c2 = '\201';
28749 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28752 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28753 or more and with at least one buffer not starting on a 4-byte boundary.
28754 William Lewis provided this test program. */
28759 for (i = 0; i < 4; i++)
28763 strcpy (a, "--------01111111");
28764 strcpy (b, "--------10000000");
28765 if (memcmp (a, b, 16) >= 0)
28775 rm -f conftest$ac_exeext
28776 if { (ac_try="$ac_link"
28777 case "(($ac_try" in
28778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28779 *) ac_try_echo=$ac_try;;
28781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28782 $as_echo "$ac_try_echo") >&5
28783 (eval "$ac_link") 2>&5
28785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28787 { (case "(($ac_try" in
28788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28789 *) ac_try_echo=$ac_try;;
28791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28792 $as_echo "$ac_try_echo") >&5
28793 (eval "$ac_try") 2>&5
28795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796 (exit $ac_status); }; }; then
28797 ac_cv_func_memcmp_working=yes
28799 $as_echo "$as_me: program exited with status $ac_status" >&5
28800 $as_echo "$as_me: failed program was:" >&5
28801 sed 's/^/| /' conftest.$ac_ext >&5
28803 ( exit $ac_status )
28804 ac_cv_func_memcmp_working=no
28806 rm -rf conftest.dSYM
28807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28812 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28813 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28814 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28815 *" memcmp.$ac_objext "* ) ;;
28816 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28823 # Select semaphore implementation type.
28824 if test "$PORTNAME" != "win32"; then
28825 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28827 cat >>confdefs.h <<\_ACEOF
28828 #define USE_NAMED_POSIX_SEMAPHORES 1
28831 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28833 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
28835 cat >>confdefs.h <<\_ACEOF
28836 #define USE_UNNAMED_POSIX_SEMAPHORES 1
28839 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28842 cat >>confdefs.h <<\_ACEOF
28843 #define USE_SYSV_SEMAPHORES 1
28846 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
28851 cat >>confdefs.h <<\_ACEOF
28852 #define USE_WIN32_SEMAPHORES 1
28855 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
28859 # Select shared-memory implementation type.
28860 if test "$PORTNAME" != "win32"; then
28862 cat >>confdefs.h <<\_ACEOF
28863 #define USE_SYSV_SHARED_MEMORY 1
28866 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
28869 cat >>confdefs.h <<\_ACEOF
28870 #define USE_WIN32_SHARED_MEMORY 1
28873 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
28876 # Select latch implementation type.
28877 if test "$PORTNAME" != "win32"; then
28878 LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
28880 LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
28883 # If not set in template file, set bytes to use libc memset()
28884 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
28885 MEMSET_LOOP_LIMIT=1024
28888 cat >>confdefs.h <<_ACEOF
28889 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
28894 if test "$enable_nls" = yes ; then
28896 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
28897 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
28898 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28899 $as_echo_n "(cached) " >&6
28901 ac_func_search_save_LIBS=$LIBS
28902 cat >conftest.$ac_ext <<_ACEOF
28905 cat confdefs.h >>conftest.$ac_ext
28906 cat >>conftest.$ac_ext <<_ACEOF
28907 /* end confdefs.h. */
28909 /* Override any GCC internal prototype to avoid an error.
28910 Use char because int might match the return type of a GCC
28911 builtin and then its argument prototype would still apply. */
28915 char bind_textdomain_codeset ();
28919 return bind_textdomain_codeset ();
28924 for ac_lib in '' intl; do
28925 if test -z "$ac_lib"; then
28926 ac_res="none required"
28929 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28931 rm -f conftest.$ac_objext conftest$ac_exeext
28932 if { (ac_try="$ac_link"
28933 case "(($ac_try" in
28934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28935 *) ac_try_echo=$ac_try;;
28937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28938 $as_echo "$ac_try_echo") >&5
28939 (eval "$ac_link") 2>conftest.er1
28941 grep -v '^ *+' conftest.er1 >conftest.err
28943 cat conftest.err >&5
28944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945 (exit $ac_status); } && {
28946 test -z "$ac_c_werror_flag" ||
28947 test ! -s conftest.err
28948 } && test -s conftest$ac_exeext && {
28949 test "$cross_compiling" = yes ||
28950 $as_test_x conftest$ac_exeext
28952 ac_cv_search_bind_textdomain_codeset=$ac_res
28954 $as_echo "$as_me: failed program was:" >&5
28955 sed 's/^/| /' conftest.$ac_ext >&5
28960 rm -rf conftest.dSYM
28961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28963 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28967 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28970 ac_cv_search_bind_textdomain_codeset=no
28972 rm conftest.$ac_ext
28973 LIBS=$ac_func_search_save_LIBS
28975 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28976 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28977 ac_res=$ac_cv_search_bind_textdomain_codeset
28978 if test "$ac_res" != no; then
28979 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28982 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28983 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28984 { (exit 1); exit 1; }; }
28987 if test "${ac_cv_header_libintl_h+set}" = set; then
28988 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28989 $as_echo_n "checking for libintl.h... " >&6; }
28990 if test "${ac_cv_header_libintl_h+set}" = set; then
28991 $as_echo_n "(cached) " >&6
28993 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28994 $as_echo "$ac_cv_header_libintl_h" >&6; }
28996 # Is the header compilable?
28997 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28998 $as_echo_n "checking libintl.h usability... " >&6; }
28999 cat >conftest.$ac_ext <<_ACEOF
29002 cat confdefs.h >>conftest.$ac_ext
29003 cat >>conftest.$ac_ext <<_ACEOF
29004 /* end confdefs.h. */
29005 $ac_includes_default
29006 #include <libintl.h>
29008 rm -f conftest.$ac_objext
29009 if { (ac_try="$ac_compile"
29010 case "(($ac_try" in
29011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29012 *) ac_try_echo=$ac_try;;
29014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29015 $as_echo "$ac_try_echo") >&5
29016 (eval "$ac_compile") 2>conftest.er1
29018 grep -v '^ *+' conftest.er1 >conftest.err
29020 cat conftest.err >&5
29021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022 (exit $ac_status); } && {
29023 test -z "$ac_c_werror_flag" ||
29024 test ! -s conftest.err
29025 } && test -s conftest.$ac_objext; then
29026 ac_header_compiler=yes
29028 $as_echo "$as_me: failed program was:" >&5
29029 sed 's/^/| /' conftest.$ac_ext >&5
29031 ac_header_compiler=no
29034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29035 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29036 $as_echo "$ac_header_compiler" >&6; }
29038 # Is the header present?
29039 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
29040 $as_echo_n "checking libintl.h presence... " >&6; }
29041 cat >conftest.$ac_ext <<_ACEOF
29044 cat confdefs.h >>conftest.$ac_ext
29045 cat >>conftest.$ac_ext <<_ACEOF
29046 /* end confdefs.h. */
29047 #include <libintl.h>
29049 if { (ac_try="$ac_cpp conftest.$ac_ext"
29050 case "(($ac_try" in
29051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29052 *) ac_try_echo=$ac_try;;
29054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29055 $as_echo "$ac_try_echo") >&5
29056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29058 grep -v '^ *+' conftest.er1 >conftest.err
29060 cat conftest.err >&5
29061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062 (exit $ac_status); } >/dev/null && {
29063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29064 test ! -s conftest.err
29066 ac_header_preproc=yes
29068 $as_echo "$as_me: failed program was:" >&5
29069 sed 's/^/| /' conftest.$ac_ext >&5
29071 ac_header_preproc=no
29074 rm -f conftest.err conftest.$ac_ext
29075 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29076 $as_echo "$ac_header_preproc" >&6; }
29078 # So? What about this header?
29079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29081 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29082 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29083 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
29084 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
29085 ac_header_preproc=yes
29088 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
29089 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
29090 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
29091 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
29092 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
29093 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
29094 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
29095 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29096 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
29097 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
29098 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
29099 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
29101 ## ---------------------------------------- ##
29102 ## Report this to pgsql-bugs@postgresql.org ##
29103 ## ---------------------------------------- ##
29105 ) | sed "s/^/$as_me: WARNING: /" >&2
29108 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
29109 $as_echo_n "checking for libintl.h... " >&6; }
29110 if test "${ac_cv_header_libintl_h+set}" = set; then
29111 $as_echo_n "(cached) " >&6
29113 ac_cv_header_libintl_h=$ac_header_preproc
29115 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
29116 $as_echo "$ac_cv_header_libintl_h" >&6; }
29119 if test "x$ac_cv_header_libintl_h" = x""yes; then
29122 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
29123 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
29124 { (exit 1); exit 1; }; }
29128 for ac_prog in msgfmt
29130 # Extract the first word of "$ac_prog", so it can be a program name with args.
29131 set dummy $ac_prog; ac_word=$2
29132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29133 $as_echo_n "checking for $ac_word... " >&6; }
29134 if test "${ac_cv_prog_MSGFMT+set}" = set; then
29135 $as_echo_n "(cached) " >&6
29137 if test -n "$MSGFMT"; then
29138 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
29140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29141 for as_dir in $PATH
29144 test -z "$as_dir" && as_dir=.
29145 for ac_exec_ext in '' $ac_executable_extensions; do
29146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29147 ac_cv_prog_MSGFMT="$ac_prog"
29148 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29157 MSGFMT=$ac_cv_prog_MSGFMT
29158 if test -n "$MSGFMT"; then
29159 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
29160 $as_echo "$MSGFMT" >&6; }
29162 { $as_echo "$as_me:$LINENO: result: no" >&5
29163 $as_echo "no" >&6; }
29167 test -n "$MSGFMT" && break
29170 if test -z "$MSGFMT"; then
29171 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
29172 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
29173 { (exit 1); exit 1; }; }
29175 for ac_prog in msgmerge
29177 # Extract the first word of "$ac_prog", so it can be a program name with args.
29178 set dummy $ac_prog; ac_word=$2
29179 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29180 $as_echo_n "checking for $ac_word... " >&6; }
29181 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
29182 $as_echo_n "(cached) " >&6
29184 if test -n "$MSGMERGE"; then
29185 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
29187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29188 for as_dir in $PATH
29191 test -z "$as_dir" && as_dir=.
29192 for ac_exec_ext in '' $ac_executable_extensions; do
29193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29194 ac_cv_prog_MSGMERGE="$ac_prog"
29195 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29204 MSGMERGE=$ac_cv_prog_MSGMERGE
29205 if test -n "$MSGMERGE"; then
29206 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
29207 $as_echo "$MSGMERGE" >&6; }
29209 { $as_echo "$as_me:$LINENO: result: no" >&5
29210 $as_echo "no" >&6; }
29214 test -n "$MSGMERGE" && break
29217 for ac_prog in xgettext
29219 # Extract the first word of "$ac_prog", so it can be a program name with args.
29220 set dummy $ac_prog; ac_word=$2
29221 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29222 $as_echo_n "checking for $ac_word... " >&6; }
29223 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
29224 $as_echo_n "(cached) " >&6
29226 if test -n "$XGETTEXT"; then
29227 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
29229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29230 for as_dir in $PATH
29233 test -z "$as_dir" && as_dir=.
29234 for ac_exec_ext in '' $ac_executable_extensions; do
29235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29236 ac_cv_prog_XGETTEXT="$ac_prog"
29237 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29246 XGETTEXT=$ac_cv_prog_XGETTEXT
29247 if test -n "$XGETTEXT"; then
29248 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
29249 $as_echo "$XGETTEXT" >&6; }
29251 { $as_echo "$as_me:$LINENO: result: no" >&5
29252 $as_echo "no" >&6; }
29256 test -n "$XGETTEXT" && break
29262 # Check for Tcl configuration script tclConfig.sh
29263 if test "$with_tcl" = yes; then
29264 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
29266 # Extract the first word of "$ac_prog", so it can be a program name with args.
29267 set dummy $ac_prog; ac_word=$2
29268 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29269 $as_echo_n "checking for $ac_word... " >&6; }
29270 if test "${ac_cv_path_TCLSH+set}" = set; then
29271 $as_echo_n "(cached) " >&6
29275 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
29278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29279 for as_dir in $PATH
29282 test -z "$as_dir" && as_dir=.
29283 for ac_exec_ext in '' $ac_executable_extensions; do
29284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29285 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
29286 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29296 TCLSH=$ac_cv_path_TCLSH
29297 if test -n "$TCLSH"; then
29298 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
29299 $as_echo "$TCLSH" >&6; }
29301 { $as_echo "$as_me:$LINENO: result: no" >&5
29302 $as_echo "no" >&6; }
29306 test -n "$TCLSH" && break
29309 if test x"$TCLSH" = x""; then
29310 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
29311 $as_echo "$as_me: error: Tcl shell not found" >&2;}
29312 { (exit 1); exit 1; }; }
29315 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
29316 $as_echo_n "checking for tclConfig.sh... " >&6; }
29317 # Let user override test
29318 if test -z "$TCL_CONFIG_SH"; then
29319 pgac_test_dirs="$with_tclconfig"
29321 set X $pgac_test_dirs; shift
29322 if test $# -eq 0; then
29323 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
29324 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
29325 { (exit 1); exit 1; }; }
29326 set X `echo 'puts $auto_path' | $TCLSH`; shift
29330 if test -r "$pgac_dir/tclConfig.sh"; then
29331 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
29337 if test -z "$TCL_CONFIG_SH"; then
29338 { $as_echo "$as_me:$LINENO: result: no" >&5
29339 $as_echo "no" >&6; }
29340 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
29341 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
29342 { (exit 1); exit 1; }; }
29344 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
29345 $as_echo "$TCL_CONFIG_SH" >&6; }
29351 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
29352 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
29353 eval TCL_LIBS=\"$TCL_LIBS\"
29354 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
29355 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
29357 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
29358 ac_save_CPPFLAGS=$CPPFLAGS
29359 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
29360 if test "${ac_cv_header_tcl_h+set}" = set; then
29361 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29362 $as_echo_n "checking for tcl.h... " >&6; }
29363 if test "${ac_cv_header_tcl_h+set}" = set; then
29364 $as_echo_n "(cached) " >&6
29366 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29367 $as_echo "$ac_cv_header_tcl_h" >&6; }
29369 # Is the header compilable?
29370 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
29371 $as_echo_n "checking tcl.h usability... " >&6; }
29372 cat >conftest.$ac_ext <<_ACEOF
29375 cat confdefs.h >>conftest.$ac_ext
29376 cat >>conftest.$ac_ext <<_ACEOF
29377 /* end confdefs.h. */
29378 $ac_includes_default
29381 rm -f conftest.$ac_objext
29382 if { (ac_try="$ac_compile"
29383 case "(($ac_try" in
29384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29385 *) ac_try_echo=$ac_try;;
29387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29388 $as_echo "$ac_try_echo") >&5
29389 (eval "$ac_compile") 2>conftest.er1
29391 grep -v '^ *+' conftest.er1 >conftest.err
29393 cat conftest.err >&5
29394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395 (exit $ac_status); } && {
29396 test -z "$ac_c_werror_flag" ||
29397 test ! -s conftest.err
29398 } && test -s conftest.$ac_objext; then
29399 ac_header_compiler=yes
29401 $as_echo "$as_me: failed program was:" >&5
29402 sed 's/^/| /' conftest.$ac_ext >&5
29404 ac_header_compiler=no
29407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29408 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29409 $as_echo "$ac_header_compiler" >&6; }
29411 # Is the header present?
29412 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
29413 $as_echo_n "checking tcl.h presence... " >&6; }
29414 cat >conftest.$ac_ext <<_ACEOF
29417 cat confdefs.h >>conftest.$ac_ext
29418 cat >>conftest.$ac_ext <<_ACEOF
29419 /* end confdefs.h. */
29422 if { (ac_try="$ac_cpp conftest.$ac_ext"
29423 case "(($ac_try" in
29424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29425 *) ac_try_echo=$ac_try;;
29427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29428 $as_echo "$ac_try_echo") >&5
29429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29431 grep -v '^ *+' conftest.er1 >conftest.err
29433 cat conftest.err >&5
29434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29435 (exit $ac_status); } >/dev/null && {
29436 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29437 test ! -s conftest.err
29439 ac_header_preproc=yes
29441 $as_echo "$as_me: failed program was:" >&5
29442 sed 's/^/| /' conftest.$ac_ext >&5
29444 ac_header_preproc=no
29447 rm -f conftest.err conftest.$ac_ext
29448 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29449 $as_echo "$ac_header_preproc" >&6; }
29451 # So? What about this header?
29452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29454 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29455 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29456 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
29457 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
29458 ac_header_preproc=yes
29461 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
29462 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
29463 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
29464 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
29465 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
29466 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
29467 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
29468 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29469 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
29470 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
29471 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
29472 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
29474 ## ---------------------------------------- ##
29475 ## Report this to pgsql-bugs@postgresql.org ##
29476 ## ---------------------------------------- ##
29478 ) | sed "s/^/$as_me: WARNING: /" >&2
29481 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29482 $as_echo_n "checking for tcl.h... " >&6; }
29483 if test "${ac_cv_header_tcl_h+set}" = set; then
29484 $as_echo_n "(cached) " >&6
29486 ac_cv_header_tcl_h=$ac_header_preproc
29488 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29489 $as_echo "$ac_cv_header_tcl_h" >&6; }
29492 if test "x$ac_cv_header_tcl_h" = x""yes; then
29495 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
29496 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
29497 { (exit 1); exit 1; }; }
29501 CPPFLAGS=$ac_save_CPPFLAGS
29504 # check for <perl.h>
29505 if test "$with_perl" = yes; then
29506 ac_save_CPPFLAGS=$CPPFLAGS
29507 CPPFLAGS="$CPPFLAGS -I$perl_archlibexp/CORE"
29508 { $as_echo "$as_me:$LINENO: checking for perl.h" >&5
29509 $as_echo_n "checking for perl.h... " >&6; }
29510 if test "${ac_cv_header_perl_h+set}" = set; then
29511 $as_echo_n "(cached) " >&6
29513 cat >conftest.$ac_ext <<_ACEOF
29516 cat confdefs.h >>conftest.$ac_ext
29517 cat >>conftest.$ac_ext <<_ACEOF
29518 /* end confdefs.h. */
29519 #include <EXTERN.h>
29523 rm -f conftest.$ac_objext
29524 if { (ac_try="$ac_compile"
29525 case "(($ac_try" in
29526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29527 *) ac_try_echo=$ac_try;;
29529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29530 $as_echo "$ac_try_echo") >&5
29531 (eval "$ac_compile") 2>conftest.er1
29533 grep -v '^ *+' conftest.er1 >conftest.err
29535 cat conftest.err >&5
29536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537 (exit $ac_status); } && {
29538 test -z "$ac_c_werror_flag" ||
29539 test ! -s conftest.err
29540 } && test -s conftest.$ac_objext; then
29541 ac_cv_header_perl_h=yes
29543 $as_echo "$as_me: failed program was:" >&5
29544 sed 's/^/| /' conftest.$ac_ext >&5
29546 ac_cv_header_perl_h=no
29549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29551 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_perl_h" >&5
29552 $as_echo "$ac_cv_header_perl_h" >&6; }
29553 if test "x$ac_cv_header_perl_h" = x""yes; then
29556 { { $as_echo "$as_me:$LINENO: error: header file <perl.h> is required for Perl" >&5
29557 $as_echo "$as_me: error: header file <perl.h> is required for Perl" >&2;}
29558 { (exit 1); exit 1; }; }
29562 # While we're at it, check that we can link to libperl.
29563 # On most platforms, if perl.h is there then libperl.so will be too, but at
29564 # this writing Debian packages them separately. There is no known reason to
29565 # waste cycles on separate probes for the Tcl or Python libraries, though.
29566 pgac_save_LIBS=$LIBS
29567 LIBS="$perl_embed_ldflags"
29568 { $as_echo "$as_me:$LINENO: checking for libperl" >&5
29569 $as_echo_n "checking for libperl... " >&6; }
29570 cat >conftest.$ac_ext <<_ACEOF
29573 cat confdefs.h >>conftest.$ac_ext
29574 cat >>conftest.$ac_ext <<_ACEOF
29575 /* end confdefs.h. */
29577 #include <EXTERN.h>
29588 rm -f conftest.$ac_objext conftest$ac_exeext
29589 if { (ac_try="$ac_link"
29590 case "(($ac_try" in
29591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29592 *) ac_try_echo=$ac_try;;
29594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29595 $as_echo "$ac_try_echo") >&5
29596 (eval "$ac_link") 2>conftest.er1
29598 grep -v '^ *+' conftest.er1 >conftest.err
29600 cat conftest.err >&5
29601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29602 (exit $ac_status); } && {
29603 test -z "$ac_c_werror_flag" ||
29604 test ! -s conftest.err
29605 } && test -s conftest$ac_exeext && {
29606 test "$cross_compiling" = yes ||
29607 $as_test_x conftest$ac_exeext
29609 { $as_echo "$as_me:$LINENO: result: yes" >&5
29610 $as_echo "yes" >&6; }
29612 $as_echo "$as_me: failed program was:" >&5
29613 sed 's/^/| /' conftest.$ac_ext >&5
29615 { $as_echo "$as_me:$LINENO: result: no" >&5
29616 $as_echo "no" >&6; }
29617 { { $as_echo "$as_me:$LINENO: error: libperl library is required for Perl" >&5
29618 $as_echo "$as_me: error: libperl library is required for Perl" >&2;}
29619 { (exit 1); exit 1; }; }
29622 rm -rf conftest.dSYM
29623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29624 conftest$ac_exeext conftest.$ac_ext
29625 LIBS=$pgac_save_LIBS
29626 CPPFLAGS=$ac_save_CPPFLAGS
29629 # check for <Python.h>
29630 if test "$with_python" = yes; then
29631 ac_save_CPPFLAGS=$CPPFLAGS
29632 CPPFLAGS="$python_includespec $CPPFLAGS"
29633 if test "${ac_cv_header_Python_h+set}" = set; then
29634 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29635 $as_echo_n "checking for Python.h... " >&6; }
29636 if test "${ac_cv_header_Python_h+set}" = set; then
29637 $as_echo_n "(cached) " >&6
29639 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29640 $as_echo "$ac_cv_header_Python_h" >&6; }
29642 # Is the header compilable?
29643 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
29644 $as_echo_n "checking Python.h usability... " >&6; }
29645 cat >conftest.$ac_ext <<_ACEOF
29648 cat confdefs.h >>conftest.$ac_ext
29649 cat >>conftest.$ac_ext <<_ACEOF
29650 /* end confdefs.h. */
29651 $ac_includes_default
29652 #include <Python.h>
29654 rm -f conftest.$ac_objext
29655 if { (ac_try="$ac_compile"
29656 case "(($ac_try" in
29657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29658 *) ac_try_echo=$ac_try;;
29660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29661 $as_echo "$ac_try_echo") >&5
29662 (eval "$ac_compile") 2>conftest.er1
29664 grep -v '^ *+' conftest.er1 >conftest.err
29666 cat conftest.err >&5
29667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29668 (exit $ac_status); } && {
29669 test -z "$ac_c_werror_flag" ||
29670 test ! -s conftest.err
29671 } && test -s conftest.$ac_objext; then
29672 ac_header_compiler=yes
29674 $as_echo "$as_me: failed program was:" >&5
29675 sed 's/^/| /' conftest.$ac_ext >&5
29677 ac_header_compiler=no
29680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29681 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29682 $as_echo "$ac_header_compiler" >&6; }
29684 # Is the header present?
29685 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
29686 $as_echo_n "checking Python.h presence... " >&6; }
29687 cat >conftest.$ac_ext <<_ACEOF
29690 cat confdefs.h >>conftest.$ac_ext
29691 cat >>conftest.$ac_ext <<_ACEOF
29692 /* end confdefs.h. */
29693 #include <Python.h>
29695 if { (ac_try="$ac_cpp conftest.$ac_ext"
29696 case "(($ac_try" in
29697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29698 *) ac_try_echo=$ac_try;;
29700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29701 $as_echo "$ac_try_echo") >&5
29702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29704 grep -v '^ *+' conftest.er1 >conftest.err
29706 cat conftest.err >&5
29707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29708 (exit $ac_status); } >/dev/null && {
29709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29710 test ! -s conftest.err
29712 ac_header_preproc=yes
29714 $as_echo "$as_me: failed program was:" >&5
29715 sed 's/^/| /' conftest.$ac_ext >&5
29717 ac_header_preproc=no
29720 rm -f conftest.err conftest.$ac_ext
29721 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29722 $as_echo "$ac_header_preproc" >&6; }
29724 # So? What about this header?
29725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29727 { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
29728 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29729 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
29730 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
29731 ac_header_preproc=yes
29734 { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
29735 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
29736 { $as_echo "$as_me:$LINENO: WARNING: Python.h: check for missing prerequisite headers?" >&5
29737 $as_echo "$as_me: WARNING: Python.h: check for missing prerequisite headers?" >&2;}
29738 { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29739 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29740 { $as_echo "$as_me:$LINENO: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&5
29741 $as_echo "$as_me: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&2;}
29742 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29743 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29744 { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29745 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29747 ## ---------------------------------------- ##
29748 ## Report this to pgsql-bugs@postgresql.org ##
29749 ## ---------------------------------------- ##
29751 ) | sed "s/^/$as_me: WARNING: /" >&2
29754 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29755 $as_echo_n "checking for Python.h... " >&6; }
29756 if test "${ac_cv_header_Python_h+set}" = set; then
29757 $as_echo_n "(cached) " >&6
29759 ac_cv_header_Python_h=$ac_header_preproc
29761 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29762 $as_echo "$ac_cv_header_Python_h" >&6; }
29765 if test "x$ac_cv_header_Python_h" = x""yes; then
29768 { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29769 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29770 { (exit 1); exit 1; }; }
29774 CPPFLAGS=$ac_save_CPPFLAGS
29778 # Check for DocBook and tools
29780 for ac_prog in onsgmls nsgmls
29782 # Extract the first word of "$ac_prog", so it can be a program name with args.
29783 set dummy $ac_prog; ac_word=$2
29784 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29785 $as_echo_n "checking for $ac_word... " >&6; }
29786 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29787 $as_echo_n "(cached) " >&6
29789 if test -n "$NSGMLS"; then
29790 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29793 for as_dir in $PATH
29796 test -z "$as_dir" && as_dir=.
29797 for ac_exec_ext in '' $ac_executable_extensions; do
29798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29799 ac_cv_prog_NSGMLS="$ac_prog"
29800 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29809 NSGMLS=$ac_cv_prog_NSGMLS
29810 if test -n "$NSGMLS"; then
29811 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29812 $as_echo "$NSGMLS" >&6; }
29814 { $as_echo "$as_me:$LINENO: result: no" >&5
29815 $as_echo "no" >&6; }
29819 test -n "$NSGMLS" && break
29822 for ac_prog in openjade jade
29824 # Extract the first word of "$ac_prog", so it can be a program name with args.
29825 set dummy $ac_prog; ac_word=$2
29826 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29827 $as_echo_n "checking for $ac_word... " >&6; }
29828 if test "${ac_cv_prog_JADE+set}" = set; then
29829 $as_echo_n "(cached) " >&6
29831 if test -n "$JADE"; then
29832 ac_cv_prog_JADE="$JADE" # Let the user override the test.
29834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29835 for as_dir in $PATH
29838 test -z "$as_dir" && as_dir=.
29839 for ac_exec_ext in '' $ac_executable_extensions; do
29840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29841 ac_cv_prog_JADE="$ac_prog"
29842 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29851 JADE=$ac_cv_prog_JADE
29852 if test -n "$JADE"; then
29853 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
29854 $as_echo "$JADE" >&6; }
29856 { $as_echo "$as_me:$LINENO: result: no" >&5
29857 $as_echo "no" >&6; }
29861 test -n "$JADE" && break
29865 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
29866 $as_echo_n "checking for DocBook V4.2... " >&6; }
29867 if test "${pgac_cv_check_docbook+set}" = set; then
29868 $as_echo_n "(cached) " >&6
29870 cat >conftest.sgml <<EOF
29871 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
29873 <title>test</title>
29875 <title>random</title>
29877 <title>testsect</title>
29884 pgac_cv_check_docbook=no
29886 if test -n "$NSGMLS"; then
29887 $NSGMLS -s conftest.sgml 1>&5 2>&1
29888 if test $? -eq 0; then
29889 pgac_cv_check_docbook=yes
29892 rm -f conftest.sgml
29894 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
29895 $as_echo "$pgac_cv_check_docbook" >&6; }
29897 have_docbook=$pgac_cv_check_docbook
29900 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
29901 $as_echo_n "checking for DocBook stylesheets... " >&6; }
29902 if test "${pgac_cv_path_stylesheets+set}" = set; then
29903 $as_echo_n "(cached) " >&6
29905 if test -n "$DOCBOOKSTYLE"; then
29906 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
29908 for pgac_prefix in /usr /usr/local /opt /sw; do
29909 for pgac_infix in share lib; do
29910 for pgac_postfix in \
29911 sgml/stylesheets/nwalsh-modular \
29912 sgml/stylesheets/docbook \
29913 sgml/stylesheets/dsssl/docbook \
29914 sgml/docbook-dsssl \
29915 sgml/docbook/dsssl/modular \
29916 sgml/docbook/stylesheet/dsssl/modular \
29917 sgml/docbook/dsssl-stylesheets \
29918 sgml/dsssl/docbook-dsssl-nwalsh
29920 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
29921 if test -r "$pgac_candidate/html/docbook.dsl" \
29922 && test -r "$pgac_candidate/print/docbook.dsl"
29924 pgac_cv_path_stylesheets=$pgac_candidate
29933 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
29935 if test -n "$DOCBOOKSTYLE"; then
29936 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
29937 $as_echo "$DOCBOOKSTYLE" >&6; }
29939 { $as_echo "$as_me:$LINENO: result: no" >&5
29940 $as_echo "no" >&6; }
29942 if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then
29943 COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl"
29946 # Extract the first word of "collateindex.pl", so it can be a program name with args.
29947 set dummy collateindex.pl; ac_word=$2
29948 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29949 $as_echo_n "checking for $ac_word... " >&6; }
29950 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29951 $as_echo_n "(cached) " >&6
29953 case $COLLATEINDEX in
29955 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29959 for as_dir in $PATH
29962 test -z "$as_dir" && as_dir=.
29963 for ac_exec_ext in '' $ac_executable_extensions; do
29964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29965 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29966 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29976 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29977 if test -n "$COLLATEINDEX"; then
29978 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29979 $as_echo "$COLLATEINDEX" >&6; }
29981 { $as_echo "$as_me:$LINENO: result: no" >&5
29982 $as_echo "no" >&6; }
29987 for ac_prog in xsltproc
29989 # Extract the first word of "$ac_prog", so it can be a program name with args.
29990 set dummy $ac_prog; ac_word=$2
29991 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29992 $as_echo_n "checking for $ac_word... " >&6; }
29993 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
29994 $as_echo_n "(cached) " >&6
29996 if test -n "$XSLTPROC"; then
29997 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
29999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30000 for as_dir in $PATH
30003 test -z "$as_dir" && as_dir=.
30004 for ac_exec_ext in '' $ac_executable_extensions; do
30005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30006 ac_cv_prog_XSLTPROC="$ac_prog"
30007 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30016 XSLTPROC=$ac_cv_prog_XSLTPROC
30017 if test -n "$XSLTPROC"; then
30018 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
30019 $as_echo "$XSLTPROC" >&6; }
30021 { $as_echo "$as_me:$LINENO: result: no" >&5
30022 $as_echo "no" >&6; }
30026 test -n "$XSLTPROC" && break
30029 for ac_prog in osx sgml2xml sx
30031 # Extract the first word of "$ac_prog", so it can be a program name with args.
30032 set dummy $ac_prog; ac_word=$2
30033 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30034 $as_echo_n "checking for $ac_word... " >&6; }
30035 if test "${ac_cv_prog_OSX+set}" = set; then
30036 $as_echo_n "(cached) " >&6
30038 if test -n "$OSX"; then
30039 ac_cv_prog_OSX="$OSX" # Let the user override the test.
30041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30042 for as_dir in $PATH
30045 test -z "$as_dir" && as_dir=.
30046 for ac_exec_ext in '' $ac_executable_extensions; do
30047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30048 ac_cv_prog_OSX="$ac_prog"
30049 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30058 OSX=$ac_cv_prog_OSX
30059 if test -n "$OSX"; then
30060 { $as_echo "$as_me:$LINENO: result: $OSX" >&5
30061 $as_echo "$OSX" >&6; }
30063 { $as_echo "$as_me:$LINENO: result: no" >&5
30064 $as_echo "no" >&6; }
30068 test -n "$OSX" && break
30074 # We have to run the thread test near the end so we have all our symbols
30075 # defined. Cross compiling throws a warning.
30077 if test "$enable_thread_safety" = yes; then
30078 if test "$PORTNAME" != "win32"
30080 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
30081 $as_echo_n "checking thread safety of required library functions... " >&6; }
30085 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
30086 LIBS="$LIBS $PTHREAD_LIBS"
30087 if test "$cross_compiling" = yes; then
30088 { $as_echo "$as_me:$LINENO: result: maybe" >&5
30089 $as_echo "maybe" >&6; }
30090 { $as_echo "$as_me:$LINENO: WARNING:
30091 *** Skipping thread test program because of cross-compile build.
30092 *** Run the program in src/test/thread on the target machine.
30094 $as_echo "$as_me: WARNING:
30095 *** Skipping thread test program because of cross-compile build.
30096 *** Run the program in src/test/thread on the target machine.
30099 cat >conftest.$ac_ext <<_ACEOF
30102 cat confdefs.h >>conftest.$ac_ext
30103 cat >>conftest.$ac_ext <<_ACEOF
30104 /* end confdefs.h. */
30105 #include "$srcdir/src/test/thread/thread_test.c"
30107 rm -f conftest$ac_exeext
30108 if { (ac_try="$ac_link"
30109 case "(($ac_try" in
30110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30111 *) ac_try_echo=$ac_try;;
30113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30114 $as_echo "$ac_try_echo") >&5
30115 (eval "$ac_link") 2>&5
30117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30119 { (case "(($ac_try" in
30120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30121 *) ac_try_echo=$ac_try;;
30123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30124 $as_echo "$ac_try_echo") >&5
30125 (eval "$ac_try") 2>&5
30127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30128 (exit $ac_status); }; }; then
30129 { $as_echo "$as_me:$LINENO: result: yes" >&5
30130 $as_echo "yes" >&6; }
30132 $as_echo "$as_me: program exited with status $ac_status" >&5
30133 $as_echo "$as_me: failed program was:" >&5
30134 sed 's/^/| /' conftest.$ac_ext >&5
30136 ( exit $ac_status )
30137 { $as_echo "$as_me:$LINENO: result: no" >&5
30138 $as_echo "no" >&6; }
30139 { { $as_echo "$as_me:$LINENO: error: thread test program failed
30140 This platform is not thread-safe. Check the file 'config.log' or compile
30141 and run src/test/thread/thread_test for the exact reason.
30142 Use --disable-thread-safety to disable thread safety." >&5
30143 $as_echo "$as_me: error: thread test program failed
30144 This platform is not thread-safe. Check the file 'config.log' or compile
30145 and run src/test/thread/thread_test for the exact reason.
30146 Use --disable-thread-safety to disable thread safety." >&2;}
30147 { (exit 1); exit 1; }; }
30149 rm -rf conftest.dSYM
30150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30157 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
30158 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
30162 # If compiler will take -Wl,--as-needed (or various platform-specific
30163 # spellings thereof) then add that to LDFLAGS. This is much easier than
30164 # trying to filter LIBS to the minimum for each executable.
30165 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
30166 # libreadline; therefore we postpone testing it until we know what library
30167 # dependencies readline has. The test code will try to link with $LIBS.
30168 if test "$with_readline" = yes; then
30169 link_test_func=readline
30171 link_test_func=exit
30174 if test "$PORTNAME" = "darwin"; then
30175 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
30176 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
30177 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
30178 $as_echo_n "(cached) " >&6
30180 pgac_save_LDFLAGS=$LDFLAGS
30181 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
30182 if test "$cross_compiling" = yes; then
30183 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
30185 cat >conftest.$ac_ext <<_ACEOF
30188 cat confdefs.h >>conftest.$ac_ext
30189 cat >>conftest.$ac_ext <<_ACEOF
30190 /* end confdefs.h. */
30191 extern void $link_test_func (); void (*fptr) () = $link_test_func;
30200 rm -f conftest$ac_exeext
30201 if { (ac_try="$ac_link"
30202 case "(($ac_try" in
30203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30204 *) ac_try_echo=$ac_try;;
30206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30207 $as_echo "$ac_try_echo") >&5
30208 (eval "$ac_link") 2>&5
30210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30212 { (case "(($ac_try" in
30213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30214 *) ac_try_echo=$ac_try;;
30216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30217 $as_echo "$ac_try_echo") >&5
30218 (eval "$ac_try") 2>&5
30220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30221 (exit $ac_status); }; }; then
30222 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
30224 $as_echo "$as_me: program exited with status $ac_status" >&5
30225 $as_echo "$as_me: failed program was:" >&5
30226 sed 's/^/| /' conftest.$ac_ext >&5
30228 ( exit $ac_status )
30229 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
30231 rm -rf conftest.dSYM
30232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30236 LDFLAGS="$pgac_save_LDFLAGS"
30238 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
30239 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
30240 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
30241 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
30244 elif test "$PORTNAME" = "openbsd"; then
30245 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
30246 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
30247 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
30248 $as_echo_n "(cached) " >&6
30250 pgac_save_LDFLAGS=$LDFLAGS
30251 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
30252 if test "$cross_compiling" = yes; then
30253 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
30255 cat >conftest.$ac_ext <<_ACEOF
30258 cat confdefs.h >>conftest.$ac_ext
30259 cat >>conftest.$ac_ext <<_ACEOF
30260 /* end confdefs.h. */
30261 extern void $link_test_func (); void (*fptr) () = $link_test_func;
30270 rm -f conftest$ac_exeext
30271 if { (ac_try="$ac_link"
30272 case "(($ac_try" in
30273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30274 *) ac_try_echo=$ac_try;;
30276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30277 $as_echo "$ac_try_echo") >&5
30278 (eval "$ac_link") 2>&5
30280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30282 { (case "(($ac_try" in
30283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30284 *) ac_try_echo=$ac_try;;
30286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30287 $as_echo "$ac_try_echo") >&5
30288 (eval "$ac_try") 2>&5
30290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291 (exit $ac_status); }; }; then
30292 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
30294 $as_echo "$as_me: program exited with status $ac_status" >&5
30295 $as_echo "$as_me: failed program was:" >&5
30296 sed 's/^/| /' conftest.$ac_ext >&5
30298 ( exit $ac_status )
30299 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
30301 rm -rf conftest.dSYM
30302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30306 LDFLAGS="$pgac_save_LDFLAGS"
30308 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
30309 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
30310 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
30311 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
30315 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
30316 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
30317 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
30318 $as_echo_n "(cached) " >&6
30320 pgac_save_LDFLAGS=$LDFLAGS
30321 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
30322 if test "$cross_compiling" = yes; then
30323 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
30325 cat >conftest.$ac_ext <<_ACEOF
30328 cat confdefs.h >>conftest.$ac_ext
30329 cat >>conftest.$ac_ext <<_ACEOF
30330 /* end confdefs.h. */
30331 extern void $link_test_func (); void (*fptr) () = $link_test_func;
30340 rm -f conftest$ac_exeext
30341 if { (ac_try="$ac_link"
30342 case "(($ac_try" in
30343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30344 *) ac_try_echo=$ac_try;;
30346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30347 $as_echo "$ac_try_echo") >&5
30348 (eval "$ac_link") 2>&5
30350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30352 { (case "(($ac_try" in
30353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30354 *) ac_try_echo=$ac_try;;
30356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30357 $as_echo "$ac_try_echo") >&5
30358 (eval "$ac_try") 2>&5
30360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30361 (exit $ac_status); }; }; then
30362 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
30364 $as_echo "$as_me: program exited with status $ac_status" >&5
30365 $as_echo "$as_me: failed program was:" >&5
30366 sed 's/^/| /' conftest.$ac_ext >&5
30368 ( exit $ac_status )
30369 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
30371 rm -rf conftest.dSYM
30372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30376 LDFLAGS="$pgac_save_LDFLAGS"
30378 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
30379 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
30380 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
30381 LDFLAGS="$LDFLAGS -Wl,--as-needed"
30386 # Create compiler version string
30387 if test x"$GCC" = x"yes" ; then
30388 cc_string=`${CC} --version | sed q`
30389 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
30390 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
30391 cc_string=`${CC} -V 2>&1 | sed q`
30397 cat >>confdefs.h <<_ACEOF
30398 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
30402 # Supply a numeric version string for use by 3rd party add-ons
30403 # awk -F is a regex on some platforms, and not on others, so make "." a tab
30404 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
30406 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
30408 cat >>confdefs.h <<_ACEOF
30409 #define PG_VERSION_NUM $PG_VERSION_NUM
30414 # Begin output steps
30416 { $as_echo "$as_me:$LINENO: using compiler=$cc_string" >&5
30417 $as_echo "$as_me: using compiler=$cc_string" >&6;}
30418 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
30419 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
30420 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
30421 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
30422 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
30423 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
30425 # prepare build tree if outside source tree
30426 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
30427 # Note 2: /bin/pwd might be better than shell's built-in at getting
30428 # a symlink-free name.
30429 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
30433 if test "$no_create" != yes; then
30434 $as_echo_n "preparing build tree... " >&6
30435 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
30436 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
30437 || { { $as_echo "$as_me:$LINENO: error: failed" >&5
30438 $as_echo "$as_me: error: failed" >&2;}
30439 { (exit 1); exit 1; }; }
30440 { $as_echo "$as_me:$LINENO: result: done" >&5
30441 $as_echo "done" >&6; }
30447 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
30450 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}"
30453 if test "$PORTNAME" = "win32"; then
30454 ac_config_commands="$ac_config_commands check_win32_symlinks"
30458 ac_config_headers="$ac_config_headers src/include/pg_config.h"
30461 ac_config_headers="$ac_config_headers src/include/pg_config_ext.h"
30464 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
30467 cat >confcache <<\_ACEOF
30468 # This file is a shell script that caches the results of configure
30469 # tests run on this system so they can be shared between configure
30470 # scripts and configure runs, see configure's option --config-cache.
30471 # It is not useful on other systems. If it contains results you don't
30472 # want to keep, you may remove or edit it.
30474 # config.status only pays attention to the cache file if you give it
30475 # the --recheck option to rerun configure.
30477 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30478 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30479 # following values.
30483 # The following way of writing the cache mishandles newlines in values,
30484 # but we know of no workaround that is simple, portable, and efficient.
30485 # So, we kill variables containing newlines.
30486 # Ultrix sh set writes to stderr and can't be redirected directly,
30487 # and sets the high bit in the cache file unless we assign to the vars.
30489 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30490 eval ac_val=\$$ac_var
30494 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
30495 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30498 _ | IFS | as_nl) ;; #(
30499 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30500 *) $as_unset $ac_var ;;
30506 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30507 *${as_nl}ac_space=\ *)
30508 # `set' does not quote correctly, so add quotes (double-quote
30509 # substitution turns \\\\ into \\, and sed turns \\ into \).
30512 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30515 # `set' quotes correctly as required by POSIX, so do not add quotes.
30516 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30525 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30527 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30529 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30530 if test -w "$cache_file"; then
30531 test "x$cache_file" != "x/dev/null" &&
30532 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
30533 $as_echo "$as_me: updating cache $cache_file" >&6;}
30534 cat confcache >$cache_file
30536 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30537 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30542 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30543 # Let make expand exec_prefix.
30544 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30546 DEFS=-DHAVE_CONFIG_H
30550 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30551 # 1. Remove the extension, and $U if already installed.
30552 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30553 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30554 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30555 # will be set to the directory where LIBOBJS objects are built.
30556 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30557 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30559 LIBOBJS=$ac_libobjs
30561 LTLIBOBJS=$ac_ltlibobjs
30566 : ${CONFIG_STATUS=./config.status}
30568 ac_clean_files_save=$ac_clean_files
30569 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30570 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30571 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30572 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30574 # Generated by $as_me.
30575 # Run this file to recreate the current configuration.
30576 # Compiler output produced by configure, useful for debugging
30577 # configure, is in config.log if it exists.
30580 ac_cs_recheck=false
30582 SHELL=\${CONFIG_SHELL-$SHELL}
30585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30586 ## --------------------- ##
30587 ## M4sh Initialization. ##
30588 ## --------------------- ##
30590 # Be more Bourne compatible
30591 DUALCASE=1; export DUALCASE # for MKS sh
30592 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30595 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30596 # is contrary to our usage. Disable this feature.
30597 alias -g '${1+"$@"}'='"$@"'
30598 setopt NO_GLOB_SUBST
30600 case `(set -o) 2>/dev/null` in
30601 *posix*) set -o posix ;;
30610 # Avoid depending upon Character Ranges.
30611 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30612 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30613 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30614 as_cr_digits='0123456789'
30615 as_cr_alnum=$as_cr_Letters$as_cr_digits
30620 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30621 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30622 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30623 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30624 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30625 as_echo='printf %s\n'
30626 as_echo_n='printf %s'
30628 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30629 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30630 as_echo_n='/usr/ucb/echo -n'
30632 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30633 as_echo_n_body='eval
30637 expr "X$arg" : "X\\(.*\\)$as_nl";
30638 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30640 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30642 export as_echo_n_body
30643 as_echo_n='sh -c $as_echo_n_body as_echo'
30645 export as_echo_body
30646 as_echo='sh -c $as_echo_body as_echo'
30649 # The user is always right.
30650 if test "${PATH_SEPARATOR+set}" != set; then
30652 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30653 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30658 # Support unset when possible.
30659 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30667 # We need space, tab and new line, in precisely that order. Quoting is
30668 # there to prevent editors from complaining about space-tab.
30669 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30670 # splitting by setting IFS to empty value.)
30673 # Find who we are. Look in the path if we contain no directory separator.
30675 *[\\/]* ) as_myself=$0 ;;
30676 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30677 for as_dir in $PATH
30680 test -z "$as_dir" && as_dir=.
30681 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30687 # We did not find ourselves, most probably we were run as `sh COMMAND'
30688 # in which case we are not to be found in the path.
30689 if test "x$as_myself" = x; then
30692 if test ! -f "$as_myself"; then
30693 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30694 { (exit 1); exit 1; }
30697 # Work around bugs in pre-3.0 UWIN ksh.
30698 for as_var in ENV MAIL MAILPATH
30699 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30711 # Required to use basename.
30712 if expr a : '\(a\)' >/dev/null 2>&1 &&
30713 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30719 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30720 as_basename=basename
30726 # Name of the executable.
30727 as_me=`$as_basename -- "$0" ||
30728 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30729 X"$0" : 'X\(//\)$' \| \
30730 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30732 sed '/^.*\/\([^/][^/]*\)\/*$/{
30751 as_lineno_1=$LINENO
30752 as_lineno_2=$LINENO
30753 test "x$as_lineno_1" != "x$as_lineno_2" &&
30754 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30756 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30757 # uniformly replaced by the line number. The first 'sed' inserts a
30758 # line-number line after each line using $LINENO; the second 'sed'
30759 # does the real work. The second script uses 'N' to pair each
30760 # line-number line with the line containing $LINENO, and appends
30761 # trailing '-' during substitution so that $LINENO is not a special
30762 # case at line end.
30763 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30764 # scripts with optimization help from Paolo Bonzini. Blame Lee
30765 # E. McMahon (1931-1989) for sed's syntax. :-)
30777 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30780 ' >$as_me.lineno &&
30781 chmod +x "$as_me.lineno" ||
30782 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30783 { (exit 1); exit 1; }; }
30785 # Don't try to exec as it changes $[0], causing all sort of problems
30786 # (the dirname of $[0] is not the place where we might find the
30787 # original and so on. Autoconf is especially sensitive to this).
30788 . "./$as_me.lineno"
30789 # Exit status is that of the last command.
30794 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30800 ECHO_C= ECHO_N= ECHO_T=
30801 case `echo -n x` in
30803 case `echo 'x\c'` in
30804 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30810 if expr a : '\(a\)' >/dev/null 2>&1 &&
30811 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30817 rm -f conf$$ conf$$.exe conf$$.file
30818 if test -d conf$$.dir; then
30819 rm -f conf$$.dir/conf$$.file
30822 mkdir conf$$.dir 2>/dev/null
30824 if (echo >conf$$.file) 2>/dev/null; then
30825 if ln -s conf$$.file conf$$ 2>/dev/null; then
30827 # ... but there are two gotchas:
30828 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30829 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30830 # In both cases, we have to default to `cp -p'.
30831 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30833 elif ln conf$$.file conf$$ 2>/dev/null; then
30841 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30842 rmdir conf$$.dir 2>/dev/null
30844 if mkdir -p . 2>/dev/null; then
30847 test -d ./-p && rmdir ./-p
30851 if test -x / >/dev/null 2>&1; then
30852 as_test_x='test -x'
30854 if ls -dL / >/dev/null 2>&1; then
30861 if test -d "$1"; then
30867 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30868 ???[sx]*):;;*)false;;esac;fi
30872 as_executable_p=$as_test_x
30874 # Sed expression to map a string onto a valid CPP name.
30875 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30877 # Sed expression to map a string onto a valid variable name.
30878 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30883 # Save the log message, to keep $[0] and so on meaningful, and to
30884 # report actual input values of CONFIG_FILES etc. instead of their
30885 # values after options handling.
30887 This file was extended by PostgreSQL $as_me 9.4devel, which was
30888 generated by GNU Autoconf 2.63. Invocation command line was
30890 CONFIG_FILES = $CONFIG_FILES
30891 CONFIG_HEADERS = $CONFIG_HEADERS
30892 CONFIG_LINKS = $CONFIG_LINKS
30893 CONFIG_COMMANDS = $CONFIG_COMMANDS
30896 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30901 case $ac_config_files in *"
30902 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30905 case $ac_config_headers in *"
30906 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30911 # Files that config.status was made for.
30912 config_files="$ac_config_files"
30913 config_headers="$ac_config_headers"
30914 config_links="$ac_config_links"
30915 config_commands="$ac_config_commands"
30919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30921 \`$as_me' instantiates files from templates according to the
30922 current configuration.
30924 Usage: $0 [OPTION]... [FILE]...
30926 -h, --help print this help, then exit
30927 -V, --version print version number and configuration settings, then exit
30928 -q, --quiet, --silent
30929 do not print progress messages
30930 -d, --debug don't remove temporary files
30931 --recheck update $as_me by reconfiguring in the same conditions
30932 --file=FILE[:TEMPLATE]
30933 instantiate the configuration file FILE
30934 --header=FILE[:TEMPLATE]
30935 instantiate the configuration header FILE
30937 Configuration files:
30940 Configuration headers:
30943 Configuration links:
30946 Configuration commands:
30949 Report bugs to <bug-autoconf@gnu.org>."
30952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30954 PostgreSQL config.status 9.4devel
30955 configured by $0, generated by GNU Autoconf 2.63,
30956 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30958 Copyright (C) 2008 Free Software Foundation, Inc.
30959 This config.status script is free software; the Free Software Foundation
30960 gives unlimited permission to copy, distribute and modify it."
30967 test -n "\$AWK" || AWK=awk
30970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30971 # The default lists apply if the user does not specify any file.
30977 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30978 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30989 # Handling of the options.
30990 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30992 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30993 $as_echo "$ac_cs_version"; exit ;;
30994 --debug | --debu | --deb | --de | --d | -d )
30996 --file | --fil | --fi | --f )
30999 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31001 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
31002 ac_need_defaults=false;;
31003 --header | --heade | --head | --hea )
31006 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31008 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
31009 ac_need_defaults=false;;
31011 # Conflict between --help and --header
31012 { $as_echo "$as_me: error: ambiguous option: $1
31013 Try \`$0 --help' for more information." >&2
31014 { (exit 1); exit 1; }; };;
31015 --help | --hel | -h )
31016 $as_echo "$ac_cs_usage"; exit ;;
31017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31018 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31021 # This is an error.
31022 -*) { $as_echo "$as_me: error: unrecognized option: $1
31023 Try \`$0 --help' for more information." >&2
31024 { (exit 1); exit 1; }; } ;;
31026 *) ac_config_targets="$ac_config_targets $1"
31027 ac_need_defaults=false ;;
31033 ac_configure_extra_args=
31035 if $ac_cs_silent; then
31037 ac_configure_extra_args="$ac_configure_extra_args --silent"
31041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31042 if \$ac_cs_recheck; then
31043 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31045 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31046 CONFIG_SHELL='$SHELL'
31047 export CONFIG_SHELL
31052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31056 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31057 ## Running $as_me. ##
31063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31068 # Handling of arguments.
31069 for ac_config_target in $ac_config_targets
31071 case $ac_config_target in
31072 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
31073 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
31074 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
31075 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
31076 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
31077 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
31078 "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
31079 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
31080 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
31081 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
31082 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
31083 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
31084 "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
31085 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
31087 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31088 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31089 { (exit 1); exit 1; }; };;
31094 # If the user did not use the arguments to specify the items to instantiate,
31095 # then the envvar interface is used. Set only those that are not.
31096 # We use the long form for the default assignment because of an extremely
31097 # bizarre bug on SunOS 4.1.3.
31098 if $ac_need_defaults; then
31099 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31100 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31101 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31102 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31105 # Have a temporary directory for convenience. Make it in the build tree
31106 # simply because there is no reason against having it here, and in addition,
31107 # creating and moving files from /tmp can sometimes cause problems.
31108 # Hook for its removal unless debugging.
31109 # Note that there is a small window in which the directory will not be cleaned:
31110 # after its creation but before its name has been assigned to `$tmp'.
31114 trap 'exit_status=$?
31115 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31117 trap '{ (exit 1); exit 1; }' 1 2 13 15
31119 # Create a (secure) tmp directory for tmp files.
31122 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31123 test -n "$tmp" && test -d "$tmp"
31126 tmp=./conf$$-$RANDOM
31127 (umask 077 && mkdir "$tmp")
31130 $as_echo "$as_me: cannot create a temporary directory in ." >&2
31131 { (exit 1); exit 1; }
31134 # Set up the scripts for CONFIG_FILES section.
31135 # No need to generate them if there are no CONFIG_FILES.
31136 # This happens for instance with `./config.status config.h'.
31137 if test -n "$CONFIG_FILES"; then
31141 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31142 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31145 ac_cs_awk_cr=$ac_cr
31148 echo 'BEGIN {' >"$tmp/subs1.awk" &&
31153 echo "cat >conf$$subs.awk <<_ACEOF" &&
31154 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31156 } >conf$$subs.sh ||
31157 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31158 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31159 { (exit 1); exit 1; }; }
31160 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31162 for ac_last_try in false false false false false :; do
31163 . ./conf$$subs.sh ||
31164 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31165 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31166 { (exit 1); exit 1; }; }
31168 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31169 if test $ac_delim_n = $ac_delim_num; then
31171 elif $ac_last_try; then
31172 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31173 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31174 { (exit 1); exit 1; }; }
31176 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31179 rm -f conf$$subs.sh
31181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31182 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31186 s/^/S["/; s/!.*/"]=/
31196 s/\(.\{148\}\).*/\1/
31198 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31203 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31210 s/\(.\{148\}\).*/\1/
31212 s/["\\]/\\&/g; s/^/"/; s/$/"/
31216 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31221 ' <conf$$subs.awk | sed '
31226 ' >>$CONFIG_STATUS || ac_write_fail=1
31227 rm -f conf$$subs.awk
31228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31230 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31231 for (key in S) S_is_set[key] = 1
31237 nfields = split(line, field, "@")
31239 len = length(field[1])
31240 for (i = 2; i < nfields; i++) {
31242 keylen = length(key)
31243 if (S_is_set[key]) {
31245 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31246 len += length(value) + length(field[++i])
31257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31258 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31259 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31262 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31263 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
31264 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
31265 { (exit 1); exit 1; }; }
31268 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31269 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31270 # trailing colons and then remove the whole line if VPATH becomes empty
31271 # (actually we leave an empty line to preserve line numbers).
31272 if test "x$srcdir" = x.; then
31273 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31274 s/:*\$(srcdir):*/:/
31275 s/:*\${srcdir}:*/:/
31277 s/^\([^=]*=[ ]*\):*/\1/
31283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31284 fi # test -n "$CONFIG_FILES"
31286 # Set up the scripts for CONFIG_HEADERS section.
31287 # No need to generate them if there are no CONFIG_HEADERS.
31288 # This happens for instance with `./config.status Makefile'.
31289 if test -n "$CONFIG_HEADERS"; then
31290 cat >"$tmp/defines.awk" <<\_ACAWK ||
31294 # Transform confdefs.h into an awk script `defines.awk', embedded as
31295 # here-document in config.status, that substitutes the proper values into
31296 # config.h.in to produce config.h.
31298 # Create a delimiter string that does not exist in confdefs.h, to ease
31299 # handling of long lines.
31301 for ac_last_try in false false :; do
31302 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31303 if test -z "$ac_t"; then
31305 elif $ac_last_try; then
31306 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
31307 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
31308 { (exit 1); exit 1; }; }
31310 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31314 # For the awk script, D is an array of macro values keyed by name,
31315 # likewise P contains macro parameters if any. Preserve backslash
31316 # newline sequences.
31318 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31320 s/.\{148\}/&'"$ac_delim"'/g
31323 s/^[ ]*#[ ]*define[ ][ ]*/ /
31330 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31332 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
31336 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
31337 D["\1"]=" \3\\\\\\n"\\/p
31339 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31344 s/.\{148\}/&'"$ac_delim"'/g
31349 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31352 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31354 ' <confdefs.h | sed '
31355 s/'"$ac_delim"'/"\\\
31356 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31359 for (key in D) D_is_set[key] = 1
31362 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31364 split(line, arg, " ")
31365 if (arg[1] == "#") {
31369 defundef = substr(arg[1], 2)
31372 split(mac1, mac2, "(") #)
31374 prefix = substr(line, 1, index(line, defundef) - 1)
31375 if (D_is_set[macro]) {
31376 # Preserve the white space surrounding the "#".
31377 print prefix "define", macro P[macro] D[macro]
31380 # Replace #undef with comments. This is necessary, for example,
31381 # in the case of _POSIX_SOURCE, which is predefined and required
31382 # on some systems where configure will not decide to define it.
31383 if (defundef == "undef") {
31384 print "/*", prefix defundef, macro, "*/"
31392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31393 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
31394 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
31395 { (exit 1); exit 1; }; }
31396 fi # test -n "$CONFIG_HEADERS"
31399 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31404 :[FHLC]) ac_mode=$ac_tag; continue;;
31406 case $ac_mode$ac_tag in
31408 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
31409 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
31410 { (exit 1); exit 1; }; };;
31411 :[FH]-) ac_tag=-:-;;
31412 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31429 -) ac_f="$tmp/stdin";;
31430 *) # Look for the file first in the build tree, then in the source tree
31431 # (if the path is not absolute). The absolute path cannot be DOS-style,
31432 # because $ac_f cannot contain `:'.
31436 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31438 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31439 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31440 { (exit 1); exit 1; }; };;
31442 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31443 ac_file_inputs="$ac_file_inputs '$ac_f'"
31446 # Let's still pretend it is `configure' which instantiates (i.e., don't
31447 # use $as_me), people would be surprised to read:
31448 # /* config.h. Generated by config.status. */
31449 configure_input='Generated from '`
31450 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31452 if test x"$ac_file" != x-; then
31453 configure_input="$ac_file. $configure_input"
31454 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
31455 $as_echo "$as_me: creating $ac_file" >&6;}
31457 # Neutralize special characters interpreted by sed in replacement strings.
31458 case $configure_input in #(
31459 *\&* | *\|* | *\\* )
31460 ac_sed_conf_input=`$as_echo "$configure_input" |
31461 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31462 *) ac_sed_conf_input=$configure_input;;
31466 *:-:* | *:-) cat >"$tmp/stdin" \
31467 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31468 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31469 { (exit 1); exit 1; }; } ;;
31474 ac_dir=`$as_dirname -- "$ac_file" ||
31475 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31476 X"$ac_file" : 'X\(//\)[^/]' \| \
31477 X"$ac_file" : 'X\(//\)$' \| \
31478 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31479 $as_echo X"$ac_file" |
31480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31484 /^X\(\/\/\)[^/].*/{
31499 -*) as_dir=./$as_dir;;
31501 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31505 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31506 *) as_qdir=$as_dir;;
31508 as_dirs="'$as_qdir' $as_dirs"
31509 as_dir=`$as_dirname -- "$as_dir" ||
31510 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31511 X"$as_dir" : 'X\(//\)[^/]' \| \
31512 X"$as_dir" : 'X\(//\)$' \| \
31513 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31514 $as_echo X"$as_dir" |
31515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31519 /^X\(\/\/\)[^/].*/{
31532 test -d "$as_dir" && break
31534 test -z "$as_dirs" || eval "mkdir $as_dirs"
31535 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31536 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31537 { (exit 1); exit 1; }; }; }
31541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31543 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31544 # A ".." for each directory in $ac_dir_suffix.
31545 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31546 case $ac_top_builddir_sub in
31547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31551 ac_abs_top_builddir=$ac_pwd
31552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31553 # for backward compatibility:
31554 ac_top_builddir=$ac_top_build_prefix
31557 .) # We are building in place.
31559 ac_top_srcdir=$ac_top_builddir_sub
31560 ac_abs_top_srcdir=$ac_pwd ;;
31561 [\\/]* | ?:[\\/]* ) # Absolute name.
31562 ac_srcdir=$srcdir$ac_dir_suffix;
31563 ac_top_srcdir=$srcdir
31564 ac_abs_top_srcdir=$srcdir ;;
31565 *) # Relative name.
31566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31567 ac_top_srcdir=$ac_top_build_prefix$srcdir
31568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31580 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31581 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31583 ac_MKDIR_P=$MKDIR_P
31585 [\\/$]* | ?:[\\/]* ) ;;
31586 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31591 # If the template does not know about datarootdir, expand it.
31592 # FIXME: This hack should be removed a few years after 2.60.
31593 ac_datarootdir_hack=; ac_datarootdir_seen=
31606 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31607 *datarootdir*) ac_datarootdir_seen=yes;;
31608 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31609 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31610 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31613 ac_datarootdir_hack='
31614 s&@datadir@&$datadir&g
31615 s&@docdir@&$docdir&g
31616 s&@infodir@&$infodir&g
31617 s&@localedir@&$localedir&g
31618 s&@mandir@&$mandir&g
31619 s&\\\${datarootdir}&$datarootdir&g' ;;
31623 # Neutralize VPATH when `$srcdir' = `.'.
31624 # Shell code in configure.ac might set extrasub.
31625 # FIXME: do we really want to maintain this feature?
31626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31627 ac_sed_extra="$ac_vpsub
31630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31632 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31633 s|@configure_input@|$ac_sed_conf_input|;t t
31634 s&@top_builddir@&$ac_top_builddir_sub&;t t
31635 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31636 s&@srcdir@&$ac_srcdir&;t t
31637 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31638 s&@top_srcdir@&$ac_top_srcdir&;t t
31639 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31640 s&@builddir@&$ac_builddir&;t t
31641 s&@abs_builddir@&$ac_abs_builddir&;t t
31642 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31643 s&@INSTALL@&$ac_INSTALL&;t t
31644 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31645 $ac_datarootdir_hack
31647 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31648 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31649 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31650 { (exit 1); exit 1; }; }
31652 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31653 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31654 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31655 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31656 which seems to be undefined. Please make sure it is defined." >&5
31657 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31658 which seems to be undefined. Please make sure it is defined." >&2;}
31662 -) cat "$tmp/out" && rm -f "$tmp/out";;
31663 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31665 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31666 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31667 { (exit 1); exit 1; }; }
31673 if test x"$ac_file" != x-; then
31675 $as_echo "/* $configure_input */" \
31676 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31677 } >"$tmp/config.h" \
31678 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31679 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31680 { (exit 1); exit 1; }; }
31681 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31682 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31683 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31686 mv "$tmp/config.h" "$ac_file" \
31687 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31688 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31689 { (exit 1); exit 1; }; }
31692 $as_echo "/* $configure_input */" \
31693 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31694 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31695 $as_echo "$as_me: error: could not create -" >&2;}
31696 { (exit 1); exit 1; }; }
31704 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31707 # Prefer the file from the source tree if names are identical.
31708 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31709 ac_source=$srcdir/$ac_source
31712 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31713 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31715 if test ! -r "$ac_source"; then
31716 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31717 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31718 { (exit 1); exit 1; }; }
31722 # Try a relative symlink, then a hard link, then a copy.
31724 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31725 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31727 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31728 ln "$ac_source" "$ac_file" 2>/dev/null ||
31729 cp -p "$ac_source" "$ac_file" ||
31730 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31731 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31732 { (exit 1); exit 1; }; }
31735 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31736 $as_echo "$as_me: executing $ac_file commands" >&6;}
31741 case $ac_file$ac_mode in
31742 "check_win32_symlinks":C)
31743 # Links sometimes fail undetected on Mingw -
31744 # so here we detect it and warn the user
31745 for FILE in $CONFIG_LINKS
31747 # test -e works for symlinks in the MinGW console
31748 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31749 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31752 "src/include/pg_config.h":H)
31753 # Update timestamp for pg_config.h (see Makefile.global)
31754 echo >src/include/stamp-h
31756 "src/include/pg_config_ext.h":H)
31757 # Update timestamp for pg_config_ext.h (see Makefile.global)
31758 echo >src/include/stamp-ext-h
31760 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31766 { (exit 0); exit 0; }
31768 chmod +x $CONFIG_STATUS
31769 ac_clean_files=$ac_clean_files_save
31771 test $ac_write_fail = 0 ||
31772 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31773 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31774 { (exit 1); exit 1; }; }
31777 # configure is writing to config.log, and then calls config.status.
31778 # config.status does its own redirection, appending to config.log.
31779 # Unfortunately, on DOS this fails, as config.log is still kept open
31780 # by configure, so config.status won't be able to write to it; its
31781 # output is simply discarded. So we exec the FD to /dev/null,
31782 # effectively closing config.log, so it can be properly (re)opened and
31783 # appended to by config.status. When coming back to configure, we
31784 # need to make the FD available again.
31785 if test "$no_create" != yes; then
31787 ac_config_status_args=
31788 test "$silent" = yes &&
31789 ac_config_status_args="$ac_config_status_args --quiet"
31791 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31793 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31794 # would make configure fail if this is the last instruction.
31795 $ac_cs_success || { (exit 1); exit 1; }
31797 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31798 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31799 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}