2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 9.3devel.
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-2012, 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.3devel'
602 PACKAGE_STRING='PostgreSQL 9.3devel'
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
675 python_additional_libs
793 program_transform_name
805 enable_option_checking
810 enable_integer_datetimes
841 with_libedit_preferred
852 ac_precious_vars='build_alias
866 # Initialize some variables set by options.
868 ac_init_version=false
869 ac_unrecognized_opts=
871 # The variables have the same names as the options, with
872 # dashes changed to underlines.
880 program_transform_name=s,x,x,
888 # Installation directory options.
889 # These are left unexpanded so users can "make install exec_prefix=/foo"
890 # and all the variables that are supposed to be based on exec_prefix
891 # by default will actually change.
892 # Use braces instead of parens because sh, perl, etc. also accept them.
893 # (The list follows the same order as the GNU Coding Standards.)
894 bindir='${exec_prefix}/bin'
895 sbindir='${exec_prefix}/sbin'
896 libexecdir='${exec_prefix}/libexec'
897 datarootdir='${prefix}/share'
898 datadir='${datarootdir}'
899 sysconfdir='${prefix}/etc'
900 sharedstatedir='${prefix}/com'
901 localstatedir='${prefix}/var'
902 includedir='${prefix}/include'
903 oldincludedir='/usr/include'
904 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905 infodir='${datarootdir}/info'
910 libdir='${exec_prefix}/lib'
911 localedir='${datarootdir}/locale'
912 mandir='${datarootdir}/man'
918 # If the previous option needs an argument, assign it.
919 if test -n "$ac_prev"; then
920 eval $ac_prev=\$ac_option
926 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
930 # Accept the important Cygnus configure options, so we can diagnose typos.
932 case $ac_dashdash$ac_option in
936 -bindir | --bindir | --bindi | --bind | --bin | --bi)
938 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941 -build | --build | --buil | --bui | --bu)
942 ac_prev=build_alias ;;
943 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
944 build_alias=$ac_optarg ;;
946 -cache-file | --cache-file | --cache-fil | --cache-fi \
947 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
948 ac_prev=cache_file ;;
949 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
950 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
951 cache_file=$ac_optarg ;;
954 cache_file=config.cache ;;
956 -datadir | --datadir | --datadi | --datad)
958 -datadir=* | --datadir=* | --datadi=* | --datad=*)
959 datadir=$ac_optarg ;;
961 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
962 | --dataroo | --dataro | --datar)
963 ac_prev=datarootdir ;;
964 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
965 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
966 datarootdir=$ac_optarg ;;
968 -disable-* | --disable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
973 { (exit 1); exit 1; }; }
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
983 eval enable_$ac_useropt=no ;;
985 -docdir | --docdir | --docdi | --doc | --do)
987 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
990 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
995 -enable-* | --enable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1000 { (exit 1); exit 1; }; }
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1005 "enable_$ac_useropt"
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
1010 eval enable_$ac_useropt=\$ac_optarg ;;
1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014 | --exec | --exe | --ex)
1015 ac_prev=exec_prefix ;;
1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018 | --exec=* | --exe=* | --ex=*)
1019 exec_prefix=$ac_optarg ;;
1021 -gas | --gas | --ga | --g)
1022 # Obsolete; use --with-gas.
1025 -help | --help | --hel | --he | -h)
1026 ac_init_help=long ;;
1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028 ac_init_help=recursive ;;
1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030 ac_init_help=short ;;
1032 -host | --host | --hos | --ho)
1033 ac_prev=host_alias ;;
1034 -host=* | --host=* | --hos=* | --ho=*)
1035 host_alias=$ac_optarg ;;
1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1041 htmldir=$ac_optarg ;;
1043 -includedir | --includedir | --includedi | --included | --include \
1044 | --includ | --inclu | --incl | --inc)
1045 ac_prev=includedir ;;
1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047 | --includ=* | --inclu=* | --incl=* | --inc=*)
1048 includedir=$ac_optarg ;;
1050 -infodir | --infodir | --infodi | --infod | --info | --inf)
1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053 infodir=$ac_optarg ;;
1055 -libdir | --libdir | --libdi | --libd)
1057 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058 libdir=$ac_optarg ;;
1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061 | --libexe | --libex | --libe)
1062 ac_prev=libexecdir ;;
1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064 | --libexe=* | --libex=* | --libe=*)
1065 libexecdir=$ac_optarg ;;
1067 -localedir | --localedir | --localedi | --localed | --locale)
1068 ac_prev=localedir ;;
1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070 localedir=$ac_optarg ;;
1072 -localstatedir | --localstatedir | --localstatedi | --localstated \
1073 | --localstate | --localstat | --localsta | --localst | --locals)
1074 ac_prev=localstatedir ;;
1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077 localstatedir=$ac_optarg ;;
1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082 mandir=$ac_optarg ;;
1084 -nfp | --nfp | --nf)
1085 # Obsolete; use --without-fp.
1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089 | --no-cr | --no-c | -n)
1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098 | --oldin | --oldi | --old | --ol | --o)
1099 ac_prev=oldincludedir ;;
1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103 oldincludedir=$ac_optarg ;;
1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108 prefix=$ac_optarg ;;
1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111 | --program-pre | --program-pr | --program-p)
1112 ac_prev=program_prefix ;;
1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115 program_prefix=$ac_optarg ;;
1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118 | --program-suf | --program-su | --program-s)
1119 ac_prev=program_suffix ;;
1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122 program_suffix=$ac_optarg ;;
1124 -program-transform-name | --program-transform-name \
1125 | --program-transform-nam | --program-transform-na \
1126 | --program-transform-n | --program-transform- \
1127 | --program-transform | --program-transfor \
1128 | --program-transfo | --program-transf \
1129 | --program-trans | --program-tran \
1130 | --progr-tra | --program-tr | --program-t)
1131 ac_prev=program_transform_name ;;
1132 -program-transform-name=* | --program-transform-name=* \
1133 | --program-transform-nam=* | --program-transform-na=* \
1134 | --program-transform-n=* | --program-transform-=* \
1135 | --program-transform=* | --program-transfor=* \
1136 | --program-transfo=* | --program-transf=* \
1137 | --program-trans=* | --program-tran=* \
1138 | --progr-tra=* | --program-tr=* | --program-t=*)
1139 program_transform_name=$ac_optarg ;;
1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144 pdfdir=$ac_optarg ;;
1146 -psdir | --psdir | --psdi | --psd | --ps)
1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152 | -silent | --silent | --silen | --sile | --sil)
1155 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1157 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1159 sbindir=$ac_optarg ;;
1161 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163 | --sharedst | --shareds | --shared | --share | --shar \
1165 ac_prev=sharedstatedir ;;
1166 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1170 sharedstatedir=$ac_optarg ;;
1172 -site | --site | --sit)
1174 -site=* | --site=* | --sit=*)
1177 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1179 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1180 srcdir=$ac_optarg ;;
1182 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183 | --syscon | --sysco | --sysc | --sys | --sy)
1184 ac_prev=sysconfdir ;;
1185 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1187 sysconfdir=$ac_optarg ;;
1189 -target | --target | --targe | --targ | --tar | --ta | --t)
1190 ac_prev=target_alias ;;
1191 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1192 target_alias=$ac_optarg ;;
1194 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1197 -version | --version | --versio | --versi | --vers | -V)
1198 ac_init_version=: ;;
1201 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1205 { (exit 1); exit 1; }; }
1206 ac_useropt_orig=$ac_useropt
1207 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1213 ac_unrecognized_sep=', ';;
1215 eval with_$ac_useropt=\$ac_optarg ;;
1217 -without-* | --without-*)
1218 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1219 # Reject names that are not valid shell variable names.
1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1222 { (exit 1); exit 1; }; }
1223 ac_useropt_orig=$ac_useropt
1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1230 ac_unrecognized_sep=', ';;
1232 eval with_$ac_useropt=no ;;
1235 # Obsolete; use --with-x.
1238 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1239 | --x-incl | --x-inc | --x-in | --x-i)
1240 ac_prev=x_includes ;;
1241 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1242 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1243 x_includes=$ac_optarg ;;
1245 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1246 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1247 ac_prev=x_libraries ;;
1248 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1249 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1250 x_libraries=$ac_optarg ;;
1252 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1253 Try \`$0 --help' for more information." >&2
1254 { (exit 1); exit 1; }; }
1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1261 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1262 { (exit 1); exit 1; }; }
1263 eval $ac_envvar=\$ac_optarg
1264 export $ac_envvar ;;
1267 # FIXME: should be removed in autoconf 3.0.
1268 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1271 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1277 if test -n "$ac_prev"; then
1278 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1279 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1280 { (exit 1); exit 1; }; }
1283 if test -n "$ac_unrecognized_opts"; then
1284 case $enable_option_checking in
1286 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1287 { (exit 1); exit 1; }; } ;;
1288 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1292 # Check all directory arguments for consistency.
1293 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1294 datadir sysconfdir sharedstatedir localstatedir includedir \
1295 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296 libdir localedir mandir
1298 eval ac_val=\$$ac_var
1299 # Remove trailing slashes.
1302 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1303 eval $ac_var=\$ac_val;;
1305 # Be sure to have absolute directory names.
1307 [\\/$]* | ?:[\\/]* ) continue;;
1308 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1310 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1311 { (exit 1); exit 1; }; }
1314 # There might be people who depend on the old broken behavior: `$host'
1315 # used to hold the argument of --host etc.
1316 # FIXME: To remove some day.
1319 target=$target_alias
1321 # FIXME: To remove some day.
1322 if test "x$host_alias" != x; then
1323 if test "x$build_alias" = x; then
1324 cross_compiling=maybe
1325 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1326 If a cross compiler is detected then cross compile mode will be used." >&2
1327 elif test "x$build_alias" != "x$host_alias"; then
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335 test "$silent" = yes && exec 6>/dev/null
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1342 { (exit 1); exit 1; }; }
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1345 { (exit 1); exit 1; }; }
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350 ac_srcdir_defaulted=yes
1351 # Try the directory containing this script, then the parent directory.
1352 ac_confdir=`$as_dirname -- "$as_myself" ||
1353 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354 X"$as_myself" : 'X\(//\)[^/]' \| \
1355 X"$as_myself" : 'X\(//\)$' \| \
1356 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1357 $as_echo X"$as_myself" |
1358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1380 ac_srcdir_defaulted=no
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1385 { (exit 1); exit 1; }; }
1387 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1390 { (exit 1); exit 1; }; }
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1400 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402 for ac_var in $ac_precious_vars; do
1403 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_env_${ac_var}_value=\$${ac_var}
1405 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410 # Report the --help message.
1412 if test "$ac_init_help" = "long"; then
1413 # Omit some internal or obsolete options to make the list less imposing.
1414 # This message is too long to be a string in the A/UX 3.1 sh.
1416 \`configure' configures PostgreSQL 9.3devel to adapt to many kinds of systems.
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE. See below for descriptions of some of the useful variables.
1423 Defaults for the options are specified in brackets.
1426 -h, --help display this help and exit
1427 --help=short display options specific to this package
1428 --help=recursive display the short help of all the included packages
1429 -V, --version display version information and exit
1430 -q, --quiet, --silent do not print \`checking...' messages
1431 --cache-file=FILE cache test results in FILE [disabled]
1432 -C, --config-cache alias for \`--cache-file=config.cache'
1433 -n, --no-create do not create output files
1434 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1436 Installation directories:
1437 --prefix=PREFIX install architecture-independent files in PREFIX
1438 [$ac_default_prefix]
1439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1442 By default, \`make install' will install all the files in
1443 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1444 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445 for instance \`--prefix=\$HOME'.
1447 For better control, use the options below.
1449 Fine tuning of the installation directories:
1450 --bindir=DIR user executables [EPREFIX/bin]
1451 --sbindir=DIR system admin executables [EPREFIX/sbin]
1452 --libexecdir=DIR program executables [EPREFIX/libexec]
1453 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1454 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1455 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1456 --libdir=DIR object code libraries [EPREFIX/lib]
1457 --includedir=DIR C header files [PREFIX/include]
1458 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1459 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1460 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1461 --infodir=DIR info documentation [DATAROOTDIR/info]
1462 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1463 --mandir=DIR man documentation [DATAROOTDIR/man]
1464 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1465 --htmldir=DIR html documentation [DOCDIR]
1466 --dvidir=DIR dvi documentation [DOCDIR]
1467 --pdfdir=DIR pdf documentation [DOCDIR]
1468 --psdir=DIR ps documentation [DOCDIR]
1474 --build=BUILD configure for building on BUILD [guessed]
1475 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1479 if test -n "$ac_init_help"; then
1480 case $ac_init_help in
1481 short | recursive ) echo "Configuration of PostgreSQL 9.3devel:";;
1486 --disable-option-checking ignore unrecognized --enable/--with options
1487 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1488 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1489 --disable-integer-datetimes
1490 disable 64-bit integer date/time support
1491 --enable-nls[=LANGUAGES]
1492 enable Native Language Support
1493 --disable-shared do not build shared libraries
1494 --disable-rpath do not embed shared library search path in
1496 --disable-spinlocks do not use spinlocks
1497 --enable-debug build with debugging symbols (-g)
1498 --enable-profiling build with profiling enabled
1499 --enable-coverage build with coverage testing instrumentation
1500 --enable-dtrace build with DTrace support
1501 --enable-depend turn on automatic dependency tracking
1502 --enable-cassert enable assertion checks (for debugging)
1503 --disable-thread-safety disable thread-safety in client libraries
1504 --disable-largefile omit support for large files
1505 --disable-float4-byval disable float4 passed by value
1506 --disable-float8-byval disable float8 passed by value
1509 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1510 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1511 --with-template=NAME override operating system template
1512 --with-includes=DIRS look for additional header files in DIRS
1513 --with-libraries=DIRS look for additional libraries in DIRS
1514 --with-libs=DIRS alternative spelling of --with-libraries
1515 --with-pgport=PORTNUM set default port number [5432]
1516 --with-blocksize=BLOCKSIZE
1517 set table block size in kB [8]
1518 --with-segsize=SEGSIZE set table segment size in GB [1]
1519 --with-wal-blocksize=BLOCKSIZE
1520 set WAL block size in kB [8]
1521 --with-wal-segsize=SEGSIZE
1522 set WAL segment size in MB [16]
1523 --with-CC=CMD set compiler (deprecated)
1524 --with-tcl build Tcl modules (PL/Tcl)
1525 --with-tclconfig=DIR tclConfig.sh is in DIR
1526 --with-perl build Perl modules (PL/Perl)
1527 --with-python build Python modules (PL/Python)
1528 --with-gssapi build with GSSAPI support
1529 --with-krb5 build with Kerberos 5 support
1530 --with-krb-srvnam=NAME default service principal name in Kerberos
1532 --with-pam build with PAM support
1533 --with-ldap build with LDAP support
1534 --with-bonjour build with Bonjour support
1535 --with-openssl build with OpenSSL support
1536 --with-selinux build with SELinux support
1537 --without-readline do not use GNU Readline nor BSD Libedit for editing
1538 --with-libedit-preferred
1539 prefer BSD Libedit over GNU Readline
1540 --with-ossp-uuid build contrib/uuid-ossp, requires OSSP UUID library
1541 --with-libxml build with XML support
1542 --with-libxslt use XSLT support when building contrib/xml2
1543 --with-system-tzdata=DIR
1544 use system time zone data in DIR
1545 --without-zlib do not use Zlib
1546 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1548 Some influential environment variables:
1549 CC C compiler command
1550 CFLAGS C compiler flags
1551 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1552 nonstandard directory <lib dir>
1553 LIBS libraries to pass to the linker, e.g. -l<library>
1554 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1555 you have headers in a nonstandard directory <include dir>
1557 LDFLAGS_EX extra linker flags for linking executables only
1558 LDFLAGS_SL extra linker flags for linking shared libraries only
1560 location of DocBook stylesheets
1562 Use these variables to override the choices made by `configure' or to help
1563 it to find libraries and programs with nonstandard names/locations.
1565 Report bugs to <pgsql-bugs@postgresql.org>.
1570 if test "$ac_init_help" = "recursive"; then
1571 # If there are subdirs, report their specific --help.
1572 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1573 test -d "$ac_dir" ||
1574 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1579 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1582 # A ".." for each directory in $ac_dir_suffix.
1583 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1584 case $ac_top_builddir_sub in
1585 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1589 ac_abs_top_builddir=$ac_pwd
1590 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1591 # for backward compatibility:
1592 ac_top_builddir=$ac_top_build_prefix
1595 .) # We are building in place.
1597 ac_top_srcdir=$ac_top_builddir_sub
1598 ac_abs_top_srcdir=$ac_pwd ;;
1599 [\\/]* | ?:[\\/]* ) # Absolute name.
1600 ac_srcdir=$srcdir$ac_dir_suffix;
1601 ac_top_srcdir=$srcdir
1602 ac_abs_top_srcdir=$srcdir ;;
1604 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1605 ac_top_srcdir=$ac_top_build_prefix$srcdir
1606 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1608 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1610 cd "$ac_dir" || { ac_status=$?; continue; }
1611 # Check for guested configure.
1612 if test -f "$ac_srcdir/configure.gnu"; then
1614 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1615 elif test -f "$ac_srcdir/configure"; then
1617 $SHELL "$ac_srcdir/configure" --help=recursive
1619 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1621 cd "$ac_pwd" || { ac_status=$?; break; }
1625 test -n "$ac_init_help" && exit $ac_status
1626 if $ac_init_version; then
1628 PostgreSQL configure 9.3devel
1629 generated by GNU Autoconf 2.63
1631 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1632 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1633 This configure script is free software; the Free Software Foundation
1634 gives unlimited permission to copy, distribute and modify it.
1636 Copyright (c) 1996-2012, PostgreSQL Global Development Group
1640 cat >config.log <<_ACEOF
1641 This file contains any messages produced by compilers while
1642 running configure, to aid debugging if configure makes a mistake.
1644 It was created by PostgreSQL $as_me 9.3devel, which was
1645 generated by GNU Autoconf 2.63. Invocation command line was
1657 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1658 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1659 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1660 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1661 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1663 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1664 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1666 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1667 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1668 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1669 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1670 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1671 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1672 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680 test -z "$as_dir" && as_dir=.
1681 $as_echo "PATH: $as_dir"
1697 # Keep a trace of the command line.
1698 # Strip out --no-create and --no-recursion so they do not pile up.
1699 # Strip out --silent because we don't want to record it for future runs.
1700 # Also quote any args containing shell meta-characters.
1701 # Make two passes to allow for proper duplicate-argument suppression.
1705 ac_must_keep_next=false
1711 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1712 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1713 | -silent | --silent | --silen | --sile | --sil)
1716 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1719 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1721 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1722 if test $ac_must_keep_next = true; then
1723 ac_must_keep_next=false # Got value, back to normal.
1726 *=* | --config-cache | -C | -disable-* | --disable-* \
1727 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1728 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1729 | -with-* | --with-* | -without-* | --without-* | --x)
1730 case "$ac_configure_args0 " in
1731 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1734 -* ) ac_must_keep_next=true ;;
1737 ac_configure_args="$ac_configure_args '$ac_arg'"
1742 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1743 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1745 # When interrupted or exit'd, cleanup temporary files, and complete
1746 # config.log. We remove comments because anyway the quotes in there
1747 # would cause problems or look ugly.
1748 # WARNING: Use '\'' to represent an apostrophe within the trap.
1749 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1750 trap 'exit_status=$?
1751 # Save into config.log some information that might help in debugging.
1756 ## ---------------- ##
1757 ## Cache variables. ##
1758 ## ---------------- ##
1761 # The following way of writing the cache mishandles newlines in values,
1763 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1764 eval ac_val=\$$ac_var
1768 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1769 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1772 _ | IFS | as_nl) ;; #(
1773 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1774 *) $as_unset $ac_var ;;
1779 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1780 *${as_nl}ac_space=\ *)
1782 "s/'\''/'\''\\\\'\'''\''/g;
1783 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1786 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1794 ## ----------------- ##
1795 ## Output variables. ##
1796 ## ----------------- ##
1799 for ac_var in $ac_subst_vars
1801 eval ac_val=\$$ac_var
1803 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1805 $as_echo "$ac_var='\''$ac_val'\''"
1809 if test -n "$ac_subst_files"; then
1811 ## ------------------- ##
1812 ## File substitutions. ##
1813 ## ------------------- ##
1816 for ac_var in $ac_subst_files
1818 eval ac_val=\$$ac_var
1820 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1822 $as_echo "$ac_var='\''$ac_val'\''"
1827 if test -s confdefs.h; then
1837 test "$ac_signal" != 0 &&
1838 $as_echo "$as_me: caught signal $ac_signal"
1839 $as_echo "$as_me: exit $exit_status"
1841 rm -f core *.core core.conftest.* &&
1842 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1845 for ac_signal in 1 2 13 15; do
1846 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1850 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1851 rm -f -r conftest* confdefs.h
1853 # Predefined preprocessor variables.
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_NAME "$PACKAGE_NAME"
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_STRING "$PACKAGE_STRING"
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1880 # Let the site file select an alternate cache file if it wants to.
1881 # Prefer an explicitly selected file to automatically selected ones.
1884 if test -n "$CONFIG_SITE"; then
1885 ac_site_file1=$CONFIG_SITE
1886 elif test "x$prefix" != xNONE; then
1887 ac_site_file1=$prefix/share/config.site
1888 ac_site_file2=$prefix/etc/config.site
1890 ac_site_file1=$ac_default_prefix/share/config.site
1891 ac_site_file2=$ac_default_prefix/etc/config.site
1893 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1895 test "x$ac_site_file" = xNONE && continue
1896 if test -r "$ac_site_file"; then
1897 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1898 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1899 sed 's/^/| /' "$ac_site_file" >&5
1904 if test -r "$cache_file"; then
1905 # Some versions of bash will fail to source /dev/null (special
1906 # files actually), so we avoid doing that.
1907 if test -f "$cache_file"; then
1908 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1909 $as_echo "$as_me: loading cache $cache_file" >&6;}
1911 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1912 *) . "./$cache_file";;
1916 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1917 $as_echo "$as_me: creating cache $cache_file" >&6;}
1921 # Check that the precious variables saved in the cache have kept the same
1923 ac_cache_corrupted=false
1924 for ac_var in $ac_precious_vars; do
1925 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1926 eval ac_new_set=\$ac_env_${ac_var}_set
1927 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1928 eval ac_new_val=\$ac_env_${ac_var}_value
1929 case $ac_old_set,$ac_new_set in
1931 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1932 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1933 ac_cache_corrupted=: ;;
1935 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1936 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1937 ac_cache_corrupted=: ;;
1940 if test "x$ac_old_val" != "x$ac_new_val"; then
1941 # differences in whitespace do not lead to failure.
1942 ac_old_val_w=`echo x $ac_old_val`
1943 ac_new_val_w=`echo x $ac_new_val`
1944 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1945 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1946 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1947 ac_cache_corrupted=:
1949 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1950 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1951 eval $ac_var=\$ac_old_val
1953 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1954 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1955 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1956 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1959 # Pass precious variables to config.status.
1960 if test "$ac_new_set" = set; then
1962 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1963 *) ac_arg=$ac_var=$ac_new_val ;;
1965 case " $ac_configure_args " in
1966 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1967 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1971 if $ac_cache_corrupted; then
1972 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1974 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1975 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1976 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1977 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1978 { (exit 1); exit 1; }; }
2006 ac_cpp='$CPP $CPPFLAGS'
2007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2017 for ac_dir in config "$srcdir"/config; do
2018 if test -f "$ac_dir/install-sh"; then
2020 ac_install_sh="$ac_aux_dir/install-sh -c"
2022 elif test -f "$ac_dir/install.sh"; then
2024 ac_install_sh="$ac_aux_dir/install.sh -c"
2026 elif test -f "$ac_dir/shtool"; then
2028 ac_install_sh="$ac_aux_dir/shtool install -c"
2032 if test -z "$ac_aux_dir"; then
2033 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2034 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2035 { (exit 1); exit 1; }; }
2038 # These three variables are undocumented and unsupported,
2039 # and are intended to be withdrawn in a future Autoconf release.
2040 # They can cause serious problems if a builder's source tree is in a directory
2041 # whose full name contains unusual characters.
2042 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2043 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2044 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2048 configure_args=$ac_configure_args
2052 cat >>confdefs.h <<_ACEOF
2053 #define PG_VERSION "$PACKAGE_VERSION"
2056 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2059 cat >>confdefs.h <<_ACEOF
2060 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2064 # Make sure we can run config.sub.
2065 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2066 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2067 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2068 { (exit 1); exit 1; }; }
2070 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2071 $as_echo_n "checking build system type... " >&6; }
2072 if test "${ac_cv_build+set}" = set; then
2073 $as_echo_n "(cached) " >&6
2075 ac_build_alias=$build_alias
2076 test "x$ac_build_alias" = x &&
2077 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2078 test "x$ac_build_alias" = x &&
2079 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2080 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2081 { (exit 1); exit 1; }; }
2082 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2083 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2084 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2085 { (exit 1); exit 1; }; }
2088 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2089 $as_echo "$ac_cv_build" >&6; }
2090 case $ac_cv_build in
2092 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2093 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2094 { (exit 1); exit 1; }; };;
2097 ac_save_IFS=$IFS; IFS='-'
2103 # Remember, the first character of IFS is used to create $*,
2104 # except with old shells:
2107 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2110 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2111 $as_echo_n "checking host system type... " >&6; }
2112 if test "${ac_cv_host+set}" = set; then
2113 $as_echo_n "(cached) " >&6
2115 if test "x$host_alias" = x; then
2116 ac_cv_host=$ac_cv_build
2118 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2119 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2120 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2121 { (exit 1); exit 1; }; }
2125 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2126 $as_echo "$ac_cv_host" >&6; }
2129 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2130 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2131 { (exit 1); exit 1; }; };;
2134 ac_save_IFS=$IFS; IFS='-'
2140 # Remember, the first character of IFS is used to create $*,
2141 # except with old shells:
2144 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2149 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2150 $as_echo_n "checking which template to use... " >&6; }
2155 # Check whether --with-template was given.
2156 if test "${with_template+set}" = set; then
2157 withval=$with_template;
2160 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2161 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2162 { (exit 1); exit 1; }; }
2165 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2166 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2167 { (exit 1); exit 1; }; }
2172 list) echo; ls "$srcdir/src/template"; exit;;
2173 *) if test -f "$srcdir/src/template/$with_template" ; then
2176 { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2177 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2178 { (exit 1); exit 1; }; }
2187 # --with-template not given
2190 aix*) template=aix ;;
2191 cygwin*) template=cygwin ;;
2192 darwin*) template=darwin ;;
2193 dragonfly*) template=netbsd ;;
2194 freebsd*) template=freebsd ;;
2195 hpux*) template=hpux ;;
2196 irix*) template=irix ;;
2197 linux*|gnu*|k*bsd*-gnu)
2199 mingw*) template=win32 ;;
2200 netbsd*) template=netbsd ;;
2201 openbsd*) template=openbsd ;;
2202 osf*) template=osf ;;
2203 sco*) template=sco ;;
2204 solaris*) template=solaris ;;
2205 sysv5*) template=unixware ;;
2208 if test x"$template" = x"" ; then
2209 { { $as_echo "$as_me:$LINENO: error:
2210 *******************************************************************
2211 PostgreSQL has apparently not been ported to your platform yet.
2212 To try a manual configuration, look into the src/template directory
2213 for a similar platform and use the '--with-template=' option.
2215 Please also contact <pgsql-bugs@postgresql.org> to see about
2216 rectifying this. Include the above 'checking host system type...'
2218 *******************************************************************
2220 $as_echo "$as_me: error:
2221 *******************************************************************
2222 PostgreSQL has apparently not been ported to your platform yet.
2223 To try a manual configuration, look into the src/template directory
2224 for a similar platform and use the '--with-template=' option.
2226 Please also contact <pgsql-bugs@postgresql.org> to see about
2227 rectifying this. Include the above 'checking host system type...'
2229 *******************************************************************
2231 { (exit 1); exit 1; }; }
2239 { $as_echo "$as_me:$LINENO: result: $template" >&5
2240 $as_echo "$template" >&6; }
2245 # Initialize default assumption that we do not need separate assembly code
2246 # for TAS (test-and-set). This can be overridden by the template file
2247 # when it's executed.
2254 ## Command line options
2258 # Add non-standard directories to the include path
2263 # Check whether --with-includes was given.
2264 if test "${with_includes+set}" = set; then
2265 withval=$with_includes;
2268 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2269 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2270 { (exit 1); exit 1; }; }
2273 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2274 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2275 { (exit 1); exit 1; }; }
2288 # Add non-standard directories to the library search path
2293 # Check whether --with-libraries was given.
2294 if test "${with_libraries+set}" = set; then
2295 withval=$with_libraries;
2298 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2299 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2300 { (exit 1); exit 1; }; }
2303 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2304 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2305 { (exit 1); exit 1; }; }
2308 LIBRARY_DIRS=$withval
2319 # Check whether --with-libs was given.
2320 if test "${with_libs+set}" = set; then
2324 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2325 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2326 { (exit 1); exit 1; }; }
2329 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2330 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2331 { (exit 1); exit 1; }; }
2334 LIBRARY_DIRS=$withval
2344 # 64-bit integer date/time storage: enabled by default.
2346 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2347 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2350 # Check whether --enable-integer-datetimes was given.
2351 if test "${enable_integer_datetimes+set}" = set; then
2352 enableval=$enable_integer_datetimes;
2356 cat >>confdefs.h <<\_ACEOF
2357 #define USE_INTEGER_DATETIMES 1
2365 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2366 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2367 { (exit 1); exit 1; }; }
2372 enable_integer_datetimes=yes
2374 cat >>confdefs.h <<\_ACEOF
2375 #define USE_INTEGER_DATETIMES 1
2381 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2382 $as_echo "$enable_integer_datetimes" >&6; }
2388 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2389 $as_echo_n "checking whether NLS is wanted... " >&6; }
2392 # Check whether --enable-nls was given.
2393 if test "${enable_nls+set}" = set; then
2394 enableval=$enable_nls;
2404 WANTED_LANGUAGES=$enableval
2414 if test "$enable_nls" = yes; then
2416 cat >>confdefs.h <<\_ACEOF
2417 #define ENABLE_NLS 1
2422 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2423 $as_echo "$enable_nls" >&6; }
2428 # Default port number (--with-pgport), default 5432
2430 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2431 $as_echo_n "checking for default port number... " >&6; }
2435 # Check whether --with-pgport was given.
2436 if test "${with_pgport+set}" = set; then
2437 withval=$with_pgport;
2440 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2441 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2442 { (exit 1); exit 1; }; }
2445 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2446 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2447 { (exit 1); exit 1; }; }
2450 default_port=$withval
2459 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2460 $as_echo "$default_port" >&6; }
2461 # Need both of these because some places want an integer and some a string
2463 cat >>confdefs.h <<_ACEOF
2464 #define DEF_PGPORT ${default_port}
2468 cat >>confdefs.h <<_ACEOF
2469 #define DEF_PGPORT_STR "${default_port}"
2475 # Option to disable shared libraries
2479 # Check whether --enable-shared was given.
2480 if test "${enable_shared+set}" = set; then
2481 enableval=$enable_shared;
2490 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2491 $as_echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2492 { (exit 1); exit 1; }; }
2505 # '-rpath'-like feature can be disabled
2509 # Check whether --enable-rpath was given.
2510 if test "${enable_rpath+set}" = set; then
2511 enableval=$enable_rpath;
2520 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2521 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2522 { (exit 1); exit 1; }; }
2539 # Check whether --enable-spinlocks was given.
2540 if test "${enable_spinlocks+set}" = set; then
2541 enableval=$enable_spinlocks;
2550 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2551 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2552 { (exit 1); exit 1; }; }
2557 enable_spinlocks=yes
2564 # --enable-debug adds -g to compiler flags
2568 # Check whether --enable-debug was given.
2569 if test "${enable_debug+set}" = set; then
2570 enableval=$enable_debug;
2579 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2580 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2581 { (exit 1); exit 1; }; }
2594 # --enable-profiling enables gcc profiling
2598 # Check whether --enable-profiling was given.
2599 if test "${enable_profiling+set}" = set; then
2600 enableval=$enable_profiling;
2609 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2610 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2611 { (exit 1); exit 1; }; }
2623 # --enable-coverage enables generation of code coverage metrics with gcov
2627 # Check whether --enable-coverage was given.
2628 if test "${enable_coverage+set}" = set; then
2629 enableval=$enable_coverage;
2634 # Extract the first word of "$ac_prog", so it can be a program name with args.
2635 set dummy $ac_prog; ac_word=$2
2636 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2637 $as_echo_n "checking for $ac_word... " >&6; }
2638 if test "${ac_cv_prog_GCOV+set}" = set; then
2639 $as_echo_n "(cached) " >&6
2641 if test -n "$GCOV"; then
2642 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2651 ac_cv_prog_GCOV="$ac_prog"
2652 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 GCOV=$ac_cv_prog_GCOV
2662 if test -n "$GCOV"; then
2663 { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2664 $as_echo "$GCOV" >&6; }
2666 { $as_echo "$as_me:$LINENO: result: no" >&5
2667 $as_echo "no" >&6; }
2671 test -n "$GCOV" && break
2674 if test -z "$GCOV"; then
2675 { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2676 $as_echo "$as_me: error: gcov not found" >&2;}
2677 { (exit 1); exit 1; }; }
2681 # Extract the first word of "$ac_prog", so it can be a program name with args.
2682 set dummy $ac_prog; ac_word=$2
2683 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2684 $as_echo_n "checking for $ac_word... " >&6; }
2685 if test "${ac_cv_prog_LCOV+set}" = set; then
2686 $as_echo_n "(cached) " >&6
2688 if test -n "$LCOV"; then
2689 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2698 ac_cv_prog_LCOV="$ac_prog"
2699 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 LCOV=$ac_cv_prog_LCOV
2709 if test -n "$LCOV"; then
2710 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2711 $as_echo "$LCOV" >&6; }
2713 { $as_echo "$as_me:$LINENO: result: no" >&5
2714 $as_echo "no" >&6; }
2718 test -n "$LCOV" && break
2721 if test -z "$LCOV"; then
2722 { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2723 $as_echo "$as_me: error: lcov not found" >&2;}
2724 { (exit 1); exit 1; }; }
2726 for ac_prog in genhtml
2728 # Extract the first word of "$ac_prog", so it can be a program name with args.
2729 set dummy $ac_prog; ac_word=$2
2730 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2731 $as_echo_n "checking for $ac_word... " >&6; }
2732 if test "${ac_cv_prog_GENHTML+set}" = set; then
2733 $as_echo_n "(cached) " >&6
2735 if test -n "$GENHTML"; then
2736 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745 ac_cv_prog_GENHTML="$ac_prog"
2746 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2755 GENHTML=$ac_cv_prog_GENHTML
2756 if test -n "$GENHTML"; then
2757 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2758 $as_echo "$GENHTML" >&6; }
2760 { $as_echo "$as_me:$LINENO: result: no" >&5
2761 $as_echo "no" >&6; }
2765 test -n "$GENHTML" && break
2768 if test -z "$GENHTML"; then
2769 { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2770 $as_echo "$as_me: error: genhtml not found" >&2;}
2771 { (exit 1); exit 1; }; }
2778 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2779 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2780 { (exit 1); exit 1; }; }
2797 # Check whether --enable-dtrace was given.
2798 if test "${enable_dtrace+set}" = set; then
2799 enableval=$enable_dtrace;
2802 for ac_prog in dtrace
2804 # Extract the first word of "$ac_prog", so it can be a program name with args.
2805 set dummy $ac_prog; ac_word=$2
2806 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if test "${ac_cv_prog_DTRACE+set}" = set; then
2809 $as_echo_n "(cached) " >&6
2811 if test -n "$DTRACE"; then
2812 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821 ac_cv_prog_DTRACE="$ac_prog"
2822 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 DTRACE=$ac_cv_prog_DTRACE
2832 if test -n "$DTRACE"; then
2833 { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2834 $as_echo "$DTRACE" >&6; }
2836 { $as_echo "$as_me:$LINENO: result: no" >&5
2837 $as_echo "no" >&6; }
2841 test -n "$DTRACE" && break
2844 if test -z "$DTRACE"; then
2845 { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2846 $as_echo "$as_me: error: dtrace not found" >&2;}
2847 { (exit 1); exit 1; }; }
2855 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2856 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2857 { (exit 1); exit 1; }; }
2872 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2873 $as_echo_n "checking for block size... " >&6; }
2877 # Check whether --with-blocksize was given.
2878 if test "${with_blocksize+set}" = set; then
2879 withval=$with_blocksize;
2882 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2883 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2884 { (exit 1); exit 1; }; }
2887 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2888 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2889 { (exit 1); exit 1; }; }
2901 case ${blocksize} in
2908 *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2909 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2910 { (exit 1); exit 1; }; }
2912 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2913 $as_echo "${blocksize}kB" >&6; }
2916 cat >>confdefs.h <<_ACEOF
2917 #define BLCKSZ ${BLCKSZ}
2922 # Relation segment size
2924 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2925 $as_echo_n "checking for segment size... " >&6; }
2929 # Check whether --with-segsize was given.
2930 if test "${with_segsize+set}" = set; then
2931 withval=$with_segsize;
2934 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2935 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2936 { (exit 1); exit 1; }; }
2939 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2940 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2941 { (exit 1); exit 1; }; }
2953 # this expression is set up to avoid unnecessary integer overflow
2954 # blocksize is already guaranteed to be a factor of 1024
2955 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2956 test $? -eq 0 || exit 1
2957 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2958 $as_echo "${segsize}GB" >&6; }
2961 cat >>confdefs.h <<_ACEOF
2962 #define RELSEG_SIZE ${RELSEG_SIZE}
2969 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2970 $as_echo_n "checking for WAL block size... " >&6; }
2974 # Check whether --with-wal-blocksize was given.
2975 if test "${with_wal_blocksize+set}" = set; then
2976 withval=$with_wal_blocksize;
2979 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2980 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2981 { (exit 1); exit 1; }; }
2984 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2985 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2986 { (exit 1); exit 1; }; }
2989 wal_blocksize=$withval
2998 case ${wal_blocksize} in
2999 1) XLOG_BLCKSZ=1024;;
3000 2) XLOG_BLCKSZ=2048;;
3001 4) XLOG_BLCKSZ=4096;;
3002 8) XLOG_BLCKSZ=8192;;
3003 16) XLOG_BLCKSZ=16384;;
3004 32) XLOG_BLCKSZ=32768;;
3005 64) XLOG_BLCKSZ=65536;;
3006 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
3007 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3008 { (exit 1); exit 1; }; }
3010 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
3011 $as_echo "${wal_blocksize}kB" >&6; }
3014 cat >>confdefs.h <<_ACEOF
3015 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3022 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
3023 $as_echo_n "checking for WAL segment size... " >&6; }
3027 # Check whether --with-wal-segsize was given.
3028 if test "${with_wal_segsize+set}" = set; then
3029 withval=$with_wal_segsize;
3032 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3033 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3034 { (exit 1); exit 1; }; }
3037 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3038 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3039 { (exit 1); exit 1; }; }
3042 wal_segsize=$withval
3051 case ${wal_segsize} in
3059 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3060 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3061 { (exit 1); exit 1; }; }
3063 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3064 $as_echo "${wal_segsize}MB" >&6; }
3067 cat >>confdefs.h <<_ACEOF
3068 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3076 # For historical reasons you can also use --with-CC to specify the C compiler
3077 # to use, although the standard way to do this is to set the CC environment
3082 # Check whether --with-CC was given.
3083 if test "${with_CC+set}" = set; then
3087 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3088 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3089 { (exit 1); exit 1; }; }
3092 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3093 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3094 { (exit 1); exit 1; }; }
3106 aix) pgac_cc_list="gcc xlc";;
3107 irix) pgac_cc_list="cc";; # no gcc
3108 *) pgac_cc_list="gcc cc";;
3112 ac_cpp='$CPP $CPPFLAGS'
3113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3116 if test -n "$ac_tool_prefix"; then
3117 for ac_prog in $pgac_cc_list
3119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3121 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if test "${ac_cv_prog_CC+set}" = set; then
3124 $as_echo_n "(cached) " >&6
3126 if test -n "$CC"; then
3127 ac_cv_prog_CC="$CC" # Let the user override the test.
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3136 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3137 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 if test -n "$CC"; then
3148 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3149 $as_echo "$CC" >&6; }
3151 { $as_echo "$as_me:$LINENO: result: no" >&5
3152 $as_echo "no" >&6; }
3156 test -n "$CC" && break
3159 if test -z "$CC"; then
3161 for ac_prog in $pgac_cc_list
3163 # Extract the first word of "$ac_prog", so it can be a program name with args.
3164 set dummy $ac_prog; ac_word=$2
3165 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3168 $as_echo_n "(cached) " >&6
3170 if test -n "$ac_ct_CC"; then
3171 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3180 ac_cv_prog_ac_ct_CC="$ac_prog"
3181 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3191 if test -n "$ac_ct_CC"; then
3192 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3193 $as_echo "$ac_ct_CC" >&6; }
3195 { $as_echo "$as_me:$LINENO: result: no" >&5
3196 $as_echo "no" >&6; }
3200 test -n "$ac_ct_CC" && break
3203 if test "x$ac_ct_CC" = x; then
3206 case $cross_compiling:$ac_tool_warned in
3208 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3210 ac_tool_warned=yes ;;
3217 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3219 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3220 See \`config.log' for more details." >&5
3221 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3222 See \`config.log' for more details." >&2;}
3223 { (exit 1); exit 1; }; }; }
3225 # Provide some information about the compiler.
3226 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3229 { (ac_try="$ac_compiler --version >&5"
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3235 $as_echo "$ac_try_echo") >&5
3236 (eval "$ac_compiler --version >&5") 2>&5
3238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }
3240 { (ac_try="$ac_compiler -v >&5"
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3246 $as_echo "$ac_try_echo") >&5
3247 (eval "$ac_compiler -v >&5") 2>&5
3249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }
3251 { (ac_try="$ac_compiler -V >&5"
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3257 $as_echo "$ac_try_echo") >&5
3258 (eval "$ac_compiler -V >&5") 2>&5
3260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }
3263 cat >conftest.$ac_ext <<_ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h. */
3278 ac_clean_files_save=$ac_clean_files
3279 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3280 # Try to create an executable without -o first, disregard a.out.
3281 # It will help us diagnose broken compilers, and finding out an intuition
3283 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3284 $as_echo_n "checking for C compiler default output file name... " >&6; }
3285 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3287 # The possible output files:
3288 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3291 for ac_file in $ac_files
3294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3295 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3300 if { (ac_try="$ac_link_default"
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3306 $as_echo "$ac_try_echo") >&5
3307 (eval "$ac_link_default") 2>&5
3309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; then
3311 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3312 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3313 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3314 # so that the user can short-circuit this test for compilers unknown to
3316 for ac_file in $ac_files ''
3318 test -f "$ac_file" || continue
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3323 # We found the default executable, but exeext='' is most
3327 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3329 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3331 # We set ac_cv_exeext here because the later test for it is not
3332 # safe: cross compilers may not add the suffix if given an `-o'
3333 # argument, so we may need to know it at that point already.
3334 # Even if this section looks crufty: it has the advantage of
3341 test "$ac_cv_exeext" = no && ac_cv_exeext=
3347 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3348 $as_echo "$ac_file" >&6; }
3349 if test -z "$ac_file"; then
3350 $as_echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3353 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3356 See \`config.log' for more details." >&5
3357 $as_echo "$as_me: error: C compiler cannot create executables
3358 See \`config.log' for more details." >&2;}
3359 { (exit 77); exit 77; }; }; }
3362 ac_exeext=$ac_cv_exeext
3364 # Check that the compiler produces executables we can run. If not, either
3365 # the compiler is broken, or we cross compile.
3366 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3367 $as_echo_n "checking whether the C compiler works... " >&6; }
3368 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3369 # If not cross compiling, check that we can run a simple program.
3370 if test "$cross_compiling" != yes; then
3371 if { ac_try='./$ac_file'
3372 { (case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3377 $as_echo "$ac_try_echo") >&5
3378 (eval "$ac_try") 2>&5
3380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }; }; then
3384 if test "$cross_compiling" = maybe; then
3387 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3389 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3390 If you meant to cross compile, use \`--host'.
3391 See \`config.log' for more details." >&5
3392 $as_echo "$as_me: error: cannot run C compiled programs.
3393 If you meant to cross compile, use \`--host'.
3394 See \`config.log' for more details." >&2;}
3395 { (exit 1); exit 1; }; }; }
3399 { $as_echo "$as_me:$LINENO: result: yes" >&5
3400 $as_echo "yes" >&6; }
3402 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3403 ac_clean_files=$ac_clean_files_save
3404 # Check that the compiler produces executables we can run. If not, either
3405 # the compiler is broken, or we cross compile.
3406 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3407 $as_echo_n "checking whether we are cross compiling... " >&6; }
3408 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3409 $as_echo "$cross_compiling" >&6; }
3411 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3412 $as_echo_n "checking for suffix of executables... " >&6; }
3413 if { (ac_try="$ac_link"
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3419 $as_echo "$ac_try_echo") >&5
3420 (eval "$ac_link") 2>&5
3422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); }; then
3424 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3425 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3426 # work properly (i.e., refer to `conftest.exe'), while it won't with
3428 for ac_file in conftest.exe conftest conftest.*; do
3429 test -f "$ac_file" || continue
3431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3432 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3438 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3440 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3441 See \`config.log' for more details." >&5
3442 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3443 See \`config.log' for more details." >&2;}
3444 { (exit 1); exit 1; }; }; }
3447 rm -f conftest$ac_cv_exeext
3448 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3449 $as_echo "$ac_cv_exeext" >&6; }
3451 rm -f conftest.$ac_ext
3452 EXEEXT=$ac_cv_exeext
3454 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3455 $as_echo_n "checking for suffix of object files... " >&6; }
3456 if test "${ac_cv_objext+set}" = set; then
3457 $as_echo_n "(cached) " >&6
3459 cat >conftest.$ac_ext <<_ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3474 rm -f conftest.o conftest.obj
3475 if { (ac_try="$ac_compile"
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3481 $as_echo "$ac_try_echo") >&5
3482 (eval "$ac_compile") 2>&5
3484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); }; then
3486 for ac_file in conftest.o conftest.obj conftest.*; do
3487 test -f "$ac_file" || continue;
3489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3490 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3495 $as_echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3498 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3501 See \`config.log' for more details." >&5
3502 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3503 See \`config.log' for more details." >&2;}
3504 { (exit 1); exit 1; }; }; }
3507 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3509 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3510 $as_echo "$ac_cv_objext" >&6; }
3511 OBJEXT=$ac_cv_objext
3513 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3514 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3515 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3516 $as_echo_n "(cached) " >&6
3518 cat >conftest.$ac_ext <<_ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3536 rm -f conftest.$ac_objext
3537 if { (ac_try="$ac_compile"
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3543 $as_echo "$ac_try_echo") >&5
3544 (eval "$ac_compile") 2>conftest.er1
3546 grep -v '^ *+' conftest.er1 >conftest.err
3548 cat conftest.err >&5
3549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } && {
3551 test -z "$ac_c_werror_flag" ||
3552 test ! -s conftest.err
3553 } && test -s conftest.$ac_objext; then
3556 $as_echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3566 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3567 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3568 if test $ac_compiler_gnu = yes; then
3573 ac_test_CFLAGS=${CFLAGS+set}
3574 ac_save_CFLAGS=$CFLAGS
3575 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3576 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3577 if test "${ac_cv_prog_cc_g+set}" = set; then
3578 $as_echo_n "(cached) " >&6
3580 ac_save_c_werror_flag=$ac_c_werror_flag
3581 ac_c_werror_flag=yes
3584 cat >conftest.$ac_ext <<_ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3599 rm -f conftest.$ac_objext
3600 if { (ac_try="$ac_compile"
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3606 $as_echo "$ac_try_echo") >&5
3607 (eval "$ac_compile") 2>conftest.er1
3609 grep -v '^ *+' conftest.er1 >conftest.err
3611 cat conftest.err >&5
3612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); } && {
3614 test -z "$ac_c_werror_flag" ||
3615 test ! -s conftest.err
3616 } && test -s conftest.$ac_objext; then
3619 $as_echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3623 cat >conftest.$ac_ext <<_ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3638 rm -f conftest.$ac_objext
3639 if { (ac_try="$ac_compile"
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3645 $as_echo "$ac_try_echo") >&5
3646 (eval "$ac_compile") 2>conftest.er1
3648 grep -v '^ *+' conftest.er1 >conftest.err
3650 cat conftest.err >&5
3651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } && {
3653 test -z "$ac_c_werror_flag" ||
3654 test ! -s conftest.err
3655 } && test -s conftest.$ac_objext; then
3658 $as_echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3661 ac_c_werror_flag=$ac_save_c_werror_flag
3663 cat >conftest.$ac_ext <<_ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h. */
3678 rm -f conftest.$ac_objext
3679 if { (ac_try="$ac_compile"
3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3685 $as_echo "$ac_try_echo") >&5
3686 (eval "$ac_compile") 2>conftest.er1
3688 grep -v '^ *+' conftest.er1 >conftest.err
3690 cat conftest.err >&5
3691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); } && {
3693 test -z "$ac_c_werror_flag" ||
3694 test ! -s conftest.err
3695 } && test -s conftest.$ac_objext; then
3698 $as_echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3711 ac_c_werror_flag=$ac_save_c_werror_flag
3713 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3714 $as_echo "$ac_cv_prog_cc_g" >&6; }
3715 if test "$ac_test_CFLAGS" = set; then
3716 CFLAGS=$ac_save_CFLAGS
3717 elif test $ac_cv_prog_cc_g = yes; then
3718 if test "$GCC" = yes; then
3724 if test "$GCC" = yes; then
3730 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3731 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3732 if test "${ac_cv_prog_cc_c89+set}" = set; then
3733 $as_echo_n "(cached) " >&6
3735 ac_cv_prog_cc_c89=no
3737 cat >conftest.$ac_ext <<_ACEOF
3740 cat confdefs.h >>conftest.$ac_ext
3741 cat >>conftest.$ac_ext <<_ACEOF
3742 /* end confdefs.h. */
3745 #include <sys/types.h>
3746 #include <sys/stat.h>
3747 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3748 struct buf { int x; };
3749 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3750 static char *e (p, i)
3756 static char *f (char * (*g) (char **, int), char **p, ...)
3761 s = g (p, va_arg (v,int));
3766 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3767 function prototypes and stuff, but not '\xHH' hex character constants.
3768 These don't provoke an error unfortunately, instead are silently treated
3769 as 'x'. The following induces an error, until -std is added to get
3770 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3771 array size at least. It's necessary to write '\x00'==0 to get something
3772 that's true only with -std. */
3773 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3775 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3776 inside strings and character constants. */
3778 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3780 int test (int i, double x);
3781 struct s1 {int (*f) (int a);};
3782 struct s2 {int (*f) (double a);};
3783 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3789 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3794 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3795 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3797 CC="$ac_save_CC $ac_arg"
3798 rm -f conftest.$ac_objext
3799 if { (ac_try="$ac_compile"
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3805 $as_echo "$ac_try_echo") >&5
3806 (eval "$ac_compile") 2>conftest.er1
3808 grep -v '^ *+' conftest.er1 >conftest.err
3810 cat conftest.err >&5
3811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); } && {
3813 test -z "$ac_c_werror_flag" ||
3814 test ! -s conftest.err
3815 } && test -s conftest.$ac_objext; then
3816 ac_cv_prog_cc_c89=$ac_arg
3818 $as_echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3824 rm -f core conftest.err conftest.$ac_objext
3825 test "x$ac_cv_prog_cc_c89" != "xno" && break
3827 rm -f conftest.$ac_ext
3832 case "x$ac_cv_prog_cc_c89" in
3834 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3835 $as_echo "none needed" >&6; } ;;
3837 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3838 $as_echo "unsupported" >&6; } ;;
3840 CC="$CC $ac_cv_prog_cc_c89"
3841 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3842 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3847 ac_cpp='$CPP $CPPFLAGS'
3848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3854 # but has idiosyncrasies of its own. We assume icc will define
3855 # __INTEL_COMPILER regardless of CFLAGS.
3857 cat >conftest.$ac_ext <<_ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3867 #ifndef __INTEL_COMPILER
3874 rm -f conftest.$ac_objext
3875 if { (ac_try="$ac_compile"
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3881 $as_echo "$ac_try_echo") >&5
3882 (eval "$ac_compile") 2>conftest.er1
3884 grep -v '^ *+' conftest.er1 >conftest.err
3886 cat conftest.err >&5
3887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); } && {
3889 test -z "$ac_c_werror_flag" ||
3890 test ! -s conftest.err
3891 } && test -s conftest.$ac_objext; then
3894 $as_echo "$as_me: failed program was:" >&5
3895 sed 's/^/| /' conftest.$ac_ext >&5
3900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902 # Check if it's Sun Studio compiler. We assume that
3903 # __SUNPRO_C will be defined for Sun Studio compilers
3904 cat >conftest.$ac_ext <<_ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3921 rm -f conftest.$ac_objext
3922 if { (ac_try="$ac_compile"
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3928 $as_echo "$ac_try_echo") >&5
3929 (eval "$ac_compile") 2>conftest.er1
3931 grep -v '^ *+' conftest.er1 >conftest.err
3933 cat conftest.err >&5
3934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } && {
3936 test -z "$ac_c_werror_flag" ||
3937 test ! -s conftest.err
3938 } && test -s conftest.$ac_objext; then
3941 $as_echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3956 . "$srcdir/src/template/$template" || exit
3958 # CFLAGS are selected so:
3959 # If the user specifies something in the environment, that is used.
3960 # else: If the template file set something, that is used.
3961 # else: If coverage was enabled, don't set anything.
3962 # else: If the compiler is GCC, then we use -O2.
3963 # else: If the compiler is something else, then we use -O, unless debugging.
3965 if test "$ac_env_CFLAGS_set" = set; then
3966 CFLAGS=$ac_env_CFLAGS_value
3967 elif test "${CFLAGS+set}" = set; then
3968 : # (keep what template set)
3969 elif test "$enable_coverage" = yes; then
3970 : # no optimization by default
3971 elif test "$GCC" = yes; then
3974 # if the user selected debug mode, don't use -O
3975 if test "$enable_debug" != yes; then
3980 # Some versions of GCC support some additional useful warning flags.
3981 # Check whether they are supported, and add them to CFLAGS if so.
3982 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3983 # but has its own. Also check other compiler-specific flags here.
3985 if test "$GCC" = yes -a "$ICC" = no; then
3986 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3987 # These work in some but not all gcc versions
3988 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
3989 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
3990 if test "${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+set}" = set; then
3991 $as_echo_n "(cached) " >&6
3993 pgac_save_CFLAGS=$CFLAGS
3994 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3995 ac_save_c_werror_flag=$ac_c_werror_flag
3996 ac_c_werror_flag=yes
3997 cat >conftest.$ac_ext <<_ACEOF
4000 cat confdefs.h >>conftest.$ac_ext
4001 cat >>conftest.$ac_ext <<_ACEOF
4002 /* end confdefs.h. */
4012 rm -f conftest.$ac_objext
4013 if { (ac_try="$ac_compile"
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4019 $as_echo "$ac_try_echo") >&5
4020 (eval "$ac_compile") 2>conftest.er1
4022 grep -v '^ *+' conftest.er1 >conftest.err
4024 cat conftest.err >&5
4025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); } && {
4027 test -z "$ac_c_werror_flag" ||
4028 test ! -s conftest.err
4029 } && test -s conftest.$ac_objext; then
4030 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4032 $as_echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.$ac_ext >&5
4035 pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039 ac_c_werror_flag=$ac_save_c_werror_flag
4040 CFLAGS="$pgac_save_CFLAGS"
4042 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4043 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4044 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4045 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4048 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
4049 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4050 if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
4051 $as_echo_n "(cached) " >&6
4053 pgac_save_CFLAGS=$CFLAGS
4054 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4055 ac_save_c_werror_flag=$ac_c_werror_flag
4056 ac_c_werror_flag=yes
4057 cat >conftest.$ac_ext <<_ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4072 rm -f conftest.$ac_objext
4073 if { (ac_try="$ac_compile"
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4079 $as_echo "$ac_try_echo") >&5
4080 (eval "$ac_compile") 2>conftest.er1
4082 grep -v '^ *+' conftest.er1 >conftest.err
4084 cat conftest.err >&5
4085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } && {
4087 test -z "$ac_c_werror_flag" ||
4088 test ! -s conftest.err
4089 } && test -s conftest.$ac_objext; then
4090 pgac_cv_prog_cc_cflags__Wendif_labels=yes
4092 $as_echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4095 pgac_cv_prog_cc_cflags__Wendif_labels=no
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 ac_c_werror_flag=$ac_save_c_werror_flag
4100 CFLAGS="$pgac_save_CFLAGS"
4102 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4103 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4104 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4105 CFLAGS="$CFLAGS -Wendif-labels"
4108 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
4109 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4110 if test "${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+set}" = set; then
4111 $as_echo_n "(cached) " >&6
4113 pgac_save_CFLAGS=$CFLAGS
4114 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4115 ac_save_c_werror_flag=$ac_c_werror_flag
4116 ac_c_werror_flag=yes
4117 cat >conftest.$ac_ext <<_ACEOF
4120 cat confdefs.h >>conftest.$ac_ext
4121 cat >>conftest.$ac_ext <<_ACEOF
4122 /* end confdefs.h. */
4132 rm -f conftest.$ac_objext
4133 if { (ac_try="$ac_compile"
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4139 $as_echo "$ac_try_echo") >&5
4140 (eval "$ac_compile") 2>conftest.er1
4142 grep -v '^ *+' conftest.er1 >conftest.err
4144 cat conftest.err >&5
4145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); } && {
4147 test -z "$ac_c_werror_flag" ||
4148 test ! -s conftest.err
4149 } && test -s conftest.$ac_objext; then
4150 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4152 $as_echo "$as_me: failed program was:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4155 pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159 ac_c_werror_flag=$ac_save_c_werror_flag
4160 CFLAGS="$pgac_save_CFLAGS"
4162 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4163 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4164 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4165 CFLAGS="$CFLAGS -Wmissing-format-attribute"
4168 # This was included in -Wall/-Wformat in older GCC versions
4169 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
4170 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4171 if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
4172 $as_echo_n "(cached) " >&6
4174 pgac_save_CFLAGS=$CFLAGS
4175 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4176 ac_save_c_werror_flag=$ac_c_werror_flag
4177 ac_c_werror_flag=yes
4178 cat >conftest.$ac_ext <<_ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h. */
4193 rm -f conftest.$ac_objext
4194 if { (ac_try="$ac_compile"
4196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197 *) ac_try_echo=$ac_try;;
4199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4200 $as_echo "$ac_try_echo") >&5
4201 (eval "$ac_compile") 2>conftest.er1
4203 grep -v '^ *+' conftest.er1 >conftest.err
4205 cat conftest.err >&5
4206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } && {
4208 test -z "$ac_c_werror_flag" ||
4209 test ! -s conftest.err
4210 } && test -s conftest.$ac_objext; then
4211 pgac_cv_prog_cc_cflags__Wformat_security=yes
4213 $as_echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4216 pgac_cv_prog_cc_cflags__Wformat_security=no
4219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4220 ac_c_werror_flag=$ac_save_c_werror_flag
4221 CFLAGS="$pgac_save_CFLAGS"
4223 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4224 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4225 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4226 CFLAGS="$CFLAGS -Wformat-security"
4229 # Disable strict-aliasing rules; needed for gcc 3.3+
4230 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4231 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4232 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4233 $as_echo_n "(cached) " >&6
4235 pgac_save_CFLAGS=$CFLAGS
4236 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4237 ac_save_c_werror_flag=$ac_c_werror_flag
4238 ac_c_werror_flag=yes
4239 cat >conftest.$ac_ext <<_ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4254 rm -f conftest.$ac_objext
4255 if { (ac_try="$ac_compile"
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4261 $as_echo "$ac_try_echo") >&5
4262 (eval "$ac_compile") 2>conftest.er1
4264 grep -v '^ *+' conftest.er1 >conftest.err
4266 cat conftest.err >&5
4267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } && {
4269 test -z "$ac_c_werror_flag" ||
4270 test ! -s conftest.err
4271 } && test -s conftest.$ac_objext; then
4272 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4274 $as_echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.$ac_ext >&5
4277 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281 ac_c_werror_flag=$ac_save_c_werror_flag
4282 CFLAGS="$pgac_save_CFLAGS"
4284 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4285 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4286 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4287 CFLAGS="$CFLAGS -fno-strict-aliasing"
4290 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4291 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4292 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4293 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4294 $as_echo_n "(cached) " >&6
4296 pgac_save_CFLAGS=$CFLAGS
4297 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4298 ac_save_c_werror_flag=$ac_c_werror_flag
4299 ac_c_werror_flag=yes
4300 cat >conftest.$ac_ext <<_ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4315 rm -f conftest.$ac_objext
4316 if { (ac_try="$ac_compile"
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4322 $as_echo "$ac_try_echo") >&5
4323 (eval "$ac_compile") 2>conftest.er1
4325 grep -v '^ *+' conftest.er1 >conftest.err
4327 cat conftest.err >&5
4328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } && {
4330 test -z "$ac_c_werror_flag" ||
4331 test ! -s conftest.err
4332 } && test -s conftest.$ac_objext; then
4333 pgac_cv_prog_cc_cflags__fwrapv=yes
4335 $as_echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4338 pgac_cv_prog_cc_cflags__fwrapv=no
4341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4342 ac_c_werror_flag=$ac_save_c_werror_flag
4343 CFLAGS="$pgac_save_CFLAGS"
4345 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4346 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4347 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4348 CFLAGS="$CFLAGS -fwrapv"
4351 # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4352 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fexcess-precision=standard" >&5
4353 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4354 if test "${pgac_cv_prog_cc_cflags__fexcess_precision_standard+set}" = set; then
4355 $as_echo_n "(cached) " >&6
4357 pgac_save_CFLAGS=$CFLAGS
4358 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4359 ac_save_c_werror_flag=$ac_c_werror_flag
4360 ac_c_werror_flag=yes
4361 cat >conftest.$ac_ext <<_ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h. */
4376 rm -f conftest.$ac_objext
4377 if { (ac_try="$ac_compile"
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4383 $as_echo "$ac_try_echo") >&5
4384 (eval "$ac_compile") 2>conftest.er1
4386 grep -v '^ *+' conftest.er1 >conftest.err
4388 cat conftest.err >&5
4389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } && {
4391 test -z "$ac_c_werror_flag" ||
4392 test ! -s conftest.err
4393 } && test -s conftest.$ac_objext; then
4394 pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4396 $as_echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.$ac_ext >&5
4399 pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4403 ac_c_werror_flag=$ac_save_c_werror_flag
4404 CFLAGS="$pgac_save_CFLAGS"
4406 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4407 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4408 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4409 CFLAGS="$CFLAGS -fexcess-precision=standard"
4412 elif test "$ICC" = yes; then
4413 # Intel's compiler has a bug/misoptimization in checking for
4414 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4415 { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4416 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4417 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4418 $as_echo_n "(cached) " >&6
4420 pgac_save_CFLAGS=$CFLAGS
4421 CFLAGS="$pgac_save_CFLAGS -mp1"
4422 ac_save_c_werror_flag=$ac_c_werror_flag
4423 ac_c_werror_flag=yes
4424 cat >conftest.$ac_ext <<_ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h. */
4439 rm -f conftest.$ac_objext
4440 if { (ac_try="$ac_compile"
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4446 $as_echo "$ac_try_echo") >&5
4447 (eval "$ac_compile") 2>conftest.er1
4449 grep -v '^ *+' conftest.er1 >conftest.err
4451 cat conftest.err >&5
4452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } && {
4454 test -z "$ac_c_werror_flag" ||
4455 test ! -s conftest.err
4456 } && test -s conftest.$ac_objext; then
4457 pgac_cv_prog_cc_cflags__mp1=yes
4459 $as_echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4462 pgac_cv_prog_cc_cflags__mp1=no
4465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4466 ac_c_werror_flag=$ac_save_c_werror_flag
4467 CFLAGS="$pgac_save_CFLAGS"
4469 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4470 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4471 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4472 CFLAGS="$CFLAGS -mp1"
4475 # Make sure strict aliasing is off (though this is said to be the default)
4476 { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4477 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4478 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4479 $as_echo_n "(cached) " >&6
4481 pgac_save_CFLAGS=$CFLAGS
4482 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4483 ac_save_c_werror_flag=$ac_c_werror_flag
4484 ac_c_werror_flag=yes
4485 cat >conftest.$ac_ext <<_ACEOF
4488 cat confdefs.h >>conftest.$ac_ext
4489 cat >>conftest.$ac_ext <<_ACEOF
4490 /* end confdefs.h. */
4500 rm -f conftest.$ac_objext
4501 if { (ac_try="$ac_compile"
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4507 $as_echo "$ac_try_echo") >&5
4508 (eval "$ac_compile") 2>conftest.er1
4510 grep -v '^ *+' conftest.er1 >conftest.err
4512 cat conftest.err >&5
4513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } && {
4515 test -z "$ac_c_werror_flag" ||
4516 test ! -s conftest.err
4517 } && test -s conftest.$ac_objext; then
4518 pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4520 $as_echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4523 pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4527 ac_c_werror_flag=$ac_save_c_werror_flag
4528 CFLAGS="$pgac_save_CFLAGS"
4530 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4531 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4532 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4533 CFLAGS="$CFLAGS -fno-strict-aliasing"
4536 elif test "$PORTNAME" = "aix"; then
4537 # AIX's xlc has to have strict aliasing turned off too
4538 { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4539 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4540 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4541 $as_echo_n "(cached) " >&6
4543 pgac_save_CFLAGS=$CFLAGS
4544 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4545 ac_save_c_werror_flag=$ac_c_werror_flag
4546 ac_c_werror_flag=yes
4547 cat >conftest.$ac_ext <<_ACEOF
4550 cat confdefs.h >>conftest.$ac_ext
4551 cat >>conftest.$ac_ext <<_ACEOF
4552 /* end confdefs.h. */
4562 rm -f conftest.$ac_objext
4563 if { (ac_try="$ac_compile"
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4569 $as_echo "$ac_try_echo") >&5
4570 (eval "$ac_compile") 2>conftest.er1
4572 grep -v '^ *+' conftest.er1 >conftest.err
4574 cat conftest.err >&5
4575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); } && {
4577 test -z "$ac_c_werror_flag" ||
4578 test ! -s conftest.err
4579 } && test -s conftest.$ac_objext; then
4580 pgac_cv_prog_cc_cflags__qnoansialias=yes
4582 $as_echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4585 pgac_cv_prog_cc_cflags__qnoansialias=no
4588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589 ac_c_werror_flag=$ac_save_c_werror_flag
4590 CFLAGS="$pgac_save_CFLAGS"
4592 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4593 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4594 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4595 CFLAGS="$CFLAGS -qnoansialias"
4598 elif test "$PORTNAME" = "hpux"; then
4599 # On some versions of HP-UX, libm functions do not set errno by default.
4600 # Fix that by using +Olibmerrno if the compiler recognizes it.
4601 { $as_echo "$as_me:$LINENO: checking whether $CC supports +Olibmerrno" >&5
4602 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4603 if test "${pgac_cv_prog_cc_cflags_pOlibmerrno+set}" = set; then
4604 $as_echo_n "(cached) " >&6
4606 pgac_save_CFLAGS=$CFLAGS
4607 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4608 ac_save_c_werror_flag=$ac_c_werror_flag
4609 ac_c_werror_flag=yes
4610 cat >conftest.$ac_ext <<_ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4625 rm -f conftest.$ac_objext
4626 if { (ac_try="$ac_compile"
4628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629 *) ac_try_echo=$ac_try;;
4631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4632 $as_echo "$ac_try_echo") >&5
4633 (eval "$ac_compile") 2>conftest.er1
4635 grep -v '^ *+' conftest.er1 >conftest.err
4637 cat conftest.err >&5
4638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); } && {
4640 test -z "$ac_c_werror_flag" ||
4641 test ! -s conftest.err
4642 } && test -s conftest.$ac_objext; then
4643 pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4645 $as_echo "$as_me: failed program was:" >&5
4646 sed 's/^/| /' conftest.$ac_ext >&5
4648 pgac_cv_prog_cc_cflags_pOlibmerrno=no
4651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4652 ac_c_werror_flag=$ac_save_c_werror_flag
4653 CFLAGS="$pgac_save_CFLAGS"
4655 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4656 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4657 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4658 CFLAGS="$CFLAGS +Olibmerrno"
4663 # supply -g if --enable-debug
4664 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4668 # enable code coverage if --enable-coverage
4669 if test "$enable_coverage" = yes; then
4670 if test "$GCC" = yes; then
4671 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4673 { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4674 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4675 { (exit 1); exit 1; }; }
4679 # enable profiling if --enable-profiling
4680 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4681 if test "$GCC" = yes; then
4683 cat >>confdefs.h <<\_ACEOF
4684 #define PROFILE_PID_DIR 1
4687 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4689 { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4690 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4691 { (exit 1); exit 1; }; }
4695 # We already have this in Makefile.win32, but configure needs it too
4696 if test "$PORTNAME" = "win32"; then
4697 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4700 # Check if the compiler still works with the template settings
4701 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4702 $as_echo_n "checking whether the C compiler still works... " >&6; }
4703 cat >conftest.$ac_ext <<_ACEOF
4706 cat confdefs.h >>conftest.$ac_ext
4707 cat >>conftest.$ac_ext <<_ACEOF
4708 /* end confdefs.h. */
4718 rm -f conftest.$ac_objext conftest$ac_exeext
4719 if { (ac_try="$ac_link"
4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722 *) ac_try_echo=$ac_try;;
4724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4725 $as_echo "$ac_try_echo") >&5
4726 (eval "$ac_link") 2>conftest.er1
4728 grep -v '^ *+' conftest.er1 >conftest.err
4730 cat conftest.err >&5
4731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } && {
4733 test -z "$ac_c_werror_flag" ||
4734 test ! -s conftest.err
4735 } && test -s conftest$ac_exeext && {
4736 test "$cross_compiling" = yes ||
4737 $as_test_x conftest$ac_exeext
4739 { $as_echo "$as_me:$LINENO: result: yes" >&5
4740 $as_echo "yes" >&6; }
4742 $as_echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.$ac_ext >&5
4745 { $as_echo "$as_me:$LINENO: result: no" >&5
4746 $as_echo "no" >&6; }
4747 { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4748 $as_echo "$as_me: error: cannot proceed" >&2;}
4749 { (exit 1); exit 1; }; }
4752 rm -rf conftest.dSYM
4753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4754 conftest$ac_exeext conftest.$ac_ext
4756 # Defend against gcc -ffast-math
4757 if test "$GCC" = yes; then
4758 cat >conftest.$ac_ext <<_ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h. */
4768 #ifdef __FAST_MATH__
4775 rm -f conftest.$ac_objext
4776 if { (ac_try="$ac_compile"
4778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4779 *) ac_try_echo=$ac_try;;
4781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4782 $as_echo "$ac_try_echo") >&5
4783 (eval "$ac_compile") 2>conftest.er1
4785 grep -v '^ *+' conftest.er1 >conftest.err
4787 cat conftest.err >&5
4788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } && {
4790 test -z "$ac_c_werror_flag" ||
4791 test ! -s conftest.err
4792 } && test -s conftest.$ac_objext; then
4795 $as_echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4798 { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4799 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4800 { (exit 1); exit 1; }; }
4803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 ac_cpp='$CPP $CPPFLAGS'
4808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4812 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4813 # On Suns, sometimes $CPP names a directory.
4814 if test -n "$CPP" && test -d "$CPP"; then
4817 if test -z "$CPP"; then
4818 if test "${ac_cv_prog_CPP+set}" = set; then
4819 $as_echo_n "(cached) " >&6
4821 # Double quotes because CPP needs to be expanded
4822 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4825 for ac_c_preproc_warn_flag in '' yes
4827 # Use a header file that comes with gcc, so configuring glibc
4828 # with a fresh cross-compiler works.
4829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4830 # <limits.h> exists even on freestanding compilers.
4831 # On the NeXT, cc -E runs the code through the compiler's parser,
4832 # not just through cpp. "Syntax error" is here to catch this case.
4833 cat >conftest.$ac_ext <<_ACEOF
4836 cat confdefs.h >>conftest.$ac_ext
4837 cat >>conftest.$ac_ext <<_ACEOF
4838 /* end confdefs.h. */
4840 # include <limits.h>
4842 # include <assert.h>
4846 if { (ac_try="$ac_cpp conftest.$ac_ext"
4848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4849 *) ac_try_echo=$ac_try;;
4851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4852 $as_echo "$ac_try_echo") >&5
4853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4855 grep -v '^ *+' conftest.er1 >conftest.err
4857 cat conftest.err >&5
4858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); } >/dev/null && {
4860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4861 test ! -s conftest.err
4865 $as_echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4868 # Broken: fails on valid input.
4872 rm -f conftest.err conftest.$ac_ext
4874 # OK, works on sane cases. Now check whether nonexistent headers
4875 # can be detected and how.
4876 cat >conftest.$ac_ext <<_ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h. */
4882 #include <ac_nonexistent.h>
4884 if { (ac_try="$ac_cpp conftest.$ac_ext"
4886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4887 *) ac_try_echo=$ac_try;;
4889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4890 $as_echo "$ac_try_echo") >&5
4891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4893 grep -v '^ *+' conftest.er1 >conftest.err
4895 cat conftest.err >&5
4896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); } >/dev/null && {
4898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4899 test ! -s conftest.err
4901 # Broken: success on invalid input.
4904 $as_echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4907 # Passes both tests.
4912 rm -f conftest.err conftest.$ac_ext
4915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4916 rm -f conftest.err conftest.$ac_ext
4917 if $ac_preproc_ok; then
4929 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4930 $as_echo "$CPP" >&6; }
4932 for ac_c_preproc_warn_flag in '' yes
4934 # Use a header file that comes with gcc, so configuring glibc
4935 # with a fresh cross-compiler works.
4936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4937 # <limits.h> exists even on freestanding compilers.
4938 # On the NeXT, cc -E runs the code through the compiler's parser,
4939 # not just through cpp. "Syntax error" is here to catch this case.
4940 cat >conftest.$ac_ext <<_ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4947 # include <limits.h>
4949 # include <assert.h>
4953 if { (ac_try="$ac_cpp conftest.$ac_ext"
4955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4956 *) ac_try_echo=$ac_try;;
4958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4959 $as_echo "$ac_try_echo") >&5
4960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4962 grep -v '^ *+' conftest.er1 >conftest.err
4964 cat conftest.err >&5
4965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } >/dev/null && {
4967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4968 test ! -s conftest.err
4972 $as_echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.$ac_ext >&5
4975 # Broken: fails on valid input.
4979 rm -f conftest.err conftest.$ac_ext
4981 # OK, works on sane cases. Now check whether nonexistent headers
4982 # can be detected and how.
4983 cat >conftest.$ac_ext <<_ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h. */
4989 #include <ac_nonexistent.h>
4991 if { (ac_try="$ac_cpp conftest.$ac_ext"
4993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994 *) ac_try_echo=$ac_try;;
4996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4997 $as_echo "$ac_try_echo") >&5
4998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5000 grep -v '^ *+' conftest.er1 >conftest.err
5002 cat conftest.err >&5
5003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } >/dev/null && {
5005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5006 test ! -s conftest.err
5008 # Broken: success on invalid input.
5011 $as_echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5014 # Passes both tests.
5019 rm -f conftest.err conftest.$ac_ext
5022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5023 rm -f conftest.err conftest.$ac_ext
5024 if $ac_preproc_ok; then
5027 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5029 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5030 See \`config.log' for more details." >&5
5031 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5032 See \`config.log' for more details." >&2;}
5033 { (exit 1); exit 1; }; }; }
5037 ac_cpp='$CPP $CPPFLAGS'
5038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5046 # Set up TAS assembly code if needed; the template file has now had its
5047 # chance to request this.
5049 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5052 if test "$need_tas" = yes ; then
5061 # Automatic dependency tracking
5065 # Check whether --enable-depend was given.
5066 if test "${enable_depend+set}" = set; then
5067 enableval=$enable_depend;
5076 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
5077 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
5078 { (exit 1); exit 1; }; }
5092 # Enable assert checks
5096 # Check whether --enable-cassert was given.
5097 if test "${enable_cassert+set}" = set; then
5098 enableval=$enable_cassert;
5102 cat >>confdefs.h <<\_ACEOF
5103 #define USE_ASSERT_CHECKING 1
5111 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
5112 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
5113 { (exit 1); exit 1; }; }
5126 # Include directories
5129 IFS="${IFS}${PATH_SEPARATOR}"
5130 # SRCH_INC comes from the template file
5131 for dir in $with_includes $SRCH_INC; do
5132 if test -d "$dir"; then
5133 INCLUDES="$INCLUDES -I$dir"
5135 { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
5136 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5144 # Library directories
5147 IFS="${IFS}${PATH_SEPARATOR}"
5148 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5149 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5150 if test -d "$dir"; then
5151 LIBDIRS="$LIBDIRS -L$dir"
5153 { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
5154 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5160 # Enable thread-safe client libraries
5162 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
5163 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5166 # Check whether --enable-thread-safety was given.
5167 if test "${enable_thread_safety+set}" = set; then
5168 enableval=$enable_thread_safety;
5177 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
5178 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
5179 { (exit 1); exit 1; }; }
5184 enable_thread_safety=yes
5189 if test "$enable_thread_safety" = yes; then
5191 cat >>confdefs.h <<\_ACEOF
5192 #define ENABLE_THREAD_SAFETY 1
5196 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5197 $as_echo "$enable_thread_safety" >&6; }
5201 # Optionally build Tcl modules (PL/Tcl)
5203 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5204 $as_echo_n "checking whether to build with Tcl... " >&6; }
5208 # Check whether --with-tcl was given.
5209 if test "${with_tcl+set}" = set; then
5219 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5220 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5221 { (exit 1); exit 1; }; }
5231 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
5232 $as_echo "$with_tcl" >&6; }
5235 # We see if the path to the Tcl/Tk configuration scripts is specified.
5236 # This will override the use of tclsh to find the paths to search.
5241 # Check whether --with-tclconfig was given.
5242 if test "${with_tclconfig+set}" = set; then
5243 withval=$with_tclconfig;
5246 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5247 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5248 { (exit 1); exit 1; }; }
5251 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5252 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5253 { (exit 1); exit 1; }; }
5265 # Optionally build Perl modules (PL/Perl)
5267 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5268 $as_echo_n "checking whether to build Perl modules... " >&6; }
5272 # Check whether --with-perl was given.
5273 if test "${with_perl+set}" = set; then
5283 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5284 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5285 { (exit 1); exit 1; }; }
5295 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5296 $as_echo "$with_perl" >&6; }
5300 # Optionally build Python modules (PL/Python)
5302 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5303 $as_echo_n "checking whether to build Python modules... " >&6; }
5307 # Check whether --with-python was given.
5308 if test "${with_python+set}" = set; then
5309 withval=$with_python;
5318 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5319 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5320 { (exit 1); exit 1; }; }
5330 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5331 $as_echo "$with_python" >&6; }
5337 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5338 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5342 # Check whether --with-gssapi was given.
5343 if test "${with_gssapi+set}" = set; then
5344 withval=$with_gssapi;
5349 cat >>confdefs.h <<\_ACEOF
5350 #define ENABLE_GSS 1
5353 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5360 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5361 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5362 { (exit 1); exit 1; }; }
5372 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5373 $as_echo "$with_gssapi" >&6; }
5378 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5379 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5383 # Check whether --with-krb5 was given.
5384 if test "${with_krb5+set}" = set; then
5390 cat >>confdefs.h <<\_ACEOF
5394 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5401 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5402 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5403 { (exit 1); exit 1; }; }
5413 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5414 $as_echo "$with_krb5" >&6; }
5421 # Kerberos configuration parameters
5426 # Check whether --with-krb-srvnam was given.
5427 if test "${with_krb_srvnam+set}" = set; then
5428 withval=$with_krb_srvnam;
5431 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5432 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5433 { (exit 1); exit 1; }; }
5436 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5437 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5438 { (exit 1); exit 1; }; }
5446 with_krb_srvnam="postgres"
5451 cat >>confdefs.h <<_ACEOF
5452 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5460 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5461 $as_echo_n "checking whether to build with PAM support... " >&6; }
5465 # Check whether --with-pam was given.
5466 if test "${with_pam+set}" = set; then
5471 cat >>confdefs.h <<\_ACEOF
5480 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5481 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5482 { (exit 1); exit 1; }; }
5492 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5493 $as_echo "$with_pam" >&6; }
5499 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5500 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5504 # Check whether --with-ldap was given.
5505 if test "${with_ldap+set}" = set; then
5510 cat >>confdefs.h <<\_ACEOF
5519 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5520 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5521 { (exit 1); exit 1; }; }
5531 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5532 $as_echo "$with_ldap" >&6; }
5538 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5539 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5543 # Check whether --with-bonjour was given.
5544 if test "${with_bonjour+set}" = set; then
5545 withval=$with_bonjour;
5549 cat >>confdefs.h <<\_ACEOF
5550 #define USE_BONJOUR 1
5558 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5559 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5560 { (exit 1); exit 1; }; }
5570 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5571 $as_echo "$with_bonjour" >&6; }
5577 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5578 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5582 # Check whether --with-openssl was given.
5583 if test "${with_openssl+set}" = set; then
5584 withval=$with_openssl;
5588 cat >>confdefs.h <<\_ACEOF
5597 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5598 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5599 { (exit 1); exit 1; }; }
5609 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5610 $as_echo "$with_openssl" >&6; }
5616 { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5617 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5621 # Check whether --with-selinux was given.
5622 if test "${with_selinux+set}" = set; then
5623 withval=$with_selinux;
5632 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5633 $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5634 { (exit 1); exit 1; }; }
5645 { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5646 $as_echo "$with_selinux" >&6; }
5654 # Check whether --with-readline was given.
5655 if test "${with_readline+set}" = set; then
5656 withval=$with_readline;
5665 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5666 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5667 { (exit 1); exit 1; }; }
5677 # readline on MinGW has problems with backslashes in psql and other bugs.
5678 # This is particularly a problem with non-US code pages.
5679 # Therefore disable its use until we understand the cause. 2004-07-20
5680 if test "$PORTNAME" = "win32"; then
5681 if test "$with_readline" = yes; then
5682 { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5683 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5695 # Check whether --with-libedit-preferred was given.
5696 if test "${with_libedit_preferred+set}" = set; then
5697 withval=$with_libedit_preferred;
5706 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5707 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5708 { (exit 1); exit 1; }; }
5713 with_libedit_preferred=no
5726 # Check whether --with-ossp-uuid was given.
5727 if test "${with_ossp_uuid+set}" = set; then
5728 withval=$with_ossp_uuid;
5737 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5738 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5739 { (exit 1); exit 1; }; }
5758 # Check whether --with-libxml was given.
5759 if test "${with_libxml+set}" = set; then
5760 withval=$with_libxml;
5764 cat >>confdefs.h <<\_ACEOF
5765 #define USE_LIBXML 1
5773 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5774 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5775 { (exit 1); exit 1; }; }
5786 if test "$with_libxml" = yes ; then
5787 for ac_prog in xml2-config
5789 # Extract the first word of "$ac_prog", so it can be a program name with args.
5790 set dummy $ac_prog; ac_word=$2
5791 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5792 $as_echo_n "checking for $ac_word... " >&6; }
5793 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5794 $as_echo_n "(cached) " >&6
5796 if test -n "$XML2_CONFIG"; then
5797 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5806 ac_cv_prog_XML2_CONFIG="$ac_prog"
5807 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5817 if test -n "$XML2_CONFIG"; then
5818 { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5819 $as_echo "$XML2_CONFIG" >&6; }
5821 { $as_echo "$as_me:$LINENO: result: no" >&5
5822 $as_echo "no" >&6; }
5826 test -n "$XML2_CONFIG" && break
5829 if test -n "$XML2_CONFIG"; then
5830 for pgac_option in `$XML2_CONFIG --cflags`; do
5831 case $pgac_option in
5832 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5835 for pgac_option in `$XML2_CONFIG --libs`; do
5836 case $pgac_option in
5837 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5851 # Check whether --with-libxslt was given.
5852 if test "${with_libxslt+set}" = set; then
5853 withval=$with_libxslt;
5857 cat >>confdefs.h <<\_ACEOF
5858 #define USE_LIBXSLT 1
5866 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5867 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5868 { (exit 1); exit 1; }; }
5888 # Check whether --with-system-tzdata was given.
5889 if test "${with_system_tzdata+set}" = set; then
5890 withval=$with_system_tzdata;
5893 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5894 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5895 { (exit 1); exit 1; }; }
5898 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5899 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5900 { (exit 1); exit 1; }; }
5918 # Check whether --with-zlib was given.
5919 if test "${with_zlib+set}" = set; then
5929 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5930 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5931 { (exit 1); exit 1; }; }
5947 # Assume system is ELF if it predefines __ELF__ as 1,
5948 # otherwise believe host_os based default.
5950 freebsd1*|freebsd2*) elf=no;;
5951 freebsd3*|freebsd4*) elf=yes;;
5955 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5956 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5957 if test "${ac_cv_path_GREP+set}" = set; then
5958 $as_echo_n "(cached) " >&6
5960 if test -z "$GREP"; then
5961 ac_path_GREP_found=false
5962 # Loop through the user's path and test for each of PROGNAME-LIST
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5967 test -z "$as_dir" && as_dir=.
5968 for ac_prog in grep ggrep; do
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5971 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5972 # Check for GNU ac_path_GREP and select it if it is found.
5973 # Check for GNU $ac_path_GREP
5974 case `"$ac_path_GREP" --version 2>&1` in
5976 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5979 $as_echo_n 0123456789 >"conftest.in"
5982 cat "conftest.in" "conftest.in" >"conftest.tmp"
5983 mv "conftest.tmp" "conftest.in"
5984 cp "conftest.in" "conftest.nl"
5985 $as_echo 'GREP' >> "conftest.nl"
5986 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5987 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5988 ac_count=`expr $ac_count + 1`
5989 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5990 # Best one so far, save it but keep looking for a better one
5991 ac_cv_path_GREP="$ac_path_GREP"
5992 ac_path_GREP_max=$ac_count
5994 # 10*(2^10) chars as input seems more than enough
5995 test $ac_count -gt 10 && break
5997 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6000 $ac_path_GREP_found && break 3
6005 if test -z "$ac_cv_path_GREP"; then
6006 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6007 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6008 { (exit 1); exit 1; }; }
6011 ac_cv_path_GREP=$GREP
6015 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6016 $as_echo "$ac_cv_path_GREP" >&6; }
6017 GREP="$ac_cv_path_GREP"
6020 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6021 $as_echo_n "checking for egrep... " >&6; }
6022 if test "${ac_cv_path_EGREP+set}" = set; then
6023 $as_echo_n "(cached) " >&6
6025 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6026 then ac_cv_path_EGREP="$GREP -E"
6028 if test -z "$EGREP"; then
6029 ac_path_EGREP_found=false
6030 # Loop through the user's path and test for each of PROGNAME-LIST
6031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6035 test -z "$as_dir" && as_dir=.
6036 for ac_prog in egrep; do
6037 for ac_exec_ext in '' $ac_executable_extensions; do
6038 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6039 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6040 # Check for GNU ac_path_EGREP and select it if it is found.
6041 # Check for GNU $ac_path_EGREP
6042 case `"$ac_path_EGREP" --version 2>&1` in
6044 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6047 $as_echo_n 0123456789 >"conftest.in"
6050 cat "conftest.in" "conftest.in" >"conftest.tmp"
6051 mv "conftest.tmp" "conftest.in"
6052 cp "conftest.in" "conftest.nl"
6053 $as_echo 'EGREP' >> "conftest.nl"
6054 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6055 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6056 ac_count=`expr $ac_count + 1`
6057 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6058 # Best one so far, save it but keep looking for a better one
6059 ac_cv_path_EGREP="$ac_path_EGREP"
6060 ac_path_EGREP_max=$ac_count
6062 # 10*(2^10) chars as input seems more than enough
6063 test $ac_count -gt 10 && break
6065 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6068 $ac_path_EGREP_found && break 3
6073 if test -z "$ac_cv_path_EGREP"; then
6074 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6075 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6076 { (exit 1); exit 1; }; }
6079 ac_cv_path_EGREP=$EGREP
6084 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6085 $as_echo "$ac_cv_path_EGREP" >&6; }
6086 EGREP="$ac_cv_path_EGREP"
6089 cat >conftest.$ac_ext <<_ACEOF
6092 cat confdefs.h >>conftest.$ac_ext
6093 cat >>conftest.$ac_ext <<_ACEOF
6094 /* end confdefs.h. */
6100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6101 $EGREP "yes" >/dev/null 2>&1; then
6104 if test "X$elf" = "Xyes" ; then
6118 CPPFLAGS="$CPPFLAGS $INCLUDES"
6119 LDFLAGS="$LDFLAGS $LIBDIRS"
6125 # Check whether --with-gnu-ld was given.
6126 if test "${with_gnu_ld+set}" = set; then
6127 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6133 if test "$GCC" = yes; then
6134 # Check if gcc -print-prog-name=ld gives a path.
6135 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6136 $as_echo_n "checking for ld used by GCC... " >&6; }
6139 # gcc leaves a trailing carriage return which upsets mingw
6140 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6142 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6145 # Accept absolute paths.
6146 [\\/]* | [A-Za-z]:[\\/]*)
6147 re_direlt='/[^/][^/]*/\.\./'
6148 # Canonicalize the path of ld
6149 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6150 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6151 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6153 test -z "$LD" && LD="$ac_prog"
6156 # If it fails, then pretend we aren't using GCC.
6160 # If it is relative, then search for the first ld in PATH.
6164 elif test "$with_gnu_ld" = yes; then
6165 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6166 $as_echo_n "checking for GNU ld... " >&6; }
6168 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6169 $as_echo_n "checking for non-GNU ld... " >&6; }
6171 if test "${ac_cv_path_LD+set}" = set; then
6172 $as_echo_n "(cached) " >&6
6174 if test -z "$LD"; then
6175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6176 for ac_dir in $PATH; do
6177 test -z "$ac_dir" && ac_dir=.
6178 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6179 ac_cv_path_LD="$ac_dir/$ac_prog"
6180 # Check to see if the program is GNU ld. I'd rather use --version,
6181 # but apparently some GNU ld's only accept -v.
6182 # Break only if it was the GNU/non-GNU ld that we prefer.
6183 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6184 test "$with_gnu_ld" != no && break
6186 test "$with_gnu_ld" != yes && break
6192 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6197 if test -n "$LD"; then
6198 { $as_echo "$as_me:$LINENO: result: $LD" >&5
6199 $as_echo "$LD" >&6; }
6201 { $as_echo "$as_me:$LINENO: result: no" >&5
6202 $as_echo "no" >&6; }
6204 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6205 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6206 { (exit 1); exit 1; }; }
6207 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6208 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6209 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6210 $as_echo_n "(cached) " >&6
6212 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6213 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6214 ac_cv_prog_gnu_ld=yes
6216 ac_cv_prog_gnu_ld=no
6219 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6220 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6221 with_gnu_ld=$ac_cv_prog_gnu_ld
6226 case $host_os in sysv5*)
6227 { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
6228 $as_echo_n "checking whether ld -R works... " >&6; }
6229 if test "${pgac_cv_prog_ld_R+set}" = set; then
6230 $as_echo_n "(cached) " >&6
6233 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6234 cat >conftest.$ac_ext <<_ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6249 rm -f conftest.$ac_objext conftest$ac_exeext
6250 if { (ac_try="$ac_link"
6252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6253 *) ac_try_echo=$ac_try;;
6255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6256 $as_echo "$ac_try_echo") >&5
6257 (eval "$ac_link") 2>conftest.er1
6259 grep -v '^ *+' conftest.er1 >conftest.err
6261 cat conftest.err >&5
6262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } && {
6264 test -z "$ac_c_werror_flag" ||
6265 test ! -s conftest.err
6266 } && test -s conftest$ac_exeext && {
6267 test "$cross_compiling" = yes ||
6268 $as_test_x conftest$ac_exeext
6270 pgac_cv_prog_ld_R=yes
6272 $as_echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6275 pgac_cv_prog_ld_R=no
6278 rm -rf conftest.dSYM
6279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6280 conftest$ac_exeext conftest.$ac_ext
6281 LDFLAGS=$pgac_save_LDFLAGS
6284 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6285 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6286 ld_R_works=$pgac_cv_prog_ld_R
6289 if test -n "$ac_tool_prefix"; then
6290 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6291 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6292 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6293 $as_echo_n "checking for $ac_word... " >&6; }
6294 if test "${ac_cv_prog_RANLIB+set}" = set; then
6295 $as_echo_n "(cached) " >&6
6297 if test -n "$RANLIB"; then
6298 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 test -z "$as_dir" && as_dir=.
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6307 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6308 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 RANLIB=$ac_cv_prog_RANLIB
6318 if test -n "$RANLIB"; then
6319 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6320 $as_echo "$RANLIB" >&6; }
6322 { $as_echo "$as_me:$LINENO: result: no" >&5
6323 $as_echo "no" >&6; }
6328 if test -z "$ac_cv_prog_RANLIB"; then
6329 ac_ct_RANLIB=$RANLIB
6330 # Extract the first word of "ranlib", so it can be a program name with args.
6331 set dummy ranlib; ac_word=$2
6332 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6333 $as_echo_n "checking for $ac_word... " >&6; }
6334 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6335 $as_echo_n "(cached) " >&6
6337 if test -n "$ac_ct_RANLIB"; then
6338 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 test -z "$as_dir" && as_dir=.
6345 for ac_exec_ext in '' $ac_executable_extensions; do
6346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6347 ac_cv_prog_ac_ct_RANLIB="ranlib"
6348 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6357 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6358 if test -n "$ac_ct_RANLIB"; then
6359 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6360 $as_echo "$ac_ct_RANLIB" >&6; }
6362 { $as_echo "$as_me:$LINENO: result: no" >&5
6363 $as_echo "no" >&6; }
6366 if test "x$ac_ct_RANLIB" = x; then
6369 case $cross_compiling:$ac_tool_warned in
6371 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6373 ac_tool_warned=yes ;;
6375 RANLIB=$ac_ct_RANLIB
6378 RANLIB="$ac_cv_prog_RANLIB"
6382 if test -n "$ac_tool_prefix"; then
6383 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6384 set dummy ${ac_tool_prefix}strip; ac_word=$2
6385 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6386 $as_echo_n "checking for $ac_word... " >&6; }
6387 if test "${ac_cv_prog_STRIP+set}" = set; then
6388 $as_echo_n "(cached) " >&6
6390 if test -n "$STRIP"; then
6391 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 test -z "$as_dir" && as_dir=.
6398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6400 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 STRIP=$ac_cv_prog_STRIP
6411 if test -n "$STRIP"; then
6412 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6413 $as_echo "$STRIP" >&6; }
6415 { $as_echo "$as_me:$LINENO: result: no" >&5
6416 $as_echo "no" >&6; }
6421 if test -z "$ac_cv_prog_STRIP"; then
6423 # Extract the first word of "strip", so it can be a program name with args.
6424 set dummy strip; ac_word=$2
6425 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6426 $as_echo_n "checking for $ac_word... " >&6; }
6427 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6428 $as_echo_n "(cached) " >&6
6430 if test -n "$ac_ct_STRIP"; then
6431 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 test -z "$as_dir" && as_dir=.
6438 for ac_exec_ext in '' $ac_executable_extensions; do
6439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6440 ac_cv_prog_ac_ct_STRIP="strip"
6441 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6451 if test -n "$ac_ct_STRIP"; then
6452 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6453 $as_echo "$ac_ct_STRIP" >&6; }
6455 { $as_echo "$as_me:$LINENO: result: no" >&5
6456 $as_echo "no" >&6; }
6459 if test "x$ac_ct_STRIP" = x; then
6462 case $cross_compiling:$ac_tool_warned in
6464 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6466 ac_tool_warned=yes ;;
6471 STRIP="$ac_cv_prog_STRIP"
6475 { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6476 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6477 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6478 STRIP_STATIC_LIB="$STRIP -x"
6479 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6480 { $as_echo "$as_me:$LINENO: result: yes" >&5
6481 $as_echo "yes" >&6; }
6485 { $as_echo "$as_me:$LINENO: result: no" >&5
6486 $as_echo "no" >&6; }
6491 if test -n "$ac_tool_prefix"; then
6492 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6493 set dummy ${ac_tool_prefix}ar; ac_word=$2
6494 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6495 $as_echo_n "checking for $ac_word... " >&6; }
6496 if test "${ac_cv_prog_AR+set}" = set; then
6497 $as_echo_n "(cached) " >&6
6499 if test -n "$AR"; then
6500 ac_cv_prog_AR="$AR" # Let the user override the test.
6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6509 ac_cv_prog_AR="${ac_tool_prefix}ar"
6510 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6520 if test -n "$AR"; then
6521 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6522 $as_echo "$AR" >&6; }
6524 { $as_echo "$as_me:$LINENO: result: no" >&5
6525 $as_echo "no" >&6; }
6530 if test -z "$ac_cv_prog_AR"; then
6532 # Extract the first word of "ar", so it can be a program name with args.
6533 set dummy ar; ac_word=$2
6534 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6535 $as_echo_n "checking for $ac_word... " >&6; }
6536 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6537 $as_echo_n "(cached) " >&6
6539 if test -n "$ac_ct_AR"; then
6540 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 test -z "$as_dir" && as_dir=.
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6549 ac_cv_prog_ac_ct_AR="ar"
6550 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6560 if test -n "$ac_ct_AR"; then
6561 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6562 $as_echo "$ac_ct_AR" >&6; }
6564 { $as_echo "$as_me:$LINENO: result: no" >&5
6565 $as_echo "no" >&6; }
6568 if test "x$ac_ct_AR" = x; then
6571 case $cross_compiling:$ac_tool_warned in
6573 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6575 ac_tool_warned=yes ;;
6583 if test "$PORTNAME" = "win32"; then
6584 if test -n "$ac_tool_prefix"; then
6585 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6586 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6588 $as_echo_n "checking for $ac_word... " >&6; }
6589 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6590 $as_echo_n "(cached) " >&6
6592 if test -n "$DLLTOOL"; then
6593 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6603 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 DLLTOOL=$ac_cv_prog_DLLTOOL
6613 if test -n "$DLLTOOL"; then
6614 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6615 $as_echo "$DLLTOOL" >&6; }
6617 { $as_echo "$as_me:$LINENO: result: no" >&5
6618 $as_echo "no" >&6; }
6623 if test -z "$ac_cv_prog_DLLTOOL"; then
6624 ac_ct_DLLTOOL=$DLLTOOL
6625 # Extract the first word of "dlltool", so it can be a program name with args.
6626 set dummy dlltool; ac_word=$2
6627 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6630 $as_echo_n "(cached) " >&6
6632 if test -n "$ac_ct_DLLTOOL"; then
6633 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6643 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6653 if test -n "$ac_ct_DLLTOOL"; then
6654 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6655 $as_echo "$ac_ct_DLLTOOL" >&6; }
6657 { $as_echo "$as_me:$LINENO: result: no" >&5
6658 $as_echo "no" >&6; }
6661 if test "x$ac_ct_DLLTOOL" = x; then
6664 case $cross_compiling:$ac_tool_warned in
6666 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6668 ac_tool_warned=yes ;;
6670 DLLTOOL=$ac_ct_DLLTOOL
6673 DLLTOOL="$ac_cv_prog_DLLTOOL"
6676 if test -n "$ac_tool_prefix"; then
6677 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6678 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6679 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6680 $as_echo_n "checking for $ac_word... " >&6; }
6681 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6682 $as_echo_n "(cached) " >&6
6684 if test -n "$DLLWRAP"; then
6685 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6694 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6695 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 DLLWRAP=$ac_cv_prog_DLLWRAP
6705 if test -n "$DLLWRAP"; then
6706 { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6707 $as_echo "$DLLWRAP" >&6; }
6709 { $as_echo "$as_me:$LINENO: result: no" >&5
6710 $as_echo "no" >&6; }
6715 if test -z "$ac_cv_prog_DLLWRAP"; then
6716 ac_ct_DLLWRAP=$DLLWRAP
6717 # Extract the first word of "dllwrap", so it can be a program name with args.
6718 set dummy dllwrap; ac_word=$2
6719 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6720 $as_echo_n "checking for $ac_word... " >&6; }
6721 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6722 $as_echo_n "(cached) " >&6
6724 if test -n "$ac_ct_DLLWRAP"; then
6725 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6735 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6745 if test -n "$ac_ct_DLLWRAP"; then
6746 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6747 $as_echo "$ac_ct_DLLWRAP" >&6; }
6749 { $as_echo "$as_me:$LINENO: result: no" >&5
6750 $as_echo "no" >&6; }
6753 if test "x$ac_ct_DLLWRAP" = x; then
6756 case $cross_compiling:$ac_tool_warned in
6758 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6760 ac_tool_warned=yes ;;
6762 DLLWRAP=$ac_ct_DLLWRAP
6765 DLLWRAP="$ac_cv_prog_DLLWRAP"
6768 if test -n "$ac_tool_prefix"; then
6769 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6770 set dummy ${ac_tool_prefix}windres; ac_word=$2
6771 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6772 $as_echo_n "checking for $ac_word... " >&6; }
6773 if test "${ac_cv_prog_WINDRES+set}" = set; then
6774 $as_echo_n "(cached) " >&6
6776 if test -n "$WINDRES"; then
6777 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6786 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6787 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 WINDRES=$ac_cv_prog_WINDRES
6797 if test -n "$WINDRES"; then
6798 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6799 $as_echo "$WINDRES" >&6; }
6801 { $as_echo "$as_me:$LINENO: result: no" >&5
6802 $as_echo "no" >&6; }
6807 if test -z "$ac_cv_prog_WINDRES"; then
6808 ac_ct_WINDRES=$WINDRES
6809 # Extract the first word of "windres", so it can be a program name with args.
6810 set dummy windres; ac_word=$2
6811 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6812 $as_echo_n "checking for $ac_word... " >&6; }
6813 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6814 $as_echo_n "(cached) " >&6
6816 if test -n "$ac_ct_WINDRES"; then
6817 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_prog_ac_ct_WINDRES="windres"
6827 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6837 if test -n "$ac_ct_WINDRES"; then
6838 { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6839 $as_echo "$ac_ct_WINDRES" >&6; }
6841 { $as_echo "$as_me:$LINENO: result: no" >&5
6842 $as_echo "no" >&6; }
6845 if test "x$ac_ct_WINDRES" = x; then
6848 case $cross_compiling:$ac_tool_warned in
6850 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6852 ac_tool_warned=yes ;;
6854 WINDRES=$ac_ct_WINDRES
6857 WINDRES="$ac_cv_prog_WINDRES"
6862 # Find a good install program. We prefer a C program (faster),
6863 # so one script is as good as another. But avoid the broken or
6864 # incompatible versions:
6865 # SysV /etc/install, /usr/sbin/install
6866 # SunOS /usr/etc/install
6867 # IRIX /sbin/install
6869 # AmigaOS /C/install, which installs bootblocks on floppy discs
6870 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6871 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6872 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6873 # OS/2's system install, which has a completely different semantic
6874 # ./install, which can be erroneously created by make from ./install.sh.
6875 # Reject install programs that cannot install multiple files.
6876 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6877 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6878 if test -z "$INSTALL"; then
6879 if test "${ac_cv_path_install+set}" = set; then
6880 $as_echo_n "(cached) " >&6
6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 test -z "$as_dir" && as_dir=.
6887 # Account for people who put trailing slashes in PATH elements.
6889 ./ | .// | /cC/* | \
6890 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6891 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6894 # OSF1 and SCO ODT 3.0 have their own names for install.
6895 # Don't use installbsd from OSF since it installs stuff as root
6897 for ac_prog in ginstall scoinst install; do
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6900 if test $ac_prog = install &&
6901 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6902 # AIX install. It has an incompatible calling convention.
6904 elif test $ac_prog = install &&
6905 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6906 # program-specific install script used by HP pwplus--don't use.
6909 rm -rf conftest.one conftest.two conftest.dir
6910 echo one > conftest.one
6911 echo two > conftest.two
6913 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6914 test -s conftest.one && test -s conftest.two &&
6915 test -s conftest.dir/conftest.one &&
6916 test -s conftest.dir/conftest.two
6918 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6931 rm -rf conftest.one conftest.two conftest.dir
6934 if test "${ac_cv_path_install+set}" = set; then
6935 INSTALL=$ac_cv_path_install
6937 # As a last resort, use the slow shell script. Don't cache a
6938 # value for INSTALL within a source directory, because that will
6939 # break other packages using the cache if that directory is
6940 # removed, or if the value is a relative name.
6941 INSTALL=$ac_install_sh
6944 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
6945 $as_echo "$INSTALL" >&6; }
6947 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6948 # It thinks the first close brace ends the variable substitution.
6949 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6951 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6953 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6955 # When Autoconf chooses install-sh as install program it tries to generate
6956 # a relative path to it in each makefile where it subsitutes it. This clashes
6957 # with our Makefile.global concept. This workaround helps.
6959 *install-sh*) install_bin='';;
6960 *) install_bin=$INSTALL;;
6964 # Extract the first word of "tar", so it can be a program name with args.
6965 set dummy tar; ac_word=$2
6966 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if test "${ac_cv_path_TAR+set}" = set; then
6969 $as_echo_n "(cached) " >&6
6973 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 test -z "$as_dir" && as_dir=.
6981 for ac_exec_ext in '' $ac_executable_extensions; do
6982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6983 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6984 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 if test -n "$TAR"; then
6996 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6997 $as_echo "$TAR" >&6; }
6999 { $as_echo "$as_me:$LINENO: result: no" >&5
7000 $as_echo "no" >&6; }
7004 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7005 $as_echo_n "checking whether ln -s works... " >&6; }
7007 if test "$LN_S" = "ln -s"; then
7008 { $as_echo "$as_me:$LINENO: result: yes" >&5
7009 $as_echo "yes" >&6; }
7011 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7012 $as_echo "no, using $LN_S" >&6; }
7015 for ac_prog in gawk mawk nawk awk
7017 # Extract the first word of "$ac_prog", so it can be a program name with args.
7018 set dummy $ac_prog; ac_word=$2
7019 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 $as_echo_n "checking for $ac_word... " >&6; }
7021 if test "${ac_cv_prog_AWK+set}" = set; then
7022 $as_echo_n "(cached) " >&6
7024 if test -n "$AWK"; then
7025 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 test -z "$as_dir" && as_dir=.
7032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7034 ac_cv_prog_AWK="$ac_prog"
7035 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7045 if test -n "$AWK"; then
7046 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
7047 $as_echo "$AWK" >&6; }
7049 { $as_echo "$as_me:$LINENO: result: no" >&5
7050 $as_echo "no" >&6; }
7054 test -n "$AWK" && break
7057 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
7058 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7059 if test -z "$MKDIR_P"; then
7060 if test "${ac_cv_path_mkdir+set}" = set; then
7061 $as_echo_n "(cached) " >&6
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7067 test -z "$as_dir" && as_dir=.
7068 for ac_prog in mkdir gmkdir; do
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7071 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7072 'mkdir (GNU coreutils) '* | \
7073 'mkdir (coreutils) '* | \
7074 'mkdir (fileutils) '4.1*)
7075 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7085 if test "${ac_cv_path_mkdir+set}" = set; then
7086 MKDIR_P="$ac_cv_path_mkdir -p"
7088 # As a last resort, use the slow shell script. Don't cache a
7089 # value for MKDIR_P within a source directory, because that will
7090 # break other packages using the cache if that directory is
7091 # removed, or if the value is a relative name.
7092 test -d ./--version && rmdir ./--version
7093 MKDIR_P="$ac_install_sh -d"
7096 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
7097 $as_echo "$MKDIR_P" >&6; }
7099 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7100 # a relative path to it in each makefile where it subsitutes it. This clashes
7101 # with our Makefile.global concept. This workaround helps.
7103 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7106 # Let the user override the search
7107 if test -z "$BISON"; then
7108 for ac_prog in bison
7110 # Extract the first word of "$ac_prog", so it can be a program name with args.
7111 set dummy $ac_prog; ac_word=$2
7112 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7113 $as_echo_n "checking for $ac_word... " >&6; }
7114 if test "${ac_cv_path_BISON+set}" = set; then
7115 $as_echo_n "(cached) " >&6
7119 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 test -z "$as_dir" && as_dir=.
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7129 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7130 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7140 BISON=$ac_cv_path_BISON
7141 if test -n "$BISON"; then
7142 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
7143 $as_echo "$BISON" >&6; }
7145 { $as_echo "$as_me:$LINENO: result: no" >&5
7146 $as_echo "no" >&6; }
7150 test -n "$BISON" && break
7155 if test "$BISON"; then
7156 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7157 { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
7158 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7159 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7161 { $as_echo "$as_me:$LINENO: WARNING:
7162 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7163 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7164 $as_echo "$as_me: WARNING:
7165 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7166 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7171 if test -z "$BISON"; then
7172 { $as_echo "$as_me:$LINENO: WARNING:
7173 *** Without Bison you will not be able to build PostgreSQL from Git nor
7174 *** change any of the parser definition files. You can obtain Bison from
7175 *** a GNU mirror site. (If you are using the official distribution of
7176 *** PostgreSQL then you do not need to worry about this, because the Bison
7177 *** output is pre-generated.)" >&5
7178 $as_echo "$as_me: WARNING:
7179 *** Without Bison you will not be able to build PostgreSQL from Git nor
7180 *** change any of the parser definition files. You can obtain Bison from
7181 *** a GNU mirror site. (If you are using the official distribution of
7182 *** PostgreSQL then you do not need to worry about this, because the Bison
7183 *** output is pre-generated.)" >&2;}
7185 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7188 { $as_echo "$as_me:$LINENO: checking for flex" >&5
7189 $as_echo_n "checking for flex... " >&6; }
7190 if test "${pgac_cv_path_flex+set}" = set; then
7191 $as_echo_n "(cached) " >&6
7193 # Let the user override the test
7194 if test -n "$FLEX"; then
7195 pgac_cv_path_flex=$FLEX
7199 for pgac_dir in $PATH; do
7201 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7204 for pgac_prog in flex lex; do
7205 pgac_candidate="$pgac_dir/$pgac_prog"
7206 if test -f "$pgac_candidate" \
7207 && $pgac_candidate --version </dev/null >/dev/null 2>&1
7209 echo '%%' > conftest.l
7210 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7211 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7212 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7214 pgac_cv_path_flex=$pgac_candidate
7217 { $as_echo "$as_me:$LINENO: WARNING:
7218 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7219 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7220 $as_echo "$as_me: WARNING:
7221 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7222 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7228 rm -f conftest.l lex.yy.c
7229 : ${pgac_cv_path_flex=no}
7233 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
7234 $as_echo "$pgac_cv_path_flex" >&6; }
7235 if test x"$pgac_cv_path_flex" = x"no"; then
7236 { $as_echo "$as_me:$LINENO: WARNING:
7237 *** Without Flex you will not be able to build PostgreSQL from Git nor
7238 *** change any of the scanner definition files. You can obtain Flex from
7239 *** a GNU mirror site. (If you are using the official distribution of
7240 *** PostgreSQL then you do not need to worry about this because the Flex
7241 *** output is pre-generated.)" >&5
7242 $as_echo "$as_me: WARNING:
7243 *** Without Flex you will not be able to build PostgreSQL from Git nor
7244 *** change any of the scanner definition files. You can obtain Flex from
7245 *** a GNU mirror site. (If you are using the official distribution of
7246 *** PostgreSQL then you do not need to worry about this because the Flex
7247 *** output is pre-generated.)" >&2;}
7251 FLEX=$pgac_cv_path_flex
7252 pgac_flex_version=`$FLEX --version 2>/dev/null`
7253 { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
7254 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7261 # Let the user override the search
7262 if test -z "$PERL"; then
7263 # Extract the first word of "perl", so it can be a program name with args.
7264 set dummy perl; ac_word=$2
7265 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if test "${ac_cv_path_PERL+set}" = set; then
7268 $as_echo_n "(cached) " >&6
7272 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 test -z "$as_dir" && as_dir=.
7280 for ac_exec_ext in '' $ac_executable_extensions; do
7281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7282 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7283 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7293 PERL=$ac_cv_path_PERL
7294 if test -n "$PERL"; then
7295 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
7296 $as_echo "$PERL" >&6; }
7298 { $as_echo "$as_me:$LINENO: result: no" >&5
7299 $as_echo "no" >&6; }
7305 if test "$PERL"; then
7306 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'`
7307 { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
7308 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7309 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7310 $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7312 { $as_echo "$as_me:$LINENO: WARNING:
7313 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7314 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7315 $as_echo "$as_me: WARNING:
7316 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7317 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7322 if test -z "$PERL"; then
7323 { $as_echo "$as_me:$LINENO: WARNING:
7324 *** Without Perl you will not be able to build PostgreSQL from Git.
7325 *** You can obtain Perl from any CPAN mirror site.
7326 *** (If you are using the official distribution of PostgreSQL then you do not
7327 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7328 $as_echo "$as_me: WARNING:
7329 *** Without Perl you will not be able to build PostgreSQL from Git.
7330 *** You can obtain Perl from any CPAN mirror site.
7331 *** (If you are using the official distribution of PostgreSQL then you do not
7332 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7335 if test "$with_perl" = yes; then
7336 if test -z "$PERL"; then
7337 { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
7338 $as_echo "$as_me: error: Perl not found" >&2;}
7339 { (exit 1); exit 1; }; }
7342 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7343 $as_echo_n "checking for Perl archlibexp... " >&6; }
7344 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7345 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7346 $as_echo "$perl_archlibexp" >&6; }
7347 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7348 $as_echo_n "checking for Perl privlibexp... " >&6; }
7349 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7350 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7351 $as_echo "$perl_privlibexp" >&6; }
7352 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7353 $as_echo_n "checking for Perl useshrplib... " >&6; }
7354 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7355 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7356 $as_echo "$perl_useshrplib" >&6; }
7358 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7359 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7360 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7361 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7362 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7363 if test -z "$perl_embed_ldflags" ; then
7364 { $as_echo "$as_me:$LINENO: result: no" >&5
7365 $as_echo "no" >&6; }
7366 { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7367 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7369 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
7370 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7372 { (exit 1); exit 1; }; }
7374 { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7375 $as_echo "$perl_embed_ldflags" >&6; }
7380 if test "$with_python" = yes; then
7381 # Extract the first word of "python", so it can be a program name with args.
7382 set dummy python; ac_word=$2
7383 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7384 $as_echo_n "checking for $ac_word... " >&6; }
7385 if test "${ac_cv_path_PYTHON+set}" = set; then
7386 $as_echo_n "(cached) " >&6
7390 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7400 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 PYTHON=$ac_cv_path_PYTHON
7412 if test -n "$PYTHON"; then
7413 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7414 $as_echo "$PYTHON" >&6; }
7416 { $as_echo "$as_me:$LINENO: result: no" >&5
7417 $as_echo "no" >&6; }
7421 if test x"$PYTHON" = x""; then
7422 { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7423 $as_echo "$as_me: error: Python not found" >&2;}
7424 { (exit 1); exit 1; }; }
7428 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7429 $as_echo_n "checking for Python distutils module... " >&6; }
7430 if "${PYTHON}" -c 'import distutils' 2>&5
7432 { $as_echo "$as_me:$LINENO: result: yes" >&5
7433 $as_echo "yes" >&6; }
7435 { $as_echo "$as_me:$LINENO: result: no" >&5
7436 $as_echo "no" >&6; }
7437 { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7438 $as_echo "$as_me: error: distutils module not found" >&2;}
7439 { (exit 1); exit 1; }; }
7441 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7442 $as_echo_n "checking Python configuration directory... " >&6; }
7443 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7444 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7445 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7446 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7448 # This should be enough of a message.
7449 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7450 $as_echo "$python_configdir" >&6; }
7453 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7454 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7456 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7457 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7458 python_so=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7459 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7461 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7463 # New way: use the official shared library
7464 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7465 python_libspec="-L${python_libdir} -l${ldlibrary}"
7467 # Old way: use libpython from python_configdir
7468 python_libdir="${python_configdir}"
7469 # LDVERSION was introduced in Python 3.2.
7470 python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7471 if test x"${python_ldversion}" = x""; then
7472 python_ldversion=$python_version
7474 python_libspec="-L${python_libdir} -lpython${python_ldversion}"
7477 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7479 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7480 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7483 # threaded python is not supported on OpenBSD
7484 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7485 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7486 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7487 if test "$pythreads" = "1"; then
7488 { $as_echo "$as_me:$LINENO: result: yes" >&5
7489 $as_echo "yes" >&6; }
7492 { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7493 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7494 { (exit 1); exit 1; }; }
7498 { $as_echo "$as_me:$LINENO: result: no" >&5
7499 $as_echo "no" >&6; }
7505 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7506 # Extract the first word of "zic", so it can be a program name with args.
7507 set dummy zic; ac_word=$2
7508 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7509 $as_echo_n "checking for $ac_word... " >&6; }
7510 if test "${ac_cv_path_ZIC+set}" = set; then
7511 $as_echo_n "(cached) " >&6
7515 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 test -z "$as_dir" && as_dir=.
7523 for ac_exec_ext in '' $ac_executable_extensions; do
7524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7525 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7526 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7537 if test -n "$ZIC"; then
7538 { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7539 $as_echo "$ZIC" >&6; }
7541 { $as_echo "$as_me:$LINENO: result: no" >&5
7542 $as_echo "no" >&6; }
7546 if test -z "$ZIC"; then
7547 { { $as_echo "$as_me:$LINENO: error:
7548 When cross-compiling, either use the option --with-system-tzdata to use
7549 existing time-zone data, or set the environment variable ZIC to a zic
7550 program to use during the build." >&5
7551 $as_echo "$as_me: error:
7552 When cross-compiling, either use the option --with-system-tzdata to use
7553 existing time-zone data, or set the environment variable ZIC to a zic
7554 program to use during the build." >&2;}
7555 { (exit 1); exit 1; }; }
7563 ## Most libraries are included only if they demonstrably provide a function
7564 ## we need, but libm is an exception: always include it, because there are
7565 ## too many compilers that play cute optimization games that will break
7566 ## probes for standard functions such as pow().
7570 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7571 $as_echo_n "checking for main in -lm... " >&6; }
7572 if test "${ac_cv_lib_m_main+set}" = set; then
7573 $as_echo_n "(cached) " >&6
7575 ac_check_lib_save_LIBS=$LIBS
7577 cat >conftest.$ac_ext <<_ACEOF
7580 cat confdefs.h >>conftest.$ac_ext
7581 cat >>conftest.$ac_ext <<_ACEOF
7582 /* end confdefs.h. */
7593 rm -f conftest.$ac_objext conftest$ac_exeext
7594 if { (ac_try="$ac_link"
7596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7597 *) ac_try_echo=$ac_try;;
7599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7600 $as_echo "$ac_try_echo") >&5
7601 (eval "$ac_link") 2>conftest.er1
7603 grep -v '^ *+' conftest.er1 >conftest.err
7605 cat conftest.err >&5
7606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); } && {
7608 test -z "$ac_c_werror_flag" ||
7609 test ! -s conftest.err
7610 } && test -s conftest$ac_exeext && {
7611 test "$cross_compiling" = yes ||
7612 $as_test_x conftest$ac_exeext
7614 ac_cv_lib_m_main=yes
7616 $as_echo "$as_me: failed program was:" >&5
7617 sed 's/^/| /' conftest.$ac_ext >&5
7622 rm -rf conftest.dSYM
7623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7624 conftest$ac_exeext conftest.$ac_ext
7625 LIBS=$ac_check_lib_save_LIBS
7627 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7628 $as_echo "$ac_cv_lib_m_main" >&6; }
7629 if test "x$ac_cv_lib_m_main" = x""yes; then
7630 cat >>confdefs.h <<_ACEOF
7638 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7639 $as_echo_n "checking for library containing setproctitle... " >&6; }
7640 if test "${ac_cv_search_setproctitle+set}" = set; then
7641 $as_echo_n "(cached) " >&6
7643 ac_func_search_save_LIBS=$LIBS
7644 cat >conftest.$ac_ext <<_ACEOF
7647 cat confdefs.h >>conftest.$ac_ext
7648 cat >>conftest.$ac_ext <<_ACEOF
7649 /* end confdefs.h. */
7651 /* Override any GCC internal prototype to avoid an error.
7652 Use char because int might match the return type of a GCC
7653 builtin and then its argument prototype would still apply. */
7657 char setproctitle ();
7661 return setproctitle ();
7666 for ac_lib in '' util; do
7667 if test -z "$ac_lib"; then
7668 ac_res="none required"
7671 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7673 rm -f conftest.$ac_objext conftest$ac_exeext
7674 if { (ac_try="$ac_link"
7676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7677 *) ac_try_echo=$ac_try;;
7679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7680 $as_echo "$ac_try_echo") >&5
7681 (eval "$ac_link") 2>conftest.er1
7683 grep -v '^ *+' conftest.er1 >conftest.err
7685 cat conftest.err >&5
7686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); } && {
7688 test -z "$ac_c_werror_flag" ||
7689 test ! -s conftest.err
7690 } && test -s conftest$ac_exeext && {
7691 test "$cross_compiling" = yes ||
7692 $as_test_x conftest$ac_exeext
7694 ac_cv_search_setproctitle=$ac_res
7696 $as_echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.$ac_ext >&5
7702 rm -rf conftest.dSYM
7703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7705 if test "${ac_cv_search_setproctitle+set}" = set; then
7709 if test "${ac_cv_search_setproctitle+set}" = set; then
7712 ac_cv_search_setproctitle=no
7715 LIBS=$ac_func_search_save_LIBS
7717 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7718 $as_echo "$ac_cv_search_setproctitle" >&6; }
7719 ac_res=$ac_cv_search_setproctitle
7720 if test "$ac_res" != no; then
7721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7725 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7726 $as_echo_n "checking for library containing dlopen... " >&6; }
7727 if test "${ac_cv_search_dlopen+set}" = set; then
7728 $as_echo_n "(cached) " >&6
7730 ac_func_search_save_LIBS=$LIBS
7731 cat >conftest.$ac_ext <<_ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7738 /* Override any GCC internal prototype to avoid an error.
7739 Use char because int might match the return type of a GCC
7740 builtin and then its argument prototype would still apply. */
7753 for ac_lib in '' dl; do
7754 if test -z "$ac_lib"; then
7755 ac_res="none required"
7758 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7760 rm -f conftest.$ac_objext conftest$ac_exeext
7761 if { (ac_try="$ac_link"
7763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7764 *) ac_try_echo=$ac_try;;
7766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7767 $as_echo "$ac_try_echo") >&5
7768 (eval "$ac_link") 2>conftest.er1
7770 grep -v '^ *+' conftest.er1 >conftest.err
7772 cat conftest.err >&5
7773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); } && {
7775 test -z "$ac_c_werror_flag" ||
7776 test ! -s conftest.err
7777 } && test -s conftest$ac_exeext && {
7778 test "$cross_compiling" = yes ||
7779 $as_test_x conftest$ac_exeext
7781 ac_cv_search_dlopen=$ac_res
7783 $as_echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7789 rm -rf conftest.dSYM
7790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7792 if test "${ac_cv_search_dlopen+set}" = set; then
7796 if test "${ac_cv_search_dlopen+set}" = set; then
7799 ac_cv_search_dlopen=no
7802 LIBS=$ac_func_search_save_LIBS
7804 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7805 $as_echo "$ac_cv_search_dlopen" >&6; }
7806 ac_res=$ac_cv_search_dlopen
7807 if test "$ac_res" != no; then
7808 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7812 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7813 $as_echo_n "checking for library containing socket... " >&6; }
7814 if test "${ac_cv_search_socket+set}" = set; then
7815 $as_echo_n "(cached) " >&6
7817 ac_func_search_save_LIBS=$LIBS
7818 cat >conftest.$ac_ext <<_ACEOF
7821 cat confdefs.h >>conftest.$ac_ext
7822 cat >>conftest.$ac_ext <<_ACEOF
7823 /* end confdefs.h. */
7825 /* Override any GCC internal prototype to avoid an error.
7826 Use char because int might match the return type of a GCC
7827 builtin and then its argument prototype would still apply. */
7840 for ac_lib in '' socket wsock32; do
7841 if test -z "$ac_lib"; then
7842 ac_res="none required"
7845 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7847 rm -f conftest.$ac_objext conftest$ac_exeext
7848 if { (ac_try="$ac_link"
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7854 $as_echo "$ac_try_echo") >&5
7855 (eval "$ac_link") 2>conftest.er1
7857 grep -v '^ *+' conftest.er1 >conftest.err
7859 cat conftest.err >&5
7860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } && {
7862 test -z "$ac_c_werror_flag" ||
7863 test ! -s conftest.err
7864 } && test -s conftest$ac_exeext && {
7865 test "$cross_compiling" = yes ||
7866 $as_test_x conftest$ac_exeext
7868 ac_cv_search_socket=$ac_res
7870 $as_echo "$as_me: failed program was:" >&5
7871 sed 's/^/| /' conftest.$ac_ext >&5
7876 rm -rf conftest.dSYM
7877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7879 if test "${ac_cv_search_socket+set}" = set; then
7883 if test "${ac_cv_search_socket+set}" = set; then
7886 ac_cv_search_socket=no
7889 LIBS=$ac_func_search_save_LIBS
7891 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7892 $as_echo "$ac_cv_search_socket" >&6; }
7893 ac_res=$ac_cv_search_socket
7894 if test "$ac_res" != no; then
7895 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7899 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7900 $as_echo_n "checking for library containing shl_load... " >&6; }
7901 if test "${ac_cv_search_shl_load+set}" = set; then
7902 $as_echo_n "(cached) " >&6
7904 ac_func_search_save_LIBS=$LIBS
7905 cat >conftest.$ac_ext <<_ACEOF
7908 cat confdefs.h >>conftest.$ac_ext
7909 cat >>conftest.$ac_ext <<_ACEOF
7910 /* end confdefs.h. */
7912 /* Override any GCC internal prototype to avoid an error.
7913 Use char because int might match the return type of a GCC
7914 builtin and then its argument prototype would still apply. */
7927 for ac_lib in '' dld; do
7928 if test -z "$ac_lib"; then
7929 ac_res="none required"
7932 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7934 rm -f conftest.$ac_objext conftest$ac_exeext
7935 if { (ac_try="$ac_link"
7937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938 *) ac_try_echo=$ac_try;;
7940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7941 $as_echo "$ac_try_echo") >&5
7942 (eval "$ac_link") 2>conftest.er1
7944 grep -v '^ *+' conftest.er1 >conftest.err
7946 cat conftest.err >&5
7947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); } && {
7949 test -z "$ac_c_werror_flag" ||
7950 test ! -s conftest.err
7951 } && test -s conftest$ac_exeext && {
7952 test "$cross_compiling" = yes ||
7953 $as_test_x conftest$ac_exeext
7955 ac_cv_search_shl_load=$ac_res
7957 $as_echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7963 rm -rf conftest.dSYM
7964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7966 if test "${ac_cv_search_shl_load+set}" = set; then
7970 if test "${ac_cv_search_shl_load+set}" = set; then
7973 ac_cv_search_shl_load=no
7976 LIBS=$ac_func_search_save_LIBS
7978 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7979 $as_echo "$ac_cv_search_shl_load" >&6; }
7980 ac_res=$ac_cv_search_shl_load
7981 if test "$ac_res" != no; then
7982 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7986 # We only use libld in port/dynloader/aix.c
7989 { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7990 $as_echo_n "checking for library containing ldopen... " >&6; }
7991 if test "${ac_cv_search_ldopen+set}" = set; then
7992 $as_echo_n "(cached) " >&6
7994 ac_func_search_save_LIBS=$LIBS
7995 cat >conftest.$ac_ext <<_ACEOF
7998 cat confdefs.h >>conftest.$ac_ext
7999 cat >>conftest.$ac_ext <<_ACEOF
8000 /* end confdefs.h. */
8002 /* Override any GCC internal prototype to avoid an error.
8003 Use char because int might match the return type of a GCC
8004 builtin and then its argument prototype would still apply. */
8017 for ac_lib in '' ld; do
8018 if test -z "$ac_lib"; then
8019 ac_res="none required"
8022 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8024 rm -f conftest.$ac_objext conftest$ac_exeext
8025 if { (ac_try="$ac_link"
8027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028 *) ac_try_echo=$ac_try;;
8030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8031 $as_echo "$ac_try_echo") >&5
8032 (eval "$ac_link") 2>conftest.er1
8034 grep -v '^ *+' conftest.er1 >conftest.err
8036 cat conftest.err >&5
8037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); } && {
8039 test -z "$ac_c_werror_flag" ||
8040 test ! -s conftest.err
8041 } && test -s conftest$ac_exeext && {
8042 test "$cross_compiling" = yes ||
8043 $as_test_x conftest$ac_exeext
8045 ac_cv_search_ldopen=$ac_res
8047 $as_echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8053 rm -rf conftest.dSYM
8054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8056 if test "${ac_cv_search_ldopen+set}" = set; then
8060 if test "${ac_cv_search_ldopen+set}" = set; then
8063 ac_cv_search_ldopen=no
8066 LIBS=$ac_func_search_save_LIBS
8068 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
8069 $as_echo "$ac_cv_search_ldopen" >&6; }
8070 ac_res=$ac_cv_search_ldopen
8071 if test "$ac_res" != no; then
8072 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8078 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
8079 $as_echo_n "checking for library containing getopt_long... " >&6; }
8080 if test "${ac_cv_search_getopt_long+set}" = set; then
8081 $as_echo_n "(cached) " >&6
8083 ac_func_search_save_LIBS=$LIBS
8084 cat >conftest.$ac_ext <<_ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h. */
8091 /* Override any GCC internal prototype to avoid an error.
8092 Use char because int might match the return type of a GCC
8093 builtin and then its argument prototype would still apply. */
8097 char getopt_long ();
8101 return getopt_long ();
8106 for ac_lib in '' getopt gnugetopt; do
8107 if test -z "$ac_lib"; then
8108 ac_res="none required"
8111 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8113 rm -f conftest.$ac_objext conftest$ac_exeext
8114 if { (ac_try="$ac_link"
8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8120 $as_echo "$ac_try_echo") >&5
8121 (eval "$ac_link") 2>conftest.er1
8123 grep -v '^ *+' conftest.er1 >conftest.err
8125 cat conftest.err >&5
8126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } && {
8128 test -z "$ac_c_werror_flag" ||
8129 test ! -s conftest.err
8130 } && test -s conftest$ac_exeext && {
8131 test "$cross_compiling" = yes ||
8132 $as_test_x conftest$ac_exeext
8134 ac_cv_search_getopt_long=$ac_res
8136 $as_echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8142 rm -rf conftest.dSYM
8143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8145 if test "${ac_cv_search_getopt_long+set}" = set; then
8149 if test "${ac_cv_search_getopt_long+set}" = set; then
8152 ac_cv_search_getopt_long=no
8155 LIBS=$ac_func_search_save_LIBS
8157 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
8158 $as_echo "$ac_cv_search_getopt_long" >&6; }
8159 ac_res=$ac_cv_search_getopt_long
8160 if test "$ac_res" != no; then
8161 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8165 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
8166 $as_echo_n "checking for library containing crypt... " >&6; }
8167 if test "${ac_cv_search_crypt+set}" = set; then
8168 $as_echo_n "(cached) " >&6
8170 ac_func_search_save_LIBS=$LIBS
8171 cat >conftest.$ac_ext <<_ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8178 /* Override any GCC internal prototype to avoid an error.
8179 Use char because int might match the return type of a GCC
8180 builtin and then its argument prototype would still apply. */
8193 for ac_lib in '' crypt; do
8194 if test -z "$ac_lib"; then
8195 ac_res="none required"
8198 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8200 rm -f conftest.$ac_objext conftest$ac_exeext
8201 if { (ac_try="$ac_link"
8203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204 *) ac_try_echo=$ac_try;;
8206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8207 $as_echo "$ac_try_echo") >&5
8208 (eval "$ac_link") 2>conftest.er1
8210 grep -v '^ *+' conftest.er1 >conftest.err
8212 cat conftest.err >&5
8213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); } && {
8215 test -z "$ac_c_werror_flag" ||
8216 test ! -s conftest.err
8217 } && test -s conftest$ac_exeext && {
8218 test "$cross_compiling" = yes ||
8219 $as_test_x conftest$ac_exeext
8221 ac_cv_search_crypt=$ac_res
8223 $as_echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8229 rm -rf conftest.dSYM
8230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8232 if test "${ac_cv_search_crypt+set}" = set; then
8236 if test "${ac_cv_search_crypt+set}" = set; then
8239 ac_cv_search_crypt=no
8242 LIBS=$ac_func_search_save_LIBS
8244 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
8245 $as_echo "$ac_cv_search_crypt" >&6; }
8246 ac_res=$ac_cv_search_crypt
8247 if test "$ac_res" != no; then
8248 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8253 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
8254 $as_echo_n "checking for library containing fdatasync... " >&6; }
8255 if test "${ac_cv_search_fdatasync+set}" = set; then
8256 $as_echo_n "(cached) " >&6
8258 ac_func_search_save_LIBS=$LIBS
8259 cat >conftest.$ac_ext <<_ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8266 /* Override any GCC internal prototype to avoid an error.
8267 Use char because int might match the return type of a GCC
8268 builtin and then its argument prototype would still apply. */
8276 return fdatasync ();
8281 for ac_lib in '' rt posix4; do
8282 if test -z "$ac_lib"; then
8283 ac_res="none required"
8286 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8288 rm -f conftest.$ac_objext conftest$ac_exeext
8289 if { (ac_try="$ac_link"
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8295 $as_echo "$ac_try_echo") >&5
8296 (eval "$ac_link") 2>conftest.er1
8298 grep -v '^ *+' conftest.er1 >conftest.err
8300 cat conftest.err >&5
8301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } && {
8303 test -z "$ac_c_werror_flag" ||
8304 test ! -s conftest.err
8305 } && test -s conftest$ac_exeext && {
8306 test "$cross_compiling" = yes ||
8307 $as_test_x conftest$ac_exeext
8309 ac_cv_search_fdatasync=$ac_res
8311 $as_echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8317 rm -rf conftest.dSYM
8318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8320 if test "${ac_cv_search_fdatasync+set}" = set; then
8324 if test "${ac_cv_search_fdatasync+set}" = set; then
8327 ac_cv_search_fdatasync=no
8330 LIBS=$ac_func_search_save_LIBS
8332 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8333 $as_echo "$ac_cv_search_fdatasync" >&6; }
8334 ac_res=$ac_cv_search_fdatasync
8335 if test "$ac_res" != no; then
8336 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8340 # Required for thread_test.c on Solaris 2.5:
8341 # Other ports use it too (HP-UX) so test unconditionally
8342 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
8343 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8344 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8345 $as_echo_n "(cached) " >&6
8347 ac_func_search_save_LIBS=$LIBS
8348 cat >conftest.$ac_ext <<_ACEOF
8351 cat confdefs.h >>conftest.$ac_ext
8352 cat >>conftest.$ac_ext <<_ACEOF
8353 /* end confdefs.h. */
8355 /* Override any GCC internal prototype to avoid an error.
8356 Use char because int might match the return type of a GCC
8357 builtin and then its argument prototype would still apply. */
8361 char gethostbyname_r ();
8365 return gethostbyname_r ();
8370 for ac_lib in '' nsl; do
8371 if test -z "$ac_lib"; then
8372 ac_res="none required"
8375 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8377 rm -f conftest.$ac_objext conftest$ac_exeext
8378 if { (ac_try="$ac_link"
8380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381 *) ac_try_echo=$ac_try;;
8383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8384 $as_echo "$ac_try_echo") >&5
8385 (eval "$ac_link") 2>conftest.er1
8387 grep -v '^ *+' conftest.er1 >conftest.err
8389 cat conftest.err >&5
8390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } && {
8392 test -z "$ac_c_werror_flag" ||
8393 test ! -s conftest.err
8394 } && test -s conftest$ac_exeext && {
8395 test "$cross_compiling" = yes ||
8396 $as_test_x conftest$ac_exeext
8398 ac_cv_search_gethostbyname_r=$ac_res
8400 $as_echo "$as_me: failed program was:" >&5
8401 sed 's/^/| /' conftest.$ac_ext >&5
8406 rm -rf conftest.dSYM
8407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8409 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8413 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8416 ac_cv_search_gethostbyname_r=no
8419 LIBS=$ac_func_search_save_LIBS
8421 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8422 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8423 ac_res=$ac_cv_search_gethostbyname_r
8424 if test "$ac_res" != no; then
8425 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8430 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8431 $as_echo_n "checking for library containing shmget... " >&6; }
8432 if test "${ac_cv_search_shmget+set}" = set; then
8433 $as_echo_n "(cached) " >&6
8435 ac_func_search_save_LIBS=$LIBS
8436 cat >conftest.$ac_ext <<_ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h. */
8443 /* Override any GCC internal prototype to avoid an error.
8444 Use char because int might match the return type of a GCC
8445 builtin and then its argument prototype would still apply. */
8458 for ac_lib in '' cygipc; do
8459 if test -z "$ac_lib"; then
8460 ac_res="none required"
8463 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8465 rm -f conftest.$ac_objext conftest$ac_exeext
8466 if { (ac_try="$ac_link"
8468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8469 *) ac_try_echo=$ac_try;;
8471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8472 $as_echo "$ac_try_echo") >&5
8473 (eval "$ac_link") 2>conftest.er1
8475 grep -v '^ *+' conftest.er1 >conftest.err
8477 cat conftest.err >&5
8478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); } && {
8480 test -z "$ac_c_werror_flag" ||
8481 test ! -s conftest.err
8482 } && test -s conftest$ac_exeext && {
8483 test "$cross_compiling" = yes ||
8484 $as_test_x conftest$ac_exeext
8486 ac_cv_search_shmget=$ac_res
8488 $as_echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8494 rm -rf conftest.dSYM
8495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8497 if test "${ac_cv_search_shmget+set}" = set; then
8501 if test "${ac_cv_search_shmget+set}" = set; then
8504 ac_cv_search_shmget=no
8507 LIBS=$ac_func_search_save_LIBS
8509 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8510 $as_echo "$ac_cv_search_shmget" >&6; }
8511 ac_res=$ac_cv_search_shmget
8512 if test "$ac_res" != no; then
8513 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8518 if test "$with_readline" = yes; then
8521 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8522 $as_echo_n "checking for library containing readline... " >&6; }
8523 if test "${pgac_cv_check_readline+set}" = set; then
8524 $as_echo_n "(cached) " >&6
8526 pgac_cv_check_readline=no
8527 pgac_save_LIBS=$LIBS
8528 if test x"$with_libedit_preferred" != x"yes"
8529 then READLINE_ORDER="-lreadline -ledit"
8530 else READLINE_ORDER="-ledit -lreadline"
8532 for pgac_rllib in $READLINE_ORDER ; do
8533 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8534 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8535 cat >conftest.$ac_ext <<_ACEOF
8538 cat confdefs.h >>conftest.$ac_ext
8539 cat >>conftest.$ac_ext <<_ACEOF
8540 /* end confdefs.h. */
8542 /* Override any GCC internal prototype to avoid an error.
8543 Use char because int might match the return type of a GCC
8544 builtin and then its argument prototype would still apply. */
8557 rm -f conftest.$ac_objext conftest$ac_exeext
8558 if { (ac_try="$ac_link"
8560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8561 *) ac_try_echo=$ac_try;;
8563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8564 $as_echo "$ac_try_echo") >&5
8565 (eval "$ac_link") 2>conftest.er1
8567 grep -v '^ *+' conftest.er1 >conftest.err
8569 cat conftest.err >&5
8570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); } && {
8572 test -z "$ac_c_werror_flag" ||
8573 test ! -s conftest.err
8574 } && test -s conftest$ac_exeext && {
8575 test "$cross_compiling" = yes ||
8576 $as_test_x conftest$ac_exeext
8579 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8580 # recognize dependent libraries; assume curses is needed if we didn't
8581 # find any dependency.
8583 netbsd* | openbsd* | irix*)
8584 if test x"$pgac_lib" = x"" ; then
8585 pgac_lib=" -lcurses"
8589 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8593 $as_echo "$as_me: failed program was:" >&5
8594 sed 's/^/| /' conftest.$ac_ext >&5
8599 rm -rf conftest.dSYM
8600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8601 conftest$ac_exeext conftest.$ac_ext
8603 if test "$pgac_cv_check_readline" != no ; then
8607 LIBS=$pgac_save_LIBS
8610 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8611 $as_echo "$pgac_cv_check_readline" >&6; }
8612 if test "$pgac_cv_check_readline" != no ; then
8613 LIBS="$pgac_cv_check_readline $LIBS"
8615 cat >>confdefs.h <<\_ACEOF
8616 #define HAVE_LIBREADLINE 1
8622 if test x"$pgac_cv_check_readline" = x"no"; then
8623 { { $as_echo "$as_me:$LINENO: error: readline library not found
8624 If you have readline already installed, see config.log for details on the
8625 failure. It is possible the compiler isn't looking in the proper directory.
8626 Use --without-readline to disable readline support." >&5
8627 $as_echo "$as_me: error: readline library not found
8628 If you have readline already installed, see config.log for details on the
8629 failure. It is possible the compiler isn't looking in the proper directory.
8630 Use --without-readline to disable readline support." >&2;}
8631 { (exit 1); exit 1; }; }
8635 if test "$with_zlib" = yes; then
8637 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8638 $as_echo_n "checking for inflate in -lz... " >&6; }
8639 if test "${ac_cv_lib_z_inflate+set}" = set; then
8640 $as_echo_n "(cached) " >&6
8642 ac_check_lib_save_LIBS=$LIBS
8644 cat >conftest.$ac_ext <<_ACEOF
8647 cat confdefs.h >>conftest.$ac_ext
8648 cat >>conftest.$ac_ext <<_ACEOF
8649 /* end confdefs.h. */
8651 /* Override any GCC internal prototype to avoid an error.
8652 Use char because int might match the return type of a GCC
8653 builtin and then its argument prototype would still apply. */
8666 rm -f conftest.$ac_objext conftest$ac_exeext
8667 if { (ac_try="$ac_link"
8669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8670 *) ac_try_echo=$ac_try;;
8672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8673 $as_echo "$ac_try_echo") >&5
8674 (eval "$ac_link") 2>conftest.er1
8676 grep -v '^ *+' conftest.er1 >conftest.err
8678 cat conftest.err >&5
8679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } && {
8681 test -z "$ac_c_werror_flag" ||
8682 test ! -s conftest.err
8683 } && test -s conftest$ac_exeext && {
8684 test "$cross_compiling" = yes ||
8685 $as_test_x conftest$ac_exeext
8687 ac_cv_lib_z_inflate=yes
8689 $as_echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8692 ac_cv_lib_z_inflate=no
8695 rm -rf conftest.dSYM
8696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8697 conftest$ac_exeext conftest.$ac_ext
8698 LIBS=$ac_check_lib_save_LIBS
8700 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8701 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8702 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8703 cat >>confdefs.h <<_ACEOF
8710 { { $as_echo "$as_me:$LINENO: error: zlib library not found
8711 If you have zlib already installed, see config.log for details on the
8712 failure. It is possible the compiler isn't looking in the proper directory.
8713 Use --without-zlib to disable zlib support." >&5
8714 $as_echo "$as_me: error: zlib library not found
8715 If you have zlib already installed, see config.log for details on the
8716 failure. It is possible the compiler isn't looking in the proper directory.
8717 Use --without-zlib to disable zlib support." >&2;}
8718 { (exit 1); exit 1; }; }
8723 if test "$enable_spinlocks" = yes; then
8725 cat >>confdefs.h <<\_ACEOF
8726 #define HAVE_SPINLOCKS 1
8730 { $as_echo "$as_me:$LINENO: WARNING:
8731 *** Not using spinlocks will cause poor performance." >&5
8732 $as_echo "$as_me: WARNING:
8733 *** Not using spinlocks will cause poor performance." >&2;}
8736 if test "$with_gssapi" = yes ; then
8737 if test "$PORTNAME" != "win32"; then
8738 { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8739 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8740 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8741 $as_echo_n "(cached) " >&6
8743 ac_func_search_save_LIBS=$LIBS
8744 cat >conftest.$ac_ext <<_ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8751 /* Override any GCC internal prototype to avoid an error.
8752 Use char because int might match the return type of a GCC
8753 builtin and then its argument prototype would still apply. */
8757 char gss_init_sec_context ();
8761 return gss_init_sec_context ();
8766 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8767 if test -z "$ac_lib"; then
8768 ac_res="none required"
8771 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8773 rm -f conftest.$ac_objext conftest$ac_exeext
8774 if { (ac_try="$ac_link"
8776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8777 *) ac_try_echo=$ac_try;;
8779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8780 $as_echo "$ac_try_echo") >&5
8781 (eval "$ac_link") 2>conftest.er1
8783 grep -v '^ *+' conftest.er1 >conftest.err
8785 cat conftest.err >&5
8786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); } && {
8788 test -z "$ac_c_werror_flag" ||
8789 test ! -s conftest.err
8790 } && test -s conftest$ac_exeext && {
8791 test "$cross_compiling" = yes ||
8792 $as_test_x conftest$ac_exeext
8794 ac_cv_search_gss_init_sec_context=$ac_res
8796 $as_echo "$as_me: failed program was:" >&5
8797 sed 's/^/| /' conftest.$ac_ext >&5
8802 rm -rf conftest.dSYM
8803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8805 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8809 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8812 ac_cv_search_gss_init_sec_context=no
8815 LIBS=$ac_func_search_save_LIBS
8817 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8818 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8819 ac_res=$ac_cv_search_gss_init_sec_context
8820 if test "$ac_res" != no; then
8821 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8824 { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8825 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8826 { (exit 1); exit 1; }; }
8830 LIBS="$LIBS -lgssapi32"
8834 if test "$with_krb5" = yes ; then
8835 if test "$PORTNAME" != "win32"; then
8836 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8837 $as_echo_n "checking for library containing com_err... " >&6; }
8838 if test "${ac_cv_search_com_err+set}" = set; then
8839 $as_echo_n "(cached) " >&6
8841 ac_func_search_save_LIBS=$LIBS
8842 cat >conftest.$ac_ext <<_ACEOF
8845 cat confdefs.h >>conftest.$ac_ext
8846 cat >>conftest.$ac_ext <<_ACEOF
8847 /* end confdefs.h. */
8849 /* Override any GCC internal prototype to avoid an error.
8850 Use char because int might match the return type of a GCC
8851 builtin and then its argument prototype would still apply. */
8864 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8865 if test -z "$ac_lib"; then
8866 ac_res="none required"
8869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8871 rm -f conftest.$ac_objext conftest$ac_exeext
8872 if { (ac_try="$ac_link"
8874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8875 *) ac_try_echo=$ac_try;;
8877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8878 $as_echo "$ac_try_echo") >&5
8879 (eval "$ac_link") 2>conftest.er1
8881 grep -v '^ *+' conftest.er1 >conftest.err
8883 cat conftest.err >&5
8884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } && {
8886 test -z "$ac_c_werror_flag" ||
8887 test ! -s conftest.err
8888 } && test -s conftest$ac_exeext && {
8889 test "$cross_compiling" = yes ||
8890 $as_test_x conftest$ac_exeext
8892 ac_cv_search_com_err=$ac_res
8894 $as_echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8900 rm -rf conftest.dSYM
8901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8903 if test "${ac_cv_search_com_err+set}" = set; then
8907 if test "${ac_cv_search_com_err+set}" = set; then
8910 ac_cv_search_com_err=no
8913 LIBS=$ac_func_search_save_LIBS
8915 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8916 $as_echo "$ac_cv_search_com_err" >&6; }
8917 ac_res=$ac_cv_search_com_err
8918 if test "$ac_res" != no; then
8919 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8922 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8923 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8924 { (exit 1); exit 1; }; }
8927 { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8928 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8929 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8930 $as_echo_n "(cached) " >&6
8932 ac_func_search_save_LIBS=$LIBS
8933 cat >conftest.$ac_ext <<_ACEOF
8936 cat confdefs.h >>conftest.$ac_ext
8937 cat >>conftest.$ac_ext <<_ACEOF
8938 /* end confdefs.h. */
8940 /* Override any GCC internal prototype to avoid an error.
8941 Use char because int might match the return type of a GCC
8942 builtin and then its argument prototype would still apply. */
8946 char krb5_sendauth ();
8950 return krb5_sendauth ();
8955 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8956 if test -z "$ac_lib"; then
8957 ac_res="none required"
8960 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8962 rm -f conftest.$ac_objext conftest$ac_exeext
8963 if { (ac_try="$ac_link"
8965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966 *) ac_try_echo=$ac_try;;
8968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8969 $as_echo "$ac_try_echo") >&5
8970 (eval "$ac_link") 2>conftest.er1
8972 grep -v '^ *+' conftest.er1 >conftest.err
8974 cat conftest.err >&5
8975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } && {
8977 test -z "$ac_c_werror_flag" ||
8978 test ! -s conftest.err
8979 } && test -s conftest$ac_exeext && {
8980 test "$cross_compiling" = yes ||
8981 $as_test_x conftest$ac_exeext
8983 ac_cv_search_krb5_sendauth=$ac_res
8985 $as_echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8991 rm -rf conftest.dSYM
8992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8994 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8998 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
9001 ac_cv_search_krb5_sendauth=no
9004 LIBS=$ac_func_search_save_LIBS
9006 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
9007 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
9008 ac_res=$ac_cv_search_krb5_sendauth
9009 if test "$ac_res" != no; then
9010 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9013 { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
9014 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
9015 { (exit 1); exit 1; }; }
9019 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
9020 $as_echo_n "checking for library containing com_err... " >&6; }
9021 if test "${ac_cv_search_com_err+set}" = set; then
9022 $as_echo_n "(cached) " >&6
9024 ac_func_search_save_LIBS=$LIBS
9025 cat >conftest.$ac_ext <<_ACEOF
9028 cat confdefs.h >>conftest.$ac_ext
9029 cat >>conftest.$ac_ext <<_ACEOF
9030 /* end confdefs.h. */
9032 /* Override any GCC internal prototype to avoid an error.
9033 Use char because int might match the return type of a GCC
9034 builtin and then its argument prototype would still apply. */
9047 for ac_lib in '' 'comerr32 -lkrb5_32'; do
9048 if test -z "$ac_lib"; then
9049 ac_res="none required"
9052 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9054 rm -f conftest.$ac_objext conftest$ac_exeext
9055 if { (ac_try="$ac_link"
9057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9058 *) ac_try_echo=$ac_try;;
9060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9061 $as_echo "$ac_try_echo") >&5
9062 (eval "$ac_link") 2>conftest.er1
9064 grep -v '^ *+' conftest.er1 >conftest.err
9066 cat conftest.err >&5
9067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); } && {
9069 test -z "$ac_c_werror_flag" ||
9070 test ! -s conftest.err
9071 } && test -s conftest$ac_exeext && {
9072 test "$cross_compiling" = yes ||
9073 $as_test_x conftest$ac_exeext
9075 ac_cv_search_com_err=$ac_res
9077 $as_echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9083 rm -rf conftest.dSYM
9084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9086 if test "${ac_cv_search_com_err+set}" = set; then
9090 if test "${ac_cv_search_com_err+set}" = set; then
9093 ac_cv_search_com_err=no
9096 LIBS=$ac_func_search_save_LIBS
9098 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
9099 $as_echo "$ac_cv_search_com_err" >&6; }
9100 ac_res=$ac_cv_search_com_err
9101 if test "$ac_res" != no; then
9102 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9105 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
9106 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
9107 { (exit 1); exit 1; }; }
9113 if test "$with_openssl" = yes ; then
9114 if test "$PORTNAME" != "win32"; then
9116 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
9117 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
9118 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
9119 $as_echo_n "(cached) " >&6
9121 ac_check_lib_save_LIBS=$LIBS
9122 LIBS="-lcrypto $LIBS"
9123 cat >conftest.$ac_ext <<_ACEOF
9126 cat confdefs.h >>conftest.$ac_ext
9127 cat >>conftest.$ac_ext <<_ACEOF
9128 /* end confdefs.h. */
9130 /* Override any GCC internal prototype to avoid an error.
9131 Use char because int might match the return type of a GCC
9132 builtin and then its argument prototype would still apply. */
9136 char CRYPTO_new_ex_data ();
9140 return CRYPTO_new_ex_data ();
9145 rm -f conftest.$ac_objext conftest$ac_exeext
9146 if { (ac_try="$ac_link"
9148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149 *) ac_try_echo=$ac_try;;
9151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9152 $as_echo "$ac_try_echo") >&5
9153 (eval "$ac_link") 2>conftest.er1
9155 grep -v '^ *+' conftest.er1 >conftest.err
9157 cat conftest.err >&5
9158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); } && {
9160 test -z "$ac_c_werror_flag" ||
9161 test ! -s conftest.err
9162 } && test -s conftest$ac_exeext && {
9163 test "$cross_compiling" = yes ||
9164 $as_test_x conftest$ac_exeext
9166 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9168 $as_echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9171 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9174 rm -rf conftest.dSYM
9175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9176 conftest$ac_exeext conftest.$ac_ext
9177 LIBS=$ac_check_lib_save_LIBS
9179 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
9180 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
9181 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
9182 cat >>confdefs.h <<_ACEOF
9183 #define HAVE_LIBCRYPTO 1
9186 LIBS="-lcrypto $LIBS"
9189 { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
9190 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
9191 { (exit 1); exit 1; }; }
9195 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9196 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
9197 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9198 $as_echo_n "(cached) " >&6
9200 ac_check_lib_save_LIBS=$LIBS
9202 cat >conftest.$ac_ext <<_ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9209 /* Override any GCC internal prototype to avoid an error.
9210 Use char because int might match the return type of a GCC
9211 builtin and then its argument prototype would still apply. */
9215 char SSL_library_init ();
9219 return SSL_library_init ();
9224 rm -f conftest.$ac_objext conftest$ac_exeext
9225 if { (ac_try="$ac_link"
9227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9228 *) ac_try_echo=$ac_try;;
9230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9231 $as_echo "$ac_try_echo") >&5
9232 (eval "$ac_link") 2>conftest.er1
9234 grep -v '^ *+' conftest.er1 >conftest.err
9236 cat conftest.err >&5
9237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); } && {
9239 test -z "$ac_c_werror_flag" ||
9240 test ! -s conftest.err
9241 } && test -s conftest$ac_exeext && {
9242 test "$cross_compiling" = yes ||
9243 $as_test_x conftest$ac_exeext
9245 ac_cv_lib_ssl_SSL_library_init=yes
9247 $as_echo "$as_me: failed program was:" >&5
9248 sed 's/^/| /' conftest.$ac_ext >&5
9250 ac_cv_lib_ssl_SSL_library_init=no
9253 rm -rf conftest.dSYM
9254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9255 conftest$ac_exeext conftest.$ac_ext
9256 LIBS=$ac_check_lib_save_LIBS
9258 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9259 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
9260 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
9261 cat >>confdefs.h <<_ACEOF
9262 #define HAVE_LIBSSL 1
9268 { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
9269 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9270 { (exit 1); exit 1; }; }
9274 { $as_echo "$as_me:$LINENO: checking for library containing CRYPTO_new_ex_data" >&5
9275 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
9276 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9277 $as_echo_n "(cached) " >&6
9279 ac_func_search_save_LIBS=$LIBS
9280 cat >conftest.$ac_ext <<_ACEOF
9283 cat confdefs.h >>conftest.$ac_ext
9284 cat >>conftest.$ac_ext <<_ACEOF
9285 /* end confdefs.h. */
9287 /* Override any GCC internal prototype to avoid an error.
9288 Use char because int might match the return type of a GCC
9289 builtin and then its argument prototype would still apply. */
9293 char CRYPTO_new_ex_data ();
9297 return CRYPTO_new_ex_data ();
9302 for ac_lib in '' eay32 crypto; do
9303 if test -z "$ac_lib"; then
9304 ac_res="none required"
9307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9309 rm -f conftest.$ac_objext conftest$ac_exeext
9310 if { (ac_try="$ac_link"
9312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9313 *) ac_try_echo=$ac_try;;
9315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9316 $as_echo "$ac_try_echo") >&5
9317 (eval "$ac_link") 2>conftest.er1
9319 grep -v '^ *+' conftest.er1 >conftest.err
9321 cat conftest.err >&5
9322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } && {
9324 test -z "$ac_c_werror_flag" ||
9325 test ! -s conftest.err
9326 } && test -s conftest$ac_exeext && {
9327 test "$cross_compiling" = yes ||
9328 $as_test_x conftest$ac_exeext
9330 ac_cv_search_CRYPTO_new_ex_data=$ac_res
9332 $as_echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9338 rm -rf conftest.dSYM
9339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9341 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9345 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9348 ac_cv_search_CRYPTO_new_ex_data=no
9351 LIBS=$ac_func_search_save_LIBS
9353 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
9354 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
9355 ac_res=$ac_cv_search_CRYPTO_new_ex_data
9356 if test "$ac_res" != no; then
9357 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9360 { { $as_echo "$as_me:$LINENO: error: library 'eay32' or 'crypto' is required for OpenSSL" >&5
9361 $as_echo "$as_me: error: library 'eay32' or 'crypto' is required for OpenSSL" >&2;}
9362 { (exit 1); exit 1; }; }
9365 { $as_echo "$as_me:$LINENO: checking for library containing SSL_library_init" >&5
9366 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
9367 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9368 $as_echo_n "(cached) " >&6
9370 ac_func_search_save_LIBS=$LIBS
9371 cat >conftest.$ac_ext <<_ACEOF
9374 cat confdefs.h >>conftest.$ac_ext
9375 cat >>conftest.$ac_ext <<_ACEOF
9376 /* end confdefs.h. */
9378 /* Override any GCC internal prototype to avoid an error.
9379 Use char because int might match the return type of a GCC
9380 builtin and then its argument prototype would still apply. */
9384 char SSL_library_init ();
9388 return SSL_library_init ();
9393 for ac_lib in '' ssleay32 ssl; do
9394 if test -z "$ac_lib"; then
9395 ac_res="none required"
9398 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9400 rm -f conftest.$ac_objext conftest$ac_exeext
9401 if { (ac_try="$ac_link"
9403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9404 *) ac_try_echo=$ac_try;;
9406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9407 $as_echo "$ac_try_echo") >&5
9408 (eval "$ac_link") 2>conftest.er1
9410 grep -v '^ *+' conftest.er1 >conftest.err
9412 cat conftest.err >&5
9413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); } && {
9415 test -z "$ac_c_werror_flag" ||
9416 test ! -s conftest.err
9417 } && test -s conftest$ac_exeext && {
9418 test "$cross_compiling" = yes ||
9419 $as_test_x conftest$ac_exeext
9421 ac_cv_search_SSL_library_init=$ac_res
9423 $as_echo "$as_me: failed program was:" >&5
9424 sed 's/^/| /' conftest.$ac_ext >&5
9429 rm -rf conftest.dSYM
9430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9432 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9436 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9439 ac_cv_search_SSL_library_init=no
9442 LIBS=$ac_func_search_save_LIBS
9444 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_SSL_library_init" >&5
9445 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
9446 ac_res=$ac_cv_search_SSL_library_init
9447 if test "$ac_res" != no; then
9448 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9451 { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&5
9452 $as_echo "$as_me: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&2;}
9453 { (exit 1); exit 1; }; }
9459 if test "$with_pam" = yes ; then
9461 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9462 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9463 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9464 $as_echo_n "(cached) " >&6
9466 ac_check_lib_save_LIBS=$LIBS
9468 cat >conftest.$ac_ext <<_ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9475 /* Override any GCC internal prototype to avoid an error.
9476 Use char because int might match the return type of a GCC
9477 builtin and then its argument prototype would still apply. */
9485 return pam_start ();
9490 rm -f conftest.$ac_objext conftest$ac_exeext
9491 if { (ac_try="$ac_link"
9493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9494 *) ac_try_echo=$ac_try;;
9496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9497 $as_echo "$ac_try_echo") >&5
9498 (eval "$ac_link") 2>conftest.er1
9500 grep -v '^ *+' conftest.er1 >conftest.err
9502 cat conftest.err >&5
9503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504 (exit $ac_status); } && {
9505 test -z "$ac_c_werror_flag" ||
9506 test ! -s conftest.err
9507 } && test -s conftest$ac_exeext && {
9508 test "$cross_compiling" = yes ||
9509 $as_test_x conftest$ac_exeext
9511 ac_cv_lib_pam_pam_start=yes
9513 $as_echo "$as_me: failed program was:" >&5
9514 sed 's/^/| /' conftest.$ac_ext >&5
9516 ac_cv_lib_pam_pam_start=no
9519 rm -rf conftest.dSYM
9520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9521 conftest$ac_exeext conftest.$ac_ext
9522 LIBS=$ac_check_lib_save_LIBS
9524 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9525 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9526 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9527 cat >>confdefs.h <<_ACEOF
9528 #define HAVE_LIBPAM 1
9534 { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9535 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9536 { (exit 1); exit 1; }; }
9541 if test "$with_libxml" = yes ; then
9543 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9544 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9545 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9546 $as_echo_n "(cached) " >&6
9548 ac_check_lib_save_LIBS=$LIBS
9550 cat >conftest.$ac_ext <<_ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h. */
9557 /* Override any GCC internal prototype to avoid an error.
9558 Use char because int might match the return type of a GCC
9559 builtin and then its argument prototype would still apply. */
9563 char xmlSaveToBuffer ();
9567 return xmlSaveToBuffer ();
9572 rm -f conftest.$ac_objext conftest$ac_exeext
9573 if { (ac_try="$ac_link"
9575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9576 *) ac_try_echo=$ac_try;;
9578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9579 $as_echo "$ac_try_echo") >&5
9580 (eval "$ac_link") 2>conftest.er1
9582 grep -v '^ *+' conftest.er1 >conftest.err
9584 cat conftest.err >&5
9585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); } && {
9587 test -z "$ac_c_werror_flag" ||
9588 test ! -s conftest.err
9589 } && test -s conftest$ac_exeext && {
9590 test "$cross_compiling" = yes ||
9591 $as_test_x conftest$ac_exeext
9593 ac_cv_lib_xml2_xmlSaveToBuffer=yes
9595 $as_echo "$as_me: failed program was:" >&5
9596 sed 's/^/| /' conftest.$ac_ext >&5
9598 ac_cv_lib_xml2_xmlSaveToBuffer=no
9601 rm -rf conftest.dSYM
9602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9603 conftest$ac_exeext conftest.$ac_ext
9604 LIBS=$ac_check_lib_save_LIBS
9606 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9607 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9608 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9609 cat >>confdefs.h <<_ACEOF
9610 #define HAVE_LIBXML2 1
9616 { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9617 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9618 { (exit 1); exit 1; }; }
9623 if test "$with_libxslt" = yes ; then
9625 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9626 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9627 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9628 $as_echo_n "(cached) " >&6
9630 ac_check_lib_save_LIBS=$LIBS
9632 cat >conftest.$ac_ext <<_ACEOF
9635 cat confdefs.h >>conftest.$ac_ext
9636 cat >>conftest.$ac_ext <<_ACEOF
9637 /* end confdefs.h. */
9639 /* Override any GCC internal prototype to avoid an error.
9640 Use char because int might match the return type of a GCC
9641 builtin and then its argument prototype would still apply. */
9645 char xsltCleanupGlobals ();
9649 return xsltCleanupGlobals ();
9654 rm -f conftest.$ac_objext conftest$ac_exeext
9655 if { (ac_try="$ac_link"
9657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658 *) ac_try_echo=$ac_try;;
9660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9661 $as_echo "$ac_try_echo") >&5
9662 (eval "$ac_link") 2>conftest.er1
9664 grep -v '^ *+' conftest.er1 >conftest.err
9666 cat conftest.err >&5
9667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } && {
9669 test -z "$ac_c_werror_flag" ||
9670 test ! -s conftest.err
9671 } && test -s conftest$ac_exeext && {
9672 test "$cross_compiling" = yes ||
9673 $as_test_x conftest$ac_exeext
9675 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9677 $as_echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9680 ac_cv_lib_xslt_xsltCleanupGlobals=no
9683 rm -rf conftest.dSYM
9684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9685 conftest$ac_exeext conftest.$ac_ext
9686 LIBS=$ac_check_lib_save_LIBS
9688 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9689 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9690 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9691 cat >>confdefs.h <<_ACEOF
9692 #define HAVE_LIBXSLT 1
9698 { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9699 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9700 { (exit 1); exit 1; }; }
9705 # for contrib/sepgsql
9706 if test "$with_selinux" = yes; then
9708 { $as_echo "$as_me:$LINENO: checking for selinux_status_open in -lselinux" >&5
9709 $as_echo_n "checking for selinux_status_open in -lselinux... " >&6; }
9710 if test "${ac_cv_lib_selinux_selinux_status_open+set}" = set; then
9711 $as_echo_n "(cached) " >&6
9713 ac_check_lib_save_LIBS=$LIBS
9714 LIBS="-lselinux $LIBS"
9715 cat >conftest.$ac_ext <<_ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9722 /* Override any GCC internal prototype to avoid an error.
9723 Use char because int might match the return type of a GCC
9724 builtin and then its argument prototype would still apply. */
9728 char selinux_status_open ();
9732 return selinux_status_open ();
9737 rm -f conftest.$ac_objext conftest$ac_exeext
9738 if { (ac_try="$ac_link"
9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741 *) ac_try_echo=$ac_try;;
9743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9744 $as_echo "$ac_try_echo") >&5
9745 (eval "$ac_link") 2>conftest.er1
9747 grep -v '^ *+' conftest.er1 >conftest.err
9749 cat conftest.err >&5
9750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } && {
9752 test -z "$ac_c_werror_flag" ||
9753 test ! -s conftest.err
9754 } && test -s conftest$ac_exeext && {
9755 test "$cross_compiling" = yes ||
9756 $as_test_x conftest$ac_exeext
9758 ac_cv_lib_selinux_selinux_status_open=yes
9760 $as_echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9763 ac_cv_lib_selinux_selinux_status_open=no
9766 rm -rf conftest.dSYM
9767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9768 conftest$ac_exeext conftest.$ac_ext
9769 LIBS=$ac_check_lib_save_LIBS
9771 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_selinux_status_open" >&5
9772 $as_echo "$ac_cv_lib_selinux_selinux_status_open" >&6; }
9773 if test "x$ac_cv_lib_selinux_selinux_status_open" = x""yes; then
9774 cat >>confdefs.h <<_ACEOF
9775 #define HAVE_LIBSELINUX 1
9778 LIBS="-lselinux $LIBS"
9781 { { $as_echo "$as_me:$LINENO: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&5
9782 $as_echo "$as_me: error: library 'libselinux', version 2.0.99 or newer, is required for SELinux support" >&2;}
9783 { (exit 1); exit 1; }; }
9788 # for contrib/uuid-ossp
9789 if test "$with_ossp_uuid" = yes ; then
9790 { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9791 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9792 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9793 $as_echo_n "(cached) " >&6
9795 ac_check_lib_save_LIBS=$LIBS
9796 LIBS="-lossp-uuid $LIBS"
9797 cat >conftest.$ac_ext <<_ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h. */
9804 /* Override any GCC internal prototype to avoid an error.
9805 Use char because int might match the return type of a GCC
9806 builtin and then its argument prototype would still apply. */
9810 char uuid_export ();
9814 return uuid_export ();
9819 rm -f conftest.$ac_objext conftest$ac_exeext
9820 if { (ac_try="$ac_link"
9822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9823 *) ac_try_echo=$ac_try;;
9825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9826 $as_echo "$ac_try_echo") >&5
9827 (eval "$ac_link") 2>conftest.er1
9829 grep -v '^ *+' conftest.er1 >conftest.err
9831 cat conftest.err >&5
9832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } && {
9834 test -z "$ac_c_werror_flag" ||
9835 test ! -s conftest.err
9836 } && test -s conftest$ac_exeext && {
9837 test "$cross_compiling" = yes ||
9838 $as_test_x conftest$ac_exeext
9840 ac_cv_lib_ossp_uuid_uuid_export=yes
9842 $as_echo "$as_me: failed program was:" >&5
9843 sed 's/^/| /' conftest.$ac_ext >&5
9845 ac_cv_lib_ossp_uuid_uuid_export=no
9848 rm -rf conftest.dSYM
9849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9850 conftest$ac_exeext conftest.$ac_ext
9851 LIBS=$ac_check_lib_save_LIBS
9853 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9854 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9855 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9856 OSSP_UUID_LIBS="-lossp-uuid"
9858 { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9859 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9860 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9861 $as_echo_n "(cached) " >&6
9863 ac_check_lib_save_LIBS=$LIBS
9865 cat >conftest.$ac_ext <<_ACEOF
9868 cat confdefs.h >>conftest.$ac_ext
9869 cat >>conftest.$ac_ext <<_ACEOF
9870 /* end confdefs.h. */
9872 /* Override any GCC internal prototype to avoid an error.
9873 Use char because int might match the return type of a GCC
9874 builtin and then its argument prototype would still apply. */
9878 char uuid_export ();
9882 return uuid_export ();
9887 rm -f conftest.$ac_objext conftest$ac_exeext
9888 if { (ac_try="$ac_link"
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9894 $as_echo "$ac_try_echo") >&5
9895 (eval "$ac_link") 2>conftest.er1
9897 grep -v '^ *+' conftest.er1 >conftest.err
9899 cat conftest.err >&5
9900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); } && {
9902 test -z "$ac_c_werror_flag" ||
9903 test ! -s conftest.err
9904 } && test -s conftest$ac_exeext && {
9905 test "$cross_compiling" = yes ||
9906 $as_test_x conftest$ac_exeext
9908 ac_cv_lib_uuid_uuid_export=yes
9910 $as_echo "$as_me: failed program was:" >&5
9911 sed 's/^/| /' conftest.$ac_ext >&5
9913 ac_cv_lib_uuid_uuid_export=no
9916 rm -rf conftest.dSYM
9917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9918 conftest$ac_exeext conftest.$ac_ext
9919 LIBS=$ac_check_lib_save_LIBS
9921 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9922 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9923 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9924 OSSP_UUID_LIBS="-luuid"
9926 { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9927 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9928 { (exit 1); exit 1; }; }
9941 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9942 $as_echo_n "checking for ANSI C header files... " >&6; }
9943 if test "${ac_cv_header_stdc+set}" = set; then
9944 $as_echo_n "(cached) " >&6
9946 cat >conftest.$ac_ext <<_ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9965 rm -f conftest.$ac_objext
9966 if { (ac_try="$ac_compile"
9968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969 *) ac_try_echo=$ac_try;;
9971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9972 $as_echo "$ac_try_echo") >&5
9973 (eval "$ac_compile") 2>conftest.er1
9975 grep -v '^ *+' conftest.er1 >conftest.err
9977 cat conftest.err >&5
9978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); } && {
9980 test -z "$ac_c_werror_flag" ||
9981 test ! -s conftest.err
9982 } && test -s conftest.$ac_objext; then
9983 ac_cv_header_stdc=yes
9985 $as_echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9988 ac_cv_header_stdc=no
9991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9993 if test $ac_cv_header_stdc = yes; then
9994 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9995 cat >conftest.$ac_ext <<_ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h. */
10001 #include <string.h>
10004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10005 $EGREP "memchr" >/dev/null 2>&1; then
10008 ac_cv_header_stdc=no
10014 if test $ac_cv_header_stdc = yes; then
10015 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10016 cat >conftest.$ac_ext <<_ACEOF
10019 cat confdefs.h >>conftest.$ac_ext
10020 cat >>conftest.$ac_ext <<_ACEOF
10021 /* end confdefs.h. */
10022 #include <stdlib.h>
10025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10026 $EGREP "free" >/dev/null 2>&1; then
10029 ac_cv_header_stdc=no
10035 if test $ac_cv_header_stdc = yes; then
10036 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10037 if test "$cross_compiling" = yes; then
10040 cat >conftest.$ac_ext <<_ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10047 #include <stdlib.h>
10048 #if ((' ' & 0x0FF) == 0x020)
10049 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10050 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10052 # define ISLOWER(c) \
10053 (('a' <= (c) && (c) <= 'i') \
10054 || ('j' <= (c) && (c) <= 'r') \
10055 || ('s' <= (c) && (c) <= 'z'))
10056 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10059 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10064 for (i = 0; i < 256; i++)
10065 if (XOR (islower (i), ISLOWER (i))
10066 || toupper (i) != TOUPPER (i))
10071 rm -f conftest$ac_exeext
10072 if { (ac_try="$ac_link"
10073 case "(($ac_try" in
10074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10075 *) ac_try_echo=$ac_try;;
10077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10078 $as_echo "$ac_try_echo") >&5
10079 (eval "$ac_link") 2>&5
10081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10083 { (case "(($ac_try" in
10084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10085 *) ac_try_echo=$ac_try;;
10087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10088 $as_echo "$ac_try_echo") >&5
10089 (eval "$ac_try") 2>&5
10091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; }; then
10095 $as_echo "$as_me: program exited with status $ac_status" >&5
10096 $as_echo "$as_me: failed program was:" >&5
10097 sed 's/^/| /' conftest.$ac_ext >&5
10099 ( exit $ac_status )
10100 ac_cv_header_stdc=no
10102 rm -rf conftest.dSYM
10103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10109 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10110 $as_echo "$ac_cv_header_stdc" >&6; }
10111 if test $ac_cv_header_stdc = yes; then
10113 cat >>confdefs.h <<\_ACEOF
10114 #define STDC_HEADERS 1
10119 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10129 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10130 inttypes.h stdint.h unistd.h
10132 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10133 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10134 $as_echo_n "checking for $ac_header... " >&6; }
10135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10136 $as_echo_n "(cached) " >&6
10138 cat >conftest.$ac_ext <<_ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h. */
10144 $ac_includes_default
10146 #include <$ac_header>
10148 rm -f conftest.$ac_objext
10149 if { (ac_try="$ac_compile"
10150 case "(($ac_try" in
10151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152 *) ac_try_echo=$ac_try;;
10154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10155 $as_echo "$ac_try_echo") >&5
10156 (eval "$ac_compile") 2>conftest.er1
10158 grep -v '^ *+' conftest.er1 >conftest.err
10160 cat conftest.err >&5
10161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } && {
10163 test -z "$ac_c_werror_flag" ||
10164 test ! -s conftest.err
10165 } && test -s conftest.$ac_objext; then
10166 eval "$as_ac_Header=yes"
10168 $as_echo "$as_me: failed program was:" >&5
10169 sed 's/^/| /' conftest.$ac_ext >&5
10171 eval "$as_ac_Header=no"
10174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10176 ac_res=`eval 'as_val=${'$as_ac_Header'}
10177 $as_echo "$as_val"'`
10178 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10179 $as_echo "$ac_res" >&6; }
10180 as_val=`eval 'as_val=${'$as_ac_Header'}
10181 $as_echo "$as_val"'`
10182 if test "x$as_val" = x""yes; then
10183 cat >>confdefs.h <<_ACEOF
10184 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10220 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/ucred.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h
10222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10224 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10225 $as_echo_n "checking for $ac_header... " >&6; }
10226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10227 $as_echo_n "(cached) " >&6
10229 ac_res=`eval 'as_val=${'$as_ac_Header'}
10230 $as_echo "$as_val"'`
10231 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10232 $as_echo "$ac_res" >&6; }
10234 # Is the header compilable?
10235 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10236 $as_echo_n "checking $ac_header usability... " >&6; }
10237 cat >conftest.$ac_ext <<_ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h. */
10243 $ac_includes_default
10244 #include <$ac_header>
10246 rm -f conftest.$ac_objext
10247 if { (ac_try="$ac_compile"
10248 case "(($ac_try" in
10249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250 *) ac_try_echo=$ac_try;;
10252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10253 $as_echo "$ac_try_echo") >&5
10254 (eval "$ac_compile") 2>conftest.er1
10256 grep -v '^ *+' conftest.er1 >conftest.err
10258 cat conftest.err >&5
10259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } && {
10261 test -z "$ac_c_werror_flag" ||
10262 test ! -s conftest.err
10263 } && test -s conftest.$ac_objext; then
10264 ac_header_compiler=yes
10266 $as_echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10269 ac_header_compiler=no
10272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10273 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10274 $as_echo "$ac_header_compiler" >&6; }
10276 # Is the header present?
10277 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10278 $as_echo_n "checking $ac_header presence... " >&6; }
10279 cat >conftest.$ac_ext <<_ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h. */
10285 #include <$ac_header>
10287 if { (ac_try="$ac_cpp conftest.$ac_ext"
10288 case "(($ac_try" in
10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290 *) ac_try_echo=$ac_try;;
10292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10293 $as_echo "$ac_try_echo") >&5
10294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10296 grep -v '^ *+' conftest.er1 >conftest.err
10298 cat conftest.err >&5
10299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } >/dev/null && {
10301 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10302 test ! -s conftest.err
10304 ac_header_preproc=yes
10306 $as_echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10309 ac_header_preproc=no
10312 rm -f conftest.err conftest.$ac_ext
10313 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10314 $as_echo "$ac_header_preproc" >&6; }
10316 # So? What about this header?
10317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10320 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10322 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10323 ac_header_preproc=yes
10326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10327 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10329 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10331 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10333 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10335 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10337 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10339 ## ---------------------------------------- ##
10340 ## Report this to pgsql-bugs@postgresql.org ##
10341 ## ---------------------------------------- ##
10343 ) | sed "s/^/$as_me: WARNING: /" >&2
10346 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10347 $as_echo_n "checking for $ac_header... " >&6; }
10348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10349 $as_echo_n "(cached) " >&6
10351 eval "$as_ac_Header=\$ac_header_preproc"
10353 ac_res=`eval 'as_val=${'$as_ac_Header'}
10354 $as_echo "$as_val"'`
10355 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10356 $as_echo "$ac_res" >&6; }
10359 as_val=`eval 'as_val=${'$as_ac_Header'}
10360 $as_echo "$as_val"'`
10361 if test "x$as_val" = x""yes; then
10362 cat >>confdefs.h <<_ACEOF
10363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10371 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
10372 # is included first.
10374 for ac_header in net/if.h
10376 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10377 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10378 $as_echo_n "checking for $ac_header... " >&6; }
10379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10380 $as_echo_n "(cached) " >&6
10382 cat >conftest.$ac_ext <<_ACEOF
10385 cat confdefs.h >>conftest.$ac_ext
10386 cat >>conftest.$ac_ext <<_ACEOF
10387 /* end confdefs.h. */
10388 $ac_includes_default
10389 #ifdef HAVE_SYS_SOCKET_H
10390 #include <sys/socket.h>
10394 #include <$ac_header>
10396 rm -f conftest.$ac_objext
10397 if { (ac_try="$ac_compile"
10398 case "(($ac_try" in
10399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400 *) ac_try_echo=$ac_try;;
10402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10403 $as_echo "$ac_try_echo") >&5
10404 (eval "$ac_compile") 2>conftest.er1
10406 grep -v '^ *+' conftest.er1 >conftest.err
10408 cat conftest.err >&5
10409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); } && {
10411 test -z "$ac_c_werror_flag" ||
10412 test ! -s conftest.err
10413 } && test -s conftest.$ac_objext; then
10414 eval "$as_ac_Header=yes"
10416 $as_echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10419 eval "$as_ac_Header=no"
10422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10424 ac_res=`eval 'as_val=${'$as_ac_Header'}
10425 $as_echo "$as_val"'`
10426 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10427 $as_echo "$ac_res" >&6; }
10428 as_val=`eval 'as_val=${'$as_ac_Header'}
10429 $as_echo "$as_val"'`
10430 if test "x$as_val" = x""yes; then
10431 cat >>confdefs.h <<_ACEOF
10432 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10440 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
10441 # netinet/in.h is included first.
10443 for ac_header in netinet/in.h
10445 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10447 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10448 $as_echo_n "checking for $ac_header... " >&6; }
10449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10450 $as_echo_n "(cached) " >&6
10452 ac_res=`eval 'as_val=${'$as_ac_Header'}
10453 $as_echo "$as_val"'`
10454 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10455 $as_echo "$ac_res" >&6; }
10457 # Is the header compilable?
10458 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10459 $as_echo_n "checking $ac_header usability... " >&6; }
10460 cat >conftest.$ac_ext <<_ACEOF
10463 cat confdefs.h >>conftest.$ac_ext
10464 cat >>conftest.$ac_ext <<_ACEOF
10465 /* end confdefs.h. */
10466 $ac_includes_default
10467 #include <$ac_header>
10469 rm -f conftest.$ac_objext
10470 if { (ac_try="$ac_compile"
10471 case "(($ac_try" in
10472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10473 *) ac_try_echo=$ac_try;;
10475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10476 $as_echo "$ac_try_echo") >&5
10477 (eval "$ac_compile") 2>conftest.er1
10479 grep -v '^ *+' conftest.er1 >conftest.err
10481 cat conftest.err >&5
10482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } && {
10484 test -z "$ac_c_werror_flag" ||
10485 test ! -s conftest.err
10486 } && test -s conftest.$ac_objext; then
10487 ac_header_compiler=yes
10489 $as_echo "$as_me: failed program was:" >&5
10490 sed 's/^/| /' conftest.$ac_ext >&5
10492 ac_header_compiler=no
10495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10496 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10497 $as_echo "$ac_header_compiler" >&6; }
10499 # Is the header present?
10500 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10501 $as_echo_n "checking $ac_header presence... " >&6; }
10502 cat >conftest.$ac_ext <<_ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h. */
10508 #include <$ac_header>
10510 if { (ac_try="$ac_cpp conftest.$ac_ext"
10511 case "(($ac_try" in
10512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513 *) ac_try_echo=$ac_try;;
10515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10516 $as_echo "$ac_try_echo") >&5
10517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10519 grep -v '^ *+' conftest.er1 >conftest.err
10521 cat conftest.err >&5
10522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); } >/dev/null && {
10524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10525 test ! -s conftest.err
10527 ac_header_preproc=yes
10529 $as_echo "$as_me: failed program was:" >&5
10530 sed 's/^/| /' conftest.$ac_ext >&5
10532 ac_header_preproc=no
10535 rm -f conftest.err conftest.$ac_ext
10536 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10537 $as_echo "$ac_header_preproc" >&6; }
10539 # So? What about this header?
10540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10543 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10545 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10546 ac_header_preproc=yes
10549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10550 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10552 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10554 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10556 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10558 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10560 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10562 ## ---------------------------------------- ##
10563 ## Report this to pgsql-bugs@postgresql.org ##
10564 ## ---------------------------------------- ##
10566 ) | sed "s/^/$as_me: WARNING: /" >&2
10569 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10570 $as_echo_n "checking for $ac_header... " >&6; }
10571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10572 $as_echo_n "(cached) " >&6
10574 eval "$as_ac_Header=\$ac_header_preproc"
10576 ac_res=`eval 'as_val=${'$as_ac_Header'}
10577 $as_echo "$as_val"'`
10578 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10579 $as_echo "$ac_res" >&6; }
10582 as_val=`eval 'as_val=${'$as_ac_Header'}
10583 $as_echo "$as_val"'`
10584 if test "x$as_val" = x""yes; then
10585 cat >>confdefs.h <<_ACEOF
10586 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10594 for ac_header in netinet/tcp.h
10596 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10597 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10598 $as_echo_n "checking for $ac_header... " >&6; }
10599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10600 $as_echo_n "(cached) " >&6
10602 cat >conftest.$ac_ext <<_ACEOF
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h. */
10608 $ac_includes_default
10609 #ifdef HAVE_NETINET_IN_H
10610 #include <netinet/in.h>
10614 #include <$ac_header>
10616 rm -f conftest.$ac_objext
10617 if { (ac_try="$ac_compile"
10618 case "(($ac_try" in
10619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620 *) ac_try_echo=$ac_try;;
10622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10623 $as_echo "$ac_try_echo") >&5
10624 (eval "$ac_compile") 2>conftest.er1
10626 grep -v '^ *+' conftest.er1 >conftest.err
10628 cat conftest.err >&5
10629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); } && {
10631 test -z "$ac_c_werror_flag" ||
10632 test ! -s conftest.err
10633 } && test -s conftest.$ac_objext; then
10634 eval "$as_ac_Header=yes"
10636 $as_echo "$as_me: failed program was:" >&5
10637 sed 's/^/| /' conftest.$ac_ext >&5
10639 eval "$as_ac_Header=no"
10642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10644 ac_res=`eval 'as_val=${'$as_ac_Header'}
10645 $as_echo "$as_val"'`
10646 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10647 $as_echo "$ac_res" >&6; }
10648 as_val=`eval 'as_val=${'$as_ac_Header'}
10649 $as_echo "$as_val"'`
10650 if test "x$as_val" = x""yes; then
10651 cat >>confdefs.h <<_ACEOF
10652 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10660 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10662 for ac_header in readline/readline.h
10664 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10666 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10667 $as_echo_n "checking for $ac_header... " >&6; }
10668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10669 $as_echo_n "(cached) " >&6
10671 ac_res=`eval 'as_val=${'$as_ac_Header'}
10672 $as_echo "$as_val"'`
10673 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10674 $as_echo "$ac_res" >&6; }
10676 # Is the header compilable?
10677 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10678 $as_echo_n "checking $ac_header usability... " >&6; }
10679 cat >conftest.$ac_ext <<_ACEOF
10682 cat confdefs.h >>conftest.$ac_ext
10683 cat >>conftest.$ac_ext <<_ACEOF
10684 /* end confdefs.h. */
10685 $ac_includes_default
10686 #include <$ac_header>
10688 rm -f conftest.$ac_objext
10689 if { (ac_try="$ac_compile"
10690 case "(($ac_try" in
10691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692 *) ac_try_echo=$ac_try;;
10694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10695 $as_echo "$ac_try_echo") >&5
10696 (eval "$ac_compile") 2>conftest.er1
10698 grep -v '^ *+' conftest.er1 >conftest.err
10700 cat conftest.err >&5
10701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); } && {
10703 test -z "$ac_c_werror_flag" ||
10704 test ! -s conftest.err
10705 } && test -s conftest.$ac_objext; then
10706 ac_header_compiler=yes
10708 $as_echo "$as_me: failed program was:" >&5
10709 sed 's/^/| /' conftest.$ac_ext >&5
10711 ac_header_compiler=no
10714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10715 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10716 $as_echo "$ac_header_compiler" >&6; }
10718 # Is the header present?
10719 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10720 $as_echo_n "checking $ac_header presence... " >&6; }
10721 cat >conftest.$ac_ext <<_ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h. */
10727 #include <$ac_header>
10729 if { (ac_try="$ac_cpp conftest.$ac_ext"
10730 case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10735 $as_echo "$ac_try_echo") >&5
10736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10738 grep -v '^ *+' conftest.er1 >conftest.err
10740 cat conftest.err >&5
10741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } >/dev/null && {
10743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10744 test ! -s conftest.err
10746 ac_header_preproc=yes
10748 $as_echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 ac_header_preproc=no
10754 rm -f conftest.err conftest.$ac_ext
10755 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10756 $as_echo "$ac_header_preproc" >&6; }
10758 # So? What about this header?
10759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10762 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10764 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10765 ac_header_preproc=yes
10768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10769 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10771 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10773 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10775 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10777 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10779 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10781 ## ---------------------------------------- ##
10782 ## Report this to pgsql-bugs@postgresql.org ##
10783 ## ---------------------------------------- ##
10785 ) | sed "s/^/$as_me: WARNING: /" >&2
10788 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10789 $as_echo_n "checking for $ac_header... " >&6; }
10790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10791 $as_echo_n "(cached) " >&6
10793 eval "$as_ac_Header=\$ac_header_preproc"
10795 ac_res=`eval 'as_val=${'$as_ac_Header'}
10796 $as_echo "$as_val"'`
10797 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10798 $as_echo "$ac_res" >&6; }
10801 as_val=`eval 'as_val=${'$as_ac_Header'}
10802 $as_echo "$as_val"'`
10803 if test "x$as_val" = x""yes; then
10804 cat >>confdefs.h <<_ACEOF
10805 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10810 for ac_header in readline.h
10812 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10814 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10815 $as_echo_n "checking for $ac_header... " >&6; }
10816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10817 $as_echo_n "(cached) " >&6
10819 ac_res=`eval 'as_val=${'$as_ac_Header'}
10820 $as_echo "$as_val"'`
10821 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10822 $as_echo "$ac_res" >&6; }
10824 # Is the header compilable?
10825 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10826 $as_echo_n "checking $ac_header usability... " >&6; }
10827 cat >conftest.$ac_ext <<_ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h. */
10833 $ac_includes_default
10834 #include <$ac_header>
10836 rm -f conftest.$ac_objext
10837 if { (ac_try="$ac_compile"
10838 case "(($ac_try" in
10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10843 $as_echo "$ac_try_echo") >&5
10844 (eval "$ac_compile") 2>conftest.er1
10846 grep -v '^ *+' conftest.er1 >conftest.err
10848 cat conftest.err >&5
10849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } && {
10851 test -z "$ac_c_werror_flag" ||
10852 test ! -s conftest.err
10853 } && test -s conftest.$ac_objext; then
10854 ac_header_compiler=yes
10856 $as_echo "$as_me: failed program was:" >&5
10857 sed 's/^/| /' conftest.$ac_ext >&5
10859 ac_header_compiler=no
10862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10863 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10864 $as_echo "$ac_header_compiler" >&6; }
10866 # Is the header present?
10867 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10868 $as_echo_n "checking $ac_header presence... " >&6; }
10869 cat >conftest.$ac_ext <<_ACEOF
10872 cat confdefs.h >>conftest.$ac_ext
10873 cat >>conftest.$ac_ext <<_ACEOF
10874 /* end confdefs.h. */
10875 #include <$ac_header>
10877 if { (ac_try="$ac_cpp conftest.$ac_ext"
10878 case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10883 $as_echo "$ac_try_echo") >&5
10884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10886 grep -v '^ *+' conftest.er1 >conftest.err
10888 cat conftest.err >&5
10889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } >/dev/null && {
10891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10892 test ! -s conftest.err
10894 ac_header_preproc=yes
10896 $as_echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10899 ac_header_preproc=no
10902 rm -f conftest.err conftest.$ac_ext
10903 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10904 $as_echo "$ac_header_preproc" >&6; }
10906 # So? What about this header?
10907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10910 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10912 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10913 ac_header_preproc=yes
10916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10917 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10919 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10921 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10923 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10925 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10927 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10929 ## ---------------------------------------- ##
10930 ## Report this to pgsql-bugs@postgresql.org ##
10931 ## ---------------------------------------- ##
10933 ) | sed "s/^/$as_me: WARNING: /" >&2
10936 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10937 $as_echo_n "checking for $ac_header... " >&6; }
10938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10939 $as_echo_n "(cached) " >&6
10941 eval "$as_ac_Header=\$ac_header_preproc"
10943 ac_res=`eval 'as_val=${'$as_ac_Header'}
10944 $as_echo "$as_val"'`
10945 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10946 $as_echo "$ac_res" >&6; }
10949 as_val=`eval 'as_val=${'$as_ac_Header'}
10950 $as_echo "$as_val"'`
10951 if test "x$as_val" = x""yes; then
10952 cat >>confdefs.h <<_ACEOF
10953 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10957 { { $as_echo "$as_me:$LINENO: error: readline header not found
10958 If you have readline already installed, see config.log for details on the
10959 failure. It is possible the compiler isn't looking in the proper directory.
10960 Use --without-readline to disable readline support." >&5
10961 $as_echo "$as_me: error: readline header not found
10962 If you have readline already installed, see config.log for details on the
10963 failure. It is possible the compiler isn't looking in the proper directory.
10964 Use --without-readline to disable readline support." >&2;}
10965 { (exit 1); exit 1; }; }
10975 for ac_header in readline/history.h
10977 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10979 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10980 $as_echo_n "checking for $ac_header... " >&6; }
10981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10982 $as_echo_n "(cached) " >&6
10984 ac_res=`eval 'as_val=${'$as_ac_Header'}
10985 $as_echo "$as_val"'`
10986 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10987 $as_echo "$ac_res" >&6; }
10989 # Is the header compilable?
10990 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10991 $as_echo_n "checking $ac_header usability... " >&6; }
10992 cat >conftest.$ac_ext <<_ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10998 $ac_includes_default
10999 #include <$ac_header>
11001 rm -f conftest.$ac_objext
11002 if { (ac_try="$ac_compile"
11003 case "(($ac_try" in
11004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11005 *) ac_try_echo=$ac_try;;
11007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11008 $as_echo "$ac_try_echo") >&5
11009 (eval "$ac_compile") 2>conftest.er1
11011 grep -v '^ *+' conftest.er1 >conftest.err
11013 cat conftest.err >&5
11014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } && {
11016 test -z "$ac_c_werror_flag" ||
11017 test ! -s conftest.err
11018 } && test -s conftest.$ac_objext; then
11019 ac_header_compiler=yes
11021 $as_echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11024 ac_header_compiler=no
11027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11028 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11029 $as_echo "$ac_header_compiler" >&6; }
11031 # Is the header present?
11032 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11033 $as_echo_n "checking $ac_header presence... " >&6; }
11034 cat >conftest.$ac_ext <<_ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h. */
11040 #include <$ac_header>
11042 if { (ac_try="$ac_cpp conftest.$ac_ext"
11043 case "(($ac_try" in
11044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045 *) ac_try_echo=$ac_try;;
11047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11048 $as_echo "$ac_try_echo") >&5
11049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11051 grep -v '^ *+' conftest.er1 >conftest.err
11053 cat conftest.err >&5
11054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } >/dev/null && {
11056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11057 test ! -s conftest.err
11059 ac_header_preproc=yes
11061 $as_echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.$ac_ext >&5
11064 ac_header_preproc=no
11067 rm -f conftest.err conftest.$ac_ext
11068 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11069 $as_echo "$ac_header_preproc" >&6; }
11071 # So? What about this header?
11072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11075 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11077 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11078 ac_header_preproc=yes
11081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11082 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11084 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11086 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11088 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11090 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11092 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11094 ## ---------------------------------------- ##
11095 ## Report this to pgsql-bugs@postgresql.org ##
11096 ## ---------------------------------------- ##
11098 ) | sed "s/^/$as_me: WARNING: /" >&2
11101 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11102 $as_echo_n "checking for $ac_header... " >&6; }
11103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11104 $as_echo_n "(cached) " >&6
11106 eval "$as_ac_Header=\$ac_header_preproc"
11108 ac_res=`eval 'as_val=${'$as_ac_Header'}
11109 $as_echo "$as_val"'`
11110 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11111 $as_echo "$ac_res" >&6; }
11114 as_val=`eval 'as_val=${'$as_ac_Header'}
11115 $as_echo "$as_val"'`
11116 if test "x$as_val" = x""yes; then
11117 cat >>confdefs.h <<_ACEOF
11118 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11123 for ac_header in history.h
11125 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11127 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11128 $as_echo_n "checking for $ac_header... " >&6; }
11129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11130 $as_echo_n "(cached) " >&6
11132 ac_res=`eval 'as_val=${'$as_ac_Header'}
11133 $as_echo "$as_val"'`
11134 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11135 $as_echo "$ac_res" >&6; }
11137 # Is the header compilable?
11138 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11139 $as_echo_n "checking $ac_header usability... " >&6; }
11140 cat >conftest.$ac_ext <<_ACEOF
11143 cat confdefs.h >>conftest.$ac_ext
11144 cat >>conftest.$ac_ext <<_ACEOF
11145 /* end confdefs.h. */
11146 $ac_includes_default
11147 #include <$ac_header>
11149 rm -f conftest.$ac_objext
11150 if { (ac_try="$ac_compile"
11151 case "(($ac_try" in
11152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153 *) ac_try_echo=$ac_try;;
11155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11156 $as_echo "$ac_try_echo") >&5
11157 (eval "$ac_compile") 2>conftest.er1
11159 grep -v '^ *+' conftest.er1 >conftest.err
11161 cat conftest.err >&5
11162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); } && {
11164 test -z "$ac_c_werror_flag" ||
11165 test ! -s conftest.err
11166 } && test -s conftest.$ac_objext; then
11167 ac_header_compiler=yes
11169 $as_echo "$as_me: failed program was:" >&5
11170 sed 's/^/| /' conftest.$ac_ext >&5
11172 ac_header_compiler=no
11175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11176 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11177 $as_echo "$ac_header_compiler" >&6; }
11179 # Is the header present?
11180 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11181 $as_echo_n "checking $ac_header presence... " >&6; }
11182 cat >conftest.$ac_ext <<_ACEOF
11185 cat confdefs.h >>conftest.$ac_ext
11186 cat >>conftest.$ac_ext <<_ACEOF
11187 /* end confdefs.h. */
11188 #include <$ac_header>
11190 if { (ac_try="$ac_cpp conftest.$ac_ext"
11191 case "(($ac_try" in
11192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193 *) ac_try_echo=$ac_try;;
11195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11196 $as_echo "$ac_try_echo") >&5
11197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11199 grep -v '^ *+' conftest.er1 >conftest.err
11201 cat conftest.err >&5
11202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); } >/dev/null && {
11204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11205 test ! -s conftest.err
11207 ac_header_preproc=yes
11209 $as_echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11212 ac_header_preproc=no
11215 rm -f conftest.err conftest.$ac_ext
11216 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11217 $as_echo "$ac_header_preproc" >&6; }
11219 # So? What about this header?
11220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11223 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11225 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11226 ac_header_preproc=yes
11229 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11230 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11232 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11234 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11236 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11238 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11240 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11242 ## ---------------------------------------- ##
11243 ## Report this to pgsql-bugs@postgresql.org ##
11244 ## ---------------------------------------- ##
11246 ) | sed "s/^/$as_me: WARNING: /" >&2
11249 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11250 $as_echo_n "checking for $ac_header... " >&6; }
11251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11252 $as_echo_n "(cached) " >&6
11254 eval "$as_ac_Header=\$ac_header_preproc"
11256 ac_res=`eval 'as_val=${'$as_ac_Header'}
11257 $as_echo "$as_val"'`
11258 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11259 $as_echo "$ac_res" >&6; }
11262 as_val=`eval 'as_val=${'$as_ac_Header'}
11263 $as_echo "$as_val"'`
11264 if test "x$as_val" = x""yes; then
11265 cat >>confdefs.h <<_ACEOF
11266 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11270 { { $as_echo "$as_me:$LINENO: error: history header not found
11271 If you have readline already installed, see config.log for details on the
11272 failure. It is possible the compiler isn't looking in the proper directory.
11273 Use --without-readline to disable readline support." >&5
11274 $as_echo "$as_me: error: history header not found
11275 If you have readline already installed, see config.log for details on the
11276 failure. It is possible the compiler isn't looking in the proper directory.
11277 Use --without-readline to disable readline support." >&2;}
11278 { (exit 1); exit 1; }; }
11289 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
11290 # Some installations of libedit usurp /usr/include/readline/, which seems
11291 # bad practice, since in combined installations readline will have its headers
11292 # there. We might have to resort to AC_EGREP checks to make sure we found
11293 # the proper header...
11295 for ac_header in editline/readline.h
11297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11299 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11300 $as_echo_n "checking for $ac_header... " >&6; }
11301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11302 $as_echo_n "(cached) " >&6
11304 ac_res=`eval 'as_val=${'$as_ac_Header'}
11305 $as_echo "$as_val"'`
11306 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11307 $as_echo "$ac_res" >&6; }
11309 # Is the header compilable?
11310 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11311 $as_echo_n "checking $ac_header usability... " >&6; }
11312 cat >conftest.$ac_ext <<_ACEOF
11315 cat confdefs.h >>conftest.$ac_ext
11316 cat >>conftest.$ac_ext <<_ACEOF
11317 /* end confdefs.h. */
11318 $ac_includes_default
11319 #include <$ac_header>
11321 rm -f conftest.$ac_objext
11322 if { (ac_try="$ac_compile"
11323 case "(($ac_try" in
11324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325 *) ac_try_echo=$ac_try;;
11327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11328 $as_echo "$ac_try_echo") >&5
11329 (eval "$ac_compile") 2>conftest.er1
11331 grep -v '^ *+' conftest.er1 >conftest.err
11333 cat conftest.err >&5
11334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } && {
11336 test -z "$ac_c_werror_flag" ||
11337 test ! -s conftest.err
11338 } && test -s conftest.$ac_objext; then
11339 ac_header_compiler=yes
11341 $as_echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11344 ac_header_compiler=no
11347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11348 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11349 $as_echo "$ac_header_compiler" >&6; }
11351 # Is the header present?
11352 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11353 $as_echo_n "checking $ac_header presence... " >&6; }
11354 cat >conftest.$ac_ext <<_ACEOF
11357 cat confdefs.h >>conftest.$ac_ext
11358 cat >>conftest.$ac_ext <<_ACEOF
11359 /* end confdefs.h. */
11360 #include <$ac_header>
11362 if { (ac_try="$ac_cpp conftest.$ac_ext"
11363 case "(($ac_try" in
11364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365 *) ac_try_echo=$ac_try;;
11367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11368 $as_echo "$ac_try_echo") >&5
11369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11371 grep -v '^ *+' conftest.er1 >conftest.err
11373 cat conftest.err >&5
11374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } >/dev/null && {
11376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11377 test ! -s conftest.err
11379 ac_header_preproc=yes
11381 $as_echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11384 ac_header_preproc=no
11387 rm -f conftest.err conftest.$ac_ext
11388 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11389 $as_echo "$ac_header_preproc" >&6; }
11391 # So? What about this header?
11392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11395 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11397 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11398 ac_header_preproc=yes
11401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11402 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11404 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11406 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11408 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11410 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11412 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11414 ## ---------------------------------------- ##
11415 ## Report this to pgsql-bugs@postgresql.org ##
11416 ## ---------------------------------------- ##
11418 ) | sed "s/^/$as_me: WARNING: /" >&2
11421 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11422 $as_echo_n "checking for $ac_header... " >&6; }
11423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11424 $as_echo_n "(cached) " >&6
11426 eval "$as_ac_Header=\$ac_header_preproc"
11428 ac_res=`eval 'as_val=${'$as_ac_Header'}
11429 $as_echo "$as_val"'`
11430 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11431 $as_echo "$ac_res" >&6; }
11434 as_val=`eval 'as_val=${'$as_ac_Header'}
11435 $as_echo "$as_val"'`
11436 if test "x$as_val" = x""yes; then
11437 cat >>confdefs.h <<_ACEOF
11438 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11443 for ac_header in readline.h
11445 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11447 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11448 $as_echo_n "checking for $ac_header... " >&6; }
11449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11450 $as_echo_n "(cached) " >&6
11452 ac_res=`eval 'as_val=${'$as_ac_Header'}
11453 $as_echo "$as_val"'`
11454 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11455 $as_echo "$ac_res" >&6; }
11457 # Is the header compilable?
11458 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11459 $as_echo_n "checking $ac_header usability... " >&6; }
11460 cat >conftest.$ac_ext <<_ACEOF
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h. */
11466 $ac_includes_default
11467 #include <$ac_header>
11469 rm -f conftest.$ac_objext
11470 if { (ac_try="$ac_compile"
11471 case "(($ac_try" in
11472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473 *) ac_try_echo=$ac_try;;
11475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11476 $as_echo "$ac_try_echo") >&5
11477 (eval "$ac_compile") 2>conftest.er1
11479 grep -v '^ *+' conftest.er1 >conftest.err
11481 cat conftest.err >&5
11482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } && {
11484 test -z "$ac_c_werror_flag" ||
11485 test ! -s conftest.err
11486 } && test -s conftest.$ac_objext; then
11487 ac_header_compiler=yes
11489 $as_echo "$as_me: failed program was:" >&5
11490 sed 's/^/| /' conftest.$ac_ext >&5
11492 ac_header_compiler=no
11495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11496 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11497 $as_echo "$ac_header_compiler" >&6; }
11499 # Is the header present?
11500 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11501 $as_echo_n "checking $ac_header presence... " >&6; }
11502 cat >conftest.$ac_ext <<_ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h. */
11508 #include <$ac_header>
11510 if { (ac_try="$ac_cpp conftest.$ac_ext"
11511 case "(($ac_try" in
11512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513 *) ac_try_echo=$ac_try;;
11515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11516 $as_echo "$ac_try_echo") >&5
11517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11519 grep -v '^ *+' conftest.er1 >conftest.err
11521 cat conftest.err >&5
11522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } >/dev/null && {
11524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11525 test ! -s conftest.err
11527 ac_header_preproc=yes
11529 $as_echo "$as_me: failed program was:" >&5
11530 sed 's/^/| /' conftest.$ac_ext >&5
11532 ac_header_preproc=no
11535 rm -f conftest.err conftest.$ac_ext
11536 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11537 $as_echo "$ac_header_preproc" >&6; }
11539 # So? What about this header?
11540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11543 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11545 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11546 ac_header_preproc=yes
11549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11550 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11552 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11554 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11556 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11558 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11560 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11562 ## ---------------------------------------- ##
11563 ## Report this to pgsql-bugs@postgresql.org ##
11564 ## ---------------------------------------- ##
11566 ) | sed "s/^/$as_me: WARNING: /" >&2
11569 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11570 $as_echo_n "checking for $ac_header... " >&6; }
11571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11572 $as_echo_n "(cached) " >&6
11574 eval "$as_ac_Header=\$ac_header_preproc"
11576 ac_res=`eval 'as_val=${'$as_ac_Header'}
11577 $as_echo "$as_val"'`
11578 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11579 $as_echo "$ac_res" >&6; }
11582 as_val=`eval 'as_val=${'$as_ac_Header'}
11583 $as_echo "$as_val"'`
11584 if test "x$as_val" = x""yes; then
11585 cat >>confdefs.h <<_ACEOF
11586 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11591 for ac_header in readline/readline.h
11593 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11595 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11596 $as_echo_n "checking for $ac_header... " >&6; }
11597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11598 $as_echo_n "(cached) " >&6
11600 ac_res=`eval 'as_val=${'$as_ac_Header'}
11601 $as_echo "$as_val"'`
11602 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11603 $as_echo "$ac_res" >&6; }
11605 # Is the header compilable?
11606 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11607 $as_echo_n "checking $ac_header usability... " >&6; }
11608 cat >conftest.$ac_ext <<_ACEOF
11611 cat confdefs.h >>conftest.$ac_ext
11612 cat >>conftest.$ac_ext <<_ACEOF
11613 /* end confdefs.h. */
11614 $ac_includes_default
11615 #include <$ac_header>
11617 rm -f conftest.$ac_objext
11618 if { (ac_try="$ac_compile"
11619 case "(($ac_try" in
11620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11621 *) ac_try_echo=$ac_try;;
11623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11624 $as_echo "$ac_try_echo") >&5
11625 (eval "$ac_compile") 2>conftest.er1
11627 grep -v '^ *+' conftest.er1 >conftest.err
11629 cat conftest.err >&5
11630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } && {
11632 test -z "$ac_c_werror_flag" ||
11633 test ! -s conftest.err
11634 } && test -s conftest.$ac_objext; then
11635 ac_header_compiler=yes
11637 $as_echo "$as_me: failed program was:" >&5
11638 sed 's/^/| /' conftest.$ac_ext >&5
11640 ac_header_compiler=no
11643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11644 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11645 $as_echo "$ac_header_compiler" >&6; }
11647 # Is the header present?
11648 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11649 $as_echo_n "checking $ac_header presence... " >&6; }
11650 cat >conftest.$ac_ext <<_ACEOF
11653 cat confdefs.h >>conftest.$ac_ext
11654 cat >>conftest.$ac_ext <<_ACEOF
11655 /* end confdefs.h. */
11656 #include <$ac_header>
11658 if { (ac_try="$ac_cpp conftest.$ac_ext"
11659 case "(($ac_try" in
11660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11661 *) ac_try_echo=$ac_try;;
11663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11664 $as_echo "$ac_try_echo") >&5
11665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11667 grep -v '^ *+' conftest.er1 >conftest.err
11669 cat conftest.err >&5
11670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } >/dev/null && {
11672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11673 test ! -s conftest.err
11675 ac_header_preproc=yes
11677 $as_echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.$ac_ext >&5
11680 ac_header_preproc=no
11683 rm -f conftest.err conftest.$ac_ext
11684 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11685 $as_echo "$ac_header_preproc" >&6; }
11687 # So? What about this header?
11688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11691 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11693 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11694 ac_header_preproc=yes
11697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11698 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11700 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11702 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11704 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11706 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11708 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11710 ## ---------------------------------------- ##
11711 ## Report this to pgsql-bugs@postgresql.org ##
11712 ## ---------------------------------------- ##
11714 ) | sed "s/^/$as_me: WARNING: /" >&2
11717 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11718 $as_echo_n "checking for $ac_header... " >&6; }
11719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11720 $as_echo_n "(cached) " >&6
11722 eval "$as_ac_Header=\$ac_header_preproc"
11724 ac_res=`eval 'as_val=${'$as_ac_Header'}
11725 $as_echo "$as_val"'`
11726 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11727 $as_echo "$ac_res" >&6; }
11730 as_val=`eval 'as_val=${'$as_ac_Header'}
11731 $as_echo "$as_val"'`
11732 if test "x$as_val" = x""yes; then
11733 cat >>confdefs.h <<_ACEOF
11734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11738 { { $as_echo "$as_me:$LINENO: error: readline header not found
11739 If you have libedit already installed, see config.log for details on the
11740 failure. It is possible the compiler isn't looking in the proper directory.
11741 Use --without-readline to disable libedit support." >&5
11742 $as_echo "$as_me: error: readline header not found
11743 If you have libedit already installed, see config.log for details on the
11744 failure. It is possible the compiler isn't looking in the proper directory.
11745 Use --without-readline to disable libedit support." >&2;}
11746 { (exit 1); exit 1; }; }
11759 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11760 # not be there at all. Hence, don't complain if not found. We must check
11761 # though, since in yet other versions it is an independent header.
11763 for ac_header in editline/history.h
11765 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11767 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11768 $as_echo_n "checking for $ac_header... " >&6; }
11769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11770 $as_echo_n "(cached) " >&6
11772 ac_res=`eval 'as_val=${'$as_ac_Header'}
11773 $as_echo "$as_val"'`
11774 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11775 $as_echo "$ac_res" >&6; }
11777 # Is the header compilable?
11778 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11779 $as_echo_n "checking $ac_header usability... " >&6; }
11780 cat >conftest.$ac_ext <<_ACEOF
11783 cat confdefs.h >>conftest.$ac_ext
11784 cat >>conftest.$ac_ext <<_ACEOF
11785 /* end confdefs.h. */
11786 $ac_includes_default
11787 #include <$ac_header>
11789 rm -f conftest.$ac_objext
11790 if { (ac_try="$ac_compile"
11791 case "(($ac_try" in
11792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793 *) ac_try_echo=$ac_try;;
11795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11796 $as_echo "$ac_try_echo") >&5
11797 (eval "$ac_compile") 2>conftest.er1
11799 grep -v '^ *+' conftest.er1 >conftest.err
11801 cat conftest.err >&5
11802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); } && {
11804 test -z "$ac_c_werror_flag" ||
11805 test ! -s conftest.err
11806 } && test -s conftest.$ac_objext; then
11807 ac_header_compiler=yes
11809 $as_echo "$as_me: failed program was:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11812 ac_header_compiler=no
11815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11816 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11817 $as_echo "$ac_header_compiler" >&6; }
11819 # Is the header present?
11820 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11821 $as_echo_n "checking $ac_header presence... " >&6; }
11822 cat >conftest.$ac_ext <<_ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h. */
11828 #include <$ac_header>
11830 if { (ac_try="$ac_cpp conftest.$ac_ext"
11831 case "(($ac_try" in
11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833 *) ac_try_echo=$ac_try;;
11835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11836 $as_echo "$ac_try_echo") >&5
11837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11839 grep -v '^ *+' conftest.er1 >conftest.err
11841 cat conftest.err >&5
11842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); } >/dev/null && {
11844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11845 test ! -s conftest.err
11847 ac_header_preproc=yes
11849 $as_echo "$as_me: failed program was:" >&5
11850 sed 's/^/| /' conftest.$ac_ext >&5
11852 ac_header_preproc=no
11855 rm -f conftest.err conftest.$ac_ext
11856 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11857 $as_echo "$ac_header_preproc" >&6; }
11859 # So? What about this header?
11860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11863 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11865 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11866 ac_header_preproc=yes
11869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11870 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11872 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11874 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11876 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11878 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11880 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11882 ## ---------------------------------------- ##
11883 ## Report this to pgsql-bugs@postgresql.org ##
11884 ## ---------------------------------------- ##
11886 ) | sed "s/^/$as_me: WARNING: /" >&2
11889 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11890 $as_echo_n "checking for $ac_header... " >&6; }
11891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11892 $as_echo_n "(cached) " >&6
11894 eval "$as_ac_Header=\$ac_header_preproc"
11896 ac_res=`eval 'as_val=${'$as_ac_Header'}
11897 $as_echo "$as_val"'`
11898 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11899 $as_echo "$ac_res" >&6; }
11902 as_val=`eval 'as_val=${'$as_ac_Header'}
11903 $as_echo "$as_val"'`
11904 if test "x$as_val" = x""yes; then
11905 cat >>confdefs.h <<_ACEOF
11906 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11911 for ac_header in history.h
11913 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11915 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11916 $as_echo_n "checking for $ac_header... " >&6; }
11917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11918 $as_echo_n "(cached) " >&6
11920 ac_res=`eval 'as_val=${'$as_ac_Header'}
11921 $as_echo "$as_val"'`
11922 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11923 $as_echo "$ac_res" >&6; }
11925 # Is the header compilable?
11926 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11927 $as_echo_n "checking $ac_header usability... " >&6; }
11928 cat >conftest.$ac_ext <<_ACEOF
11931 cat confdefs.h >>conftest.$ac_ext
11932 cat >>conftest.$ac_ext <<_ACEOF
11933 /* end confdefs.h. */
11934 $ac_includes_default
11935 #include <$ac_header>
11937 rm -f conftest.$ac_objext
11938 if { (ac_try="$ac_compile"
11939 case "(($ac_try" in
11940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11941 *) ac_try_echo=$ac_try;;
11943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11944 $as_echo "$ac_try_echo") >&5
11945 (eval "$ac_compile") 2>conftest.er1
11947 grep -v '^ *+' conftest.er1 >conftest.err
11949 cat conftest.err >&5
11950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); } && {
11952 test -z "$ac_c_werror_flag" ||
11953 test ! -s conftest.err
11954 } && test -s conftest.$ac_objext; then
11955 ac_header_compiler=yes
11957 $as_echo "$as_me: failed program was:" >&5
11958 sed 's/^/| /' conftest.$ac_ext >&5
11960 ac_header_compiler=no
11963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11964 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11965 $as_echo "$ac_header_compiler" >&6; }
11967 # Is the header present?
11968 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11969 $as_echo_n "checking $ac_header presence... " >&6; }
11970 cat >conftest.$ac_ext <<_ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11976 #include <$ac_header>
11978 if { (ac_try="$ac_cpp conftest.$ac_ext"
11979 case "(($ac_try" in
11980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981 *) ac_try_echo=$ac_try;;
11983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11984 $as_echo "$ac_try_echo") >&5
11985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11987 grep -v '^ *+' conftest.er1 >conftest.err
11989 cat conftest.err >&5
11990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } >/dev/null && {
11992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11993 test ! -s conftest.err
11995 ac_header_preproc=yes
11997 $as_echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
12000 ac_header_preproc=no
12003 rm -f conftest.err conftest.$ac_ext
12004 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12005 $as_echo "$ac_header_preproc" >&6; }
12007 # So? What about this header?
12008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12011 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12013 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12014 ac_header_preproc=yes
12017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12018 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12020 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12022 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12024 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12026 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12028 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12030 ## ---------------------------------------- ##
12031 ## Report this to pgsql-bugs@postgresql.org ##
12032 ## ---------------------------------------- ##
12034 ) | sed "s/^/$as_me: WARNING: /" >&2
12037 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12038 $as_echo_n "checking for $ac_header... " >&6; }
12039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12040 $as_echo_n "(cached) " >&6
12042 eval "$as_ac_Header=\$ac_header_preproc"
12044 ac_res=`eval 'as_val=${'$as_ac_Header'}
12045 $as_echo "$as_val"'`
12046 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12047 $as_echo "$ac_res" >&6; }
12050 as_val=`eval 'as_val=${'$as_ac_Header'}
12051 $as_echo "$as_val"'`
12052 if test "x$as_val" = x""yes; then
12053 cat >>confdefs.h <<_ACEOF
12054 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12059 for ac_header in readline/history.h
12061 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12063 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12064 $as_echo_n "checking for $ac_header... " >&6; }
12065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12066 $as_echo_n "(cached) " >&6
12068 ac_res=`eval 'as_val=${'$as_ac_Header'}
12069 $as_echo "$as_val"'`
12070 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12071 $as_echo "$ac_res" >&6; }
12073 # Is the header compilable?
12074 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12075 $as_echo_n "checking $ac_header usability... " >&6; }
12076 cat >conftest.$ac_ext <<_ACEOF
12079 cat confdefs.h >>conftest.$ac_ext
12080 cat >>conftest.$ac_ext <<_ACEOF
12081 /* end confdefs.h. */
12082 $ac_includes_default
12083 #include <$ac_header>
12085 rm -f conftest.$ac_objext
12086 if { (ac_try="$ac_compile"
12087 case "(($ac_try" in
12088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12089 *) ac_try_echo=$ac_try;;
12091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12092 $as_echo "$ac_try_echo") >&5
12093 (eval "$ac_compile") 2>conftest.er1
12095 grep -v '^ *+' conftest.er1 >conftest.err
12097 cat conftest.err >&5
12098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } && {
12100 test -z "$ac_c_werror_flag" ||
12101 test ! -s conftest.err
12102 } && test -s conftest.$ac_objext; then
12103 ac_header_compiler=yes
12105 $as_echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.$ac_ext >&5
12108 ac_header_compiler=no
12111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12112 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12113 $as_echo "$ac_header_compiler" >&6; }
12115 # Is the header present?
12116 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12117 $as_echo_n "checking $ac_header presence... " >&6; }
12118 cat >conftest.$ac_ext <<_ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h. */
12124 #include <$ac_header>
12126 if { (ac_try="$ac_cpp conftest.$ac_ext"
12127 case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12132 $as_echo "$ac_try_echo") >&5
12133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12135 grep -v '^ *+' conftest.er1 >conftest.err
12137 cat conftest.err >&5
12138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } >/dev/null && {
12140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12141 test ! -s conftest.err
12143 ac_header_preproc=yes
12145 $as_echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12148 ac_header_preproc=no
12151 rm -f conftest.err conftest.$ac_ext
12152 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12153 $as_echo "$ac_header_preproc" >&6; }
12155 # So? What about this header?
12156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12159 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12161 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12162 ac_header_preproc=yes
12165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12166 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12168 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12169 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12170 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12171 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12172 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12173 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12174 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12176 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12178 ## ---------------------------------------- ##
12179 ## Report this to pgsql-bugs@postgresql.org ##
12180 ## ---------------------------------------- ##
12182 ) | sed "s/^/$as_me: WARNING: /" >&2
12185 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12186 $as_echo_n "checking for $ac_header... " >&6; }
12187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12188 $as_echo_n "(cached) " >&6
12190 eval "$as_ac_Header=\$ac_header_preproc"
12192 ac_res=`eval 'as_val=${'$as_ac_Header'}
12193 $as_echo "$as_val"'`
12194 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12195 $as_echo "$ac_res" >&6; }
12198 as_val=`eval 'as_val=${'$as_ac_Header'}
12199 $as_echo "$as_val"'`
12200 if test "x$as_val" = x""yes; then
12201 cat >>confdefs.h <<_ACEOF
12202 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12219 if test "$with_zlib" = yes; then
12220 if test "${ac_cv_header_zlib_h+set}" = set; then
12221 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12222 $as_echo_n "checking for zlib.h... " >&6; }
12223 if test "${ac_cv_header_zlib_h+set}" = set; then
12224 $as_echo_n "(cached) " >&6
12226 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12227 $as_echo "$ac_cv_header_zlib_h" >&6; }
12229 # Is the header compilable?
12230 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
12231 $as_echo_n "checking zlib.h usability... " >&6; }
12232 cat >conftest.$ac_ext <<_ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h. */
12238 $ac_includes_default
12241 rm -f conftest.$ac_objext
12242 if { (ac_try="$ac_compile"
12243 case "(($ac_try" in
12244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12245 *) ac_try_echo=$ac_try;;
12247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12248 $as_echo "$ac_try_echo") >&5
12249 (eval "$ac_compile") 2>conftest.er1
12251 grep -v '^ *+' conftest.er1 >conftest.err
12253 cat conftest.err >&5
12254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } && {
12256 test -z "$ac_c_werror_flag" ||
12257 test ! -s conftest.err
12258 } && test -s conftest.$ac_objext; then
12259 ac_header_compiler=yes
12261 $as_echo "$as_me: failed program was:" >&5
12262 sed 's/^/| /' conftest.$ac_ext >&5
12264 ac_header_compiler=no
12267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12268 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12269 $as_echo "$ac_header_compiler" >&6; }
12271 # Is the header present?
12272 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
12273 $as_echo_n "checking zlib.h presence... " >&6; }
12274 cat >conftest.$ac_ext <<_ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12282 if { (ac_try="$ac_cpp conftest.$ac_ext"
12283 case "(($ac_try" in
12284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12285 *) ac_try_echo=$ac_try;;
12287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12288 $as_echo "$ac_try_echo") >&5
12289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12291 grep -v '^ *+' conftest.er1 >conftest.err
12293 cat conftest.err >&5
12294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); } >/dev/null && {
12296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12297 test ! -s conftest.err
12299 ac_header_preproc=yes
12301 $as_echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12304 ac_header_preproc=no
12307 rm -f conftest.err conftest.$ac_ext
12308 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12309 $as_echo "$ac_header_preproc" >&6; }
12311 # So? What about this header?
12312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12314 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12315 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12316 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12317 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12318 ac_header_preproc=yes
12321 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12322 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12323 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
12324 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
12325 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12326 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12327 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
12328 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
12329 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12330 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12331 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12332 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12334 ## ---------------------------------------- ##
12335 ## Report this to pgsql-bugs@postgresql.org ##
12336 ## ---------------------------------------- ##
12338 ) | sed "s/^/$as_me: WARNING: /" >&2
12341 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12342 $as_echo_n "checking for zlib.h... " >&6; }
12343 if test "${ac_cv_header_zlib_h+set}" = set; then
12344 $as_echo_n "(cached) " >&6
12346 ac_cv_header_zlib_h=$ac_header_preproc
12348 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12349 $as_echo "$ac_cv_header_zlib_h" >&6; }
12352 if test "x$ac_cv_header_zlib_h" = x""yes; then
12355 { { $as_echo "$as_me:$LINENO: error: zlib header not found
12356 If you have zlib already installed, see config.log for details on the
12357 failure. It is possible the compiler isn't looking in the proper directory.
12358 Use --without-zlib to disable zlib support." >&5
12359 $as_echo "$as_me: error: zlib header not found
12360 If you have zlib already installed, see config.log for details on the
12361 failure. It is possible the compiler isn't looking in the proper directory.
12362 Use --without-zlib to disable zlib support." >&2;}
12363 { (exit 1); exit 1; }; }
12369 if test "$with_gssapi" = yes ; then
12371 for ac_header in gssapi/gssapi.h
12373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12375 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12376 $as_echo_n "checking for $ac_header... " >&6; }
12377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12378 $as_echo_n "(cached) " >&6
12380 ac_res=`eval 'as_val=${'$as_ac_Header'}
12381 $as_echo "$as_val"'`
12382 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12383 $as_echo "$ac_res" >&6; }
12385 # Is the header compilable?
12386 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12387 $as_echo_n "checking $ac_header usability... " >&6; }
12388 cat >conftest.$ac_ext <<_ACEOF
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h. */
12394 $ac_includes_default
12395 #include <$ac_header>
12397 rm -f conftest.$ac_objext
12398 if { (ac_try="$ac_compile"
12399 case "(($ac_try" in
12400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401 *) ac_try_echo=$ac_try;;
12403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12404 $as_echo "$ac_try_echo") >&5
12405 (eval "$ac_compile") 2>conftest.er1
12407 grep -v '^ *+' conftest.er1 >conftest.err
12409 cat conftest.err >&5
12410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411 (exit $ac_status); } && {
12412 test -z "$ac_c_werror_flag" ||
12413 test ! -s conftest.err
12414 } && test -s conftest.$ac_objext; then
12415 ac_header_compiler=yes
12417 $as_echo "$as_me: failed program was:" >&5
12418 sed 's/^/| /' conftest.$ac_ext >&5
12420 ac_header_compiler=no
12423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12424 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12425 $as_echo "$ac_header_compiler" >&6; }
12427 # Is the header present?
12428 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12429 $as_echo_n "checking $ac_header presence... " >&6; }
12430 cat >conftest.$ac_ext <<_ACEOF
12433 cat confdefs.h >>conftest.$ac_ext
12434 cat >>conftest.$ac_ext <<_ACEOF
12435 /* end confdefs.h. */
12436 #include <$ac_header>
12438 if { (ac_try="$ac_cpp conftest.$ac_ext"
12439 case "(($ac_try" in
12440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441 *) ac_try_echo=$ac_try;;
12443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12444 $as_echo "$ac_try_echo") >&5
12445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12447 grep -v '^ *+' conftest.er1 >conftest.err
12449 cat conftest.err >&5
12450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } >/dev/null && {
12452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12453 test ! -s conftest.err
12455 ac_header_preproc=yes
12457 $as_echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12460 ac_header_preproc=no
12463 rm -f conftest.err conftest.$ac_ext
12464 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12465 $as_echo "$ac_header_preproc" >&6; }
12467 # So? What about this header?
12468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12471 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12473 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12474 ac_header_preproc=yes
12477 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12478 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12480 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12482 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12484 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12486 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12488 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12490 ## ---------------------------------------- ##
12491 ## Report this to pgsql-bugs@postgresql.org ##
12492 ## ---------------------------------------- ##
12494 ) | sed "s/^/$as_me: WARNING: /" >&2
12497 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12498 $as_echo_n "checking for $ac_header... " >&6; }
12499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12500 $as_echo_n "(cached) " >&6
12502 eval "$as_ac_Header=\$ac_header_preproc"
12504 ac_res=`eval 'as_val=${'$as_ac_Header'}
12505 $as_echo "$as_val"'`
12506 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12507 $as_echo "$ac_res" >&6; }
12510 as_val=`eval 'as_val=${'$as_ac_Header'}
12511 $as_echo "$as_val"'`
12512 if test "x$as_val" = x""yes; then
12513 cat >>confdefs.h <<_ACEOF
12514 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12519 for ac_header in gssapi.h
12521 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12523 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12524 $as_echo_n "checking for $ac_header... " >&6; }
12525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12526 $as_echo_n "(cached) " >&6
12528 ac_res=`eval 'as_val=${'$as_ac_Header'}
12529 $as_echo "$as_val"'`
12530 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12531 $as_echo "$ac_res" >&6; }
12533 # Is the header compilable?
12534 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12535 $as_echo_n "checking $ac_header usability... " >&6; }
12536 cat >conftest.$ac_ext <<_ACEOF
12539 cat confdefs.h >>conftest.$ac_ext
12540 cat >>conftest.$ac_ext <<_ACEOF
12541 /* end confdefs.h. */
12542 $ac_includes_default
12543 #include <$ac_header>
12545 rm -f conftest.$ac_objext
12546 if { (ac_try="$ac_compile"
12547 case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12552 $as_echo "$ac_try_echo") >&5
12553 (eval "$ac_compile") 2>conftest.er1
12555 grep -v '^ *+' conftest.er1 >conftest.err
12557 cat conftest.err >&5
12558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } && {
12560 test -z "$ac_c_werror_flag" ||
12561 test ! -s conftest.err
12562 } && test -s conftest.$ac_objext; then
12563 ac_header_compiler=yes
12565 $as_echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12568 ac_header_compiler=no
12571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12572 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12573 $as_echo "$ac_header_compiler" >&6; }
12575 # Is the header present?
12576 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12577 $as_echo_n "checking $ac_header presence... " >&6; }
12578 cat >conftest.$ac_ext <<_ACEOF
12581 cat confdefs.h >>conftest.$ac_ext
12582 cat >>conftest.$ac_ext <<_ACEOF
12583 /* end confdefs.h. */
12584 #include <$ac_header>
12586 if { (ac_try="$ac_cpp conftest.$ac_ext"
12587 case "(($ac_try" in
12588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589 *) ac_try_echo=$ac_try;;
12591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12592 $as_echo "$ac_try_echo") >&5
12593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12595 grep -v '^ *+' conftest.er1 >conftest.err
12597 cat conftest.err >&5
12598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } >/dev/null && {
12600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12601 test ! -s conftest.err
12603 ac_header_preproc=yes
12605 $as_echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12608 ac_header_preproc=no
12611 rm -f conftest.err conftest.$ac_ext
12612 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12613 $as_echo "$ac_header_preproc" >&6; }
12615 # So? What about this header?
12616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12619 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12621 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12622 ac_header_preproc=yes
12625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12626 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12628 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12630 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12632 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12634 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12635 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12636 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12638 ## ---------------------------------------- ##
12639 ## Report this to pgsql-bugs@postgresql.org ##
12640 ## ---------------------------------------- ##
12642 ) | sed "s/^/$as_me: WARNING: /" >&2
12645 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12646 $as_echo_n "checking for $ac_header... " >&6; }
12647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12648 $as_echo_n "(cached) " >&6
12650 eval "$as_ac_Header=\$ac_header_preproc"
12652 ac_res=`eval 'as_val=${'$as_ac_Header'}
12653 $as_echo "$as_val"'`
12654 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12655 $as_echo "$ac_res" >&6; }
12658 as_val=`eval 'as_val=${'$as_ac_Header'}
12659 $as_echo "$as_val"'`
12660 if test "x$as_val" = x""yes; then
12661 cat >>confdefs.h <<_ACEOF
12662 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12666 { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12667 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12668 { (exit 1); exit 1; }; }
12679 if test "$with_krb5" = yes ; then
12680 if test "${ac_cv_header_krb5_h+set}" = set; then
12681 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12682 $as_echo_n "checking for krb5.h... " >&6; }
12683 if test "${ac_cv_header_krb5_h+set}" = set; then
12684 $as_echo_n "(cached) " >&6
12686 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12687 $as_echo "$ac_cv_header_krb5_h" >&6; }
12689 # Is the header compilable?
12690 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12691 $as_echo_n "checking krb5.h usability... " >&6; }
12692 cat >conftest.$ac_ext <<_ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h. */
12698 $ac_includes_default
12701 rm -f conftest.$ac_objext
12702 if { (ac_try="$ac_compile"
12703 case "(($ac_try" in
12704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705 *) ac_try_echo=$ac_try;;
12707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12708 $as_echo "$ac_try_echo") >&5
12709 (eval "$ac_compile") 2>conftest.er1
12711 grep -v '^ *+' conftest.er1 >conftest.err
12713 cat conftest.err >&5
12714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); } && {
12716 test -z "$ac_c_werror_flag" ||
12717 test ! -s conftest.err
12718 } && test -s conftest.$ac_objext; then
12719 ac_header_compiler=yes
12721 $as_echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.$ac_ext >&5
12724 ac_header_compiler=no
12727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12728 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12729 $as_echo "$ac_header_compiler" >&6; }
12731 # Is the header present?
12732 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12733 $as_echo_n "checking krb5.h presence... " >&6; }
12734 cat >conftest.$ac_ext <<_ACEOF
12737 cat confdefs.h >>conftest.$ac_ext
12738 cat >>conftest.$ac_ext <<_ACEOF
12739 /* end confdefs.h. */
12742 if { (ac_try="$ac_cpp conftest.$ac_ext"
12743 case "(($ac_try" in
12744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745 *) ac_try_echo=$ac_try;;
12747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12748 $as_echo "$ac_try_echo") >&5
12749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12751 grep -v '^ *+' conftest.er1 >conftest.err
12753 cat conftest.err >&5
12754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } >/dev/null && {
12756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12757 test ! -s conftest.err
12759 ac_header_preproc=yes
12761 $as_echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12764 ac_header_preproc=no
12767 rm -f conftest.err conftest.$ac_ext
12768 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12769 $as_echo "$ac_header_preproc" >&6; }
12771 # So? What about this header?
12772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12774 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12775 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12776 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12777 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12778 ac_header_preproc=yes
12781 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12782 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12783 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
12784 $as_echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
12785 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12786 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12787 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
12788 $as_echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
12789 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12790 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12791 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12792 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12794 ## ---------------------------------------- ##
12795 ## Report this to pgsql-bugs@postgresql.org ##
12796 ## ---------------------------------------- ##
12798 ) | sed "s/^/$as_me: WARNING: /" >&2
12801 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12802 $as_echo_n "checking for krb5.h... " >&6; }
12803 if test "${ac_cv_header_krb5_h+set}" = set; then
12804 $as_echo_n "(cached) " >&6
12806 ac_cv_header_krb5_h=$ac_header_preproc
12808 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12809 $as_echo "$ac_cv_header_krb5_h" >&6; }
12812 if test "x$ac_cv_header_krb5_h" = x""yes; then
12815 { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12816 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12817 { (exit 1); exit 1; }; }
12823 if test "$with_openssl" = yes ; then
12824 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12825 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12826 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12827 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12828 $as_echo_n "(cached) " >&6
12830 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12831 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12833 # Is the header compilable?
12834 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12835 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12836 cat >conftest.$ac_ext <<_ACEOF
12839 cat confdefs.h >>conftest.$ac_ext
12840 cat >>conftest.$ac_ext <<_ACEOF
12841 /* end confdefs.h. */
12842 $ac_includes_default
12843 #include <openssl/ssl.h>
12845 rm -f conftest.$ac_objext
12846 if { (ac_try="$ac_compile"
12847 case "(($ac_try" in
12848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849 *) ac_try_echo=$ac_try;;
12851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12852 $as_echo "$ac_try_echo") >&5
12853 (eval "$ac_compile") 2>conftest.er1
12855 grep -v '^ *+' conftest.er1 >conftest.err
12857 cat conftest.err >&5
12858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } && {
12860 test -z "$ac_c_werror_flag" ||
12861 test ! -s conftest.err
12862 } && test -s conftest.$ac_objext; then
12863 ac_header_compiler=yes
12865 $as_echo "$as_me: failed program was:" >&5
12866 sed 's/^/| /' conftest.$ac_ext >&5
12868 ac_header_compiler=no
12871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12873 $as_echo "$ac_header_compiler" >&6; }
12875 # Is the header present?
12876 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12877 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12878 cat >conftest.$ac_ext <<_ACEOF
12881 cat confdefs.h >>conftest.$ac_ext
12882 cat >>conftest.$ac_ext <<_ACEOF
12883 /* end confdefs.h. */
12884 #include <openssl/ssl.h>
12886 if { (ac_try="$ac_cpp conftest.$ac_ext"
12887 case "(($ac_try" in
12888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889 *) ac_try_echo=$ac_try;;
12891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12892 $as_echo "$ac_try_echo") >&5
12893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12895 grep -v '^ *+' conftest.er1 >conftest.err
12897 cat conftest.err >&5
12898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } >/dev/null && {
12900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12901 test ! -s conftest.err
12903 ac_header_preproc=yes
12905 $as_echo "$as_me: failed program was:" >&5
12906 sed 's/^/| /' conftest.$ac_ext >&5
12908 ac_header_preproc=no
12911 rm -f conftest.err conftest.$ac_ext
12912 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12913 $as_echo "$ac_header_preproc" >&6; }
12915 # So? What about this header?
12916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12918 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12919 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12920 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12921 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12922 ac_header_preproc=yes
12925 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12926 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12927 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12928 $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12929 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12930 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12931 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12932 $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12933 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12934 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12935 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12936 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12938 ## ---------------------------------------- ##
12939 ## Report this to pgsql-bugs@postgresql.org ##
12940 ## ---------------------------------------- ##
12942 ) | sed "s/^/$as_me: WARNING: /" >&2
12945 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12946 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12947 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12948 $as_echo_n "(cached) " >&6
12950 ac_cv_header_openssl_ssl_h=$ac_header_preproc
12952 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12953 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12956 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12959 { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12960 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12961 { (exit 1); exit 1; }; }
12965 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12966 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12967 $as_echo_n "checking for openssl/err.h... " >&6; }
12968 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12969 $as_echo_n "(cached) " >&6
12971 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12972 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12974 # Is the header compilable?
12975 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12976 $as_echo_n "checking openssl/err.h usability... " >&6; }
12977 cat >conftest.$ac_ext <<_ACEOF
12980 cat confdefs.h >>conftest.$ac_ext
12981 cat >>conftest.$ac_ext <<_ACEOF
12982 /* end confdefs.h. */
12983 $ac_includes_default
12984 #include <openssl/err.h>
12986 rm -f conftest.$ac_objext
12987 if { (ac_try="$ac_compile"
12988 case "(($ac_try" in
12989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990 *) ac_try_echo=$ac_try;;
12992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12993 $as_echo "$ac_try_echo") >&5
12994 (eval "$ac_compile") 2>conftest.er1
12996 grep -v '^ *+' conftest.er1 >conftest.err
12998 cat conftest.err >&5
12999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); } && {
13001 test -z "$ac_c_werror_flag" ||
13002 test ! -s conftest.err
13003 } && test -s conftest.$ac_objext; then
13004 ac_header_compiler=yes
13006 $as_echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13009 ac_header_compiler=no
13012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13013 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13014 $as_echo "$ac_header_compiler" >&6; }
13016 # Is the header present?
13017 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
13018 $as_echo_n "checking openssl/err.h presence... " >&6; }
13019 cat >conftest.$ac_ext <<_ACEOF
13022 cat confdefs.h >>conftest.$ac_ext
13023 cat >>conftest.$ac_ext <<_ACEOF
13024 /* end confdefs.h. */
13025 #include <openssl/err.h>
13027 if { (ac_try="$ac_cpp conftest.$ac_ext"
13028 case "(($ac_try" in
13029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13030 *) ac_try_echo=$ac_try;;
13032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13033 $as_echo "$ac_try_echo") >&5
13034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13036 grep -v '^ *+' conftest.er1 >conftest.err
13038 cat conftest.err >&5
13039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); } >/dev/null && {
13041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13042 test ! -s conftest.err
13044 ac_header_preproc=yes
13046 $as_echo "$as_me: failed program was:" >&5
13047 sed 's/^/| /' conftest.$ac_ext >&5
13049 ac_header_preproc=no
13052 rm -f conftest.err conftest.$ac_ext
13053 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13054 $as_echo "$ac_header_preproc" >&6; }
13056 # So? What about this header?
13057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13059 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
13060 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13061 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
13062 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
13063 ac_header_preproc=yes
13066 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
13067 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
13068 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
13069 $as_echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
13070 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
13071 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
13072 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
13073 $as_echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
13074 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
13075 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
13076 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
13077 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
13079 ## ---------------------------------------- ##
13080 ## Report this to pgsql-bugs@postgresql.org ##
13081 ## ---------------------------------------- ##
13083 ) | sed "s/^/$as_me: WARNING: /" >&2
13086 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
13087 $as_echo_n "checking for openssl/err.h... " >&6; }
13088 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13089 $as_echo_n "(cached) " >&6
13091 ac_cv_header_openssl_err_h=$ac_header_preproc
13093 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
13094 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
13097 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
13100 { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
13101 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
13102 { (exit 1); exit 1; }; }
13108 if test "$with_pam" = yes ; then
13110 for ac_header in security/pam_appl.h
13112 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13114 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13115 $as_echo_n "checking for $ac_header... " >&6; }
13116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13117 $as_echo_n "(cached) " >&6
13119 ac_res=`eval 'as_val=${'$as_ac_Header'}
13120 $as_echo "$as_val"'`
13121 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13122 $as_echo "$ac_res" >&6; }
13124 # Is the header compilable?
13125 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13126 $as_echo_n "checking $ac_header usability... " >&6; }
13127 cat >conftest.$ac_ext <<_ACEOF
13130 cat confdefs.h >>conftest.$ac_ext
13131 cat >>conftest.$ac_ext <<_ACEOF
13132 /* end confdefs.h. */
13133 $ac_includes_default
13134 #include <$ac_header>
13136 rm -f conftest.$ac_objext
13137 if { (ac_try="$ac_compile"
13138 case "(($ac_try" in
13139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140 *) ac_try_echo=$ac_try;;
13142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13143 $as_echo "$ac_try_echo") >&5
13144 (eval "$ac_compile") 2>conftest.er1
13146 grep -v '^ *+' conftest.er1 >conftest.err
13148 cat conftest.err >&5
13149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } && {
13151 test -z "$ac_c_werror_flag" ||
13152 test ! -s conftest.err
13153 } && test -s conftest.$ac_objext; then
13154 ac_header_compiler=yes
13156 $as_echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13159 ac_header_compiler=no
13162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13163 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13164 $as_echo "$ac_header_compiler" >&6; }
13166 # Is the header present?
13167 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13168 $as_echo_n "checking $ac_header presence... " >&6; }
13169 cat >conftest.$ac_ext <<_ACEOF
13172 cat confdefs.h >>conftest.$ac_ext
13173 cat >>conftest.$ac_ext <<_ACEOF
13174 /* end confdefs.h. */
13175 #include <$ac_header>
13177 if { (ac_try="$ac_cpp conftest.$ac_ext"
13178 case "(($ac_try" in
13179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13180 *) ac_try_echo=$ac_try;;
13182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13183 $as_echo "$ac_try_echo") >&5
13184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13186 grep -v '^ *+' conftest.er1 >conftest.err
13188 cat conftest.err >&5
13189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); } >/dev/null && {
13191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13192 test ! -s conftest.err
13194 ac_header_preproc=yes
13196 $as_echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13199 ac_header_preproc=no
13202 rm -f conftest.err conftest.$ac_ext
13203 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13204 $as_echo "$ac_header_preproc" >&6; }
13206 # So? What about this header?
13207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13210 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13212 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13213 ac_header_preproc=yes
13216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13217 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13219 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13221 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13223 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13225 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13227 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13229 ## ---------------------------------------- ##
13230 ## Report this to pgsql-bugs@postgresql.org ##
13231 ## ---------------------------------------- ##
13233 ) | sed "s/^/$as_me: WARNING: /" >&2
13236 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13237 $as_echo_n "checking for $ac_header... " >&6; }
13238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13239 $as_echo_n "(cached) " >&6
13241 eval "$as_ac_Header=\$ac_header_preproc"
13243 ac_res=`eval 'as_val=${'$as_ac_Header'}
13244 $as_echo "$as_val"'`
13245 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13246 $as_echo "$ac_res" >&6; }
13249 as_val=`eval 'as_val=${'$as_ac_Header'}
13250 $as_echo "$as_val"'`
13251 if test "x$as_val" = x""yes; then
13252 cat >>confdefs.h <<_ACEOF
13253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13258 for ac_header in pam/pam_appl.h
13260 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13262 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13263 $as_echo_n "checking for $ac_header... " >&6; }
13264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13265 $as_echo_n "(cached) " >&6
13267 ac_res=`eval 'as_val=${'$as_ac_Header'}
13268 $as_echo "$as_val"'`
13269 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13270 $as_echo "$ac_res" >&6; }
13272 # Is the header compilable?
13273 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13274 $as_echo_n "checking $ac_header usability... " >&6; }
13275 cat >conftest.$ac_ext <<_ACEOF
13278 cat confdefs.h >>conftest.$ac_ext
13279 cat >>conftest.$ac_ext <<_ACEOF
13280 /* end confdefs.h. */
13281 $ac_includes_default
13282 #include <$ac_header>
13284 rm -f conftest.$ac_objext
13285 if { (ac_try="$ac_compile"
13286 case "(($ac_try" in
13287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13288 *) ac_try_echo=$ac_try;;
13290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13291 $as_echo "$ac_try_echo") >&5
13292 (eval "$ac_compile") 2>conftest.er1
13294 grep -v '^ *+' conftest.er1 >conftest.err
13296 cat conftest.err >&5
13297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); } && {
13299 test -z "$ac_c_werror_flag" ||
13300 test ! -s conftest.err
13301 } && test -s conftest.$ac_objext; then
13302 ac_header_compiler=yes
13304 $as_echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13307 ac_header_compiler=no
13310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13311 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13312 $as_echo "$ac_header_compiler" >&6; }
13314 # Is the header present?
13315 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13316 $as_echo_n "checking $ac_header presence... " >&6; }
13317 cat >conftest.$ac_ext <<_ACEOF
13320 cat confdefs.h >>conftest.$ac_ext
13321 cat >>conftest.$ac_ext <<_ACEOF
13322 /* end confdefs.h. */
13323 #include <$ac_header>
13325 if { (ac_try="$ac_cpp conftest.$ac_ext"
13326 case "(($ac_try" in
13327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328 *) ac_try_echo=$ac_try;;
13330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13331 $as_echo "$ac_try_echo") >&5
13332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13334 grep -v '^ *+' conftest.er1 >conftest.err
13336 cat conftest.err >&5
13337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); } >/dev/null && {
13339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13340 test ! -s conftest.err
13342 ac_header_preproc=yes
13344 $as_echo "$as_me: failed program was:" >&5
13345 sed 's/^/| /' conftest.$ac_ext >&5
13347 ac_header_preproc=no
13350 rm -f conftest.err conftest.$ac_ext
13351 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13352 $as_echo "$ac_header_preproc" >&6; }
13354 # So? What about this header?
13355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13358 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13360 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13361 ac_header_preproc=yes
13364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13365 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13367 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13369 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13371 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13373 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13375 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13377 ## ---------------------------------------- ##
13378 ## Report this to pgsql-bugs@postgresql.org ##
13379 ## ---------------------------------------- ##
13381 ) | sed "s/^/$as_me: WARNING: /" >&2
13384 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13385 $as_echo_n "checking for $ac_header... " >&6; }
13386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13387 $as_echo_n "(cached) " >&6
13389 eval "$as_ac_Header=\$ac_header_preproc"
13391 ac_res=`eval 'as_val=${'$as_ac_Header'}
13392 $as_echo "$as_val"'`
13393 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13394 $as_echo "$ac_res" >&6; }
13397 as_val=`eval 'as_val=${'$as_ac_Header'}
13398 $as_echo "$as_val"'`
13399 if test "x$as_val" = x""yes; then
13400 cat >>confdefs.h <<_ACEOF
13401 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13405 { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13406 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13407 { (exit 1); exit 1; }; }
13418 if test "$with_libxml" = yes ; then
13419 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13420 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13421 $as_echo_n "checking for libxml/parser.h... " >&6; }
13422 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13423 $as_echo_n "(cached) " >&6
13425 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13426 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13428 # Is the header compilable?
13429 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13430 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13431 cat >conftest.$ac_ext <<_ACEOF
13434 cat confdefs.h >>conftest.$ac_ext
13435 cat >>conftest.$ac_ext <<_ACEOF
13436 /* end confdefs.h. */
13437 $ac_includes_default
13438 #include <libxml/parser.h>
13440 rm -f conftest.$ac_objext
13441 if { (ac_try="$ac_compile"
13442 case "(($ac_try" in
13443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13444 *) ac_try_echo=$ac_try;;
13446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13447 $as_echo "$ac_try_echo") >&5
13448 (eval "$ac_compile") 2>conftest.er1
13450 grep -v '^ *+' conftest.er1 >conftest.err
13452 cat conftest.err >&5
13453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } && {
13455 test -z "$ac_c_werror_flag" ||
13456 test ! -s conftest.err
13457 } && test -s conftest.$ac_objext; then
13458 ac_header_compiler=yes
13460 $as_echo "$as_me: failed program was:" >&5
13461 sed 's/^/| /' conftest.$ac_ext >&5
13463 ac_header_compiler=no
13466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13467 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13468 $as_echo "$ac_header_compiler" >&6; }
13470 # Is the header present?
13471 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13472 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13473 cat >conftest.$ac_ext <<_ACEOF
13476 cat confdefs.h >>conftest.$ac_ext
13477 cat >>conftest.$ac_ext <<_ACEOF
13478 /* end confdefs.h. */
13479 #include <libxml/parser.h>
13481 if { (ac_try="$ac_cpp conftest.$ac_ext"
13482 case "(($ac_try" in
13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484 *) ac_try_echo=$ac_try;;
13486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13487 $as_echo "$ac_try_echo") >&5
13488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13490 grep -v '^ *+' conftest.er1 >conftest.err
13492 cat conftest.err >&5
13493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); } >/dev/null && {
13495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13496 test ! -s conftest.err
13498 ac_header_preproc=yes
13500 $as_echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13503 ac_header_preproc=no
13506 rm -f conftest.err conftest.$ac_ext
13507 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13508 $as_echo "$ac_header_preproc" >&6; }
13510 # So? What about this header?
13511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13513 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13514 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13515 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13516 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13517 ac_header_preproc=yes
13520 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13521 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13522 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
13523 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
13524 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13525 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13526 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
13527 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
13528 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13529 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13530 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13531 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13533 ## ---------------------------------------- ##
13534 ## Report this to pgsql-bugs@postgresql.org ##
13535 ## ---------------------------------------- ##
13537 ) | sed "s/^/$as_me: WARNING: /" >&2
13540 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13541 $as_echo_n "checking for libxml/parser.h... " >&6; }
13542 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13543 $as_echo_n "(cached) " >&6
13545 ac_cv_header_libxml_parser_h=$ac_header_preproc
13547 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13548 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13551 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13554 { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13555 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13556 { (exit 1); exit 1; }; }
13562 if test "$with_libxslt" = yes ; then
13563 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13564 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13565 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13566 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13567 $as_echo_n "(cached) " >&6
13569 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13570 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13572 # Is the header compilable?
13573 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13574 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13575 cat >conftest.$ac_ext <<_ACEOF
13578 cat confdefs.h >>conftest.$ac_ext
13579 cat >>conftest.$ac_ext <<_ACEOF
13580 /* end confdefs.h. */
13581 $ac_includes_default
13582 #include <libxslt/xslt.h>
13584 rm -f conftest.$ac_objext
13585 if { (ac_try="$ac_compile"
13586 case "(($ac_try" in
13587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13588 *) ac_try_echo=$ac_try;;
13590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13591 $as_echo "$ac_try_echo") >&5
13592 (eval "$ac_compile") 2>conftest.er1
13594 grep -v '^ *+' conftest.er1 >conftest.err
13596 cat conftest.err >&5
13597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); } && {
13599 test -z "$ac_c_werror_flag" ||
13600 test ! -s conftest.err
13601 } && test -s conftest.$ac_objext; then
13602 ac_header_compiler=yes
13604 $as_echo "$as_me: failed program was:" >&5
13605 sed 's/^/| /' conftest.$ac_ext >&5
13607 ac_header_compiler=no
13610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13611 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13612 $as_echo "$ac_header_compiler" >&6; }
13614 # Is the header present?
13615 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13616 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13617 cat >conftest.$ac_ext <<_ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h. */
13623 #include <libxslt/xslt.h>
13625 if { (ac_try="$ac_cpp conftest.$ac_ext"
13626 case "(($ac_try" in
13627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13628 *) ac_try_echo=$ac_try;;
13630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13631 $as_echo "$ac_try_echo") >&5
13632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13634 grep -v '^ *+' conftest.er1 >conftest.err
13636 cat conftest.err >&5
13637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); } >/dev/null && {
13639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13640 test ! -s conftest.err
13642 ac_header_preproc=yes
13644 $as_echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.$ac_ext >&5
13647 ac_header_preproc=no
13650 rm -f conftest.err conftest.$ac_ext
13651 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13652 $as_echo "$ac_header_preproc" >&6; }
13654 # So? What about this header?
13655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13657 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13658 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13659 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13660 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13661 ac_header_preproc=yes
13664 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13665 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13666 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
13667 $as_echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
13668 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13669 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13670 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
13671 $as_echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
13672 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13673 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13674 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13675 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13677 ## ---------------------------------------- ##
13678 ## Report this to pgsql-bugs@postgresql.org ##
13679 ## ---------------------------------------- ##
13681 ) | sed "s/^/$as_me: WARNING: /" >&2
13684 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13685 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13686 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13687 $as_echo_n "(cached) " >&6
13689 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13691 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13692 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13695 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13698 { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13699 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13700 { (exit 1); exit 1; }; }
13706 if test "$with_ldap" = yes ; then
13707 if test "$PORTNAME" != "win32"; then
13709 for ac_header in ldap.h
13711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13713 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13714 $as_echo_n "checking for $ac_header... " >&6; }
13715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13716 $as_echo_n "(cached) " >&6
13718 ac_res=`eval 'as_val=${'$as_ac_Header'}
13719 $as_echo "$as_val"'`
13720 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13721 $as_echo "$ac_res" >&6; }
13723 # Is the header compilable?
13724 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13725 $as_echo_n "checking $ac_header usability... " >&6; }
13726 cat >conftest.$ac_ext <<_ACEOF
13729 cat confdefs.h >>conftest.$ac_ext
13730 cat >>conftest.$ac_ext <<_ACEOF
13731 /* end confdefs.h. */
13732 $ac_includes_default
13733 #include <$ac_header>
13735 rm -f conftest.$ac_objext
13736 if { (ac_try="$ac_compile"
13737 case "(($ac_try" in
13738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739 *) ac_try_echo=$ac_try;;
13741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13742 $as_echo "$ac_try_echo") >&5
13743 (eval "$ac_compile") 2>conftest.er1
13745 grep -v '^ *+' conftest.er1 >conftest.err
13747 cat conftest.err >&5
13748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); } && {
13750 test -z "$ac_c_werror_flag" ||
13751 test ! -s conftest.err
13752 } && test -s conftest.$ac_objext; then
13753 ac_header_compiler=yes
13755 $as_echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13758 ac_header_compiler=no
13761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13762 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13763 $as_echo "$ac_header_compiler" >&6; }
13765 # Is the header present?
13766 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13767 $as_echo_n "checking $ac_header presence... " >&6; }
13768 cat >conftest.$ac_ext <<_ACEOF
13771 cat confdefs.h >>conftest.$ac_ext
13772 cat >>conftest.$ac_ext <<_ACEOF
13773 /* end confdefs.h. */
13774 #include <$ac_header>
13776 if { (ac_try="$ac_cpp conftest.$ac_ext"
13777 case "(($ac_try" in
13778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13779 *) ac_try_echo=$ac_try;;
13781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13782 $as_echo "$ac_try_echo") >&5
13783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13785 grep -v '^ *+' conftest.er1 >conftest.err
13787 cat conftest.err >&5
13788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); } >/dev/null && {
13790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13791 test ! -s conftest.err
13793 ac_header_preproc=yes
13795 $as_echo "$as_me: failed program was:" >&5
13796 sed 's/^/| /' conftest.$ac_ext >&5
13798 ac_header_preproc=no
13801 rm -f conftest.err conftest.$ac_ext
13802 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13803 $as_echo "$ac_header_preproc" >&6; }
13805 # So? What about this header?
13806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13809 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13811 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13812 ac_header_preproc=yes
13815 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13816 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13817 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13818 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13820 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13822 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13824 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13826 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13828 ## ---------------------------------------- ##
13829 ## Report this to pgsql-bugs@postgresql.org ##
13830 ## ---------------------------------------- ##
13832 ) | sed "s/^/$as_me: WARNING: /" >&2
13835 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13836 $as_echo_n "checking for $ac_header... " >&6; }
13837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13838 $as_echo_n "(cached) " >&6
13840 eval "$as_ac_Header=\$ac_header_preproc"
13842 ac_res=`eval 'as_val=${'$as_ac_Header'}
13843 $as_echo "$as_val"'`
13844 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13845 $as_echo "$ac_res" >&6; }
13848 as_val=`eval 'as_val=${'$as_ac_Header'}
13849 $as_echo "$as_val"'`
13850 if test "x$as_val" = x""yes; then
13851 cat >>confdefs.h <<_ACEOF
13852 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13856 { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13857 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13858 { (exit 1); exit 1; }; }
13865 for ac_header in winldap.h
13867 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13868 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13869 $as_echo_n "checking for $ac_header... " >&6; }
13870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13871 $as_echo_n "(cached) " >&6
13873 cat >conftest.$ac_ext <<_ACEOF
13876 cat confdefs.h >>conftest.$ac_ext
13877 cat >>conftest.$ac_ext <<_ACEOF
13878 /* end confdefs.h. */
13879 $ac_includes_default
13880 #include <windows.h>
13883 #include <$ac_header>
13885 rm -f conftest.$ac_objext
13886 if { (ac_try="$ac_compile"
13887 case "(($ac_try" in
13888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889 *) ac_try_echo=$ac_try;;
13891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13892 $as_echo "$ac_try_echo") >&5
13893 (eval "$ac_compile") 2>conftest.er1
13895 grep -v '^ *+' conftest.er1 >conftest.err
13897 cat conftest.err >&5
13898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); } && {
13900 test -z "$ac_c_werror_flag" ||
13901 test ! -s conftest.err
13902 } && test -s conftest.$ac_objext; then
13903 eval "$as_ac_Header=yes"
13905 $as_echo "$as_me: failed program was:" >&5
13906 sed 's/^/| /' conftest.$ac_ext >&5
13908 eval "$as_ac_Header=no"
13911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13913 ac_res=`eval 'as_val=${'$as_ac_Header'}
13914 $as_echo "$as_val"'`
13915 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13916 $as_echo "$ac_res" >&6; }
13917 as_val=`eval 'as_val=${'$as_ac_Header'}
13918 $as_echo "$as_val"'`
13919 if test "x$as_val" = x""yes; then
13920 cat >>confdefs.h <<_ACEOF
13921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13925 { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13926 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13927 { (exit 1); exit 1; }; }
13935 if test "$with_bonjour" = yes ; then
13936 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13937 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13938 $as_echo_n "checking for dns_sd.h... " >&6; }
13939 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13940 $as_echo_n "(cached) " >&6
13942 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13943 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13945 # Is the header compilable?
13946 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13947 $as_echo_n "checking dns_sd.h usability... " >&6; }
13948 cat >conftest.$ac_ext <<_ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h. */
13954 $ac_includes_default
13955 #include <dns_sd.h>
13957 rm -f conftest.$ac_objext
13958 if { (ac_try="$ac_compile"
13959 case "(($ac_try" in
13960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961 *) ac_try_echo=$ac_try;;
13963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13964 $as_echo "$ac_try_echo") >&5
13965 (eval "$ac_compile") 2>conftest.er1
13967 grep -v '^ *+' conftest.er1 >conftest.err
13969 cat conftest.err >&5
13970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); } && {
13972 test -z "$ac_c_werror_flag" ||
13973 test ! -s conftest.err
13974 } && test -s conftest.$ac_objext; then
13975 ac_header_compiler=yes
13977 $as_echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13980 ac_header_compiler=no
13983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13984 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13985 $as_echo "$ac_header_compiler" >&6; }
13987 # Is the header present?
13988 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13989 $as_echo_n "checking dns_sd.h presence... " >&6; }
13990 cat >conftest.$ac_ext <<_ACEOF
13993 cat confdefs.h >>conftest.$ac_ext
13994 cat >>conftest.$ac_ext <<_ACEOF
13995 /* end confdefs.h. */
13996 #include <dns_sd.h>
13998 if { (ac_try="$ac_cpp conftest.$ac_ext"
13999 case "(($ac_try" in
14000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14001 *) ac_try_echo=$ac_try;;
14003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14004 $as_echo "$ac_try_echo") >&5
14005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14007 grep -v '^ *+' conftest.er1 >conftest.err
14009 cat conftest.err >&5
14010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); } >/dev/null && {
14012 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14013 test ! -s conftest.err
14015 ac_header_preproc=yes
14017 $as_echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14020 ac_header_preproc=no
14023 rm -f conftest.err conftest.$ac_ext
14024 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14025 $as_echo "$ac_header_preproc" >&6; }
14027 # So? What about this header?
14028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14030 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
14031 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14032 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
14033 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
14034 ac_header_preproc=yes
14037 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
14038 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
14039 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: check for missing prerequisite headers?" >&5
14040 $as_echo "$as_me: WARNING: dns_sd.h: check for missing prerequisite headers?" >&2;}
14041 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
14042 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
14043 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&5
14044 $as_echo "$as_me: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&2;}
14045 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
14046 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
14047 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
14048 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
14050 ## ---------------------------------------- ##
14051 ## Report this to pgsql-bugs@postgresql.org ##
14052 ## ---------------------------------------- ##
14054 ) | sed "s/^/$as_me: WARNING: /" >&2
14057 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
14058 $as_echo_n "checking for dns_sd.h... " >&6; }
14059 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14060 $as_echo_n "(cached) " >&6
14062 ac_cv_header_dns_sd_h=$ac_header_preproc
14064 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14065 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14068 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
14071 { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
14072 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
14073 { (exit 1); exit 1; }; }
14079 # for contrib/uuid-ossp
14080 if test "$with_ossp_uuid" = yes ; then
14082 for ac_header in ossp/uuid.h
14084 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14086 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14087 $as_echo_n "checking for $ac_header... " >&6; }
14088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14089 $as_echo_n "(cached) " >&6
14091 ac_res=`eval 'as_val=${'$as_ac_Header'}
14092 $as_echo "$as_val"'`
14093 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14094 $as_echo "$ac_res" >&6; }
14096 # Is the header compilable?
14097 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14098 $as_echo_n "checking $ac_header usability... " >&6; }
14099 cat >conftest.$ac_ext <<_ACEOF
14102 cat confdefs.h >>conftest.$ac_ext
14103 cat >>conftest.$ac_ext <<_ACEOF
14104 /* end confdefs.h. */
14105 $ac_includes_default
14106 #include <$ac_header>
14108 rm -f conftest.$ac_objext
14109 if { (ac_try="$ac_compile"
14110 case "(($ac_try" in
14111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14112 *) ac_try_echo=$ac_try;;
14114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14115 $as_echo "$ac_try_echo") >&5
14116 (eval "$ac_compile") 2>conftest.er1
14118 grep -v '^ *+' conftest.er1 >conftest.err
14120 cat conftest.err >&5
14121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); } && {
14123 test -z "$ac_c_werror_flag" ||
14124 test ! -s conftest.err
14125 } && test -s conftest.$ac_objext; then
14126 ac_header_compiler=yes
14128 $as_echo "$as_me: failed program was:" >&5
14129 sed 's/^/| /' conftest.$ac_ext >&5
14131 ac_header_compiler=no
14134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14135 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14136 $as_echo "$ac_header_compiler" >&6; }
14138 # Is the header present?
14139 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14140 $as_echo_n "checking $ac_header presence... " >&6; }
14141 cat >conftest.$ac_ext <<_ACEOF
14144 cat confdefs.h >>conftest.$ac_ext
14145 cat >>conftest.$ac_ext <<_ACEOF
14146 /* end confdefs.h. */
14147 #include <$ac_header>
14149 if { (ac_try="$ac_cpp conftest.$ac_ext"
14150 case "(($ac_try" in
14151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14152 *) ac_try_echo=$ac_try;;
14154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14155 $as_echo "$ac_try_echo") >&5
14156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14158 grep -v '^ *+' conftest.er1 >conftest.err
14160 cat conftest.err >&5
14161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); } >/dev/null && {
14163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14164 test ! -s conftest.err
14166 ac_header_preproc=yes
14168 $as_echo "$as_me: failed program was:" >&5
14169 sed 's/^/| /' conftest.$ac_ext >&5
14171 ac_header_preproc=no
14174 rm -f conftest.err conftest.$ac_ext
14175 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14176 $as_echo "$ac_header_preproc" >&6; }
14178 # So? What about this header?
14179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14181 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14182 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14184 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14185 ac_header_preproc=yes
14188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14189 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14191 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14193 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14195 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14197 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14199 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14201 ## ---------------------------------------- ##
14202 ## Report this to pgsql-bugs@postgresql.org ##
14203 ## ---------------------------------------- ##
14205 ) | sed "s/^/$as_me: WARNING: /" >&2
14208 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14209 $as_echo_n "checking for $ac_header... " >&6; }
14210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14211 $as_echo_n "(cached) " >&6
14213 eval "$as_ac_Header=\$ac_header_preproc"
14215 ac_res=`eval 'as_val=${'$as_ac_Header'}
14216 $as_echo "$as_val"'`
14217 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14218 $as_echo "$ac_res" >&6; }
14221 as_val=`eval 'as_val=${'$as_ac_Header'}
14222 $as_echo "$as_val"'`
14223 if test "x$as_val" = x""yes; then
14224 cat >>confdefs.h <<_ACEOF
14225 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14231 for ac_header in uuid.h
14233 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14235 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14236 $as_echo_n "checking for $ac_header... " >&6; }
14237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14238 $as_echo_n "(cached) " >&6
14240 ac_res=`eval 'as_val=${'$as_ac_Header'}
14241 $as_echo "$as_val"'`
14242 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14243 $as_echo "$ac_res" >&6; }
14245 # Is the header compilable?
14246 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14247 $as_echo_n "checking $ac_header usability... " >&6; }
14248 cat >conftest.$ac_ext <<_ACEOF
14251 cat confdefs.h >>conftest.$ac_ext
14252 cat >>conftest.$ac_ext <<_ACEOF
14253 /* end confdefs.h. */
14254 $ac_includes_default
14255 #include <$ac_header>
14257 rm -f conftest.$ac_objext
14258 if { (ac_try="$ac_compile"
14259 case "(($ac_try" in
14260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261 *) ac_try_echo=$ac_try;;
14263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14264 $as_echo "$ac_try_echo") >&5
14265 (eval "$ac_compile") 2>conftest.er1
14267 grep -v '^ *+' conftest.er1 >conftest.err
14269 cat conftest.err >&5
14270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } && {
14272 test -z "$ac_c_werror_flag" ||
14273 test ! -s conftest.err
14274 } && test -s conftest.$ac_objext; then
14275 ac_header_compiler=yes
14277 $as_echo "$as_me: failed program was:" >&5
14278 sed 's/^/| /' conftest.$ac_ext >&5
14280 ac_header_compiler=no
14283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14284 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14285 $as_echo "$ac_header_compiler" >&6; }
14287 # Is the header present?
14288 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14289 $as_echo_n "checking $ac_header presence... " >&6; }
14290 cat >conftest.$ac_ext <<_ACEOF
14293 cat confdefs.h >>conftest.$ac_ext
14294 cat >>conftest.$ac_ext <<_ACEOF
14295 /* end confdefs.h. */
14296 #include <$ac_header>
14298 if { (ac_try="$ac_cpp conftest.$ac_ext"
14299 case "(($ac_try" in
14300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14301 *) ac_try_echo=$ac_try;;
14303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14304 $as_echo "$ac_try_echo") >&5
14305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14307 grep -v '^ *+' conftest.er1 >conftest.err
14309 cat conftest.err >&5
14310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); } >/dev/null && {
14312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14313 test ! -s conftest.err
14315 ac_header_preproc=yes
14317 $as_echo "$as_me: failed program was:" >&5
14318 sed 's/^/| /' conftest.$ac_ext >&5
14320 ac_header_preproc=no
14323 rm -f conftest.err conftest.$ac_ext
14324 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14325 $as_echo "$ac_header_preproc" >&6; }
14327 # So? What about this header?
14328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14331 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14333 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14334 ac_header_preproc=yes
14337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14338 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14340 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14342 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14344 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14346 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14348 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14350 ## ---------------------------------------- ##
14351 ## Report this to pgsql-bugs@postgresql.org ##
14352 ## ---------------------------------------- ##
14354 ) | sed "s/^/$as_me: WARNING: /" >&2
14357 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14358 $as_echo_n "checking for $ac_header... " >&6; }
14359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14360 $as_echo_n "(cached) " >&6
14362 eval "$as_ac_Header=\$ac_header_preproc"
14364 ac_res=`eval 'as_val=${'$as_ac_Header'}
14365 $as_echo "$as_val"'`
14366 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14367 $as_echo "$ac_res" >&6; }
14370 as_val=`eval 'as_val=${'$as_ac_Header'}
14371 $as_echo "$as_val"'`
14372 if test "x$as_val" = x""yes; then
14373 cat >>confdefs.h <<_ACEOF
14374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14378 { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14379 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14380 { (exit 1); exit 1; }; }
14391 if test "$PORTNAME" = "win32" ; then
14393 for ac_header in crtdefs.h
14395 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14397 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14398 $as_echo_n "checking for $ac_header... " >&6; }
14399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14400 $as_echo_n "(cached) " >&6
14402 ac_res=`eval 'as_val=${'$as_ac_Header'}
14403 $as_echo "$as_val"'`
14404 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14405 $as_echo "$ac_res" >&6; }
14407 # Is the header compilable?
14408 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14409 $as_echo_n "checking $ac_header usability... " >&6; }
14410 cat >conftest.$ac_ext <<_ACEOF
14413 cat confdefs.h >>conftest.$ac_ext
14414 cat >>conftest.$ac_ext <<_ACEOF
14415 /* end confdefs.h. */
14416 $ac_includes_default
14417 #include <$ac_header>
14419 rm -f conftest.$ac_objext
14420 if { (ac_try="$ac_compile"
14421 case "(($ac_try" in
14422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423 *) ac_try_echo=$ac_try;;
14425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14426 $as_echo "$ac_try_echo") >&5
14427 (eval "$ac_compile") 2>conftest.er1
14429 grep -v '^ *+' conftest.er1 >conftest.err
14431 cat conftest.err >&5
14432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); } && {
14434 test -z "$ac_c_werror_flag" ||
14435 test ! -s conftest.err
14436 } && test -s conftest.$ac_objext; then
14437 ac_header_compiler=yes
14439 $as_echo "$as_me: failed program was:" >&5
14440 sed 's/^/| /' conftest.$ac_ext >&5
14442 ac_header_compiler=no
14445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14446 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14447 $as_echo "$ac_header_compiler" >&6; }
14449 # Is the header present?
14450 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14451 $as_echo_n "checking $ac_header presence... " >&6; }
14452 cat >conftest.$ac_ext <<_ACEOF
14455 cat confdefs.h >>conftest.$ac_ext
14456 cat >>conftest.$ac_ext <<_ACEOF
14457 /* end confdefs.h. */
14458 #include <$ac_header>
14460 if { (ac_try="$ac_cpp conftest.$ac_ext"
14461 case "(($ac_try" in
14462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14463 *) ac_try_echo=$ac_try;;
14465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14466 $as_echo "$ac_try_echo") >&5
14467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14469 grep -v '^ *+' conftest.er1 >conftest.err
14471 cat conftest.err >&5
14472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); } >/dev/null && {
14474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14475 test ! -s conftest.err
14477 ac_header_preproc=yes
14479 $as_echo "$as_me: failed program was:" >&5
14480 sed 's/^/| /' conftest.$ac_ext >&5
14482 ac_header_preproc=no
14485 rm -f conftest.err conftest.$ac_ext
14486 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14487 $as_echo "$ac_header_preproc" >&6; }
14489 # So? What about this header?
14490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14493 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14495 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14496 ac_header_preproc=yes
14499 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14500 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14501 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14502 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14504 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14505 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14506 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14507 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14508 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14509 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14510 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14512 ## ---------------------------------------- ##
14513 ## Report this to pgsql-bugs@postgresql.org ##
14514 ## ---------------------------------------- ##
14516 ) | sed "s/^/$as_me: WARNING: /" >&2
14519 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14520 $as_echo_n "checking for $ac_header... " >&6; }
14521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14522 $as_echo_n "(cached) " >&6
14524 eval "$as_ac_Header=\$ac_header_preproc"
14526 ac_res=`eval 'as_val=${'$as_ac_Header'}
14527 $as_echo "$as_val"'`
14528 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14529 $as_echo "$ac_res" >&6; }
14532 as_val=`eval 'as_val=${'$as_ac_Header'}
14533 $as_echo "$as_val"'`
14534 if test "x$as_val" = x""yes; then
14535 cat >>confdefs.h <<_ACEOF
14536 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14546 ## Types, structures, compiler characteristics
14550 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14551 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14552 if test "${ac_cv_c_bigendian+set}" = set; then
14553 $as_echo_n "(cached) " >&6
14555 ac_cv_c_bigendian=unknown
14556 # See if we're dealing with a universal compiler.
14557 cat >conftest.$ac_ext <<_ACEOF
14560 cat confdefs.h >>conftest.$ac_ext
14561 cat >>conftest.$ac_ext <<_ACEOF
14562 /* end confdefs.h. */
14563 #ifndef __APPLE_CC__
14564 not a universal capable compiler
14569 rm -f conftest.$ac_objext
14570 if { (ac_try="$ac_compile"
14571 case "(($ac_try" in
14572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573 *) ac_try_echo=$ac_try;;
14575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14576 $as_echo "$ac_try_echo") >&5
14577 (eval "$ac_compile") 2>conftest.er1
14579 grep -v '^ *+' conftest.er1 >conftest.err
14581 cat conftest.err >&5
14582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); } && {
14584 test -z "$ac_c_werror_flag" ||
14585 test ! -s conftest.err
14586 } && test -s conftest.$ac_objext; then
14588 # Check for potential -arch flags. It is not universal unless
14589 # there are some -arch flags. Note that *ppc* also matches
14590 # ppc64. This check is also rather less than ideal.
14591 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14592 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14595 $as_echo "$as_me: failed program was:" >&5
14596 sed 's/^/| /' conftest.$ac_ext >&5
14601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14602 if test $ac_cv_c_bigendian = unknown; then
14603 # See if sys/param.h defines the BYTE_ORDER macro.
14604 cat >conftest.$ac_ext <<_ACEOF
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h. */
14610 #include <sys/types.h>
14611 #include <sys/param.h>
14616 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14617 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14619 bogus endian macros
14626 rm -f conftest.$ac_objext
14627 if { (ac_try="$ac_compile"
14628 case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14633 $as_echo "$ac_try_echo") >&5
14634 (eval "$ac_compile") 2>conftest.er1
14636 grep -v '^ *+' conftest.er1 >conftest.err
14638 cat conftest.err >&5
14639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); } && {
14641 test -z "$ac_c_werror_flag" ||
14642 test ! -s conftest.err
14643 } && test -s conftest.$ac_objext; then
14644 # It does; now see whether it defined to BIG_ENDIAN or not.
14645 cat >conftest.$ac_ext <<_ACEOF
14648 cat confdefs.h >>conftest.$ac_ext
14649 cat >>conftest.$ac_ext <<_ACEOF
14650 /* end confdefs.h. */
14651 #include <sys/types.h>
14652 #include <sys/param.h>
14657 #if BYTE_ORDER != BIG_ENDIAN
14665 rm -f conftest.$ac_objext
14666 if { (ac_try="$ac_compile"
14667 case "(($ac_try" in
14668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14669 *) ac_try_echo=$ac_try;;
14671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14672 $as_echo "$ac_try_echo") >&5
14673 (eval "$ac_compile") 2>conftest.er1
14675 grep -v '^ *+' conftest.er1 >conftest.err
14677 cat conftest.err >&5
14678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } && {
14680 test -z "$ac_c_werror_flag" ||
14681 test ! -s conftest.err
14682 } && test -s conftest.$ac_objext; then
14683 ac_cv_c_bigendian=yes
14685 $as_echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14688 ac_cv_c_bigendian=no
14691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14693 $as_echo "$as_me: failed program was:" >&5
14694 sed 's/^/| /' conftest.$ac_ext >&5
14699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14701 if test $ac_cv_c_bigendian = unknown; then
14702 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14703 cat >conftest.$ac_ext <<_ACEOF
14706 cat confdefs.h >>conftest.$ac_ext
14707 cat >>conftest.$ac_ext <<_ACEOF
14708 /* end confdefs.h. */
14709 #include <limits.h>
14714 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14715 bogus endian macros
14722 rm -f conftest.$ac_objext
14723 if { (ac_try="$ac_compile"
14724 case "(($ac_try" in
14725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726 *) ac_try_echo=$ac_try;;
14728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14729 $as_echo "$ac_try_echo") >&5
14730 (eval "$ac_compile") 2>conftest.er1
14732 grep -v '^ *+' conftest.er1 >conftest.err
14734 cat conftest.err >&5
14735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); } && {
14737 test -z "$ac_c_werror_flag" ||
14738 test ! -s conftest.err
14739 } && test -s conftest.$ac_objext; then
14740 # It does; now see whether it defined to _BIG_ENDIAN or not.
14741 cat >conftest.$ac_ext <<_ACEOF
14744 cat confdefs.h >>conftest.$ac_ext
14745 cat >>conftest.$ac_ext <<_ACEOF
14746 /* end confdefs.h. */
14747 #include <limits.h>
14752 #ifndef _BIG_ENDIAN
14760 rm -f conftest.$ac_objext
14761 if { (ac_try="$ac_compile"
14762 case "(($ac_try" in
14763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764 *) ac_try_echo=$ac_try;;
14766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14767 $as_echo "$ac_try_echo") >&5
14768 (eval "$ac_compile") 2>conftest.er1
14770 grep -v '^ *+' conftest.er1 >conftest.err
14772 cat conftest.err >&5
14773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); } && {
14775 test -z "$ac_c_werror_flag" ||
14776 test ! -s conftest.err
14777 } && test -s conftest.$ac_objext; then
14778 ac_cv_c_bigendian=yes
14780 $as_echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14783 ac_cv_c_bigendian=no
14786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14788 $as_echo "$as_me: failed program was:" >&5
14789 sed 's/^/| /' conftest.$ac_ext >&5
14794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14796 if test $ac_cv_c_bigendian = unknown; then
14797 # Compile a test program.
14798 if test "$cross_compiling" = yes; then
14799 # Try to guess by grepping values from an object file.
14800 cat >conftest.$ac_ext <<_ACEOF
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h. */
14806 short int ascii_mm[] =
14807 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14808 short int ascii_ii[] =
14809 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14810 int use_ascii (int i) {
14811 return ascii_mm[i] + ascii_ii[i];
14813 short int ebcdic_ii[] =
14814 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14815 short int ebcdic_mm[] =
14816 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14817 int use_ebcdic (int i) {
14818 return ebcdic_mm[i] + ebcdic_ii[i];
14825 return use_ascii (foo) == use_ebcdic (foo);
14830 rm -f conftest.$ac_objext
14831 if { (ac_try="$ac_compile"
14832 case "(($ac_try" in
14833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14834 *) ac_try_echo=$ac_try;;
14836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14837 $as_echo "$ac_try_echo") >&5
14838 (eval "$ac_compile") 2>conftest.er1
14840 grep -v '^ *+' conftest.er1 >conftest.err
14842 cat conftest.err >&5
14843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); } && {
14845 test -z "$ac_c_werror_flag" ||
14846 test ! -s conftest.err
14847 } && test -s conftest.$ac_objext; then
14848 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14849 ac_cv_c_bigendian=yes
14851 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14852 if test "$ac_cv_c_bigendian" = unknown; then
14853 ac_cv_c_bigendian=no
14855 # finding both strings is unlikely to happen, but who knows?
14856 ac_cv_c_bigendian=unknown
14860 $as_echo "$as_me: failed program was:" >&5
14861 sed 's/^/| /' conftest.$ac_ext >&5
14866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14868 cat >conftest.$ac_ext <<_ACEOF
14871 cat confdefs.h >>conftest.$ac_ext
14872 cat >>conftest.$ac_ext <<_ACEOF
14873 /* end confdefs.h. */
14874 $ac_includes_default
14879 /* Are we little or big endian? From Harbison&Steele. */
14883 char c[sizeof (long int)];
14886 return u.c[sizeof (long int) - 1] == 1;
14892 rm -f conftest$ac_exeext
14893 if { (ac_try="$ac_link"
14894 case "(($ac_try" in
14895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14896 *) ac_try_echo=$ac_try;;
14898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14899 $as_echo "$ac_try_echo") >&5
14900 (eval "$ac_link") 2>&5
14902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14904 { (case "(($ac_try" in
14905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906 *) ac_try_echo=$ac_try;;
14908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14909 $as_echo "$ac_try_echo") >&5
14910 (eval "$ac_try") 2>&5
14912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; }; then
14914 ac_cv_c_bigendian=no
14916 $as_echo "$as_me: program exited with status $ac_status" >&5
14917 $as_echo "$as_me: failed program was:" >&5
14918 sed 's/^/| /' conftest.$ac_ext >&5
14920 ( exit $ac_status )
14921 ac_cv_c_bigendian=yes
14923 rm -rf conftest.dSYM
14924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14930 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14931 $as_echo "$ac_cv_c_bigendian" >&6; }
14932 case $ac_cv_c_bigendian in #(
14934 cat >>confdefs.h <<\_ACEOF
14935 #define WORDS_BIGENDIAN 1
14942 cat >>confdefs.h <<\_ACEOF
14943 #define AC_APPLE_UNIVERSAL_BUILD 1
14948 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14949 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14950 $as_echo "$as_me: error: unknown endianness
14951 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14952 { (exit 1); exit 1; }; } ;;
14955 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14956 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14957 if test "${ac_cv_c_const+set}" = set; then
14958 $as_echo_n "(cached) " >&6
14960 cat >conftest.$ac_ext <<_ACEOF
14963 cat confdefs.h >>conftest.$ac_ext
14964 cat >>conftest.$ac_ext <<_ACEOF
14965 /* end confdefs.h. */
14970 /* FIXME: Include the comments suggested by Paul. */
14971 #ifndef __cplusplus
14972 /* Ultrix mips cc rejects this. */
14973 typedef int charset[2];
14975 /* SunOS 4.1.1 cc rejects this. */
14976 char const *const *pcpcc;
14978 /* NEC SVR4.0.2 mips cc rejects this. */
14979 struct point {int x, y;};
14980 static struct point const zero = {0,0};
14981 /* AIX XL C 1.02.0.0 rejects this.
14982 It does not let you subtract one const X* pointer from another in
14983 an arm of an if-expression whose if-part is not a constant
14985 const char *g = "string";
14986 pcpcc = &g + (g ? g-g : 0);
14987 /* HPUX 7.0 cc rejects these. */
14989 ppc = (char**) pcpcc;
14990 pcpcc = (char const *const *) ppc;
14991 { /* SCO 3.2v4 cc rejects this. */
14993 char const *s = 0 ? (char *) 0 : (char const *) 0;
14998 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14999 int x[] = {25, 17};
15000 const int *foo = &x[0];
15003 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15004 typedef const int *iptr;
15008 { /* AIX XL C 1.02.0.0 rejects this saying
15009 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15010 struct s { int j; const int *ap[3]; };
15011 struct s *b; b->j = 5;
15013 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15014 const int foo = 10;
15015 if (!foo) return 0;
15017 return !cs[0] && !zero.x;
15024 rm -f conftest.$ac_objext
15025 if { (ac_try="$ac_compile"
15026 case "(($ac_try" in
15027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028 *) ac_try_echo=$ac_try;;
15030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15031 $as_echo "$ac_try_echo") >&5
15032 (eval "$ac_compile") 2>conftest.er1
15034 grep -v '^ *+' conftest.er1 >conftest.err
15036 cat conftest.err >&5
15037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); } && {
15039 test -z "$ac_c_werror_flag" ||
15040 test ! -s conftest.err
15041 } && test -s conftest.$ac_objext; then
15044 $as_echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15053 $as_echo "$ac_cv_c_const" >&6; }
15054 if test $ac_cv_c_const = no; then
15056 cat >>confdefs.h <<\_ACEOF
15062 { $as_echo "$as_me:$LINENO: checking for inline" >&5
15063 $as_echo_n "checking for inline... " >&6; }
15064 if test "${ac_cv_c_inline+set}" = set; then
15065 $as_echo_n "(cached) " >&6
15068 for ac_kw in inline __inline__ __inline; do
15069 cat >conftest.$ac_ext <<_ACEOF
15072 cat confdefs.h >>conftest.$ac_ext
15073 cat >>conftest.$ac_ext <<_ACEOF
15074 /* end confdefs.h. */
15075 #ifndef __cplusplus
15077 static $ac_kw foo_t static_foo () {return 0; }
15078 $ac_kw foo_t foo () {return 0; }
15082 rm -f conftest.$ac_objext
15083 if { (ac_try="$ac_compile"
15084 case "(($ac_try" in
15085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15086 *) ac_try_echo=$ac_try;;
15088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15089 $as_echo "$ac_try_echo") >&5
15090 (eval "$ac_compile") 2>conftest.er1
15092 grep -v '^ *+' conftest.er1 >conftest.err
15094 cat conftest.err >&5
15095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } && {
15097 test -z "$ac_c_werror_flag" ||
15098 test ! -s conftest.err
15099 } && test -s conftest.$ac_objext; then
15100 ac_cv_c_inline=$ac_kw
15102 $as_echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15109 test "$ac_cv_c_inline" != no && break
15113 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15114 $as_echo "$ac_cv_c_inline" >&6; }
15117 case $ac_cv_c_inline in
15120 case $ac_cv_c_inline in
15122 *) ac_val=$ac_cv_c_inline;;
15124 cat >>confdefs.h <<_ACEOF
15125 #ifndef __cplusplus
15126 #define inline $ac_val
15132 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
15133 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
15134 if test "${pgac_cv_c_inline_quietly+set}" = set; then
15135 $as_echo_n "(cached) " >&6
15137 pgac_cv_c_inline_quietly=no
15138 if test "$ac_cv_c_inline" != no; then
15139 pgac_c_inline_save_werror=$ac_c_werror_flag
15140 ac_c_werror_flag=yes
15141 cat >conftest.$ac_ext <<_ACEOF
15144 cat confdefs.h >>conftest.$ac_ext
15145 cat >>conftest.$ac_ext <<_ACEOF
15146 /* end confdefs.h. */
15147 static inline int fun () {return 0;}
15156 rm -f conftest.$ac_objext conftest$ac_exeext
15157 if { (ac_try="$ac_link"
15158 case "(($ac_try" in
15159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160 *) ac_try_echo=$ac_try;;
15162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15163 $as_echo "$ac_try_echo") >&5
15164 (eval "$ac_link") 2>conftest.er1
15166 grep -v '^ *+' conftest.er1 >conftest.err
15168 cat conftest.err >&5
15169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); } && {
15171 test -z "$ac_c_werror_flag" ||
15172 test ! -s conftest.err
15173 } && test -s conftest$ac_exeext && {
15174 test "$cross_compiling" = yes ||
15175 $as_test_x conftest$ac_exeext
15177 pgac_cv_c_inline_quietly=yes
15179 $as_echo "$as_me: failed program was:" >&5
15180 sed 's/^/| /' conftest.$ac_ext >&5
15185 rm -rf conftest.dSYM
15186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15187 conftest$ac_exeext conftest.$ac_ext
15188 ac_c_werror_flag=$pgac_c_inline_save_werror
15191 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
15192 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
15193 if test "$pgac_cv_c_inline_quietly" != no; then
15195 cat >>confdefs.h <<_ACEOF
15196 #define USE_INLINE 1
15201 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
15202 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
15203 if test "${ac_cv_c_stringize+set}" = set; then
15204 $as_echo_n "(cached) " >&6
15206 cat >conftest.$ac_ext <<_ACEOF
15209 cat confdefs.h >>conftest.$ac_ext
15210 cat >>conftest.$ac_ext <<_ACEOF
15211 /* end confdefs.h. */
15214 char *s = x(teststring);
15216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15217 $EGREP "#teststring" >/dev/null 2>&1; then
15218 ac_cv_c_stringize=no
15220 ac_cv_c_stringize=yes
15225 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
15226 $as_echo "$ac_cv_c_stringize" >&6; }
15227 if test $ac_cv_c_stringize = yes; then
15229 cat >>confdefs.h <<\_ACEOF
15230 #define HAVE_STRINGIZE 1
15236 { $as_echo "$as_me:$LINENO: checking for flexible array members" >&5
15237 $as_echo_n "checking for flexible array members... " >&6; }
15238 if test "${ac_cv_c_flexmember+set}" = set; then
15239 $as_echo_n "(cached) " >&6
15241 cat >conftest.$ac_ext <<_ACEOF
15244 cat confdefs.h >>conftest.$ac_ext
15245 cat >>conftest.$ac_ext <<_ACEOF
15246 /* end confdefs.h. */
15247 #include <stdlib.h>
15249 #include <stddef.h>
15250 struct s { int n; double d[]; };
15254 int m = getchar ();
15255 struct s *p = malloc (offsetof (struct s, d)
15256 + m * sizeof (double));
15258 return p->d != (double *) NULL;
15263 rm -f conftest.$ac_objext
15264 if { (ac_try="$ac_compile"
15265 case "(($ac_try" in
15266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267 *) ac_try_echo=$ac_try;;
15269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15270 $as_echo "$ac_try_echo") >&5
15271 (eval "$ac_compile") 2>conftest.er1
15273 grep -v '^ *+' conftest.er1 >conftest.err
15275 cat conftest.err >&5
15276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); } && {
15278 test -z "$ac_c_werror_flag" ||
15279 test ! -s conftest.err
15280 } && test -s conftest.$ac_objext; then
15281 ac_cv_c_flexmember=yes
15283 $as_echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15286 ac_cv_c_flexmember=no
15289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15291 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
15292 $as_echo "$ac_cv_c_flexmember" >&6; }
15293 if test $ac_cv_c_flexmember = yes; then
15295 cat >>confdefs.h <<\_ACEOF
15296 #define FLEXIBLE_ARRAY_MEMBER /**/
15300 cat >>confdefs.h <<\_ACEOF
15301 #define FLEXIBLE_ARRAY_MEMBER 1
15306 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
15307 $as_echo_n "checking for signed types... " >&6; }
15308 if test "${pgac_cv_c_signed+set}" = set; then
15309 $as_echo_n "(cached) " >&6
15311 cat >conftest.$ac_ext <<_ACEOF
15314 cat confdefs.h >>conftest.$ac_ext
15315 cat >>conftest.$ac_ext <<_ACEOF
15316 /* end confdefs.h. */
15321 signed char c; signed short s; signed int i;
15326 rm -f conftest.$ac_objext
15327 if { (ac_try="$ac_compile"
15328 case "(($ac_try" in
15329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330 *) ac_try_echo=$ac_try;;
15332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15333 $as_echo "$ac_try_echo") >&5
15334 (eval "$ac_compile") 2>conftest.er1
15336 grep -v '^ *+' conftest.er1 >conftest.err
15338 cat conftest.err >&5
15339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); } && {
15341 test -z "$ac_c_werror_flag" ||
15342 test ! -s conftest.err
15343 } && test -s conftest.$ac_objext; then
15344 pgac_cv_c_signed=yes
15346 $as_echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15349 pgac_cv_c_signed=no
15352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15354 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
15355 $as_echo "$pgac_cv_c_signed" >&6; }
15356 if test x"$pgac_cv_c_signed" = xno ; then
15358 cat >>confdefs.h <<\_ACEOF
15359 #define signed /**/
15363 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
15364 $as_echo_n "checking for working volatile... " >&6; }
15365 if test "${ac_cv_c_volatile+set}" = set; then
15366 $as_echo_n "(cached) " >&6
15368 cat >conftest.$ac_ext <<_ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h. */
15380 int * volatile y = (int *) 0;
15386 rm -f conftest.$ac_objext
15387 if { (ac_try="$ac_compile"
15388 case "(($ac_try" in
15389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15390 *) ac_try_echo=$ac_try;;
15392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15393 $as_echo "$ac_try_echo") >&5
15394 (eval "$ac_compile") 2>conftest.er1
15396 grep -v '^ *+' conftest.er1 >conftest.err
15398 cat conftest.err >&5
15399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); } && {
15401 test -z "$ac_c_werror_flag" ||
15402 test ! -s conftest.err
15403 } && test -s conftest.$ac_objext; then
15404 ac_cv_c_volatile=yes
15406 $as_echo "$as_me: failed program was:" >&5
15407 sed 's/^/| /' conftest.$ac_ext >&5
15409 ac_cv_c_volatile=no
15412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15414 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
15415 $as_echo "$ac_cv_c_volatile" >&6; }
15416 if test $ac_cv_c_volatile = no; then
15418 cat >>confdefs.h <<\_ACEOF
15419 #define volatile /**/
15424 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
15425 $as_echo_n "checking for __func__... " >&6; }
15426 if test "${pgac_cv_funcname_func_support+set}" = set; then
15427 $as_echo_n "(cached) " >&6
15429 cat >conftest.$ac_ext <<_ACEOF
15432 cat confdefs.h >>conftest.$ac_ext
15433 cat >>conftest.$ac_ext <<_ACEOF
15434 /* end confdefs.h. */
15439 printf("%s\n", __func__);
15444 rm -f conftest.$ac_objext
15445 if { (ac_try="$ac_compile"
15446 case "(($ac_try" in
15447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15448 *) ac_try_echo=$ac_try;;
15450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15451 $as_echo "$ac_try_echo") >&5
15452 (eval "$ac_compile") 2>conftest.er1
15454 grep -v '^ *+' conftest.er1 >conftest.err
15456 cat conftest.err >&5
15457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); } && {
15459 test -z "$ac_c_werror_flag" ||
15460 test ! -s conftest.err
15461 } && test -s conftest.$ac_objext; then
15462 pgac_cv_funcname_func_support=yes
15464 $as_echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.$ac_ext >&5
15467 pgac_cv_funcname_func_support=no
15470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15472 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15473 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15474 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15476 cat >>confdefs.h <<\_ACEOF
15477 #define HAVE_FUNCNAME__FUNC 1
15481 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15482 $as_echo_n "checking for __FUNCTION__... " >&6; }
15483 if test "${pgac_cv_funcname_function_support+set}" = set; then
15484 $as_echo_n "(cached) " >&6
15486 cat >conftest.$ac_ext <<_ACEOF
15489 cat confdefs.h >>conftest.$ac_ext
15490 cat >>conftest.$ac_ext <<_ACEOF
15491 /* end confdefs.h. */
15496 printf("%s\n", __FUNCTION__);
15501 rm -f conftest.$ac_objext
15502 if { (ac_try="$ac_compile"
15503 case "(($ac_try" in
15504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15505 *) ac_try_echo=$ac_try;;
15507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15508 $as_echo "$ac_try_echo") >&5
15509 (eval "$ac_compile") 2>conftest.er1
15511 grep -v '^ *+' conftest.er1 >conftest.err
15513 cat conftest.err >&5
15514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); } && {
15516 test -z "$ac_c_werror_flag" ||
15517 test ! -s conftest.err
15518 } && test -s conftest.$ac_objext; then
15519 pgac_cv_funcname_function_support=yes
15521 $as_echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15524 pgac_cv_funcname_function_support=no
15527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15529 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15530 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15531 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15533 cat >>confdefs.h <<\_ACEOF
15534 #define HAVE_FUNCNAME__FUNCTION 1
15539 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
15540 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
15541 if test "${ac_cv_struct_tm+set}" = set; then
15542 $as_echo_n "(cached) " >&6
15544 cat >conftest.$ac_ext <<_ACEOF
15547 cat confdefs.h >>conftest.$ac_ext
15548 cat >>conftest.$ac_ext <<_ACEOF
15549 /* end confdefs.h. */
15550 #include <sys/types.h>
15557 int *p = &tm.tm_sec;
15563 rm -f conftest.$ac_objext
15564 if { (ac_try="$ac_compile"
15565 case "(($ac_try" in
15566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15567 *) ac_try_echo=$ac_try;;
15569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15570 $as_echo "$ac_try_echo") >&5
15571 (eval "$ac_compile") 2>conftest.er1
15573 grep -v '^ *+' conftest.er1 >conftest.err
15575 cat conftest.err >&5
15576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); } && {
15578 test -z "$ac_c_werror_flag" ||
15579 test ! -s conftest.err
15580 } && test -s conftest.$ac_objext; then
15581 ac_cv_struct_tm=time.h
15583 $as_echo "$as_me: failed program was:" >&5
15584 sed 's/^/| /' conftest.$ac_ext >&5
15586 ac_cv_struct_tm=sys/time.h
15589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15591 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
15592 $as_echo "$ac_cv_struct_tm" >&6; }
15593 if test $ac_cv_struct_tm = sys/time.h; then
15595 cat >>confdefs.h <<\_ACEOF
15596 #define TM_IN_SYS_TIME 1
15601 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
15602 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
15603 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
15604 $as_echo_n "(cached) " >&6
15606 cat >conftest.$ac_ext <<_ACEOF
15609 cat confdefs.h >>conftest.$ac_ext
15610 cat >>conftest.$ac_ext <<_ACEOF
15611 /* end confdefs.h. */
15612 #include <sys/types.h>
15613 #include <$ac_cv_struct_tm>
15619 static struct tm ac_aggr;
15620 if (ac_aggr.tm_zone)
15626 rm -f conftest.$ac_objext
15627 if { (ac_try="$ac_compile"
15628 case "(($ac_try" in
15629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630 *) ac_try_echo=$ac_try;;
15632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15633 $as_echo "$ac_try_echo") >&5
15634 (eval "$ac_compile") 2>conftest.er1
15636 grep -v '^ *+' conftest.er1 >conftest.err
15638 cat conftest.err >&5
15639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); } && {
15641 test -z "$ac_c_werror_flag" ||
15642 test ! -s conftest.err
15643 } && test -s conftest.$ac_objext; then
15644 ac_cv_member_struct_tm_tm_zone=yes
15646 $as_echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15649 cat >conftest.$ac_ext <<_ACEOF
15652 cat confdefs.h >>conftest.$ac_ext
15653 cat >>conftest.$ac_ext <<_ACEOF
15654 /* end confdefs.h. */
15655 #include <sys/types.h>
15656 #include <$ac_cv_struct_tm>
15662 static struct tm ac_aggr;
15663 if (sizeof ac_aggr.tm_zone)
15669 rm -f conftest.$ac_objext
15670 if { (ac_try="$ac_compile"
15671 case "(($ac_try" in
15672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673 *) ac_try_echo=$ac_try;;
15675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15676 $as_echo "$ac_try_echo") >&5
15677 (eval "$ac_compile") 2>conftest.er1
15679 grep -v '^ *+' conftest.er1 >conftest.err
15681 cat conftest.err >&5
15682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); } && {
15684 test -z "$ac_c_werror_flag" ||
15685 test ! -s conftest.err
15686 } && test -s conftest.$ac_objext; then
15687 ac_cv_member_struct_tm_tm_zone=yes
15689 $as_echo "$as_me: failed program was:" >&5
15690 sed 's/^/| /' conftest.$ac_ext >&5
15692 ac_cv_member_struct_tm_tm_zone=no
15695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15700 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15701 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15702 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15704 cat >>confdefs.h <<_ACEOF
15705 #define HAVE_STRUCT_TM_TM_ZONE 1
15711 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15713 cat >>confdefs.h <<\_ACEOF
15714 #define HAVE_TM_ZONE 1
15718 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15719 $as_echo_n "checking for tzname... " >&6; }
15720 if test "${ac_cv_var_tzname+set}" = set; then
15721 $as_echo_n "(cached) " >&6
15723 cat >conftest.$ac_ext <<_ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15730 #ifndef tzname /* For SGI. */
15731 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
15742 rm -f conftest.$ac_objext conftest$ac_exeext
15743 if { (ac_try="$ac_link"
15744 case "(($ac_try" in
15745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746 *) ac_try_echo=$ac_try;;
15748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15749 $as_echo "$ac_try_echo") >&5
15750 (eval "$ac_link") 2>conftest.er1
15752 grep -v '^ *+' conftest.er1 >conftest.err
15754 cat conftest.err >&5
15755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); } && {
15757 test -z "$ac_c_werror_flag" ||
15758 test ! -s conftest.err
15759 } && test -s conftest$ac_exeext && {
15760 test "$cross_compiling" = yes ||
15761 $as_test_x conftest$ac_exeext
15763 ac_cv_var_tzname=yes
15765 $as_echo "$as_me: failed program was:" >&5
15766 sed 's/^/| /' conftest.$ac_ext >&5
15768 ac_cv_var_tzname=no
15771 rm -rf conftest.dSYM
15772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15773 conftest$ac_exeext conftest.$ac_ext
15775 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15776 $as_echo "$ac_cv_var_tzname" >&6; }
15777 if test $ac_cv_var_tzname = yes; then
15779 cat >>confdefs.h <<\_ACEOF
15780 #define HAVE_TZNAME 1
15785 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15786 $as_echo_n "checking for union semun... " >&6; }
15787 if test "${ac_cv_type_union_semun+set}" = set; then
15788 $as_echo_n "(cached) " >&6
15790 ac_cv_type_union_semun=no
15791 cat >conftest.$ac_ext <<_ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h. */
15797 #include <sys/types.h>
15798 #include <sys/ipc.h>
15799 #include <sys/sem.h>
15804 if (sizeof (union semun))
15810 rm -f conftest.$ac_objext
15811 if { (ac_try="$ac_compile"
15812 case "(($ac_try" in
15813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814 *) ac_try_echo=$ac_try;;
15816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15817 $as_echo "$ac_try_echo") >&5
15818 (eval "$ac_compile") 2>conftest.er1
15820 grep -v '^ *+' conftest.er1 >conftest.err
15822 cat conftest.err >&5
15823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); } && {
15825 test -z "$ac_c_werror_flag" ||
15826 test ! -s conftest.err
15827 } && test -s conftest.$ac_objext; then
15828 cat >conftest.$ac_ext <<_ACEOF
15831 cat confdefs.h >>conftest.$ac_ext
15832 cat >>conftest.$ac_ext <<_ACEOF
15833 /* end confdefs.h. */
15834 #include <sys/types.h>
15835 #include <sys/ipc.h>
15836 #include <sys/sem.h>
15841 if (sizeof ((union semun)))
15847 rm -f conftest.$ac_objext
15848 if { (ac_try="$ac_compile"
15849 case "(($ac_try" in
15850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15851 *) ac_try_echo=$ac_try;;
15853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15854 $as_echo "$ac_try_echo") >&5
15855 (eval "$ac_compile") 2>conftest.er1
15857 grep -v '^ *+' conftest.er1 >conftest.err
15859 cat conftest.err >&5
15860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); } && {
15862 test -z "$ac_c_werror_flag" ||
15863 test ! -s conftest.err
15864 } && test -s conftest.$ac_objext; then
15867 $as_echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15870 ac_cv_type_union_semun=yes
15873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15875 $as_echo "$as_me: failed program was:" >&5
15876 sed 's/^/| /' conftest.$ac_ext >&5
15881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15883 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15884 $as_echo "$ac_cv_type_union_semun" >&6; }
15885 if test "x$ac_cv_type_union_semun" = x""yes; then
15887 cat >>confdefs.h <<_ACEOF
15888 #define HAVE_UNION_SEMUN 1
15894 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15895 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15896 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15897 $as_echo_n "(cached) " >&6
15899 ac_cv_type_struct_sockaddr_un=no
15900 cat >conftest.$ac_ext <<_ACEOF
15903 cat confdefs.h >>conftest.$ac_ext
15904 cat >>conftest.$ac_ext <<_ACEOF
15905 /* end confdefs.h. */
15906 #include <sys/types.h>
15907 #ifdef HAVE_SYS_UN_H
15908 #include <sys/un.h>
15915 if (sizeof (struct sockaddr_un))
15921 rm -f conftest.$ac_objext
15922 if { (ac_try="$ac_compile"
15923 case "(($ac_try" in
15924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15925 *) ac_try_echo=$ac_try;;
15927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15928 $as_echo "$ac_try_echo") >&5
15929 (eval "$ac_compile") 2>conftest.er1
15931 grep -v '^ *+' conftest.er1 >conftest.err
15933 cat conftest.err >&5
15934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); } && {
15936 test -z "$ac_c_werror_flag" ||
15937 test ! -s conftest.err
15938 } && test -s conftest.$ac_objext; then
15939 cat >conftest.$ac_ext <<_ACEOF
15942 cat confdefs.h >>conftest.$ac_ext
15943 cat >>conftest.$ac_ext <<_ACEOF
15944 /* end confdefs.h. */
15945 #include <sys/types.h>
15946 #ifdef HAVE_SYS_UN_H
15947 #include <sys/un.h>
15954 if (sizeof ((struct sockaddr_un)))
15960 rm -f conftest.$ac_objext
15961 if { (ac_try="$ac_compile"
15962 case "(($ac_try" in
15963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964 *) ac_try_echo=$ac_try;;
15966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15967 $as_echo "$ac_try_echo") >&5
15968 (eval "$ac_compile") 2>conftest.er1
15970 grep -v '^ *+' conftest.er1 >conftest.err
15972 cat conftest.err >&5
15973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); } && {
15975 test -z "$ac_c_werror_flag" ||
15976 test ! -s conftest.err
15977 } && test -s conftest.$ac_objext; then
15980 $as_echo "$as_me: failed program was:" >&5
15981 sed 's/^/| /' conftest.$ac_ext >&5
15983 ac_cv_type_struct_sockaddr_un=yes
15986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15988 $as_echo "$as_me: failed program was:" >&5
15989 sed 's/^/| /' conftest.$ac_ext >&5
15994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15996 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15997 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15998 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
16000 cat >>confdefs.h <<\_ACEOF
16001 #define HAVE_UNIX_SOCKETS 1
16006 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
16007 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
16008 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
16009 $as_echo_n "(cached) " >&6
16011 ac_cv_type_struct_sockaddr_storage=no
16012 cat >conftest.$ac_ext <<_ACEOF
16015 cat confdefs.h >>conftest.$ac_ext
16016 cat >>conftest.$ac_ext <<_ACEOF
16017 /* end confdefs.h. */
16018 #include <sys/types.h>
16019 #ifdef HAVE_SYS_SOCKET_H
16020 #include <sys/socket.h>
16027 if (sizeof (struct sockaddr_storage))
16033 rm -f conftest.$ac_objext
16034 if { (ac_try="$ac_compile"
16035 case "(($ac_try" in
16036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037 *) ac_try_echo=$ac_try;;
16039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16040 $as_echo "$ac_try_echo") >&5
16041 (eval "$ac_compile") 2>conftest.er1
16043 grep -v '^ *+' conftest.er1 >conftest.err
16045 cat conftest.err >&5
16046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); } && {
16048 test -z "$ac_c_werror_flag" ||
16049 test ! -s conftest.err
16050 } && test -s conftest.$ac_objext; then
16051 cat >conftest.$ac_ext <<_ACEOF
16054 cat confdefs.h >>conftest.$ac_ext
16055 cat >>conftest.$ac_ext <<_ACEOF
16056 /* end confdefs.h. */
16057 #include <sys/types.h>
16058 #ifdef HAVE_SYS_SOCKET_H
16059 #include <sys/socket.h>
16066 if (sizeof ((struct sockaddr_storage)))
16072 rm -f conftest.$ac_objext
16073 if { (ac_try="$ac_compile"
16074 case "(($ac_try" in
16075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16076 *) ac_try_echo=$ac_try;;
16078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16079 $as_echo "$ac_try_echo") >&5
16080 (eval "$ac_compile") 2>conftest.er1
16082 grep -v '^ *+' conftest.er1 >conftest.err
16084 cat conftest.err >&5
16085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); } && {
16087 test -z "$ac_c_werror_flag" ||
16088 test ! -s conftest.err
16089 } && test -s conftest.$ac_objext; then
16092 $as_echo "$as_me: failed program was:" >&5
16093 sed 's/^/| /' conftest.$ac_ext >&5
16095 ac_cv_type_struct_sockaddr_storage=yes
16098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16100 $as_echo "$as_me: failed program was:" >&5
16101 sed 's/^/| /' conftest.$ac_ext >&5
16106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16108 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
16109 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
16110 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
16112 cat >>confdefs.h <<_ACEOF
16113 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
16119 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
16120 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
16121 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
16122 $as_echo_n "(cached) " >&6
16124 cat >conftest.$ac_ext <<_ACEOF
16127 cat confdefs.h >>conftest.$ac_ext
16128 cat >>conftest.$ac_ext <<_ACEOF
16129 /* end confdefs.h. */
16130 #include <sys/types.h>
16131 #ifdef HAVE_SYS_SOCKET_H
16132 #include <sys/socket.h>
16139 static struct sockaddr_storage ac_aggr;
16140 if (ac_aggr.ss_family)
16146 rm -f conftest.$ac_objext
16147 if { (ac_try="$ac_compile"
16148 case "(($ac_try" in
16149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150 *) ac_try_echo=$ac_try;;
16152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16153 $as_echo "$ac_try_echo") >&5
16154 (eval "$ac_compile") 2>conftest.er1
16156 grep -v '^ *+' conftest.er1 >conftest.err
16158 cat conftest.err >&5
16159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); } && {
16161 test -z "$ac_c_werror_flag" ||
16162 test ! -s conftest.err
16163 } && test -s conftest.$ac_objext; then
16164 ac_cv_member_struct_sockaddr_storage_ss_family=yes
16166 $as_echo "$as_me: failed program was:" >&5
16167 sed 's/^/| /' conftest.$ac_ext >&5
16169 cat >conftest.$ac_ext <<_ACEOF
16172 cat confdefs.h >>conftest.$ac_ext
16173 cat >>conftest.$ac_ext <<_ACEOF
16174 /* end confdefs.h. */
16175 #include <sys/types.h>
16176 #ifdef HAVE_SYS_SOCKET_H
16177 #include <sys/socket.h>
16184 static struct sockaddr_storage ac_aggr;
16185 if (sizeof ac_aggr.ss_family)
16191 rm -f conftest.$ac_objext
16192 if { (ac_try="$ac_compile"
16193 case "(($ac_try" in
16194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16195 *) ac_try_echo=$ac_try;;
16197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16198 $as_echo "$ac_try_echo") >&5
16199 (eval "$ac_compile") 2>conftest.er1
16201 grep -v '^ *+' conftest.er1 >conftest.err
16203 cat conftest.err >&5
16204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); } && {
16206 test -z "$ac_c_werror_flag" ||
16207 test ! -s conftest.err
16208 } && test -s conftest.$ac_objext; then
16209 ac_cv_member_struct_sockaddr_storage_ss_family=yes
16211 $as_echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16214 ac_cv_member_struct_sockaddr_storage_ss_family=no
16217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16222 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
16223 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
16224 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
16226 cat >>confdefs.h <<_ACEOF
16227 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
16232 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
16233 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
16234 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
16235 $as_echo_n "(cached) " >&6
16237 cat >conftest.$ac_ext <<_ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h. */
16243 #include <sys/types.h>
16244 #ifdef HAVE_SYS_SOCKET_H
16245 #include <sys/socket.h>
16252 static struct sockaddr_storage ac_aggr;
16253 if (ac_aggr.__ss_family)
16259 rm -f conftest.$ac_objext
16260 if { (ac_try="$ac_compile"
16261 case "(($ac_try" in
16262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263 *) ac_try_echo=$ac_try;;
16265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16266 $as_echo "$ac_try_echo") >&5
16267 (eval "$ac_compile") 2>conftest.er1
16269 grep -v '^ *+' conftest.er1 >conftest.err
16271 cat conftest.err >&5
16272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); } && {
16274 test -z "$ac_c_werror_flag" ||
16275 test ! -s conftest.err
16276 } && test -s conftest.$ac_objext; then
16277 ac_cv_member_struct_sockaddr_storage___ss_family=yes
16279 $as_echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.$ac_ext >&5
16282 cat >conftest.$ac_ext <<_ACEOF
16285 cat confdefs.h >>conftest.$ac_ext
16286 cat >>conftest.$ac_ext <<_ACEOF
16287 /* end confdefs.h. */
16288 #include <sys/types.h>
16289 #ifdef HAVE_SYS_SOCKET_H
16290 #include <sys/socket.h>
16297 static struct sockaddr_storage ac_aggr;
16298 if (sizeof ac_aggr.__ss_family)
16304 rm -f conftest.$ac_objext
16305 if { (ac_try="$ac_compile"
16306 case "(($ac_try" in
16307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16308 *) ac_try_echo=$ac_try;;
16310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16311 $as_echo "$ac_try_echo") >&5
16312 (eval "$ac_compile") 2>conftest.er1
16314 grep -v '^ *+' conftest.er1 >conftest.err
16316 cat conftest.err >&5
16317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); } && {
16319 test -z "$ac_c_werror_flag" ||
16320 test ! -s conftest.err
16321 } && test -s conftest.$ac_objext; then
16322 ac_cv_member_struct_sockaddr_storage___ss_family=yes
16324 $as_echo "$as_me: failed program was:" >&5
16325 sed 's/^/| /' conftest.$ac_ext >&5
16327 ac_cv_member_struct_sockaddr_storage___ss_family=no
16330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16335 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
16336 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
16337 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
16339 cat >>confdefs.h <<_ACEOF
16340 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
16345 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
16346 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
16347 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
16348 $as_echo_n "(cached) " >&6
16350 cat >conftest.$ac_ext <<_ACEOF
16353 cat confdefs.h >>conftest.$ac_ext
16354 cat >>conftest.$ac_ext <<_ACEOF
16355 /* end confdefs.h. */
16356 #include <sys/types.h>
16357 #ifdef HAVE_SYS_SOCKET_H
16358 #include <sys/socket.h>
16365 static struct sockaddr_storage ac_aggr;
16366 if (ac_aggr.ss_len)
16372 rm -f conftest.$ac_objext
16373 if { (ac_try="$ac_compile"
16374 case "(($ac_try" in
16375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16376 *) ac_try_echo=$ac_try;;
16378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16379 $as_echo "$ac_try_echo") >&5
16380 (eval "$ac_compile") 2>conftest.er1
16382 grep -v '^ *+' conftest.er1 >conftest.err
16384 cat conftest.err >&5
16385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); } && {
16387 test -z "$ac_c_werror_flag" ||
16388 test ! -s conftest.err
16389 } && test -s conftest.$ac_objext; then
16390 ac_cv_member_struct_sockaddr_storage_ss_len=yes
16392 $as_echo "$as_me: failed program was:" >&5
16393 sed 's/^/| /' conftest.$ac_ext >&5
16395 cat >conftest.$ac_ext <<_ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h. */
16401 #include <sys/types.h>
16402 #ifdef HAVE_SYS_SOCKET_H
16403 #include <sys/socket.h>
16410 static struct sockaddr_storage ac_aggr;
16411 if (sizeof ac_aggr.ss_len)
16417 rm -f conftest.$ac_objext
16418 if { (ac_try="$ac_compile"
16419 case "(($ac_try" in
16420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421 *) ac_try_echo=$ac_try;;
16423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16424 $as_echo "$ac_try_echo") >&5
16425 (eval "$ac_compile") 2>conftest.er1
16427 grep -v '^ *+' conftest.er1 >conftest.err
16429 cat conftest.err >&5
16430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); } && {
16432 test -z "$ac_c_werror_flag" ||
16433 test ! -s conftest.err
16434 } && test -s conftest.$ac_objext; then
16435 ac_cv_member_struct_sockaddr_storage_ss_len=yes
16437 $as_echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16440 ac_cv_member_struct_sockaddr_storage_ss_len=no
16443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16448 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
16449 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
16450 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
16452 cat >>confdefs.h <<_ACEOF
16453 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
16458 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
16459 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
16460 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
16461 $as_echo_n "(cached) " >&6
16463 cat >conftest.$ac_ext <<_ACEOF
16466 cat confdefs.h >>conftest.$ac_ext
16467 cat >>conftest.$ac_ext <<_ACEOF
16468 /* end confdefs.h. */
16469 #include <sys/types.h>
16470 #ifdef HAVE_SYS_SOCKET_H
16471 #include <sys/socket.h>
16478 static struct sockaddr_storage ac_aggr;
16479 if (ac_aggr.__ss_len)
16485 rm -f conftest.$ac_objext
16486 if { (ac_try="$ac_compile"
16487 case "(($ac_try" in
16488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16489 *) ac_try_echo=$ac_try;;
16491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16492 $as_echo "$ac_try_echo") >&5
16493 (eval "$ac_compile") 2>conftest.er1
16495 grep -v '^ *+' conftest.er1 >conftest.err
16497 cat conftest.err >&5
16498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); } && {
16500 test -z "$ac_c_werror_flag" ||
16501 test ! -s conftest.err
16502 } && test -s conftest.$ac_objext; then
16503 ac_cv_member_struct_sockaddr_storage___ss_len=yes
16505 $as_echo "$as_me: failed program was:" >&5
16506 sed 's/^/| /' conftest.$ac_ext >&5
16508 cat >conftest.$ac_ext <<_ACEOF
16511 cat confdefs.h >>conftest.$ac_ext
16512 cat >>conftest.$ac_ext <<_ACEOF
16513 /* end confdefs.h. */
16514 #include <sys/types.h>
16515 #ifdef HAVE_SYS_SOCKET_H
16516 #include <sys/socket.h>
16523 static struct sockaddr_storage ac_aggr;
16524 if (sizeof ac_aggr.__ss_len)
16530 rm -f conftest.$ac_objext
16531 if { (ac_try="$ac_compile"
16532 case "(($ac_try" in
16533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16534 *) ac_try_echo=$ac_try;;
16536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16537 $as_echo "$ac_try_echo") >&5
16538 (eval "$ac_compile") 2>conftest.er1
16540 grep -v '^ *+' conftest.er1 >conftest.err
16542 cat conftest.err >&5
16543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); } && {
16545 test -z "$ac_c_werror_flag" ||
16546 test ! -s conftest.err
16547 } && test -s conftest.$ac_objext; then
16548 ac_cv_member_struct_sockaddr_storage___ss_len=yes
16550 $as_echo "$as_me: failed program was:" >&5
16551 sed 's/^/| /' conftest.$ac_ext >&5
16553 ac_cv_member_struct_sockaddr_storage___ss_len=no
16556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16561 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
16562 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
16563 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
16565 cat >>confdefs.h <<_ACEOF
16566 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
16571 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16572 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
16573 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
16574 $as_echo_n "(cached) " >&6
16576 cat >conftest.$ac_ext <<_ACEOF
16579 cat confdefs.h >>conftest.$ac_ext
16580 cat >>conftest.$ac_ext <<_ACEOF
16581 /* end confdefs.h. */
16582 #include <sys/types.h>
16583 #ifdef HAVE_SYS_SOCKET_H
16584 #include <sys/socket.h>
16591 static struct sockaddr ac_aggr;
16592 if (ac_aggr.sa_len)
16598 rm -f conftest.$ac_objext
16599 if { (ac_try="$ac_compile"
16600 case "(($ac_try" in
16601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16602 *) ac_try_echo=$ac_try;;
16604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16605 $as_echo "$ac_try_echo") >&5
16606 (eval "$ac_compile") 2>conftest.er1
16608 grep -v '^ *+' conftest.er1 >conftest.err
16610 cat conftest.err >&5
16611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); } && {
16613 test -z "$ac_c_werror_flag" ||
16614 test ! -s conftest.err
16615 } && test -s conftest.$ac_objext; then
16616 ac_cv_member_struct_sockaddr_sa_len=yes
16618 $as_echo "$as_me: failed program was:" >&5
16619 sed 's/^/| /' conftest.$ac_ext >&5
16621 cat >conftest.$ac_ext <<_ACEOF
16624 cat confdefs.h >>conftest.$ac_ext
16625 cat >>conftest.$ac_ext <<_ACEOF
16626 /* end confdefs.h. */
16627 #include <sys/types.h>
16628 #ifdef HAVE_SYS_SOCKET_H
16629 #include <sys/socket.h>
16636 static struct sockaddr ac_aggr;
16637 if (sizeof ac_aggr.sa_len)
16643 rm -f conftest.$ac_objext
16644 if { (ac_try="$ac_compile"
16645 case "(($ac_try" in
16646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647 *) ac_try_echo=$ac_try;;
16649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16650 $as_echo "$ac_try_echo") >&5
16651 (eval "$ac_compile") 2>conftest.er1
16653 grep -v '^ *+' conftest.er1 >conftest.err
16655 cat conftest.err >&5
16656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); } && {
16658 test -z "$ac_c_werror_flag" ||
16659 test ! -s conftest.err
16660 } && test -s conftest.$ac_objext; then
16661 ac_cv_member_struct_sockaddr_sa_len=yes
16663 $as_echo "$as_me: failed program was:" >&5
16664 sed 's/^/| /' conftest.$ac_ext >&5
16666 ac_cv_member_struct_sockaddr_sa_len=no
16669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16674 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16675 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16676 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
16678 cat >>confdefs.h <<_ACEOF
16679 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16685 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16686 $as_echo_n "checking for struct addrinfo... " >&6; }
16687 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16688 $as_echo_n "(cached) " >&6
16690 ac_cv_type_struct_addrinfo=no
16691 cat >conftest.$ac_ext <<_ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h. */
16697 #include <sys/types.h>
16698 #include <sys/socket.h>
16705 if (sizeof (struct addrinfo))
16711 rm -f conftest.$ac_objext
16712 if { (ac_try="$ac_compile"
16713 case "(($ac_try" in
16714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16715 *) ac_try_echo=$ac_try;;
16717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16718 $as_echo "$ac_try_echo") >&5
16719 (eval "$ac_compile") 2>conftest.er1
16721 grep -v '^ *+' conftest.er1 >conftest.err
16723 cat conftest.err >&5
16724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); } && {
16726 test -z "$ac_c_werror_flag" ||
16727 test ! -s conftest.err
16728 } && test -s conftest.$ac_objext; then
16729 cat >conftest.$ac_ext <<_ACEOF
16732 cat confdefs.h >>conftest.$ac_ext
16733 cat >>conftest.$ac_ext <<_ACEOF
16734 /* end confdefs.h. */
16735 #include <sys/types.h>
16736 #include <sys/socket.h>
16743 if (sizeof ((struct addrinfo)))
16749 rm -f conftest.$ac_objext
16750 if { (ac_try="$ac_compile"
16751 case "(($ac_try" in
16752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16753 *) ac_try_echo=$ac_try;;
16755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16756 $as_echo "$ac_try_echo") >&5
16757 (eval "$ac_compile") 2>conftest.er1
16759 grep -v '^ *+' conftest.er1 >conftest.err
16761 cat conftest.err >&5
16762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); } && {
16764 test -z "$ac_c_werror_flag" ||
16765 test ! -s conftest.err
16766 } && test -s conftest.$ac_objext; then
16769 $as_echo "$as_me: failed program was:" >&5
16770 sed 's/^/| /' conftest.$ac_ext >&5
16772 ac_cv_type_struct_addrinfo=yes
16775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16777 $as_echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16785 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16786 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16787 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16789 cat >>confdefs.h <<_ACEOF
16790 #define HAVE_STRUCT_ADDRINFO 1
16797 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16798 $as_echo_n "checking for intptr_t... " >&6; }
16799 if test "${ac_cv_type_intptr_t+set}" = set; then
16800 $as_echo_n "(cached) " >&6
16802 ac_cv_type_intptr_t=no
16803 cat >conftest.$ac_ext <<_ACEOF
16806 cat confdefs.h >>conftest.$ac_ext
16807 cat >>conftest.$ac_ext <<_ACEOF
16808 /* end confdefs.h. */
16809 $ac_includes_default
16813 if (sizeof (intptr_t))
16819 rm -f conftest.$ac_objext
16820 if { (ac_try="$ac_compile"
16821 case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16826 $as_echo "$ac_try_echo") >&5
16827 (eval "$ac_compile") 2>conftest.er1
16829 grep -v '^ *+' conftest.er1 >conftest.err
16831 cat conftest.err >&5
16832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); } && {
16834 test -z "$ac_c_werror_flag" ||
16835 test ! -s conftest.err
16836 } && test -s conftest.$ac_objext; then
16837 cat >conftest.$ac_ext <<_ACEOF
16840 cat confdefs.h >>conftest.$ac_ext
16841 cat >>conftest.$ac_ext <<_ACEOF
16842 /* end confdefs.h. */
16843 $ac_includes_default
16847 if (sizeof ((intptr_t)))
16853 rm -f conftest.$ac_objext
16854 if { (ac_try="$ac_compile"
16855 case "(($ac_try" in
16856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16857 *) ac_try_echo=$ac_try;;
16859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16860 $as_echo "$ac_try_echo") >&5
16861 (eval "$ac_compile") 2>conftest.er1
16863 grep -v '^ *+' conftest.er1 >conftest.err
16865 cat conftest.err >&5
16866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } && {
16868 test -z "$ac_c_werror_flag" ||
16869 test ! -s conftest.err
16870 } && test -s conftest.$ac_objext; then
16873 $as_echo "$as_me: failed program was:" >&5
16874 sed 's/^/| /' conftest.$ac_ext >&5
16876 ac_cv_type_intptr_t=yes
16879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16881 $as_echo "$as_me: failed program was:" >&5
16882 sed 's/^/| /' conftest.$ac_ext >&5
16887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16889 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16890 $as_echo "$ac_cv_type_intptr_t" >&6; }
16891 if test "x$ac_cv_type_intptr_t" = x""yes; then
16893 cat >>confdefs.h <<\_ACEOF
16894 #define HAVE_INTPTR_T 1
16898 for ac_type in 'int' 'long int' 'long long int'; do
16899 cat >conftest.$ac_ext <<_ACEOF
16902 cat confdefs.h >>conftest.$ac_ext
16903 cat >>conftest.$ac_ext <<_ACEOF
16904 /* end confdefs.h. */
16905 $ac_includes_default
16909 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16916 rm -f conftest.$ac_objext
16917 if { (ac_try="$ac_compile"
16918 case "(($ac_try" in
16919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16920 *) ac_try_echo=$ac_try;;
16922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16923 $as_echo "$ac_try_echo") >&5
16924 (eval "$ac_compile") 2>conftest.er1
16926 grep -v '^ *+' conftest.er1 >conftest.err
16928 cat conftest.err >&5
16929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); } && {
16931 test -z "$ac_c_werror_flag" ||
16932 test ! -s conftest.err
16933 } && test -s conftest.$ac_objext; then
16935 cat >>confdefs.h <<_ACEOF
16936 #define intptr_t $ac_type
16941 $as_echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16948 test -z "$ac_type" && break
16954 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16955 $as_echo_n "checking for uintptr_t... " >&6; }
16956 if test "${ac_cv_type_uintptr_t+set}" = set; then
16957 $as_echo_n "(cached) " >&6
16959 ac_cv_type_uintptr_t=no
16960 cat >conftest.$ac_ext <<_ACEOF
16963 cat confdefs.h >>conftest.$ac_ext
16964 cat >>conftest.$ac_ext <<_ACEOF
16965 /* end confdefs.h. */
16966 $ac_includes_default
16970 if (sizeof (uintptr_t))
16976 rm -f conftest.$ac_objext
16977 if { (ac_try="$ac_compile"
16978 case "(($ac_try" in
16979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980 *) ac_try_echo=$ac_try;;
16982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16983 $as_echo "$ac_try_echo") >&5
16984 (eval "$ac_compile") 2>conftest.er1
16986 grep -v '^ *+' conftest.er1 >conftest.err
16988 cat conftest.err >&5
16989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); } && {
16991 test -z "$ac_c_werror_flag" ||
16992 test ! -s conftest.err
16993 } && test -s conftest.$ac_objext; then
16994 cat >conftest.$ac_ext <<_ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h. */
17000 $ac_includes_default
17004 if (sizeof ((uintptr_t)))
17010 rm -f conftest.$ac_objext
17011 if { (ac_try="$ac_compile"
17012 case "(($ac_try" in
17013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014 *) ac_try_echo=$ac_try;;
17016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17017 $as_echo "$ac_try_echo") >&5
17018 (eval "$ac_compile") 2>conftest.er1
17020 grep -v '^ *+' conftest.er1 >conftest.err
17022 cat conftest.err >&5
17023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); } && {
17025 test -z "$ac_c_werror_flag" ||
17026 test ! -s conftest.err
17027 } && test -s conftest.$ac_objext; then
17030 $as_echo "$as_me: failed program was:" >&5
17031 sed 's/^/| /' conftest.$ac_ext >&5
17033 ac_cv_type_uintptr_t=yes
17036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17038 $as_echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.$ac_ext >&5
17044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17046 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
17047 $as_echo "$ac_cv_type_uintptr_t" >&6; }
17048 if test "x$ac_cv_type_uintptr_t" = x""yes; then
17050 cat >>confdefs.h <<\_ACEOF
17051 #define HAVE_UINTPTR_T 1
17055 for ac_type in 'unsigned int' 'unsigned long int' \
17056 'unsigned long long int'; do
17057 cat >conftest.$ac_ext <<_ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h. */
17063 $ac_includes_default
17067 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17074 rm -f conftest.$ac_objext
17075 if { (ac_try="$ac_compile"
17076 case "(($ac_try" in
17077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17078 *) ac_try_echo=$ac_try;;
17080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17081 $as_echo "$ac_try_echo") >&5
17082 (eval "$ac_compile") 2>conftest.er1
17084 grep -v '^ *+' conftest.er1 >conftest.err
17086 cat conftest.err >&5
17087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); } && {
17089 test -z "$ac_c_werror_flag" ||
17090 test ! -s conftest.err
17091 } && test -s conftest.$ac_objext; then
17093 cat >>confdefs.h <<_ACEOF
17094 #define uintptr_t $ac_type
17099 $as_echo "$as_me: failed program was:" >&5
17100 sed 's/^/| /' conftest.$ac_ext >&5
17105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17106 test -z "$ac_type" && break
17112 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
17113 $as_echo_n "checking for long long int... " >&6; }
17114 if test "${ac_cv_type_long_long_int+set}" = set; then
17115 $as_echo_n "(cached) " >&6
17117 cat >conftest.$ac_ext <<_ACEOF
17121 cat confdefs.h >>conftest.$ac_ext
17122 cat >>conftest.$ac_ext <<_ACEOF
17123 /* end confdefs.h. */
17124 /* For now, do not test the preprocessor; as of 2007 there are too many
17125 implementations with broken preprocessors. Perhaps this can
17126 be revisited in 2012. In the meantime, code should not expect
17127 #if to work with literals wider than 32 bits. */
17128 /* Test literals. */
17129 long long int ll = 9223372036854775807ll;
17130 long long int nll = -9223372036854775807LL;
17131 unsigned long long int ull = 18446744073709551615ULL;
17132 /* Test constant expressions. */
17133 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17135 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17141 /* Test availability of runtime routines for shift and division. */
17142 long long int llmax = 9223372036854775807ll;
17143 unsigned long long int ullmax = 18446744073709551615ull;
17144 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17145 | (llmax / ll) | (llmax % ll)
17146 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17147 | (ullmax / ull) | (ullmax % ull));
17153 rm -f conftest.$ac_objext conftest$ac_exeext
17154 if { (ac_try="$ac_link"
17155 case "(($ac_try" in
17156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157 *) ac_try_echo=$ac_try;;
17159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17160 $as_echo "$ac_try_echo") >&5
17161 (eval "$ac_link") 2>conftest.er1
17163 grep -v '^ *+' conftest.er1 >conftest.err
17165 cat conftest.err >&5
17166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); } && {
17168 test -z "$ac_c_werror_flag" ||
17169 test ! -s conftest.err
17170 } && test -s conftest$ac_exeext && {
17171 test "$cross_compiling" = yes ||
17172 $as_test_x conftest$ac_exeext
17174 if test "$cross_compiling" = yes; then
17175 ac_cv_type_long_long_int=yes
17177 cat >conftest.$ac_ext <<_ACEOF
17180 cat confdefs.h >>conftest.$ac_ext
17181 cat >>conftest.$ac_ext <<_ACEOF
17182 /* end confdefs.h. */
17183 #include <limits.h>
17186 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17187 # define LLONG_MAX (HALF - 1 + HALF)
17192 long long int n = 1;
17196 long long int m = n << i;
17199 if (LLONG_MAX / 2 < m)
17207 rm -f conftest$ac_exeext
17208 if { (ac_try="$ac_link"
17209 case "(($ac_try" in
17210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17211 *) ac_try_echo=$ac_try;;
17213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17214 $as_echo "$ac_try_echo") >&5
17215 (eval "$ac_link") 2>&5
17217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17219 { (case "(($ac_try" in
17220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17221 *) ac_try_echo=$ac_try;;
17223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17224 $as_echo "$ac_try_echo") >&5
17225 (eval "$ac_try") 2>&5
17227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); }; }; then
17229 ac_cv_type_long_long_int=yes
17231 $as_echo "$as_me: program exited with status $ac_status" >&5
17232 $as_echo "$as_me: failed program was:" >&5
17233 sed 's/^/| /' conftest.$ac_ext >&5
17235 ( exit $ac_status )
17236 ac_cv_type_long_long_int=no
17238 rm -rf conftest.dSYM
17239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17244 $as_echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17247 ac_cv_type_long_long_int=no
17250 rm -rf conftest.dSYM
17251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17252 conftest$ac_exeext conftest.$ac_ext
17254 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17255 $as_echo "$ac_cv_type_long_long_int" >&6; }
17256 if test $ac_cv_type_long_long_int = yes; then
17258 cat >>confdefs.h <<\_ACEOF
17259 #define HAVE_LONG_LONG_INT 1
17265 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
17266 $as_echo_n "checking for locale_t... " >&6; }
17267 if test "${pgac_cv_type_locale_t+set}" = set; then
17268 $as_echo_n "(cached) " >&6
17270 cat >conftest.$ac_ext <<_ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h. */
17276 #include <locale.h>
17286 rm -f conftest.$ac_objext
17287 if { (ac_try="$ac_compile"
17288 case "(($ac_try" in
17289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290 *) ac_try_echo=$ac_try;;
17292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17293 $as_echo "$ac_try_echo") >&5
17294 (eval "$ac_compile") 2>conftest.er1
17296 grep -v '^ *+' conftest.er1 >conftest.err
17298 cat conftest.err >&5
17299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } && {
17301 test -z "$ac_c_werror_flag" ||
17302 test ! -s conftest.err
17303 } && test -s conftest.$ac_objext; then
17304 pgac_cv_type_locale_t=yes
17306 $as_echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.$ac_ext >&5
17309 cat >conftest.$ac_ext <<_ACEOF
17312 cat confdefs.h >>conftest.$ac_ext
17313 cat >>conftest.$ac_ext <<_ACEOF
17314 /* end confdefs.h. */
17315 #include <xlocale.h>
17325 rm -f conftest.$ac_objext
17326 if { (ac_try="$ac_compile"
17327 case "(($ac_try" in
17328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17329 *) ac_try_echo=$ac_try;;
17331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17332 $as_echo "$ac_try_echo") >&5
17333 (eval "$ac_compile") 2>conftest.er1
17335 grep -v '^ *+' conftest.er1 >conftest.err
17337 cat conftest.err >&5
17338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); } && {
17340 test -z "$ac_c_werror_flag" ||
17341 test ! -s conftest.err
17342 } && test -s conftest.$ac_objext; then
17343 pgac_cv_type_locale_t='yes (in xlocale.h)'
17345 $as_echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.$ac_ext >&5
17348 pgac_cv_type_locale_t=no
17351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17356 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_locale_t" >&5
17357 $as_echo "$pgac_cv_type_locale_t" >&6; }
17358 if test "$pgac_cv_type_locale_t" != no; then
17360 cat >>confdefs.h <<\_ACEOF
17361 #define HAVE_LOCALE_T 1
17365 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
17367 cat >>confdefs.h <<\_ACEOF
17368 #define LOCALE_T_IN_XLOCALE 1
17373 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
17374 $as_echo_n "checking for struct cmsgcred... " >&6; }
17375 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
17376 $as_echo_n "(cached) " >&6
17378 ac_cv_type_struct_cmsgcred=no
17379 cat >conftest.$ac_ext <<_ACEOF
17382 cat confdefs.h >>conftest.$ac_ext
17383 cat >>conftest.$ac_ext <<_ACEOF
17384 /* end confdefs.h. */
17385 #include <sys/socket.h>
17386 #ifdef HAVE_SYS_UCRED_H
17387 #include <sys/ucred.h>
17393 if (sizeof (struct cmsgcred))
17399 rm -f conftest.$ac_objext
17400 if { (ac_try="$ac_compile"
17401 case "(($ac_try" in
17402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17403 *) ac_try_echo=$ac_try;;
17405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17406 $as_echo "$ac_try_echo") >&5
17407 (eval "$ac_compile") 2>conftest.er1
17409 grep -v '^ *+' conftest.er1 >conftest.err
17411 cat conftest.err >&5
17412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); } && {
17414 test -z "$ac_c_werror_flag" ||
17415 test ! -s conftest.err
17416 } && test -s conftest.$ac_objext; then
17417 cat >conftest.$ac_ext <<_ACEOF
17420 cat confdefs.h >>conftest.$ac_ext
17421 cat >>conftest.$ac_ext <<_ACEOF
17422 /* end confdefs.h. */
17423 #include <sys/socket.h>
17424 #ifdef HAVE_SYS_UCRED_H
17425 #include <sys/ucred.h>
17431 if (sizeof ((struct cmsgcred)))
17437 rm -f conftest.$ac_objext
17438 if { (ac_try="$ac_compile"
17439 case "(($ac_try" in
17440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17441 *) ac_try_echo=$ac_try;;
17443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17444 $as_echo "$ac_try_echo") >&5
17445 (eval "$ac_compile") 2>conftest.er1
17447 grep -v '^ *+' conftest.er1 >conftest.err
17449 cat conftest.err >&5
17450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); } && {
17452 test -z "$ac_c_werror_flag" ||
17453 test ! -s conftest.err
17454 } && test -s conftest.$ac_objext; then
17457 $as_echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17460 ac_cv_type_struct_cmsgcred=yes
17463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17465 $as_echo "$as_me: failed program was:" >&5
17466 sed 's/^/| /' conftest.$ac_ext >&5
17471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17473 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
17474 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
17475 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
17477 cat >>confdefs.h <<_ACEOF
17478 #define HAVE_STRUCT_CMSGCRED 1
17485 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
17486 $as_echo_n "checking for struct option... " >&6; }
17487 if test "${ac_cv_type_struct_option+set}" = set; then
17488 $as_echo_n "(cached) " >&6
17490 ac_cv_type_struct_option=no
17491 cat >conftest.$ac_ext <<_ACEOF
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h. */
17497 #ifdef HAVE_GETOPT_H
17498 #include <getopt.h>
17504 if (sizeof (struct option))
17510 rm -f conftest.$ac_objext
17511 if { (ac_try="$ac_compile"
17512 case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17517 $as_echo "$ac_try_echo") >&5
17518 (eval "$ac_compile") 2>conftest.er1
17520 grep -v '^ *+' conftest.er1 >conftest.err
17522 cat conftest.err >&5
17523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } && {
17525 test -z "$ac_c_werror_flag" ||
17526 test ! -s conftest.err
17527 } && test -s conftest.$ac_objext; then
17528 cat >conftest.$ac_ext <<_ACEOF
17531 cat confdefs.h >>conftest.$ac_ext
17532 cat >>conftest.$ac_ext <<_ACEOF
17533 /* end confdefs.h. */
17534 #ifdef HAVE_GETOPT_H
17535 #include <getopt.h>
17541 if (sizeof ((struct option)))
17547 rm -f conftest.$ac_objext
17548 if { (ac_try="$ac_compile"
17549 case "(($ac_try" in
17550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551 *) ac_try_echo=$ac_try;;
17553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17554 $as_echo "$ac_try_echo") >&5
17555 (eval "$ac_compile") 2>conftest.er1
17557 grep -v '^ *+' conftest.er1 >conftest.err
17559 cat conftest.err >&5
17560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); } && {
17562 test -z "$ac_c_werror_flag" ||
17563 test ! -s conftest.err
17564 } && test -s conftest.$ac_objext; then
17567 $as_echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.$ac_ext >&5
17570 ac_cv_type_struct_option=yes
17573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17575 $as_echo "$as_me: failed program was:" >&5
17576 sed 's/^/| /' conftest.$ac_ext >&5
17581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17583 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17584 $as_echo "$ac_cv_type_struct_option" >&6; }
17585 if test "x$ac_cv_type_struct_option" = x""yes; then
17587 cat >>confdefs.h <<_ACEOF
17588 #define HAVE_STRUCT_OPTION 1
17595 if test "$with_zlib" = yes; then
17596 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17597 # did not). While we could work around the lack of z_streamp, it
17598 # seems unwise to encourage people to use such old zlib versions...
17599 { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17600 $as_echo_n "checking for z_streamp... " >&6; }
17601 if test "${ac_cv_type_z_streamp+set}" = set; then
17602 $as_echo_n "(cached) " >&6
17604 ac_cv_type_z_streamp=no
17605 cat >conftest.$ac_ext <<_ACEOF
17608 cat confdefs.h >>conftest.$ac_ext
17609 cat >>conftest.$ac_ext <<_ACEOF
17610 /* end confdefs.h. */
17616 if (sizeof (z_streamp))
17622 rm -f conftest.$ac_objext
17623 if { (ac_try="$ac_compile"
17624 case "(($ac_try" in
17625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17626 *) ac_try_echo=$ac_try;;
17628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17629 $as_echo "$ac_try_echo") >&5
17630 (eval "$ac_compile") 2>conftest.er1
17632 grep -v '^ *+' conftest.er1 >conftest.err
17634 cat conftest.err >&5
17635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); } && {
17637 test -z "$ac_c_werror_flag" ||
17638 test ! -s conftest.err
17639 } && test -s conftest.$ac_objext; then
17640 cat >conftest.$ac_ext <<_ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
17651 if (sizeof ((z_streamp)))
17657 rm -f conftest.$ac_objext
17658 if { (ac_try="$ac_compile"
17659 case "(($ac_try" in
17660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661 *) ac_try_echo=$ac_try;;
17663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17664 $as_echo "$ac_try_echo") >&5
17665 (eval "$ac_compile") 2>conftest.er1
17667 grep -v '^ *+' conftest.er1 >conftest.err
17669 cat conftest.err >&5
17670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } && {
17672 test -z "$ac_c_werror_flag" ||
17673 test ! -s conftest.err
17674 } && test -s conftest.$ac_objext; then
17677 $as_echo "$as_me: failed program was:" >&5
17678 sed 's/^/| /' conftest.$ac_ext >&5
17680 ac_cv_type_z_streamp=yes
17683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17685 $as_echo "$as_me: failed program was:" >&5
17686 sed 's/^/| /' conftest.$ac_ext >&5
17691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17693 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17694 $as_echo "$ac_cv_type_z_streamp" >&6; }
17695 if test "x$ac_cv_type_z_streamp" = x""yes; then
17698 { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17699 Use --without-zlib to disable zlib support." >&5
17700 $as_echo "$as_me: error: zlib version is too old
17701 Use --without-zlib to disable zlib support." >&2;}
17702 { (exit 1); exit 1; }; }
17707 if test "$with_krb5" = yes; then
17708 # Check for differences between MIT and Heimdal (KTH) releases
17709 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17710 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17711 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17712 $as_echo_n "(cached) " >&6
17714 cat >conftest.$ac_ext <<_ACEOF
17717 cat confdefs.h >>conftest.$ac_ext
17718 cat >>conftest.$ac_ext <<_ACEOF
17719 /* end confdefs.h. */
17725 static krb5_ticket ac_aggr;
17726 if (ac_aggr.enc_part2)
17732 rm -f conftest.$ac_objext
17733 if { (ac_try="$ac_compile"
17734 case "(($ac_try" in
17735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17736 *) ac_try_echo=$ac_try;;
17738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17739 $as_echo "$ac_try_echo") >&5
17740 (eval "$ac_compile") 2>conftest.er1
17742 grep -v '^ *+' conftest.er1 >conftest.err
17744 cat conftest.err >&5
17745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); } && {
17747 test -z "$ac_c_werror_flag" ||
17748 test ! -s conftest.err
17749 } && test -s conftest.$ac_objext; then
17750 ac_cv_member_krb5_ticket_enc_part2=yes
17752 $as_echo "$as_me: failed program was:" >&5
17753 sed 's/^/| /' conftest.$ac_ext >&5
17755 cat >conftest.$ac_ext <<_ACEOF
17758 cat confdefs.h >>conftest.$ac_ext
17759 cat >>conftest.$ac_ext <<_ACEOF
17760 /* end confdefs.h. */
17766 static krb5_ticket ac_aggr;
17767 if (sizeof ac_aggr.enc_part2)
17773 rm -f conftest.$ac_objext
17774 if { (ac_try="$ac_compile"
17775 case "(($ac_try" in
17776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777 *) ac_try_echo=$ac_try;;
17779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17780 $as_echo "$ac_try_echo") >&5
17781 (eval "$ac_compile") 2>conftest.er1
17783 grep -v '^ *+' conftest.er1 >conftest.err
17785 cat conftest.err >&5
17786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); } && {
17788 test -z "$ac_c_werror_flag" ||
17789 test ! -s conftest.err
17790 } && test -s conftest.$ac_objext; then
17791 ac_cv_member_krb5_ticket_enc_part2=yes
17793 $as_echo "$as_me: failed program was:" >&5
17794 sed 's/^/| /' conftest.$ac_ext >&5
17796 ac_cv_member_krb5_ticket_enc_part2=no
17799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17804 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17805 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17806 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17808 cat >>confdefs.h <<_ACEOF
17809 #define HAVE_KRB5_TICKET_ENC_PART2 1
17814 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17815 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17816 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17817 $as_echo_n "(cached) " >&6
17819 cat >conftest.$ac_ext <<_ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h. */
17830 static krb5_ticket ac_aggr;
17831 if (ac_aggr.client)
17837 rm -f conftest.$ac_objext
17838 if { (ac_try="$ac_compile"
17839 case "(($ac_try" in
17840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841 *) ac_try_echo=$ac_try;;
17843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17844 $as_echo "$ac_try_echo") >&5
17845 (eval "$ac_compile") 2>conftest.er1
17847 grep -v '^ *+' conftest.er1 >conftest.err
17849 cat conftest.err >&5
17850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); } && {
17852 test -z "$ac_c_werror_flag" ||
17853 test ! -s conftest.err
17854 } && test -s conftest.$ac_objext; then
17855 ac_cv_member_krb5_ticket_client=yes
17857 $as_echo "$as_me: failed program was:" >&5
17858 sed 's/^/| /' conftest.$ac_ext >&5
17860 cat >conftest.$ac_ext <<_ACEOF
17863 cat confdefs.h >>conftest.$ac_ext
17864 cat >>conftest.$ac_ext <<_ACEOF
17865 /* end confdefs.h. */
17871 static krb5_ticket ac_aggr;
17872 if (sizeof ac_aggr.client)
17878 rm -f conftest.$ac_objext
17879 if { (ac_try="$ac_compile"
17880 case "(($ac_try" in
17881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17882 *) ac_try_echo=$ac_try;;
17884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17885 $as_echo "$ac_try_echo") >&5
17886 (eval "$ac_compile") 2>conftest.er1
17888 grep -v '^ *+' conftest.er1 >conftest.err
17890 cat conftest.err >&5
17891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } && {
17893 test -z "$ac_c_werror_flag" ||
17894 test ! -s conftest.err
17895 } && test -s conftest.$ac_objext; then
17896 ac_cv_member_krb5_ticket_client=yes
17898 $as_echo "$as_me: failed program was:" >&5
17899 sed 's/^/| /' conftest.$ac_ext >&5
17901 ac_cv_member_krb5_ticket_client=no
17904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17909 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
17910 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17911 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17913 cat >>confdefs.h <<_ACEOF
17914 #define HAVE_KRB5_TICKET_CLIENT 1
17919 { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17920 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17921 { (exit 1); exit 1; }; }
17926 { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17927 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17928 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17929 $as_echo_n "(cached) " >&6
17931 cat >conftest.$ac_ext <<_ACEOF
17934 cat confdefs.h >>conftest.$ac_ext
17935 cat >>conftest.$ac_ext <<_ACEOF
17936 /* end confdefs.h. */
17942 static krb5_error ac_aggr;
17943 if (ac_aggr.text.data)
17949 rm -f conftest.$ac_objext
17950 if { (ac_try="$ac_compile"
17951 case "(($ac_try" in
17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953 *) ac_try_echo=$ac_try;;
17955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17956 $as_echo "$ac_try_echo") >&5
17957 (eval "$ac_compile") 2>conftest.er1
17959 grep -v '^ *+' conftest.er1 >conftest.err
17961 cat conftest.err >&5
17962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); } && {
17964 test -z "$ac_c_werror_flag" ||
17965 test ! -s conftest.err
17966 } && test -s conftest.$ac_objext; then
17967 ac_cv_member_krb5_error_text_data=yes
17969 $as_echo "$as_me: failed program was:" >&5
17970 sed 's/^/| /' conftest.$ac_ext >&5
17972 cat >conftest.$ac_ext <<_ACEOF
17975 cat confdefs.h >>conftest.$ac_ext
17976 cat >>conftest.$ac_ext <<_ACEOF
17977 /* end confdefs.h. */
17983 static krb5_error ac_aggr;
17984 if (sizeof ac_aggr.text.data)
17990 rm -f conftest.$ac_objext
17991 if { (ac_try="$ac_compile"
17992 case "(($ac_try" in
17993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17994 *) ac_try_echo=$ac_try;;
17996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17997 $as_echo "$ac_try_echo") >&5
17998 (eval "$ac_compile") 2>conftest.er1
18000 grep -v '^ *+' conftest.er1 >conftest.err
18002 cat conftest.err >&5
18003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); } && {
18005 test -z "$ac_c_werror_flag" ||
18006 test ! -s conftest.err
18007 } && test -s conftest.$ac_objext; then
18008 ac_cv_member_krb5_error_text_data=yes
18010 $as_echo "$as_me: failed program was:" >&5
18011 sed 's/^/| /' conftest.$ac_ext >&5
18013 ac_cv_member_krb5_error_text_data=no
18016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18021 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
18022 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
18023 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
18025 cat >>confdefs.h <<_ACEOF
18026 #define HAVE_KRB5_ERROR_TEXT_DATA 1
18031 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
18032 $as_echo_n "checking for krb5_error.e_data... " >&6; }
18033 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
18034 $as_echo_n "(cached) " >&6
18036 cat >conftest.$ac_ext <<_ACEOF
18039 cat confdefs.h >>conftest.$ac_ext
18040 cat >>conftest.$ac_ext <<_ACEOF
18041 /* end confdefs.h. */
18047 static krb5_error ac_aggr;
18048 if (ac_aggr.e_data)
18054 rm -f conftest.$ac_objext
18055 if { (ac_try="$ac_compile"
18056 case "(($ac_try" in
18057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18058 *) ac_try_echo=$ac_try;;
18060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18061 $as_echo "$ac_try_echo") >&5
18062 (eval "$ac_compile") 2>conftest.er1
18064 grep -v '^ *+' conftest.er1 >conftest.err
18066 cat conftest.err >&5
18067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); } && {
18069 test -z "$ac_c_werror_flag" ||
18070 test ! -s conftest.err
18071 } && test -s conftest.$ac_objext; then
18072 ac_cv_member_krb5_error_e_data=yes
18074 $as_echo "$as_me: failed program was:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18077 cat >conftest.$ac_ext <<_ACEOF
18080 cat confdefs.h >>conftest.$ac_ext
18081 cat >>conftest.$ac_ext <<_ACEOF
18082 /* end confdefs.h. */
18088 static krb5_error ac_aggr;
18089 if (sizeof ac_aggr.e_data)
18095 rm -f conftest.$ac_objext
18096 if { (ac_try="$ac_compile"
18097 case "(($ac_try" in
18098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18099 *) ac_try_echo=$ac_try;;
18101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18102 $as_echo "$ac_try_echo") >&5
18103 (eval "$ac_compile") 2>conftest.er1
18105 grep -v '^ *+' conftest.er1 >conftest.err
18107 cat conftest.err >&5
18108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); } && {
18110 test -z "$ac_c_werror_flag" ||
18111 test ! -s conftest.err
18112 } && test -s conftest.$ac_objext; then
18113 ac_cv_member_krb5_error_e_data=yes
18115 $as_echo "$as_me: failed program was:" >&5
18116 sed 's/^/| /' conftest.$ac_ext >&5
18118 ac_cv_member_krb5_error_e_data=no
18121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18126 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
18127 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
18128 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
18130 cat >>confdefs.h <<_ACEOF
18131 #define HAVE_KRB5_ERROR_E_DATA 1
18136 { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
18137 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
18138 { (exit 1); exit 1; }; }
18144 # Win32 requires headers to be loaded for __stdcall, so can't use
18145 # AC_CHECK_FUNCS here.
18146 { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
18147 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
18148 cat >conftest.$ac_ext <<_ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h. */
18158 krb5_free_unparsed_name(NULL,NULL);
18163 rm -f conftest.$ac_objext conftest$ac_exeext
18164 if { (ac_try="$ac_link"
18165 case "(($ac_try" in
18166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18167 *) ac_try_echo=$ac_try;;
18169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18170 $as_echo "$ac_try_echo") >&5
18171 (eval "$ac_link") 2>conftest.er1
18173 grep -v '^ *+' conftest.er1 >conftest.err
18175 cat conftest.err >&5
18176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); } && {
18178 test -z "$ac_c_werror_flag" ||
18179 test ! -s conftest.err
18180 } && test -s conftest$ac_exeext && {
18181 test "$cross_compiling" = yes ||
18182 $as_test_x conftest$ac_exeext
18185 cat >>confdefs.h <<\_ACEOF
18186 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
18189 { $as_echo "$as_me:$LINENO: result: yes" >&5
18190 $as_echo "yes" >&6; }
18192 $as_echo "$as_me: failed program was:" >&5
18193 sed 's/^/| /' conftest.$ac_ext >&5
18195 { $as_echo "$as_me:$LINENO: result: no" >&5
18196 $as_echo "no" >&6; }
18199 rm -rf conftest.dSYM
18200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18201 conftest$ac_exeext conftest.$ac_ext
18204 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
18207 { $as_echo "$as_me:$LINENO: checking whether assembler supports lwarx hint bit" >&5
18208 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
18209 cat >conftest.$ac_ext <<_ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18219 int a = 0; int *p = &a; int r;
18220 __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
18225 rm -f conftest.$ac_objext
18226 if { (ac_try="$ac_compile"
18227 case "(($ac_try" in
18228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18229 *) ac_try_echo=$ac_try;;
18231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18232 $as_echo "$ac_try_echo") >&5
18233 (eval "$ac_compile") 2>conftest.er1
18235 grep -v '^ *+' conftest.er1 >conftest.err
18237 cat conftest.err >&5
18238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); } && {
18240 test -z "$ac_c_werror_flag" ||
18241 test ! -s conftest.err
18242 } && test -s conftest.$ac_objext; then
18243 pgac_cv_have_ppc_mutex_hint=yes
18245 $as_echo "$as_me: failed program was:" >&5
18246 sed 's/^/| /' conftest.$ac_ext >&5
18248 pgac_cv_have_ppc_mutex_hint=no
18251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18252 { $as_echo "$as_me:$LINENO: result: $pgac_cv_have_ppc_mutex_hint" >&5
18253 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
18254 if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
18256 cat >>confdefs.h <<\_ACEOF
18257 #define HAVE_PPC_LWARX_MUTEX_HINT 1
18264 # Check largefile support. You might think this is a system service not a
18265 # compiler characteristic, but you'd be wrong. We must check this before
18266 # probing existence of related functions such as fseeko, since the largefile
18267 # defines can affect what is generated for that.
18268 if test "$PORTNAME" != "win32"; then
18269 # Check whether --enable-largefile was given.
18270 if test "${enable_largefile+set}" = set; then
18271 enableval=$enable_largefile;
18274 if test "$enable_largefile" != no; then
18276 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18277 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18278 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18279 $as_echo_n "(cached) " >&6
18281 ac_cv_sys_largefile_CC=no
18282 if test "$GCC" != yes; then
18285 # IRIX 6.2 and later do not support large files by default,
18286 # so use the C compiler's -n32 option if that helps.
18287 cat >conftest.$ac_ext <<_ACEOF
18290 cat confdefs.h >>conftest.$ac_ext
18291 cat >>conftest.$ac_ext <<_ACEOF
18292 /* end confdefs.h. */
18293 #include <sys/types.h>
18294 /* Check that off_t can represent 2**63 - 1 correctly.
18295 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18296 since some C++ compilers masquerading as C compilers
18297 incorrectly reject 9223372036854775807. */
18298 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18299 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18300 && LARGE_OFF_T % 2147483647 == 1)
18310 rm -f conftest.$ac_objext
18311 if { (ac_try="$ac_compile"
18312 case "(($ac_try" in
18313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18314 *) ac_try_echo=$ac_try;;
18316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18317 $as_echo "$ac_try_echo") >&5
18318 (eval "$ac_compile") 2>conftest.er1
18320 grep -v '^ *+' conftest.er1 >conftest.err
18322 cat conftest.err >&5
18323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); } && {
18325 test -z "$ac_c_werror_flag" ||
18326 test ! -s conftest.err
18327 } && test -s conftest.$ac_objext; then
18330 $as_echo "$as_me: failed program was:" >&5
18331 sed 's/^/| /' conftest.$ac_ext >&5
18336 rm -f core conftest.err conftest.$ac_objext
18338 rm -f conftest.$ac_objext
18339 if { (ac_try="$ac_compile"
18340 case "(($ac_try" in
18341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18342 *) ac_try_echo=$ac_try;;
18344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18345 $as_echo "$ac_try_echo") >&5
18346 (eval "$ac_compile") 2>conftest.er1
18348 grep -v '^ *+' conftest.er1 >conftest.err
18350 cat conftest.err >&5
18351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); } && {
18353 test -z "$ac_c_werror_flag" ||
18354 test ! -s conftest.err
18355 } && test -s conftest.$ac_objext; then
18356 ac_cv_sys_largefile_CC=' -n32'; break
18358 $as_echo "$as_me: failed program was:" >&5
18359 sed 's/^/| /' conftest.$ac_ext >&5
18364 rm -f core conftest.err conftest.$ac_objext
18368 rm -f conftest.$ac_ext
18371 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18372 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
18373 if test "$ac_cv_sys_largefile_CC" != no; then
18374 CC=$CC$ac_cv_sys_largefile_CC
18377 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18378 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18379 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18380 $as_echo_n "(cached) " >&6
18383 cat >conftest.$ac_ext <<_ACEOF
18386 cat confdefs.h >>conftest.$ac_ext
18387 cat >>conftest.$ac_ext <<_ACEOF
18388 /* end confdefs.h. */
18389 #include <sys/types.h>
18390 /* Check that off_t can represent 2**63 - 1 correctly.
18391 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18392 since some C++ compilers masquerading as C compilers
18393 incorrectly reject 9223372036854775807. */
18394 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18395 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18396 && LARGE_OFF_T % 2147483647 == 1)
18406 rm -f conftest.$ac_objext
18407 if { (ac_try="$ac_compile"
18408 case "(($ac_try" in
18409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410 *) ac_try_echo=$ac_try;;
18412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18413 $as_echo "$ac_try_echo") >&5
18414 (eval "$ac_compile") 2>conftest.er1
18416 grep -v '^ *+' conftest.er1 >conftest.err
18418 cat conftest.err >&5
18419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); } && {
18421 test -z "$ac_c_werror_flag" ||
18422 test ! -s conftest.err
18423 } && test -s conftest.$ac_objext; then
18424 ac_cv_sys_file_offset_bits=no; break
18426 $as_echo "$as_me: failed program was:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18433 cat >conftest.$ac_ext <<_ACEOF
18436 cat confdefs.h >>conftest.$ac_ext
18437 cat >>conftest.$ac_ext <<_ACEOF
18438 /* end confdefs.h. */
18439 #define _FILE_OFFSET_BITS 64
18440 #include <sys/types.h>
18441 /* Check that off_t can represent 2**63 - 1 correctly.
18442 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18443 since some C++ compilers masquerading as C compilers
18444 incorrectly reject 9223372036854775807. */
18445 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18446 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18447 && LARGE_OFF_T % 2147483647 == 1)
18457 rm -f conftest.$ac_objext
18458 if { (ac_try="$ac_compile"
18459 case "(($ac_try" in
18460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18461 *) ac_try_echo=$ac_try;;
18463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18464 $as_echo "$ac_try_echo") >&5
18465 (eval "$ac_compile") 2>conftest.er1
18467 grep -v '^ *+' conftest.er1 >conftest.err
18469 cat conftest.err >&5
18470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); } && {
18472 test -z "$ac_c_werror_flag" ||
18473 test ! -s conftest.err
18474 } && test -s conftest.$ac_objext; then
18475 ac_cv_sys_file_offset_bits=64; break
18477 $as_echo "$as_me: failed program was:" >&5
18478 sed 's/^/| /' conftest.$ac_ext >&5
18483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18484 ac_cv_sys_file_offset_bits=unknown
18488 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18489 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18490 case $ac_cv_sys_file_offset_bits in #(
18493 cat >>confdefs.h <<_ACEOF
18494 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18499 if test $ac_cv_sys_file_offset_bits = unknown; then
18500 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18501 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18502 if test "${ac_cv_sys_large_files+set}" = set; then
18503 $as_echo_n "(cached) " >&6
18506 cat >conftest.$ac_ext <<_ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h. */
18512 #include <sys/types.h>
18513 /* Check that off_t can represent 2**63 - 1 correctly.
18514 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18515 since some C++ compilers masquerading as C compilers
18516 incorrectly reject 9223372036854775807. */
18517 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18518 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18519 && LARGE_OFF_T % 2147483647 == 1)
18529 rm -f conftest.$ac_objext
18530 if { (ac_try="$ac_compile"
18531 case "(($ac_try" in
18532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533 *) ac_try_echo=$ac_try;;
18535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18536 $as_echo "$ac_try_echo") >&5
18537 (eval "$ac_compile") 2>conftest.er1
18539 grep -v '^ *+' conftest.er1 >conftest.err
18541 cat conftest.err >&5
18542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); } && {
18544 test -z "$ac_c_werror_flag" ||
18545 test ! -s conftest.err
18546 } && test -s conftest.$ac_objext; then
18547 ac_cv_sys_large_files=no; break
18549 $as_echo "$as_me: failed program was:" >&5
18550 sed 's/^/| /' conftest.$ac_ext >&5
18555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18556 cat >conftest.$ac_ext <<_ACEOF
18559 cat confdefs.h >>conftest.$ac_ext
18560 cat >>conftest.$ac_ext <<_ACEOF
18561 /* end confdefs.h. */
18562 #define _LARGE_FILES 1
18563 #include <sys/types.h>
18564 /* Check that off_t can represent 2**63 - 1 correctly.
18565 We can't simply define LARGE_OFF_T to be 9223372036854775807,
18566 since some C++ compilers masquerading as C compilers
18567 incorrectly reject 9223372036854775807. */
18568 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18569 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18570 && LARGE_OFF_T % 2147483647 == 1)
18580 rm -f conftest.$ac_objext
18581 if { (ac_try="$ac_compile"
18582 case "(($ac_try" in
18583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584 *) ac_try_echo=$ac_try;;
18586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18587 $as_echo "$ac_try_echo") >&5
18588 (eval "$ac_compile") 2>conftest.er1
18590 grep -v '^ *+' conftest.er1 >conftest.err
18592 cat conftest.err >&5
18593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); } && {
18595 test -z "$ac_c_werror_flag" ||
18596 test ! -s conftest.err
18597 } && test -s conftest.$ac_objext; then
18598 ac_cv_sys_large_files=1; break
18600 $as_echo "$as_me: failed program was:" >&5
18601 sed 's/^/| /' conftest.$ac_ext >&5
18606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18607 ac_cv_sys_large_files=unknown
18611 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18612 $as_echo "$ac_cv_sys_large_files" >&6; }
18613 case $ac_cv_sys_large_files in #(
18616 cat >>confdefs.h <<_ACEOF
18617 #define _LARGE_FILES $ac_cv_sys_large_files
18627 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18628 # The cast to long int works around a bug in the HP C Compiler
18629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18631 # This bug is HP SR number 8606223364.
18632 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18633 $as_echo_n "checking size of off_t... " >&6; }
18634 if test "${ac_cv_sizeof_off_t+set}" = set; then
18635 $as_echo_n "(cached) " >&6
18637 if test "$cross_compiling" = yes; then
18638 # Depending upon the size, compute the lo and hi bounds.
18639 cat >conftest.$ac_ext <<_ACEOF
18642 cat confdefs.h >>conftest.$ac_ext
18643 cat >>conftest.$ac_ext <<_ACEOF
18644 /* end confdefs.h. */
18645 $ac_includes_default
18649 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18656 rm -f conftest.$ac_objext
18657 if { (ac_try="$ac_compile"
18658 case "(($ac_try" in
18659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660 *) ac_try_echo=$ac_try;;
18662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18663 $as_echo "$ac_try_echo") >&5
18664 (eval "$ac_compile") 2>conftest.er1
18666 grep -v '^ *+' conftest.er1 >conftest.err
18668 cat conftest.err >&5
18669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); } && {
18671 test -z "$ac_c_werror_flag" ||
18672 test ! -s conftest.err
18673 } && test -s conftest.$ac_objext; then
18676 cat >conftest.$ac_ext <<_ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h. */
18682 $ac_includes_default
18686 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18693 rm -f conftest.$ac_objext
18694 if { (ac_try="$ac_compile"
18695 case "(($ac_try" in
18696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697 *) ac_try_echo=$ac_try;;
18699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18700 $as_echo "$ac_try_echo") >&5
18701 (eval "$ac_compile") 2>conftest.er1
18703 grep -v '^ *+' conftest.er1 >conftest.err
18705 cat conftest.err >&5
18706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); } && {
18708 test -z "$ac_c_werror_flag" ||
18709 test ! -s conftest.err
18710 } && test -s conftest.$ac_objext; then
18711 ac_hi=$ac_mid; break
18713 $as_echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18716 ac_lo=`expr $ac_mid + 1`
18717 if test $ac_lo -le $ac_mid; then
18721 ac_mid=`expr 2 '*' $ac_mid + 1`
18724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18727 $as_echo "$as_me: failed program was:" >&5
18728 sed 's/^/| /' conftest.$ac_ext >&5
18730 cat >conftest.$ac_ext <<_ACEOF
18733 cat confdefs.h >>conftest.$ac_ext
18734 cat >>conftest.$ac_ext <<_ACEOF
18735 /* end confdefs.h. */
18736 $ac_includes_default
18740 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18747 rm -f conftest.$ac_objext
18748 if { (ac_try="$ac_compile"
18749 case "(($ac_try" in
18750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18751 *) ac_try_echo=$ac_try;;
18753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18754 $as_echo "$ac_try_echo") >&5
18755 (eval "$ac_compile") 2>conftest.er1
18757 grep -v '^ *+' conftest.er1 >conftest.err
18759 cat conftest.err >&5
18760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); } && {
18762 test -z "$ac_c_werror_flag" ||
18763 test ! -s conftest.err
18764 } && test -s conftest.$ac_objext; then
18767 cat >conftest.$ac_ext <<_ACEOF
18770 cat confdefs.h >>conftest.$ac_ext
18771 cat >>conftest.$ac_ext <<_ACEOF
18772 /* end confdefs.h. */
18773 $ac_includes_default
18777 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18784 rm -f conftest.$ac_objext
18785 if { (ac_try="$ac_compile"
18786 case "(($ac_try" in
18787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788 *) ac_try_echo=$ac_try;;
18790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18791 $as_echo "$ac_try_echo") >&5
18792 (eval "$ac_compile") 2>conftest.er1
18794 grep -v '^ *+' conftest.er1 >conftest.err
18796 cat conftest.err >&5
18797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); } && {
18799 test -z "$ac_c_werror_flag" ||
18800 test ! -s conftest.err
18801 } && test -s conftest.$ac_objext; then
18802 ac_lo=$ac_mid; break
18804 $as_echo "$as_me: failed program was:" >&5
18805 sed 's/^/| /' conftest.$ac_ext >&5
18807 ac_hi=`expr '(' $ac_mid ')' - 1`
18808 if test $ac_mid -le $ac_hi; then
18812 ac_mid=`expr 2 '*' $ac_mid`
18815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18818 $as_echo "$as_me: failed program was:" >&5
18819 sed 's/^/| /' conftest.$ac_ext >&5
18824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18828 # Binary search between lo and hi bounds.
18829 while test "x$ac_lo" != "x$ac_hi"; do
18830 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18831 cat >conftest.$ac_ext <<_ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18837 $ac_includes_default
18841 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18848 rm -f conftest.$ac_objext
18849 if { (ac_try="$ac_compile"
18850 case "(($ac_try" in
18851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18852 *) ac_try_echo=$ac_try;;
18854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18855 $as_echo "$ac_try_echo") >&5
18856 (eval "$ac_compile") 2>conftest.er1
18858 grep -v '^ *+' conftest.er1 >conftest.err
18860 cat conftest.err >&5
18861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); } && {
18863 test -z "$ac_c_werror_flag" ||
18864 test ! -s conftest.err
18865 } && test -s conftest.$ac_objext; then
18868 $as_echo "$as_me: failed program was:" >&5
18869 sed 's/^/| /' conftest.$ac_ext >&5
18871 ac_lo=`expr '(' $ac_mid ')' + 1`
18874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18877 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18878 '') if test "$ac_cv_type_off_t" = yes; then
18879 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18881 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18882 See \`config.log' for more details." >&5
18883 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18884 See \`config.log' for more details." >&2;}
18885 { (exit 77); exit 77; }; }; }
18887 ac_cv_sizeof_off_t=0
18891 cat >conftest.$ac_ext <<_ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h. */
18897 $ac_includes_default
18898 static long int longval () { return (long int) (sizeof (off_t)); }
18899 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
18901 #include <stdlib.h>
18906 FILE *f = fopen ("conftest.val", "w");
18909 if (((long int) (sizeof (off_t))) < 0)
18911 long int i = longval ();
18912 if (i != ((long int) (sizeof (off_t))))
18914 fprintf (f, "%ld", i);
18918 unsigned long int i = ulongval ();
18919 if (i != ((long int) (sizeof (off_t))))
18921 fprintf (f, "%lu", i);
18923 /* Do not output a trailing newline, as this causes \r\n confusion
18924 on some platforms. */
18925 return ferror (f) || fclose (f) != 0;
18931 rm -f conftest$ac_exeext
18932 if { (ac_try="$ac_link"
18933 case "(($ac_try" in
18934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935 *) ac_try_echo=$ac_try;;
18937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18938 $as_echo "$ac_try_echo") >&5
18939 (eval "$ac_link") 2>&5
18941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18943 { (case "(($ac_try" in
18944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18945 *) ac_try_echo=$ac_try;;
18947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18948 $as_echo "$ac_try_echo") >&5
18949 (eval "$ac_try") 2>&5
18951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); }; }; then
18953 ac_cv_sizeof_off_t=`cat conftest.val`
18955 $as_echo "$as_me: program exited with status $ac_status" >&5
18956 $as_echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.$ac_ext >&5
18959 ( exit $ac_status )
18960 if test "$ac_cv_type_off_t" = yes; then
18961 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18963 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18964 See \`config.log' for more details." >&5
18965 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18966 See \`config.log' for more details." >&2;}
18967 { (exit 77); exit 77; }; }; }
18969 ac_cv_sizeof_off_t=0
18972 rm -rf conftest.dSYM
18973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18977 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
18978 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18982 cat >>confdefs.h <<_ACEOF
18983 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18988 # If we don't have largefile support, can't handle segsize >= 2GB.
18989 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
18990 { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
18991 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
18992 { (exit 1); exit 1; }; }
18997 ## Functions, global variables
19000 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
19001 $as_echo_n "checking for int timezone... " >&6; }
19002 if test "${pgac_cv_var_int_timezone+set}" = set; then
19003 $as_echo_n "(cached) " >&6
19005 cat >conftest.$ac_ext <<_ACEOF
19008 cat confdefs.h >>conftest.$ac_ext
19009 cat >>conftest.$ac_ext <<_ACEOF
19010 /* end confdefs.h. */
19017 res = timezone / 60;
19019 res = _timezone / 60;
19025 rm -f conftest.$ac_objext conftest$ac_exeext
19026 if { (ac_try="$ac_link"
19027 case "(($ac_try" in
19028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19029 *) ac_try_echo=$ac_try;;
19031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19032 $as_echo "$ac_try_echo") >&5
19033 (eval "$ac_link") 2>conftest.er1
19035 grep -v '^ *+' conftest.er1 >conftest.err
19037 cat conftest.err >&5
19038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); } && {
19040 test -z "$ac_c_werror_flag" ||
19041 test ! -s conftest.err
19042 } && test -s conftest$ac_exeext && {
19043 test "$cross_compiling" = yes ||
19044 $as_test_x conftest$ac_exeext
19046 pgac_cv_var_int_timezone=yes
19048 $as_echo "$as_me: failed program was:" >&5
19049 sed 's/^/| /' conftest.$ac_ext >&5
19051 pgac_cv_var_int_timezone=no
19054 rm -rf conftest.dSYM
19055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19056 conftest$ac_exeext conftest.$ac_ext
19058 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
19059 $as_echo "$pgac_cv_var_int_timezone" >&6; }
19060 if test x"$pgac_cv_var_int_timezone" = xyes ; then
19062 cat >>confdefs.h <<\_ACEOF
19063 #define HAVE_INT_TIMEZONE /**/
19067 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
19068 $as_echo_n "checking types of arguments for accept()... " >&6; }
19069 if test "${ac_cv_func_accept_return+set}" = set; then
19070 $as_echo_n "(cached) " >&6
19072 if test "${ac_cv_func_accept_arg1+set}" = set; then
19073 $as_echo_n "(cached) " >&6
19075 if test "${ac_cv_func_accept_arg2+set}" = set; then
19076 $as_echo_n "(cached) " >&6
19078 if test "${ac_cv_func_accept_arg3+set}" = set; then
19079 $as_echo_n "(cached) " >&6
19081 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
19082 for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
19083 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
19084 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
19085 cat >conftest.$ac_ext <<_ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h. */
19091 #ifdef HAVE_SYS_TYPES_H
19092 #include <sys/types.h>
19094 #ifdef HAVE_SYS_SOCKET_H
19095 #include <sys/socket.h>
19097 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
19106 rm -f conftest.$ac_objext
19107 if { (ac_try="$ac_compile"
19108 case "(($ac_try" in
19109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19110 *) ac_try_echo=$ac_try;;
19112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19113 $as_echo "$ac_try_echo") >&5
19114 (eval "$ac_compile") 2>conftest.er1
19116 grep -v '^ *+' conftest.er1 >conftest.err
19118 cat conftest.err >&5
19119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); } && {
19121 test -z "$ac_c_werror_flag" ||
19122 test ! -s conftest.err
19123 } && test -s conftest.$ac_objext; then
19124 ac_not_found=no; break 4
19126 $as_echo "$as_me: failed program was:" >&5
19127 sed 's/^/| /' conftest.$ac_ext >&5
19132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19137 if test "$ac_not_found" = yes; then
19138 { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
19139 $as_echo "$as_me: error: could not determine argument types" >&2;}
19140 { (exit 1); exit 1; }; }
19142 if test "$ac_cv_func_accept_arg3" = "void"; then
19143 ac_cv_func_accept_arg3=int
19153 { $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
19154 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
19156 cat >>confdefs.h <<_ACEOF
19157 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
19161 cat >>confdefs.h <<_ACEOF
19162 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
19166 cat >>confdefs.h <<_ACEOF
19167 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
19171 cat >>confdefs.h <<_ACEOF
19172 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
19176 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
19177 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
19178 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
19179 $as_echo_n "(cached) " >&6
19181 cat >conftest.$ac_ext <<_ACEOF
19184 cat confdefs.h >>conftest.$ac_ext
19185 cat >>conftest.$ac_ext <<_ACEOF
19186 /* end confdefs.h. */
19187 #include <sys/time.h>
19191 struct timeval *tp;
19192 struct timezone *tzp;
19193 gettimeofday(tp,tzp);
19198 rm -f conftest.$ac_objext
19199 if { (ac_try="$ac_compile"
19200 case "(($ac_try" in
19201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19202 *) ac_try_echo=$ac_try;;
19204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19205 $as_echo "$ac_try_echo") >&5
19206 (eval "$ac_compile") 2>conftest.er1
19208 grep -v '^ *+' conftest.er1 >conftest.err
19210 cat conftest.err >&5
19211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); } && {
19213 test -z "$ac_c_werror_flag" ||
19214 test ! -s conftest.err
19215 } && test -s conftest.$ac_objext; then
19216 pgac_cv_func_gettimeofday_1arg=no
19218 $as_echo "$as_me: failed program was:" >&5
19219 sed 's/^/| /' conftest.$ac_ext >&5
19221 pgac_cv_func_gettimeofday_1arg=yes
19224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19226 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
19227 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
19228 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
19230 cat >>confdefs.h <<\_ACEOF
19231 #define GETTIMEOFDAY_1ARG /**/
19258 for ac_func in cbrt dlopen fdatasync getifaddrs getpeerucred getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sync_file_range towlower utime utimes wcstombs wcstombs_l
19260 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19261 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19262 $as_echo_n "checking for $ac_func... " >&6; }
19263 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19264 $as_echo_n "(cached) " >&6
19266 cat >conftest.$ac_ext <<_ACEOF
19269 cat confdefs.h >>conftest.$ac_ext
19270 cat >>conftest.$ac_ext <<_ACEOF
19271 /* end confdefs.h. */
19272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19274 #define $ac_func innocuous_$ac_func
19276 /* System header to define __stub macros and hopefully few prototypes,
19277 which can conflict with char $ac_func (); below.
19278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19279 <limits.h> exists even on freestanding compilers. */
19282 # include <limits.h>
19284 # include <assert.h>
19289 /* Override any GCC internal prototype to avoid an error.
19290 Use char because int might match the return type of a GCC
19291 builtin and then its argument prototype would still apply. */
19296 /* The GNU C library defines this for functions which it implements
19297 to always fail with ENOSYS. Some functions are actually named
19298 something starting with __ and the normal name is an alias. */
19299 #if defined __stub_$ac_func || defined __stub___$ac_func
19306 return $ac_func ();
19311 rm -f conftest.$ac_objext conftest$ac_exeext
19312 if { (ac_try="$ac_link"
19313 case "(($ac_try" in
19314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19315 *) ac_try_echo=$ac_try;;
19317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19318 $as_echo "$ac_try_echo") >&5
19319 (eval "$ac_link") 2>conftest.er1
19321 grep -v '^ *+' conftest.er1 >conftest.err
19323 cat conftest.err >&5
19324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); } && {
19326 test -z "$ac_c_werror_flag" ||
19327 test ! -s conftest.err
19328 } && test -s conftest$ac_exeext && {
19329 test "$cross_compiling" = yes ||
19330 $as_test_x conftest$ac_exeext
19332 eval "$as_ac_var=yes"
19334 $as_echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19337 eval "$as_ac_var=no"
19340 rm -rf conftest.dSYM
19341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19342 conftest$ac_exeext conftest.$ac_ext
19344 ac_res=`eval 'as_val=${'$as_ac_var'}
19345 $as_echo "$as_val"'`
19346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19347 $as_echo "$ac_res" >&6; }
19348 as_val=`eval 'as_val=${'$as_ac_var'}
19349 $as_echo "$as_val"'`
19350 if test "x$as_val" = x""yes; then
19351 cat >>confdefs.h <<_ACEOF
19352 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19360 for ac_func in fseeko
19362 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19363 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19364 $as_echo_n "checking for $ac_func... " >&6; }
19365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19366 $as_echo_n "(cached) " >&6
19368 cat >conftest.$ac_ext <<_ACEOF
19371 cat confdefs.h >>conftest.$ac_ext
19372 cat >>conftest.$ac_ext <<_ACEOF
19373 /* end confdefs.h. */
19374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19376 #define $ac_func innocuous_$ac_func
19378 /* System header to define __stub macros and hopefully few prototypes,
19379 which can conflict with char $ac_func (); below.
19380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19381 <limits.h> exists even on freestanding compilers. */
19384 # include <limits.h>
19386 # include <assert.h>
19391 /* Override any GCC internal prototype to avoid an error.
19392 Use char because int might match the return type of a GCC
19393 builtin and then its argument prototype would still apply. */
19398 /* The GNU C library defines this for functions which it implements
19399 to always fail with ENOSYS. Some functions are actually named
19400 something starting with __ and the normal name is an alias. */
19401 #if defined __stub_$ac_func || defined __stub___$ac_func
19408 return $ac_func ();
19413 rm -f conftest.$ac_objext conftest$ac_exeext
19414 if { (ac_try="$ac_link"
19415 case "(($ac_try" in
19416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19417 *) ac_try_echo=$ac_try;;
19419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19420 $as_echo "$ac_try_echo") >&5
19421 (eval "$ac_link") 2>conftest.er1
19423 grep -v '^ *+' conftest.er1 >conftest.err
19425 cat conftest.err >&5
19426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); } && {
19428 test -z "$ac_c_werror_flag" ||
19429 test ! -s conftest.err
19430 } && test -s conftest$ac_exeext && {
19431 test "$cross_compiling" = yes ||
19432 $as_test_x conftest$ac_exeext
19434 eval "$as_ac_var=yes"
19436 $as_echo "$as_me: failed program was:" >&5
19437 sed 's/^/| /' conftest.$ac_ext >&5
19439 eval "$as_ac_var=no"
19442 rm -rf conftest.dSYM
19443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19444 conftest$ac_exeext conftest.$ac_ext
19446 ac_res=`eval 'as_val=${'$as_ac_var'}
19447 $as_echo "$as_val"'`
19448 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19449 $as_echo "$ac_res" >&6; }
19450 as_val=`eval 'as_val=${'$as_ac_var'}
19451 $as_echo "$as_val"'`
19452 if test "x$as_val" = x""yes; then
19453 cat >>confdefs.h <<_ACEOF
19454 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19458 case " $LIBOBJS " in
19459 *" $ac_func.$ac_objext "* ) ;;
19460 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19469 # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
19470 # Mingw uses macros to access Win32 API calls
19473 cat >>confdefs.h <<\_ACEOF
19474 #define HAVE_FSEEKO 1
19477 ac_cv_func_fseeko=yes;;
19479 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19480 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19481 if test "${ac_cv_sys_largefile_source+set}" = set; then
19482 $as_echo_n "(cached) " >&6
19485 cat >conftest.$ac_ext <<_ACEOF
19488 cat confdefs.h >>conftest.$ac_ext
19489 cat >>conftest.$ac_ext <<_ACEOF
19490 /* end confdefs.h. */
19491 #include <sys/types.h> /* for off_t */
19496 int (*fp) (FILE *, off_t, int) = fseeko;
19497 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19502 rm -f conftest.$ac_objext conftest$ac_exeext
19503 if { (ac_try="$ac_link"
19504 case "(($ac_try" in
19505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19506 *) ac_try_echo=$ac_try;;
19508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19509 $as_echo "$ac_try_echo") >&5
19510 (eval "$ac_link") 2>conftest.er1
19512 grep -v '^ *+' conftest.er1 >conftest.err
19514 cat conftest.err >&5
19515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); } && {
19517 test -z "$ac_c_werror_flag" ||
19518 test ! -s conftest.err
19519 } && test -s conftest$ac_exeext && {
19520 test "$cross_compiling" = yes ||
19521 $as_test_x conftest$ac_exeext
19523 ac_cv_sys_largefile_source=no; break
19525 $as_echo "$as_me: failed program was:" >&5
19526 sed 's/^/| /' conftest.$ac_ext >&5
19531 rm -rf conftest.dSYM
19532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19533 conftest$ac_exeext conftest.$ac_ext
19534 cat >conftest.$ac_ext <<_ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h. */
19540 #define _LARGEFILE_SOURCE 1
19541 #include <sys/types.h> /* for off_t */
19546 int (*fp) (FILE *, off_t, int) = fseeko;
19547 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19552 rm -f conftest.$ac_objext conftest$ac_exeext
19553 if { (ac_try="$ac_link"
19554 case "(($ac_try" in
19555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556 *) ac_try_echo=$ac_try;;
19558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19559 $as_echo "$ac_try_echo") >&5
19560 (eval "$ac_link") 2>conftest.er1
19562 grep -v '^ *+' conftest.er1 >conftest.err
19564 cat conftest.err >&5
19565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); } && {
19567 test -z "$ac_c_werror_flag" ||
19568 test ! -s conftest.err
19569 } && test -s conftest$ac_exeext && {
19570 test "$cross_compiling" = yes ||
19571 $as_test_x conftest$ac_exeext
19573 ac_cv_sys_largefile_source=1; break
19575 $as_echo "$as_me: failed program was:" >&5
19576 sed 's/^/| /' conftest.$ac_ext >&5
19581 rm -rf conftest.dSYM
19582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19583 conftest$ac_exeext conftest.$ac_ext
19584 ac_cv_sys_largefile_source=unknown
19588 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19589 $as_echo "$ac_cv_sys_largefile_source" >&6; }
19590 case $ac_cv_sys_largefile_source in #(
19593 cat >>confdefs.h <<_ACEOF
19594 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19600 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19601 # in glibc 2.1.3, but that breaks too many other things.
19602 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19603 if test $ac_cv_sys_largefile_source != unknown; then
19605 cat >>confdefs.h <<\_ACEOF
19606 #define HAVE_FSEEKO 1
19613 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19614 # by calling it, 2009-04-02
19615 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19616 if test "$PORTNAME" != "solaris"; then
19618 for ac_func in posix_fadvise
19620 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19621 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19622 $as_echo_n "checking for $ac_func... " >&6; }
19623 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19624 $as_echo_n "(cached) " >&6
19626 cat >conftest.$ac_ext <<_ACEOF
19629 cat confdefs.h >>conftest.$ac_ext
19630 cat >>conftest.$ac_ext <<_ACEOF
19631 /* end confdefs.h. */
19632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19634 #define $ac_func innocuous_$ac_func
19636 /* System header to define __stub macros and hopefully few prototypes,
19637 which can conflict with char $ac_func (); below.
19638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19639 <limits.h> exists even on freestanding compilers. */
19642 # include <limits.h>
19644 # include <assert.h>
19649 /* Override any GCC internal prototype to avoid an error.
19650 Use char because int might match the return type of a GCC
19651 builtin and then its argument prototype would still apply. */
19656 /* The GNU C library defines this for functions which it implements
19657 to always fail with ENOSYS. Some functions are actually named
19658 something starting with __ and the normal name is an alias. */
19659 #if defined __stub_$ac_func || defined __stub___$ac_func
19666 return $ac_func ();
19671 rm -f conftest.$ac_objext conftest$ac_exeext
19672 if { (ac_try="$ac_link"
19673 case "(($ac_try" in
19674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19675 *) ac_try_echo=$ac_try;;
19677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19678 $as_echo "$ac_try_echo") >&5
19679 (eval "$ac_link") 2>conftest.er1
19681 grep -v '^ *+' conftest.er1 >conftest.err
19683 cat conftest.err >&5
19684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); } && {
19686 test -z "$ac_c_werror_flag" ||
19687 test ! -s conftest.err
19688 } && test -s conftest$ac_exeext && {
19689 test "$cross_compiling" = yes ||
19690 $as_test_x conftest$ac_exeext
19692 eval "$as_ac_var=yes"
19694 $as_echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19697 eval "$as_ac_var=no"
19700 rm -rf conftest.dSYM
19701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19702 conftest$ac_exeext conftest.$ac_ext
19704 ac_res=`eval 'as_val=${'$as_ac_var'}
19705 $as_echo "$as_val"'`
19706 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19707 $as_echo "$ac_res" >&6; }
19708 as_val=`eval 'as_val=${'$as_ac_var'}
19709 $as_echo "$as_val"'`
19710 if test "x$as_val" = x""yes; then
19711 cat >>confdefs.h <<_ACEOF
19712 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19718 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
19719 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
19720 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19721 $as_echo_n "(cached) " >&6
19723 cat >conftest.$ac_ext <<_ACEOF
19726 cat confdefs.h >>conftest.$ac_ext
19727 cat >>conftest.$ac_ext <<_ACEOF
19728 /* end confdefs.h. */
19734 #ifndef posix_fadvise
19735 (void) posix_fadvise;
19742 rm -f conftest.$ac_objext
19743 if { (ac_try="$ac_compile"
19744 case "(($ac_try" in
19745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19746 *) ac_try_echo=$ac_try;;
19748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19749 $as_echo "$ac_try_echo") >&5
19750 (eval "$ac_compile") 2>conftest.er1
19752 grep -v '^ *+' conftest.er1 >conftest.err
19754 cat conftest.err >&5
19755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); } && {
19757 test -z "$ac_c_werror_flag" ||
19758 test ! -s conftest.err
19759 } && test -s conftest.$ac_objext; then
19760 ac_cv_have_decl_posix_fadvise=yes
19762 $as_echo "$as_me: failed program was:" >&5
19763 sed 's/^/| /' conftest.$ac_ext >&5
19765 ac_cv_have_decl_posix_fadvise=no
19768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19770 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
19771 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19772 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
19774 cat >>confdefs.h <<_ACEOF
19775 #define HAVE_DECL_POSIX_FADVISE 1
19780 cat >>confdefs.h <<_ACEOF
19781 #define HAVE_DECL_POSIX_FADVISE 0
19790 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
19791 $as_echo_n "checking whether fdatasync is declared... " >&6; }
19792 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19793 $as_echo_n "(cached) " >&6
19795 cat >conftest.$ac_ext <<_ACEOF
19798 cat confdefs.h >>conftest.$ac_ext
19799 cat >>conftest.$ac_ext <<_ACEOF
19800 /* end confdefs.h. */
19801 #include <unistd.h>
19814 rm -f conftest.$ac_objext
19815 if { (ac_try="$ac_compile"
19816 case "(($ac_try" in
19817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19818 *) ac_try_echo=$ac_try;;
19820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19821 $as_echo "$ac_try_echo") >&5
19822 (eval "$ac_compile") 2>conftest.er1
19824 grep -v '^ *+' conftest.er1 >conftest.err
19826 cat conftest.err >&5
19827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828 (exit $ac_status); } && {
19829 test -z "$ac_c_werror_flag" ||
19830 test ! -s conftest.err
19831 } && test -s conftest.$ac_objext; then
19832 ac_cv_have_decl_fdatasync=yes
19834 $as_echo "$as_me: failed program was:" >&5
19835 sed 's/^/| /' conftest.$ac_ext >&5
19837 ac_cv_have_decl_fdatasync=no
19840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19842 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
19843 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19844 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
19846 cat >>confdefs.h <<_ACEOF
19847 #define HAVE_DECL_FDATASYNC 1
19852 cat >>confdefs.h <<_ACEOF
19853 #define HAVE_DECL_FDATASYNC 0
19860 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
19861 $as_echo_n "checking whether strlcat is declared... " >&6; }
19862 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19863 $as_echo_n "(cached) " >&6
19865 cat >conftest.$ac_ext <<_ACEOF
19868 cat confdefs.h >>conftest.$ac_ext
19869 cat >>conftest.$ac_ext <<_ACEOF
19870 /* end confdefs.h. */
19871 $ac_includes_default
19883 rm -f conftest.$ac_objext
19884 if { (ac_try="$ac_compile"
19885 case "(($ac_try" in
19886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887 *) ac_try_echo=$ac_try;;
19889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19890 $as_echo "$ac_try_echo") >&5
19891 (eval "$ac_compile") 2>conftest.er1
19893 grep -v '^ *+' conftest.er1 >conftest.err
19895 cat conftest.err >&5
19896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); } && {
19898 test -z "$ac_c_werror_flag" ||
19899 test ! -s conftest.err
19900 } && test -s conftest.$ac_objext; then
19901 ac_cv_have_decl_strlcat=yes
19903 $as_echo "$as_me: failed program was:" >&5
19904 sed 's/^/| /' conftest.$ac_ext >&5
19906 ac_cv_have_decl_strlcat=no
19909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19911 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
19912 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19913 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
19915 cat >>confdefs.h <<_ACEOF
19916 #define HAVE_DECL_STRLCAT 1
19921 cat >>confdefs.h <<_ACEOF
19922 #define HAVE_DECL_STRLCAT 0
19927 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
19928 $as_echo_n "checking whether strlcpy is declared... " >&6; }
19929 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19930 $as_echo_n "(cached) " >&6
19932 cat >conftest.$ac_ext <<_ACEOF
19935 cat confdefs.h >>conftest.$ac_ext
19936 cat >>conftest.$ac_ext <<_ACEOF
19937 /* end confdefs.h. */
19938 $ac_includes_default
19950 rm -f conftest.$ac_objext
19951 if { (ac_try="$ac_compile"
19952 case "(($ac_try" in
19953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19954 *) ac_try_echo=$ac_try;;
19956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19957 $as_echo "$ac_try_echo") >&5
19958 (eval "$ac_compile") 2>conftest.er1
19960 grep -v '^ *+' conftest.er1 >conftest.err
19962 cat conftest.err >&5
19963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); } && {
19965 test -z "$ac_c_werror_flag" ||
19966 test ! -s conftest.err
19967 } && test -s conftest.$ac_objext; then
19968 ac_cv_have_decl_strlcpy=yes
19970 $as_echo "$as_me: failed program was:" >&5
19971 sed 's/^/| /' conftest.$ac_ext >&5
19973 ac_cv_have_decl_strlcpy=no
19976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19978 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
19979 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19980 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
19982 cat >>confdefs.h <<_ACEOF
19983 #define HAVE_DECL_STRLCPY 1
19988 cat >>confdefs.h <<_ACEOF
19989 #define HAVE_DECL_STRLCPY 0
19996 # This is probably only present on Darwin, but may as well check always
19997 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
19998 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
19999 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
20000 $as_echo_n "(cached) " >&6
20002 cat >conftest.$ac_ext <<_ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h. */
20013 #ifndef F_FULLFSYNC
20014 (void) F_FULLFSYNC;
20021 rm -f conftest.$ac_objext
20022 if { (ac_try="$ac_compile"
20023 case "(($ac_try" in
20024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20025 *) ac_try_echo=$ac_try;;
20027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20028 $as_echo "$ac_try_echo") >&5
20029 (eval "$ac_compile") 2>conftest.er1
20031 grep -v '^ *+' conftest.er1 >conftest.err
20033 cat conftest.err >&5
20034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); } && {
20036 test -z "$ac_c_werror_flag" ||
20037 test ! -s conftest.err
20038 } && test -s conftest.$ac_objext; then
20039 ac_cv_have_decl_F_FULLFSYNC=yes
20041 $as_echo "$as_me: failed program was:" >&5
20042 sed 's/^/| /' conftest.$ac_ext >&5
20044 ac_cv_have_decl_F_FULLFSYNC=no
20047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20049 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
20050 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
20051 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
20053 cat >>confdefs.h <<_ACEOF
20054 #define HAVE_DECL_F_FULLFSYNC 1
20059 cat >>confdefs.h <<_ACEOF
20060 #define HAVE_DECL_F_FULLFSYNC 0
20069 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
20070 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
20071 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
20072 $as_echo_n "(cached) " >&6
20074 ac_cv_type_struct_sockaddr_in6=no
20075 cat >conftest.$ac_ext <<_ACEOF
20078 cat confdefs.h >>conftest.$ac_ext
20079 cat >>conftest.$ac_ext <<_ACEOF
20080 /* end confdefs.h. */
20081 $ac_includes_default
20082 #include <netinet/in.h>
20087 if (sizeof (struct sockaddr_in6))
20093 rm -f conftest.$ac_objext
20094 if { (ac_try="$ac_compile"
20095 case "(($ac_try" in
20096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097 *) ac_try_echo=$ac_try;;
20099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20100 $as_echo "$ac_try_echo") >&5
20101 (eval "$ac_compile") 2>conftest.er1
20103 grep -v '^ *+' conftest.er1 >conftest.err
20105 cat conftest.err >&5
20106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); } && {
20108 test -z "$ac_c_werror_flag" ||
20109 test ! -s conftest.err
20110 } && test -s conftest.$ac_objext; then
20111 cat >conftest.$ac_ext <<_ACEOF
20114 cat confdefs.h >>conftest.$ac_ext
20115 cat >>conftest.$ac_ext <<_ACEOF
20116 /* end confdefs.h. */
20117 $ac_includes_default
20118 #include <netinet/in.h>
20123 if (sizeof ((struct sockaddr_in6)))
20129 rm -f conftest.$ac_objext
20130 if { (ac_try="$ac_compile"
20131 case "(($ac_try" in
20132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20133 *) ac_try_echo=$ac_try;;
20135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20136 $as_echo "$ac_try_echo") >&5
20137 (eval "$ac_compile") 2>conftest.er1
20139 grep -v '^ *+' conftest.er1 >conftest.err
20141 cat conftest.err >&5
20142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20143 (exit $ac_status); } && {
20144 test -z "$ac_c_werror_flag" ||
20145 test ! -s conftest.err
20146 } && test -s conftest.$ac_objext; then
20149 $as_echo "$as_me: failed program was:" >&5
20150 sed 's/^/| /' conftest.$ac_ext >&5
20152 ac_cv_type_struct_sockaddr_in6=yes
20155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20157 $as_echo "$as_me: failed program was:" >&5
20158 sed 's/^/| /' conftest.$ac_ext >&5
20163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20165 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
20166 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
20167 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
20169 cat >>confdefs.h <<\_ACEOF
20170 #define HAVE_IPV6 1
20178 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
20179 $as_echo_n "checking for PS_STRINGS... " >&6; }
20180 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
20181 $as_echo_n "(cached) " >&6
20183 cat >conftest.$ac_ext <<_ACEOF
20186 cat confdefs.h >>conftest.$ac_ext
20187 cat >>conftest.$ac_ext <<_ACEOF
20188 /* end confdefs.h. */
20189 #include <machine/vmparam.h>
20190 #include <sys/exec.h>
20195 PS_STRINGS->ps_nargvstr = 1;
20196 PS_STRINGS->ps_argvstr = "foo";
20201 rm -f conftest.$ac_objext conftest$ac_exeext
20202 if { (ac_try="$ac_link"
20203 case "(($ac_try" in
20204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20205 *) ac_try_echo=$ac_try;;
20207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20208 $as_echo "$ac_try_echo") >&5
20209 (eval "$ac_link") 2>conftest.er1
20211 grep -v '^ *+' conftest.er1 >conftest.err
20213 cat conftest.err >&5
20214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); } && {
20216 test -z "$ac_c_werror_flag" ||
20217 test ! -s conftest.err
20218 } && test -s conftest$ac_exeext && {
20219 test "$cross_compiling" = yes ||
20220 $as_test_x conftest$ac_exeext
20222 pgac_cv_var_PS_STRINGS=yes
20224 $as_echo "$as_me: failed program was:" >&5
20225 sed 's/^/| /' conftest.$ac_ext >&5
20227 pgac_cv_var_PS_STRINGS=no
20230 rm -rf conftest.dSYM
20231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20232 conftest$ac_exeext conftest.$ac_ext
20234 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
20235 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
20236 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
20238 cat >>confdefs.h <<\_ACEOF
20239 #define HAVE_PS_STRINGS /**/
20245 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
20246 # is missing. Yes, there are machines that have only one. We may
20247 # also decide to use snprintf.c if snprintf() is present but does not
20248 # have all the features we need --- see below.
20250 if test "$PORTNAME" = "win32"; then
20251 # Win32 gets snprintf.c built unconditionally.
20253 # To properly translate all NLS languages strings, we must support the
20254 # *printf() %$ format, which allows *printf() arguments to be selected
20255 # by position in the translated string.
20257 # libintl versions < 0.13 use the native *printf() functions, and Win32
20258 # *printf() doesn't understand %$, so we must use our /port versions,
20259 # which do understand %$. libintl versions >= 0.13 include their own
20260 # *printf versions on Win32. The libintl 0.13 release note text is:
20262 # C format strings with positions, as they arise when a translator
20263 # needs to reorder a sentence, are now supported on all platforms.
20264 # On those few platforms (NetBSD and Woe32) for which the native
20265 # printf()/fprintf()/... functions don't support such format
20266 # strings, replacements are provided through <libintl.h>.
20268 # We could use libintl >= 0.13's *printf() if we were sure that we had
20269 # a litint >= 0.13 at runtime, but seeing that there is no clean way
20270 # to guarantee that, it is best to just use our own, so we are sure to
20271 # get %$ support. In include/port.h we disable the *printf() macros
20272 # that might have been defined by libintl.
20274 # We do this unconditionally whether NLS is used or not so we are sure
20275 # that all Win32 libraries and binaries behave the same.
20276 pgac_need_repl_snprintf=yes
20278 pgac_need_repl_snprintf=no
20280 for ac_func in snprintf
20282 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20283 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20284 $as_echo_n "checking for $ac_func... " >&6; }
20285 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20286 $as_echo_n "(cached) " >&6
20288 cat >conftest.$ac_ext <<_ACEOF
20291 cat confdefs.h >>conftest.$ac_ext
20292 cat >>conftest.$ac_ext <<_ACEOF
20293 /* end confdefs.h. */
20294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20296 #define $ac_func innocuous_$ac_func
20298 /* System header to define __stub macros and hopefully few prototypes,
20299 which can conflict with char $ac_func (); below.
20300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20301 <limits.h> exists even on freestanding compilers. */
20304 # include <limits.h>
20306 # include <assert.h>
20311 /* Override any GCC internal prototype to avoid an error.
20312 Use char because int might match the return type of a GCC
20313 builtin and then its argument prototype would still apply. */
20318 /* The GNU C library defines this for functions which it implements
20319 to always fail with ENOSYS. Some functions are actually named
20320 something starting with __ and the normal name is an alias. */
20321 #if defined __stub_$ac_func || defined __stub___$ac_func
20328 return $ac_func ();
20333 rm -f conftest.$ac_objext conftest$ac_exeext
20334 if { (ac_try="$ac_link"
20335 case "(($ac_try" in
20336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337 *) ac_try_echo=$ac_try;;
20339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20340 $as_echo "$ac_try_echo") >&5
20341 (eval "$ac_link") 2>conftest.er1
20343 grep -v '^ *+' conftest.er1 >conftest.err
20345 cat conftest.err >&5
20346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); } && {
20348 test -z "$ac_c_werror_flag" ||
20349 test ! -s conftest.err
20350 } && test -s conftest$ac_exeext && {
20351 test "$cross_compiling" = yes ||
20352 $as_test_x conftest$ac_exeext
20354 eval "$as_ac_var=yes"
20356 $as_echo "$as_me: failed program was:" >&5
20357 sed 's/^/| /' conftest.$ac_ext >&5
20359 eval "$as_ac_var=no"
20362 rm -rf conftest.dSYM
20363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20364 conftest$ac_exeext conftest.$ac_ext
20366 ac_res=`eval 'as_val=${'$as_ac_var'}
20367 $as_echo "$as_val"'`
20368 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20369 $as_echo "$ac_res" >&6; }
20370 as_val=`eval 'as_val=${'$as_ac_var'}
20371 $as_echo "$as_val"'`
20372 if test "x$as_val" = x""yes; then
20373 cat >>confdefs.h <<_ACEOF
20374 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20378 pgac_need_repl_snprintf=yes
20383 for ac_func in vsnprintf
20385 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20386 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20387 $as_echo_n "checking for $ac_func... " >&6; }
20388 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20389 $as_echo_n "(cached) " >&6
20391 cat >conftest.$ac_ext <<_ACEOF
20394 cat confdefs.h >>conftest.$ac_ext
20395 cat >>conftest.$ac_ext <<_ACEOF
20396 /* end confdefs.h. */
20397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20399 #define $ac_func innocuous_$ac_func
20401 /* System header to define __stub macros and hopefully few prototypes,
20402 which can conflict with char $ac_func (); below.
20403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20404 <limits.h> exists even on freestanding compilers. */
20407 # include <limits.h>
20409 # include <assert.h>
20414 /* Override any GCC internal prototype to avoid an error.
20415 Use char because int might match the return type of a GCC
20416 builtin and then its argument prototype would still apply. */
20421 /* The GNU C library defines this for functions which it implements
20422 to always fail with ENOSYS. Some functions are actually named
20423 something starting with __ and the normal name is an alias. */
20424 #if defined __stub_$ac_func || defined __stub___$ac_func
20431 return $ac_func ();
20436 rm -f conftest.$ac_objext conftest$ac_exeext
20437 if { (ac_try="$ac_link"
20438 case "(($ac_try" in
20439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440 *) ac_try_echo=$ac_try;;
20442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20443 $as_echo "$ac_try_echo") >&5
20444 (eval "$ac_link") 2>conftest.er1
20446 grep -v '^ *+' conftest.er1 >conftest.err
20448 cat conftest.err >&5
20449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); } && {
20451 test -z "$ac_c_werror_flag" ||
20452 test ! -s conftest.err
20453 } && test -s conftest$ac_exeext && {
20454 test "$cross_compiling" = yes ||
20455 $as_test_x conftest$ac_exeext
20457 eval "$as_ac_var=yes"
20459 $as_echo "$as_me: failed program was:" >&5
20460 sed 's/^/| /' conftest.$ac_ext >&5
20462 eval "$as_ac_var=no"
20465 rm -rf conftest.dSYM
20466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20467 conftest$ac_exeext conftest.$ac_ext
20469 ac_res=`eval 'as_val=${'$as_ac_var'}
20470 $as_echo "$as_val"'`
20471 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20472 $as_echo "$ac_res" >&6; }
20473 as_val=`eval 'as_val=${'$as_ac_var'}
20474 $as_echo "$as_val"'`
20475 if test "x$as_val" = x""yes; then
20476 cat >>confdefs.h <<_ACEOF
20477 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20481 pgac_need_repl_snprintf=yes
20488 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
20489 # include/c.h will provide declarations. Note this is a separate test
20490 # from whether the functions exist in the C library --- there are
20491 # systems that have the functions but don't bother to declare them :-(
20493 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
20494 $as_echo_n "checking whether snprintf is declared... " >&6; }
20495 if test "${ac_cv_have_decl_snprintf+set}" = set; then
20496 $as_echo_n "(cached) " >&6
20498 cat >conftest.$ac_ext <<_ACEOF
20501 cat confdefs.h >>conftest.$ac_ext
20502 cat >>conftest.$ac_ext <<_ACEOF
20503 /* end confdefs.h. */
20504 $ac_includes_default
20516 rm -f conftest.$ac_objext
20517 if { (ac_try="$ac_compile"
20518 case "(($ac_try" in
20519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20520 *) ac_try_echo=$ac_try;;
20522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20523 $as_echo "$ac_try_echo") >&5
20524 (eval "$ac_compile") 2>conftest.er1
20526 grep -v '^ *+' conftest.er1 >conftest.err
20528 cat conftest.err >&5
20529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530 (exit $ac_status); } && {
20531 test -z "$ac_c_werror_flag" ||
20532 test ! -s conftest.err
20533 } && test -s conftest.$ac_objext; then
20534 ac_cv_have_decl_snprintf=yes
20536 $as_echo "$as_me: failed program was:" >&5
20537 sed 's/^/| /' conftest.$ac_ext >&5
20539 ac_cv_have_decl_snprintf=no
20542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20544 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
20545 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
20546 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
20548 cat >>confdefs.h <<_ACEOF
20549 #define HAVE_DECL_SNPRINTF 1
20554 cat >>confdefs.h <<_ACEOF
20555 #define HAVE_DECL_SNPRINTF 0
20560 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
20561 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
20562 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
20563 $as_echo_n "(cached) " >&6
20565 cat >conftest.$ac_ext <<_ACEOF
20568 cat confdefs.h >>conftest.$ac_ext
20569 cat >>conftest.$ac_ext <<_ACEOF
20570 /* end confdefs.h. */
20571 $ac_includes_default
20583 rm -f conftest.$ac_objext
20584 if { (ac_try="$ac_compile"
20585 case "(($ac_try" in
20586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20587 *) ac_try_echo=$ac_try;;
20589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20590 $as_echo "$ac_try_echo") >&5
20591 (eval "$ac_compile") 2>conftest.er1
20593 grep -v '^ *+' conftest.er1 >conftest.err
20595 cat conftest.err >&5
20596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); } && {
20598 test -z "$ac_c_werror_flag" ||
20599 test ! -s conftest.err
20600 } && test -s conftest.$ac_objext; then
20601 ac_cv_have_decl_vsnprintf=yes
20603 $as_echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20606 ac_cv_have_decl_vsnprintf=no
20609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20611 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
20612 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20613 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
20615 cat >>confdefs.h <<_ACEOF
20616 #define HAVE_DECL_VSNPRINTF 1
20621 cat >>confdefs.h <<_ACEOF
20622 #define HAVE_DECL_VSNPRINTF 0
20631 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
20632 $as_echo_n "checking for isinf... " >&6; }
20633 if test "${ac_cv_func_isinf+set}" = set; then
20634 $as_echo_n "(cached) " >&6
20636 cat >conftest.$ac_ext <<_ACEOF
20639 cat confdefs.h >>conftest.$ac_ext
20640 cat >>conftest.$ac_ext <<_ACEOF
20641 /* end confdefs.h. */
20644 double glob_double;
20649 return isinf(glob_double) ? 0 : 1;
20654 rm -f conftest.$ac_objext conftest$ac_exeext
20655 if { (ac_try="$ac_link"
20656 case "(($ac_try" in
20657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658 *) ac_try_echo=$ac_try;;
20660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20661 $as_echo "$ac_try_echo") >&5
20662 (eval "$ac_link") 2>conftest.er1
20664 grep -v '^ *+' conftest.er1 >conftest.err
20666 cat conftest.err >&5
20667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); } && {
20669 test -z "$ac_c_werror_flag" ||
20670 test ! -s conftest.err
20671 } && test -s conftest$ac_exeext && {
20672 test "$cross_compiling" = yes ||
20673 $as_test_x conftest$ac_exeext
20675 ac_cv_func_isinf=yes
20677 $as_echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20680 ac_cv_func_isinf=no
20683 rm -rf conftest.dSYM
20684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20685 conftest$ac_exeext conftest.$ac_ext
20687 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
20688 $as_echo "$ac_cv_func_isinf" >&6; }
20690 if test $ac_cv_func_isinf = yes ; then
20692 cat >>confdefs.h <<\_ACEOF
20693 #define HAVE_ISINF 1
20697 case " $LIBOBJS " in
20698 *" isinf.$ac_objext "* ) ;;
20699 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
20703 # Look for a way to implement a substitute for isinf()
20708 for ac_func in fpclass fp_class fp_class_d class
20710 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20711 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20712 $as_echo_n "checking for $ac_func... " >&6; }
20713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20714 $as_echo_n "(cached) " >&6
20716 cat >conftest.$ac_ext <<_ACEOF
20719 cat confdefs.h >>conftest.$ac_ext
20720 cat >>conftest.$ac_ext <<_ACEOF
20721 /* end confdefs.h. */
20722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20724 #define $ac_func innocuous_$ac_func
20726 /* System header to define __stub macros and hopefully few prototypes,
20727 which can conflict with char $ac_func (); below.
20728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20729 <limits.h> exists even on freestanding compilers. */
20732 # include <limits.h>
20734 # include <assert.h>
20739 /* Override any GCC internal prototype to avoid an error.
20740 Use char because int might match the return type of a GCC
20741 builtin and then its argument prototype would still apply. */
20746 /* The GNU C library defines this for functions which it implements
20747 to always fail with ENOSYS. Some functions are actually named
20748 something starting with __ and the normal name is an alias. */
20749 #if defined __stub_$ac_func || defined __stub___$ac_func
20756 return $ac_func ();
20761 rm -f conftest.$ac_objext conftest$ac_exeext
20762 if { (ac_try="$ac_link"
20763 case "(($ac_try" in
20764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20765 *) ac_try_echo=$ac_try;;
20767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20768 $as_echo "$ac_try_echo") >&5
20769 (eval "$ac_link") 2>conftest.er1
20771 grep -v '^ *+' conftest.er1 >conftest.err
20773 cat conftest.err >&5
20774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } && {
20776 test -z "$ac_c_werror_flag" ||
20777 test ! -s conftest.err
20778 } && test -s conftest$ac_exeext && {
20779 test "$cross_compiling" = yes ||
20780 $as_test_x conftest$ac_exeext
20782 eval "$as_ac_var=yes"
20784 $as_echo "$as_me: failed program was:" >&5
20785 sed 's/^/| /' conftest.$ac_ext >&5
20787 eval "$as_ac_var=no"
20790 rm -rf conftest.dSYM
20791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20792 conftest$ac_exeext conftest.$ac_ext
20794 ac_res=`eval 'as_val=${'$as_ac_var'}
20795 $as_echo "$as_val"'`
20796 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20797 $as_echo "$ac_res" >&6; }
20798 as_val=`eval 'as_val=${'$as_ac_var'}
20799 $as_echo "$as_val"'`
20800 if test "x$as_val" = x""yes; then
20801 cat >>confdefs.h <<_ACEOF
20802 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20810 # Some versions of libedit contain strlcpy(); so disregard that library while
20811 # checking for these standard libc functions.
20812 pgac_save_LIBS="$LIBS"
20813 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20826 for ac_func in crypt fls getopt getrusage inet_aton random rint srandom strerror strlcat strlcpy
20828 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20829 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20830 $as_echo_n "checking for $ac_func... " >&6; }
20831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20832 $as_echo_n "(cached) " >&6
20834 cat >conftest.$ac_ext <<_ACEOF
20837 cat confdefs.h >>conftest.$ac_ext
20838 cat >>conftest.$ac_ext <<_ACEOF
20839 /* end confdefs.h. */
20840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20842 #define $ac_func innocuous_$ac_func
20844 /* System header to define __stub macros and hopefully few prototypes,
20845 which can conflict with char $ac_func (); below.
20846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20847 <limits.h> exists even on freestanding compilers. */
20850 # include <limits.h>
20852 # include <assert.h>
20857 /* Override any GCC internal prototype to avoid an error.
20858 Use char because int might match the return type of a GCC
20859 builtin and then its argument prototype would still apply. */
20864 /* The GNU C library defines this for functions which it implements
20865 to always fail with ENOSYS. Some functions are actually named
20866 something starting with __ and the normal name is an alias. */
20867 #if defined __stub_$ac_func || defined __stub___$ac_func
20874 return $ac_func ();
20879 rm -f conftest.$ac_objext conftest$ac_exeext
20880 if { (ac_try="$ac_link"
20881 case "(($ac_try" in
20882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20883 *) ac_try_echo=$ac_try;;
20885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20886 $as_echo "$ac_try_echo") >&5
20887 (eval "$ac_link") 2>conftest.er1
20889 grep -v '^ *+' conftest.er1 >conftest.err
20891 cat conftest.err >&5
20892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); } && {
20894 test -z "$ac_c_werror_flag" ||
20895 test ! -s conftest.err
20896 } && test -s conftest$ac_exeext && {
20897 test "$cross_compiling" = yes ||
20898 $as_test_x conftest$ac_exeext
20900 eval "$as_ac_var=yes"
20902 $as_echo "$as_me: failed program was:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20905 eval "$as_ac_var=no"
20908 rm -rf conftest.dSYM
20909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20910 conftest$ac_exeext conftest.$ac_ext
20912 ac_res=`eval 'as_val=${'$as_ac_var'}
20913 $as_echo "$as_val"'`
20914 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20915 $as_echo "$ac_res" >&6; }
20916 as_val=`eval 'as_val=${'$as_ac_var'}
20917 $as_echo "$as_val"'`
20918 if test "x$as_val" = x""yes; then
20919 cat >>confdefs.h <<_ACEOF
20920 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20924 case " $LIBOBJS " in
20925 *" $ac_func.$ac_objext "* ) ;;
20926 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20937 # Windows uses a specialised env handler
20938 # and doesn't need a replacement getpeereid because it doesn't use
20942 cat >>confdefs.h <<\_ACEOF
20943 #define HAVE_UNSETENV 1
20947 cat >>confdefs.h <<\_ACEOF
20948 #define HAVE_GETPEEREID 1
20951 ac_cv_func_unsetenv=yes
20952 ac_cv_func_getpeereid=yes;;
20956 for ac_func in unsetenv getpeereid
20958 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20959 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20960 $as_echo_n "checking for $ac_func... " >&6; }
20961 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20962 $as_echo_n "(cached) " >&6
20964 cat >conftest.$ac_ext <<_ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h. */
20970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20972 #define $ac_func innocuous_$ac_func
20974 /* System header to define __stub macros and hopefully few prototypes,
20975 which can conflict with char $ac_func (); below.
20976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20977 <limits.h> exists even on freestanding compilers. */
20980 # include <limits.h>
20982 # include <assert.h>
20987 /* Override any GCC internal prototype to avoid an error.
20988 Use char because int might match the return type of a GCC
20989 builtin and then its argument prototype would still apply. */
20994 /* The GNU C library defines this for functions which it implements
20995 to always fail with ENOSYS. Some functions are actually named
20996 something starting with __ and the normal name is an alias. */
20997 #if defined __stub_$ac_func || defined __stub___$ac_func
21004 return $ac_func ();
21009 rm -f conftest.$ac_objext conftest$ac_exeext
21010 if { (ac_try="$ac_link"
21011 case "(($ac_try" in
21012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21013 *) ac_try_echo=$ac_try;;
21015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21016 $as_echo "$ac_try_echo") >&5
21017 (eval "$ac_link") 2>conftest.er1
21019 grep -v '^ *+' conftest.er1 >conftest.err
21021 cat conftest.err >&5
21022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); } && {
21024 test -z "$ac_c_werror_flag" ||
21025 test ! -s conftest.err
21026 } && test -s conftest$ac_exeext && {
21027 test "$cross_compiling" = yes ||
21028 $as_test_x conftest$ac_exeext
21030 eval "$as_ac_var=yes"
21032 $as_echo "$as_me: failed program was:" >&5
21033 sed 's/^/| /' conftest.$ac_ext >&5
21035 eval "$as_ac_var=no"
21038 rm -rf conftest.dSYM
21039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21040 conftest$ac_exeext conftest.$ac_ext
21042 ac_res=`eval 'as_val=${'$as_ac_var'}
21043 $as_echo "$as_val"'`
21044 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21045 $as_echo "$ac_res" >&6; }
21046 as_val=`eval 'as_val=${'$as_ac_var'}
21047 $as_echo "$as_val"'`
21048 if test "x$as_val" = x""yes; then
21049 cat >>confdefs.h <<_ACEOF
21050 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21054 case " $LIBOBJS " in
21055 *" $ac_func.$ac_objext "* ) ;;
21056 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21068 LIBS="$pgac_save_LIBS"
21070 # System's version of getaddrinfo(), if any, may be used only if we found
21071 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
21072 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
21073 # versions of getaddrinfo don't follow normal C call protocol. This is OK
21074 # because we want to use our own getaddrinfo.c on Windows anyway.)
21075 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
21077 for ac_func in getaddrinfo
21079 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21080 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21081 $as_echo_n "checking for $ac_func... " >&6; }
21082 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21083 $as_echo_n "(cached) " >&6
21085 cat >conftest.$ac_ext <<_ACEOF
21088 cat confdefs.h >>conftest.$ac_ext
21089 cat >>conftest.$ac_ext <<_ACEOF
21090 /* end confdefs.h. */
21091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21093 #define $ac_func innocuous_$ac_func
21095 /* System header to define __stub macros and hopefully few prototypes,
21096 which can conflict with char $ac_func (); below.
21097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21098 <limits.h> exists even on freestanding compilers. */
21101 # include <limits.h>
21103 # include <assert.h>
21108 /* Override any GCC internal prototype to avoid an error.
21109 Use char because int might match the return type of a GCC
21110 builtin and then its argument prototype would still apply. */
21115 /* The GNU C library defines this for functions which it implements
21116 to always fail with ENOSYS. Some functions are actually named
21117 something starting with __ and the normal name is an alias. */
21118 #if defined __stub_$ac_func || defined __stub___$ac_func
21125 return $ac_func ();
21130 rm -f conftest.$ac_objext conftest$ac_exeext
21131 if { (ac_try="$ac_link"
21132 case "(($ac_try" in
21133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21134 *) ac_try_echo=$ac_try;;
21136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21137 $as_echo "$ac_try_echo") >&5
21138 (eval "$ac_link") 2>conftest.er1
21140 grep -v '^ *+' conftest.er1 >conftest.err
21142 cat conftest.err >&5
21143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144 (exit $ac_status); } && {
21145 test -z "$ac_c_werror_flag" ||
21146 test ! -s conftest.err
21147 } && test -s conftest$ac_exeext && {
21148 test "$cross_compiling" = yes ||
21149 $as_test_x conftest$ac_exeext
21151 eval "$as_ac_var=yes"
21153 $as_echo "$as_me: failed program was:" >&5
21154 sed 's/^/| /' conftest.$ac_ext >&5
21156 eval "$as_ac_var=no"
21159 rm -rf conftest.dSYM
21160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21161 conftest$ac_exeext conftest.$ac_ext
21163 ac_res=`eval 'as_val=${'$as_ac_var'}
21164 $as_echo "$as_val"'`
21165 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21166 $as_echo "$ac_res" >&6; }
21167 as_val=`eval 'as_val=${'$as_ac_var'}
21168 $as_echo "$as_val"'`
21169 if test "x$as_val" = x""yes; then
21170 cat >>confdefs.h <<_ACEOF
21171 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21175 case " $LIBOBJS " in
21176 *" $ac_func.$ac_objext "* ) ;;
21177 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21186 case " $LIBOBJS " in
21187 *" getaddrinfo.$ac_objext "* ) ;;
21188 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21194 # Similarly, use system's getopt_long() only if system provides struct option.
21195 if test x"$ac_cv_type_struct_option" = xyes ; then
21197 for ac_func in getopt_long
21199 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21200 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21201 $as_echo_n "checking for $ac_func... " >&6; }
21202 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21203 $as_echo_n "(cached) " >&6
21205 cat >conftest.$ac_ext <<_ACEOF
21208 cat confdefs.h >>conftest.$ac_ext
21209 cat >>conftest.$ac_ext <<_ACEOF
21210 /* end confdefs.h. */
21211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21213 #define $ac_func innocuous_$ac_func
21215 /* System header to define __stub macros and hopefully few prototypes,
21216 which can conflict with char $ac_func (); below.
21217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21218 <limits.h> exists even on freestanding compilers. */
21221 # include <limits.h>
21223 # include <assert.h>
21228 /* Override any GCC internal prototype to avoid an error.
21229 Use char because int might match the return type of a GCC
21230 builtin and then its argument prototype would still apply. */
21235 /* The GNU C library defines this for functions which it implements
21236 to always fail with ENOSYS. Some functions are actually named
21237 something starting with __ and the normal name is an alias. */
21238 #if defined __stub_$ac_func || defined __stub___$ac_func
21245 return $ac_func ();
21250 rm -f conftest.$ac_objext conftest$ac_exeext
21251 if { (ac_try="$ac_link"
21252 case "(($ac_try" in
21253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254 *) ac_try_echo=$ac_try;;
21256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21257 $as_echo "$ac_try_echo") >&5
21258 (eval "$ac_link") 2>conftest.er1
21260 grep -v '^ *+' conftest.er1 >conftest.err
21262 cat conftest.err >&5
21263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); } && {
21265 test -z "$ac_c_werror_flag" ||
21266 test ! -s conftest.err
21267 } && test -s conftest$ac_exeext && {
21268 test "$cross_compiling" = yes ||
21269 $as_test_x conftest$ac_exeext
21271 eval "$as_ac_var=yes"
21273 $as_echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21276 eval "$as_ac_var=no"
21279 rm -rf conftest.dSYM
21280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21281 conftest$ac_exeext conftest.$ac_ext
21283 ac_res=`eval 'as_val=${'$as_ac_var'}
21284 $as_echo "$as_val"'`
21285 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21286 $as_echo "$ac_res" >&6; }
21287 as_val=`eval 'as_val=${'$as_ac_var'}
21288 $as_echo "$as_val"'`
21289 if test "x$as_val" = x""yes; then
21290 cat >>confdefs.h <<_ACEOF
21291 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21295 case " $LIBOBJS " in
21296 *" $ac_func.$ac_objext "* ) ;;
21297 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21306 case " $LIBOBJS " in
21307 *" getopt_long.$ac_objext "* ) ;;
21308 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21314 # Solaris' getopt() doesn't do what we want for long options, so always use
21315 # our version on that platform.
21316 if test "$PORTNAME" = "solaris"; then
21317 case " $LIBOBJS " in
21318 *" getopt.$ac_objext "* ) ;;
21319 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21325 # mingw has adopted a GNU-centric interpretation of optind/optreset,
21326 # so always use our version on Windows.
21327 if test "$PORTNAME" = "win32"; then
21328 case " $LIBOBJS " in
21329 *" getopt.$ac_objext "* ) ;;
21330 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21334 case " $LIBOBJS " in
21335 *" getopt_long.$ac_objext "* ) ;;
21336 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21343 if test "$PORTNAME" = "win32"; then
21345 for ac_func in gettimeofday
21347 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21348 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21349 $as_echo_n "checking for $ac_func... " >&6; }
21350 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21351 $as_echo_n "(cached) " >&6
21353 cat >conftest.$ac_ext <<_ACEOF
21356 cat confdefs.h >>conftest.$ac_ext
21357 cat >>conftest.$ac_ext <<_ACEOF
21358 /* end confdefs.h. */
21359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21361 #define $ac_func innocuous_$ac_func
21363 /* System header to define __stub macros and hopefully few prototypes,
21364 which can conflict with char $ac_func (); below.
21365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21366 <limits.h> exists even on freestanding compilers. */
21369 # include <limits.h>
21371 # include <assert.h>
21376 /* Override any GCC internal prototype to avoid an error.
21377 Use char because int might match the return type of a GCC
21378 builtin and then its argument prototype would still apply. */
21383 /* The GNU C library defines this for functions which it implements
21384 to always fail with ENOSYS. Some functions are actually named
21385 something starting with __ and the normal name is an alias. */
21386 #if defined __stub_$ac_func || defined __stub___$ac_func
21393 return $ac_func ();
21398 rm -f conftest.$ac_objext conftest$ac_exeext
21399 if { (ac_try="$ac_link"
21400 case "(($ac_try" in
21401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21402 *) ac_try_echo=$ac_try;;
21404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21405 $as_echo "$ac_try_echo") >&5
21406 (eval "$ac_link") 2>conftest.er1
21408 grep -v '^ *+' conftest.er1 >conftest.err
21410 cat conftest.err >&5
21411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); } && {
21413 test -z "$ac_c_werror_flag" ||
21414 test ! -s conftest.err
21415 } && test -s conftest$ac_exeext && {
21416 test "$cross_compiling" = yes ||
21417 $as_test_x conftest$ac_exeext
21419 eval "$as_ac_var=yes"
21421 $as_echo "$as_me: failed program was:" >&5
21422 sed 's/^/| /' conftest.$ac_ext >&5
21424 eval "$as_ac_var=no"
21427 rm -rf conftest.dSYM
21428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21429 conftest$ac_exeext conftest.$ac_ext
21431 ac_res=`eval 'as_val=${'$as_ac_var'}
21432 $as_echo "$as_val"'`
21433 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21434 $as_echo "$ac_res" >&6; }
21435 as_val=`eval 'as_val=${'$as_ac_var'}
21436 $as_echo "$as_val"'`
21437 if test "x$as_val" = x""yes; then
21438 cat >>confdefs.h <<_ACEOF
21439 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21443 case " $LIBOBJS " in
21444 *" $ac_func.$ac_objext "* ) ;;
21445 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21453 case " $LIBOBJS " in
21454 *" kill.$ac_objext "* ) ;;
21455 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
21459 case " $LIBOBJS " in
21460 *" open.$ac_objext "* ) ;;
21461 *) LIBOBJS="$LIBOBJS open.$ac_objext"
21465 case " $LIBOBJS " in
21466 *" win32env.$ac_objext "* ) ;;
21467 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
21471 case " $LIBOBJS " in
21472 *" win32error.$ac_objext "* ) ;;
21473 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
21477 case " $LIBOBJS " in
21478 *" win32setlocale.$ac_objext "* ) ;;
21479 *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
21484 cat >>confdefs.h <<\_ACEOF
21485 #define HAVE_SYMLINK 1
21488 { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
21489 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
21490 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
21491 $as_echo_n "(cached) " >&6
21493 ac_cv_type_MINIDUMP_TYPE=no
21494 cat >conftest.$ac_ext <<_ACEOF
21497 cat confdefs.h >>conftest.$ac_ext
21498 cat >>conftest.$ac_ext <<_ACEOF
21499 /* end confdefs.h. */
21501 #define WIN32_LEAN_AND_MEAN
21502 #include <windows.h>
21503 #include <string.h>
21504 #include <dbghelp.h>
21509 if (sizeof (MINIDUMP_TYPE))
21515 rm -f conftest.$ac_objext
21516 if { (ac_try="$ac_compile"
21517 case "(($ac_try" in
21518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21519 *) ac_try_echo=$ac_try;;
21521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21522 $as_echo "$ac_try_echo") >&5
21523 (eval "$ac_compile") 2>conftest.er1
21525 grep -v '^ *+' conftest.er1 >conftest.err
21527 cat conftest.err >&5
21528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529 (exit $ac_status); } && {
21530 test -z "$ac_c_werror_flag" ||
21531 test ! -s conftest.err
21532 } && test -s conftest.$ac_objext; then
21533 cat >conftest.$ac_ext <<_ACEOF
21536 cat confdefs.h >>conftest.$ac_ext
21537 cat >>conftest.$ac_ext <<_ACEOF
21538 /* end confdefs.h. */
21540 #define WIN32_LEAN_AND_MEAN
21541 #include <windows.h>
21542 #include <string.h>
21543 #include <dbghelp.h>
21548 if (sizeof ((MINIDUMP_TYPE)))
21554 rm -f conftest.$ac_objext
21555 if { (ac_try="$ac_compile"
21556 case "(($ac_try" in
21557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21558 *) ac_try_echo=$ac_try;;
21560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21561 $as_echo "$ac_try_echo") >&5
21562 (eval "$ac_compile") 2>conftest.er1
21564 grep -v '^ *+' conftest.er1 >conftest.err
21566 cat conftest.err >&5
21567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); } && {
21569 test -z "$ac_c_werror_flag" ||
21570 test ! -s conftest.err
21571 } && test -s conftest.$ac_objext; then
21574 $as_echo "$as_me: failed program was:" >&5
21575 sed 's/^/| /' conftest.$ac_ext >&5
21577 ac_cv_type_MINIDUMP_TYPE=yes
21580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21582 $as_echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21590 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
21591 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
21592 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
21594 cat >>confdefs.h <<_ACEOF
21595 #define HAVE_MINIDUMP_TYPE 1
21598 pgac_minidump_type=yes
21600 pgac_minidump_type=no
21604 if test x"$pgac_minidump_type" = x"yes" ; then
21605 have_win32_dbghelp=yes
21608 have_win32_dbghelp=no
21612 if test "$with_readline" = yes; then
21613 { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
21614 $as_echo_n "checking for rl_completion_append_character... " >&6; }
21615 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
21616 $as_echo_n "(cached) " >&6
21618 cat >conftest.$ac_ext <<_ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h. */
21625 #ifdef HAVE_READLINE_READLINE_H
21626 # include <readline/readline.h>
21627 #elif defined(HAVE_READLINE_H)
21628 # include <readline.h>
21634 rl_completion_append_character = 'x';
21639 rm -f conftest.$ac_objext conftest$ac_exeext
21640 if { (ac_try="$ac_link"
21641 case "(($ac_try" in
21642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21643 *) ac_try_echo=$ac_try;;
21645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21646 $as_echo "$ac_try_echo") >&5
21647 (eval "$ac_link") 2>conftest.er1
21649 grep -v '^ *+' conftest.er1 >conftest.err
21651 cat conftest.err >&5
21652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21653 (exit $ac_status); } && {
21654 test -z "$ac_c_werror_flag" ||
21655 test ! -s conftest.err
21656 } && test -s conftest$ac_exeext && {
21657 test "$cross_compiling" = yes ||
21658 $as_test_x conftest$ac_exeext
21660 pgac_cv_var_rl_completion_append_character=yes
21662 $as_echo "$as_me: failed program was:" >&5
21663 sed 's/^/| /' conftest.$ac_ext >&5
21665 pgac_cv_var_rl_completion_append_character=no
21668 rm -rf conftest.dSYM
21669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21670 conftest$ac_exeext conftest.$ac_ext
21672 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
21673 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
21674 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
21676 cat >>confdefs.h <<\_ACEOF
21677 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
21683 for ac_func in rl_completion_matches rl_filename_completion_function
21685 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21686 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21687 $as_echo_n "checking for $ac_func... " >&6; }
21688 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21689 $as_echo_n "(cached) " >&6
21691 cat >conftest.$ac_ext <<_ACEOF
21694 cat confdefs.h >>conftest.$ac_ext
21695 cat >>conftest.$ac_ext <<_ACEOF
21696 /* end confdefs.h. */
21697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21699 #define $ac_func innocuous_$ac_func
21701 /* System header to define __stub macros and hopefully few prototypes,
21702 which can conflict with char $ac_func (); below.
21703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21704 <limits.h> exists even on freestanding compilers. */
21707 # include <limits.h>
21709 # include <assert.h>
21714 /* Override any GCC internal prototype to avoid an error.
21715 Use char because int might match the return type of a GCC
21716 builtin and then its argument prototype would still apply. */
21721 /* The GNU C library defines this for functions which it implements
21722 to always fail with ENOSYS. Some functions are actually named
21723 something starting with __ and the normal name is an alias. */
21724 #if defined __stub_$ac_func || defined __stub___$ac_func
21731 return $ac_func ();
21736 rm -f conftest.$ac_objext conftest$ac_exeext
21737 if { (ac_try="$ac_link"
21738 case "(($ac_try" in
21739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21740 *) ac_try_echo=$ac_try;;
21742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21743 $as_echo "$ac_try_echo") >&5
21744 (eval "$ac_link") 2>conftest.er1
21746 grep -v '^ *+' conftest.er1 >conftest.err
21748 cat conftest.err >&5
21749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); } && {
21751 test -z "$ac_c_werror_flag" ||
21752 test ! -s conftest.err
21753 } && test -s conftest$ac_exeext && {
21754 test "$cross_compiling" = yes ||
21755 $as_test_x conftest$ac_exeext
21757 eval "$as_ac_var=yes"
21759 $as_echo "$as_me: failed program was:" >&5
21760 sed 's/^/| /' conftest.$ac_ext >&5
21762 eval "$as_ac_var=no"
21765 rm -rf conftest.dSYM
21766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21767 conftest$ac_exeext conftest.$ac_ext
21769 ac_res=`eval 'as_val=${'$as_ac_var'}
21770 $as_echo "$as_val"'`
21771 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21772 $as_echo "$ac_res" >&6; }
21773 as_val=`eval 'as_val=${'$as_ac_var'}
21774 $as_echo "$as_val"'`
21775 if test "x$as_val" = x""yes; then
21776 cat >>confdefs.h <<_ACEOF
21777 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21785 for ac_func in append_history history_truncate_file
21787 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21788 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21789 $as_echo_n "checking for $ac_func... " >&6; }
21790 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21791 $as_echo_n "(cached) " >&6
21793 cat >conftest.$ac_ext <<_ACEOF
21796 cat confdefs.h >>conftest.$ac_ext
21797 cat >>conftest.$ac_ext <<_ACEOF
21798 /* end confdefs.h. */
21799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21801 #define $ac_func innocuous_$ac_func
21803 /* System header to define __stub macros and hopefully few prototypes,
21804 which can conflict with char $ac_func (); below.
21805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21806 <limits.h> exists even on freestanding compilers. */
21809 # include <limits.h>
21811 # include <assert.h>
21816 /* Override any GCC internal prototype to avoid an error.
21817 Use char because int might match the return type of a GCC
21818 builtin and then its argument prototype would still apply. */
21823 /* The GNU C library defines this for functions which it implements
21824 to always fail with ENOSYS. Some functions are actually named
21825 something starting with __ and the normal name is an alias. */
21826 #if defined __stub_$ac_func || defined __stub___$ac_func
21833 return $ac_func ();
21838 rm -f conftest.$ac_objext conftest$ac_exeext
21839 if { (ac_try="$ac_link"
21840 case "(($ac_try" in
21841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21842 *) ac_try_echo=$ac_try;;
21844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21845 $as_echo "$ac_try_echo") >&5
21846 (eval "$ac_link") 2>conftest.er1
21848 grep -v '^ *+' conftest.er1 >conftest.err
21850 cat conftest.err >&5
21851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); } && {
21853 test -z "$ac_c_werror_flag" ||
21854 test ! -s conftest.err
21855 } && test -s conftest$ac_exeext && {
21856 test "$cross_compiling" = yes ||
21857 $as_test_x conftest$ac_exeext
21859 eval "$as_ac_var=yes"
21861 $as_echo "$as_me: failed program was:" >&5
21862 sed 's/^/| /' conftest.$ac_ext >&5
21864 eval "$as_ac_var=no"
21867 rm -rf conftest.dSYM
21868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21869 conftest$ac_exeext conftest.$ac_ext
21871 ac_res=`eval 'as_val=${'$as_ac_var'}
21872 $as_echo "$as_val"'`
21873 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21874 $as_echo "$ac_res" >&6; }
21875 as_val=`eval 'as_val=${'$as_ac_var'}
21876 $as_echo "$as_val"'`
21877 if test "x$as_val" = x""yes; then
21878 cat >>confdefs.h <<_ACEOF
21879 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21888 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
21889 $as_echo_n "checking for sigsetjmp... " >&6; }
21890 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
21891 $as_echo_n "(cached) " >&6
21893 cat >conftest.$ac_ext <<_ACEOF
21896 cat confdefs.h >>conftest.$ac_ext
21897 cat >>conftest.$ac_ext <<_ACEOF
21898 /* end confdefs.h. */
21899 #include <setjmp.h>
21903 sigjmp_buf x; sigsetjmp(x, 1);
21908 rm -f conftest.$ac_objext conftest$ac_exeext
21909 if { (ac_try="$ac_link"
21910 case "(($ac_try" in
21911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21912 *) ac_try_echo=$ac_try;;
21914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21915 $as_echo "$ac_try_echo") >&5
21916 (eval "$ac_link") 2>conftest.er1
21918 grep -v '^ *+' conftest.er1 >conftest.err
21920 cat conftest.err >&5
21921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922 (exit $ac_status); } && {
21923 test -z "$ac_c_werror_flag" ||
21924 test ! -s conftest.err
21925 } && test -s conftest$ac_exeext && {
21926 test "$cross_compiling" = yes ||
21927 $as_test_x conftest$ac_exeext
21929 pgac_cv_func_sigsetjmp=yes
21931 $as_echo "$as_me: failed program was:" >&5
21932 sed 's/^/| /' conftest.$ac_ext >&5
21934 pgac_cv_func_sigsetjmp=no
21937 rm -rf conftest.dSYM
21938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21939 conftest$ac_exeext conftest.$ac_ext
21941 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
21942 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
21943 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
21945 cat >>confdefs.h <<\_ACEOF
21946 #define HAVE_SIGSETJMP 1
21951 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
21952 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
21953 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21954 $as_echo_n "(cached) " >&6
21956 cat >conftest.$ac_ext <<_ACEOF
21959 cat confdefs.h >>conftest.$ac_ext
21960 cat >>conftest.$ac_ext <<_ACEOF
21961 /* end confdefs.h. */
21962 #include <signal.h>
21963 /* NetBSD declares sys_siglist in unistd.h. */
21964 #ifdef HAVE_UNISTD_H
21965 # include <unistd.h>
21972 #ifndef sys_siglist
21973 (void) sys_siglist;
21980 rm -f conftest.$ac_objext
21981 if { (ac_try="$ac_compile"
21982 case "(($ac_try" in
21983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984 *) ac_try_echo=$ac_try;;
21986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21987 $as_echo "$ac_try_echo") >&5
21988 (eval "$ac_compile") 2>conftest.er1
21990 grep -v '^ *+' conftest.er1 >conftest.err
21992 cat conftest.err >&5
21993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); } && {
21995 test -z "$ac_c_werror_flag" ||
21996 test ! -s conftest.err
21997 } && test -s conftest.$ac_objext; then
21998 ac_cv_have_decl_sys_siglist=yes
22000 $as_echo "$as_me: failed program was:" >&5
22001 sed 's/^/| /' conftest.$ac_ext >&5
22003 ac_cv_have_decl_sys_siglist=no
22006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22008 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
22009 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
22010 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
22012 cat >>confdefs.h <<_ACEOF
22013 #define HAVE_DECL_SYS_SIGLIST 1
22018 cat >>confdefs.h <<_ACEOF
22019 #define HAVE_DECL_SYS_SIGLIST 0
22028 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
22029 $as_echo_n "checking for syslog... " >&6; }
22030 if test "${ac_cv_func_syslog+set}" = set; then
22031 $as_echo_n "(cached) " >&6
22033 cat >conftest.$ac_ext <<_ACEOF
22036 cat confdefs.h >>conftest.$ac_ext
22037 cat >>conftest.$ac_ext <<_ACEOF
22038 /* end confdefs.h. */
22039 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
22040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22041 #define syslog innocuous_syslog
22043 /* System header to define __stub macros and hopefully few prototypes,
22044 which can conflict with char syslog (); below.
22045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22046 <limits.h> exists even on freestanding compilers. */
22049 # include <limits.h>
22051 # include <assert.h>
22056 /* Override any GCC internal prototype to avoid an error.
22057 Use char because int might match the return type of a GCC
22058 builtin and then its argument prototype would still apply. */
22063 /* The GNU C library defines this for functions which it implements
22064 to always fail with ENOSYS. Some functions are actually named
22065 something starting with __ and the normal name is an alias. */
22066 #if defined __stub_syslog || defined __stub___syslog
22078 rm -f conftest.$ac_objext conftest$ac_exeext
22079 if { (ac_try="$ac_link"
22080 case "(($ac_try" in
22081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22082 *) ac_try_echo=$ac_try;;
22084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22085 $as_echo "$ac_try_echo") >&5
22086 (eval "$ac_link") 2>conftest.er1
22088 grep -v '^ *+' conftest.er1 >conftest.err
22090 cat conftest.err >&5
22091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092 (exit $ac_status); } && {
22093 test -z "$ac_c_werror_flag" ||
22094 test ! -s conftest.err
22095 } && test -s conftest$ac_exeext && {
22096 test "$cross_compiling" = yes ||
22097 $as_test_x conftest$ac_exeext
22099 ac_cv_func_syslog=yes
22101 $as_echo "$as_me: failed program was:" >&5
22102 sed 's/^/| /' conftest.$ac_ext >&5
22104 ac_cv_func_syslog=no
22107 rm -rf conftest.dSYM
22108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22109 conftest$ac_exeext conftest.$ac_ext
22111 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
22112 $as_echo "$ac_cv_func_syslog" >&6; }
22113 if test "x$ac_cv_func_syslog" = x""yes; then
22114 if test "${ac_cv_header_syslog_h+set}" = set; then
22115 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22116 $as_echo_n "checking for syslog.h... " >&6; }
22117 if test "${ac_cv_header_syslog_h+set}" = set; then
22118 $as_echo_n "(cached) " >&6
22120 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22121 $as_echo "$ac_cv_header_syslog_h" >&6; }
22123 # Is the header compilable?
22124 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
22125 $as_echo_n "checking syslog.h usability... " >&6; }
22126 cat >conftest.$ac_ext <<_ACEOF
22129 cat confdefs.h >>conftest.$ac_ext
22130 cat >>conftest.$ac_ext <<_ACEOF
22131 /* end confdefs.h. */
22132 $ac_includes_default
22133 #include <syslog.h>
22135 rm -f conftest.$ac_objext
22136 if { (ac_try="$ac_compile"
22137 case "(($ac_try" in
22138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22139 *) ac_try_echo=$ac_try;;
22141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22142 $as_echo "$ac_try_echo") >&5
22143 (eval "$ac_compile") 2>conftest.er1
22145 grep -v '^ *+' conftest.er1 >conftest.err
22147 cat conftest.err >&5
22148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149 (exit $ac_status); } && {
22150 test -z "$ac_c_werror_flag" ||
22151 test ! -s conftest.err
22152 } && test -s conftest.$ac_objext; then
22153 ac_header_compiler=yes
22155 $as_echo "$as_me: failed program was:" >&5
22156 sed 's/^/| /' conftest.$ac_ext >&5
22158 ac_header_compiler=no
22161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22162 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22163 $as_echo "$ac_header_compiler" >&6; }
22165 # Is the header present?
22166 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
22167 $as_echo_n "checking syslog.h presence... " >&6; }
22168 cat >conftest.$ac_ext <<_ACEOF
22171 cat confdefs.h >>conftest.$ac_ext
22172 cat >>conftest.$ac_ext <<_ACEOF
22173 /* end confdefs.h. */
22174 #include <syslog.h>
22176 if { (ac_try="$ac_cpp conftest.$ac_ext"
22177 case "(($ac_try" in
22178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22179 *) ac_try_echo=$ac_try;;
22181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22182 $as_echo "$ac_try_echo") >&5
22183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22185 grep -v '^ *+' conftest.er1 >conftest.err
22187 cat conftest.err >&5
22188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189 (exit $ac_status); } >/dev/null && {
22190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22191 test ! -s conftest.err
22193 ac_header_preproc=yes
22195 $as_echo "$as_me: failed program was:" >&5
22196 sed 's/^/| /' conftest.$ac_ext >&5
22198 ac_header_preproc=no
22201 rm -f conftest.err conftest.$ac_ext
22202 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22203 $as_echo "$ac_header_preproc" >&6; }
22205 # So? What about this header?
22206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22208 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
22209 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22210 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
22211 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
22212 ac_header_preproc=yes
22215 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
22216 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
22217 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
22218 $as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
22219 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
22220 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
22221 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
22222 $as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
22223 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
22224 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
22225 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
22226 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
22228 ## ---------------------------------------- ##
22229 ## Report this to pgsql-bugs@postgresql.org ##
22230 ## ---------------------------------------- ##
22232 ) | sed "s/^/$as_me: WARNING: /" >&2
22235 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22236 $as_echo_n "checking for syslog.h... " >&6; }
22237 if test "${ac_cv_header_syslog_h+set}" = set; then
22238 $as_echo_n "(cached) " >&6
22240 ac_cv_header_syslog_h=$ac_header_preproc
22242 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22243 $as_echo "$ac_cv_header_syslog_h" >&6; }
22246 if test "x$ac_cv_header_syslog_h" = x""yes; then
22248 cat >>confdefs.h <<\_ACEOF
22249 #define HAVE_SYSLOG 1
22258 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
22259 $as_echo_n "checking for opterr... " >&6; }
22260 if test "${pgac_cv_var_int_opterr+set}" = set; then
22261 $as_echo_n "(cached) " >&6
22263 cat >conftest.$ac_ext <<_ACEOF
22266 cat confdefs.h >>conftest.$ac_ext
22267 cat >>conftest.$ac_ext <<_ACEOF
22268 /* end confdefs.h. */
22269 #include <unistd.h>
22273 extern int opterr; opterr = 1;
22278 rm -f conftest.$ac_objext conftest$ac_exeext
22279 if { (ac_try="$ac_link"
22280 case "(($ac_try" in
22281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22282 *) ac_try_echo=$ac_try;;
22284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22285 $as_echo "$ac_try_echo") >&5
22286 (eval "$ac_link") 2>conftest.er1
22288 grep -v '^ *+' conftest.er1 >conftest.err
22290 cat conftest.err >&5
22291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); } && {
22293 test -z "$ac_c_werror_flag" ||
22294 test ! -s conftest.err
22295 } && test -s conftest$ac_exeext && {
22296 test "$cross_compiling" = yes ||
22297 $as_test_x conftest$ac_exeext
22299 pgac_cv_var_int_opterr=yes
22301 $as_echo "$as_me: failed program was:" >&5
22302 sed 's/^/| /' conftest.$ac_ext >&5
22304 pgac_cv_var_int_opterr=no
22307 rm -rf conftest.dSYM
22308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22309 conftest$ac_exeext conftest.$ac_ext
22311 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22312 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22313 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22315 cat >>confdefs.h <<\_ACEOF
22316 #define HAVE_INT_OPTERR 1
22321 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22322 $as_echo_n "checking for optreset... " >&6; }
22323 if test "${pgac_cv_var_int_optreset+set}" = set; then
22324 $as_echo_n "(cached) " >&6
22326 cat >conftest.$ac_ext <<_ACEOF
22329 cat confdefs.h >>conftest.$ac_ext
22330 cat >>conftest.$ac_ext <<_ACEOF
22331 /* end confdefs.h. */
22332 #include <unistd.h>
22336 extern int optreset; optreset = 1;
22341 rm -f conftest.$ac_objext conftest$ac_exeext
22342 if { (ac_try="$ac_link"
22343 case "(($ac_try" in
22344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22345 *) ac_try_echo=$ac_try;;
22347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22348 $as_echo "$ac_try_echo") >&5
22349 (eval "$ac_link") 2>conftest.er1
22351 grep -v '^ *+' conftest.er1 >conftest.err
22353 cat conftest.err >&5
22354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); } && {
22356 test -z "$ac_c_werror_flag" ||
22357 test ! -s conftest.err
22358 } && test -s conftest$ac_exeext && {
22359 test "$cross_compiling" = yes ||
22360 $as_test_x conftest$ac_exeext
22362 pgac_cv_var_int_optreset=yes
22364 $as_echo "$as_me: failed program was:" >&5
22365 sed 's/^/| /' conftest.$ac_ext >&5
22367 pgac_cv_var_int_optreset=no
22370 rm -rf conftest.dSYM
22371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22372 conftest$ac_exeext conftest.$ac_ext
22374 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22375 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22376 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22378 cat >>confdefs.h <<\_ACEOF
22379 #define HAVE_INT_OPTRESET 1
22386 for ac_func in strtoll strtoq
22388 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22389 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22390 $as_echo_n "checking for $ac_func... " >&6; }
22391 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22392 $as_echo_n "(cached) " >&6
22394 cat >conftest.$ac_ext <<_ACEOF
22397 cat confdefs.h >>conftest.$ac_ext
22398 cat >>conftest.$ac_ext <<_ACEOF
22399 /* end confdefs.h. */
22400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22402 #define $ac_func innocuous_$ac_func
22404 /* System header to define __stub macros and hopefully few prototypes,
22405 which can conflict with char $ac_func (); below.
22406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22407 <limits.h> exists even on freestanding compilers. */
22410 # include <limits.h>
22412 # include <assert.h>
22417 /* Override any GCC internal prototype to avoid an error.
22418 Use char because int might match the return type of a GCC
22419 builtin and then its argument prototype would still apply. */
22424 /* The GNU C library defines this for functions which it implements
22425 to always fail with ENOSYS. Some functions are actually named
22426 something starting with __ and the normal name is an alias. */
22427 #if defined __stub_$ac_func || defined __stub___$ac_func
22434 return $ac_func ();
22439 rm -f conftest.$ac_objext conftest$ac_exeext
22440 if { (ac_try="$ac_link"
22441 case "(($ac_try" in
22442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22443 *) ac_try_echo=$ac_try;;
22445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22446 $as_echo "$ac_try_echo") >&5
22447 (eval "$ac_link") 2>conftest.er1
22449 grep -v '^ *+' conftest.er1 >conftest.err
22451 cat conftest.err >&5
22452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453 (exit $ac_status); } && {
22454 test -z "$ac_c_werror_flag" ||
22455 test ! -s conftest.err
22456 } && test -s conftest$ac_exeext && {
22457 test "$cross_compiling" = yes ||
22458 $as_test_x conftest$ac_exeext
22460 eval "$as_ac_var=yes"
22462 $as_echo "$as_me: failed program was:" >&5
22463 sed 's/^/| /' conftest.$ac_ext >&5
22465 eval "$as_ac_var=no"
22468 rm -rf conftest.dSYM
22469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22470 conftest$ac_exeext conftest.$ac_ext
22472 ac_res=`eval 'as_val=${'$as_ac_var'}
22473 $as_echo "$as_val"'`
22474 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22475 $as_echo "$ac_res" >&6; }
22476 as_val=`eval 'as_val=${'$as_ac_var'}
22477 $as_echo "$as_val"'`
22478 if test "x$as_val" = x""yes; then
22479 cat >>confdefs.h <<_ACEOF
22480 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22488 for ac_func in strtoull strtouq
22490 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22491 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22492 $as_echo_n "checking for $ac_func... " >&6; }
22493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22494 $as_echo_n "(cached) " >&6
22496 cat >conftest.$ac_ext <<_ACEOF
22499 cat confdefs.h >>conftest.$ac_ext
22500 cat >>conftest.$ac_ext <<_ACEOF
22501 /* end confdefs.h. */
22502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22504 #define $ac_func innocuous_$ac_func
22506 /* System header to define __stub macros and hopefully few prototypes,
22507 which can conflict with char $ac_func (); below.
22508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22509 <limits.h> exists even on freestanding compilers. */
22512 # include <limits.h>
22514 # include <assert.h>
22519 /* Override any GCC internal prototype to avoid an error.
22520 Use char because int might match the return type of a GCC
22521 builtin and then its argument prototype would still apply. */
22526 /* The GNU C library defines this for functions which it implements
22527 to always fail with ENOSYS. Some functions are actually named
22528 something starting with __ and the normal name is an alias. */
22529 #if defined __stub_$ac_func || defined __stub___$ac_func
22536 return $ac_func ();
22541 rm -f conftest.$ac_objext conftest$ac_exeext
22542 if { (ac_try="$ac_link"
22543 case "(($ac_try" in
22544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22545 *) ac_try_echo=$ac_try;;
22547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22548 $as_echo "$ac_try_echo") >&5
22549 (eval "$ac_link") 2>conftest.er1
22551 grep -v '^ *+' conftest.er1 >conftest.err
22553 cat conftest.err >&5
22554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); } && {
22556 test -z "$ac_c_werror_flag" ||
22557 test ! -s conftest.err
22558 } && test -s conftest$ac_exeext && {
22559 test "$cross_compiling" = yes ||
22560 $as_test_x conftest$ac_exeext
22562 eval "$as_ac_var=yes"
22564 $as_echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22567 eval "$as_ac_var=no"
22570 rm -rf conftest.dSYM
22571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22572 conftest$ac_exeext conftest.$ac_ext
22574 ac_res=`eval 'as_val=${'$as_ac_var'}
22575 $as_echo "$as_val"'`
22576 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22577 $as_echo "$ac_res" >&6; }
22578 as_val=`eval 'as_val=${'$as_ac_var'}
22579 $as_echo "$as_val"'`
22580 if test "x$as_val" = x""yes; then
22581 cat >>confdefs.h <<_ACEOF
22582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22589 { $as_echo "$as_me:$LINENO: checking for builtin locking functions" >&5
22590 $as_echo_n "checking for builtin locking functions... " >&6; }
22591 if test "${pgac_cv_gcc_int_atomics+set}" = set; then
22592 $as_echo_n "(cached) " >&6
22594 cat >conftest.$ac_ext <<_ACEOF
22597 cat confdefs.h >>conftest.$ac_ext
22598 cat >>conftest.$ac_ext <<_ACEOF
22599 /* end confdefs.h. */
22605 __sync_lock_test_and_set(&lock, 1);
22606 __sync_lock_release(&lock);
22611 rm -f conftest.$ac_objext conftest$ac_exeext
22612 if { (ac_try="$ac_link"
22613 case "(($ac_try" in
22614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22615 *) ac_try_echo=$ac_try;;
22617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22618 $as_echo "$ac_try_echo") >&5
22619 (eval "$ac_link") 2>conftest.er1
22621 grep -v '^ *+' conftest.er1 >conftest.err
22623 cat conftest.err >&5
22624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); } && {
22626 test -z "$ac_c_werror_flag" ||
22627 test ! -s conftest.err
22628 } && test -s conftest$ac_exeext && {
22629 test "$cross_compiling" = yes ||
22630 $as_test_x conftest$ac_exeext
22632 pgac_cv_gcc_int_atomics="yes"
22634 $as_echo "$as_me: failed program was:" >&5
22635 sed 's/^/| /' conftest.$ac_ext >&5
22637 pgac_cv_gcc_int_atomics="no"
22640 rm -rf conftest.dSYM
22641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22642 conftest$ac_exeext conftest.$ac_ext
22644 { $as_echo "$as_me:$LINENO: result: $pgac_cv_gcc_int_atomics" >&5
22645 $as_echo "$pgac_cv_gcc_int_atomics" >&6; }
22646 if test x"$pgac_cv_gcc_int_atomics" = x"yes"; then
22648 cat >>confdefs.h <<\_ACEOF
22649 #define HAVE_GCC_INT_ATOMICS 1
22658 # For each platform, we need to know about any special compile and link
22659 # libraries, and whether the normal C function names are thread-safe.
22660 # See the comment at the top of src/port/thread.c for more information.
22661 # WIN32 doesn't need the pthread tests; it always uses threads
22662 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
22667 ac_cpp='$CPP $CPPFLAGS'
22668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22674 # We used to check for pthread.h first, but this fails if pthread.h
22675 # requires special compiler flags (e.g. on True64 or Sequent).
22676 # It gets checked for in the link test anyway.
22678 # First of all, check if the user has set any of the PTHREAD_LIBS,
22679 # etcetera environment variables, and if threads linking works using
22681 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22682 save_CFLAGS="$CFLAGS"
22683 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22685 LIBS="$PTHREAD_LIBS $LIBS"
22686 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22687 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
22688 cat >conftest.$ac_ext <<_ACEOF
22691 cat confdefs.h >>conftest.$ac_ext
22692 cat >>conftest.$ac_ext <<_ACEOF
22693 /* end confdefs.h. */
22695 /* Override any GCC internal prototype to avoid an error.
22696 Use char because int might match the return type of a GCC
22697 builtin and then its argument prototype would still apply. */
22701 char pthread_join ();
22705 return pthread_join ();
22710 rm -f conftest.$ac_objext conftest$ac_exeext
22711 if { (ac_try="$ac_link"
22712 case "(($ac_try" in
22713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22714 *) ac_try_echo=$ac_try;;
22716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22717 $as_echo "$ac_try_echo") >&5
22718 (eval "$ac_link") 2>conftest.er1
22720 grep -v '^ *+' conftest.er1 >conftest.err
22722 cat conftest.err >&5
22723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724 (exit $ac_status); } && {
22725 test -z "$ac_c_werror_flag" ||
22726 test ! -s conftest.err
22727 } && test -s conftest$ac_exeext && {
22728 test "$cross_compiling" = yes ||
22729 $as_test_x conftest$ac_exeext
22733 $as_echo "$as_me: failed program was:" >&5
22734 sed 's/^/| /' conftest.$ac_ext >&5
22739 rm -rf conftest.dSYM
22740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22741 conftest$ac_exeext conftest.$ac_ext
22742 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22743 $as_echo "$acx_pthread_ok" >&6; }
22744 if test x"$acx_pthread_ok" = xno; then
22749 CFLAGS="$save_CFLAGS"
22752 # We must check for the threads library under a number of different
22753 # names; the ordering is very important because some systems
22754 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22755 # libraries is broken (non-POSIX).
22757 # Create a list of thread flags to try. Items starting with a "-" are
22758 # C compiler flags, and other items are library names, except for "none"
22759 # which indicates that we try without any flags at all, and "pthread-config"
22760 # which is a program returning the flags for the Pth emulation library.
22762 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
22764 # The ordering *is* (sometimes) important. Some notes on the
22765 # individual items follow:
22767 # pthreads: AIX (must check this before -lpthread)
22768 # none: in case threads are in libc; should be tried before -Kthread and
22769 # other compiler flags to prevent continual compiler warnings
22770 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22771 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22772 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22773 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22774 # -pthreads: Solaris/gcc
22775 # -mthreads: Mingw32/gcc, Lynx/gcc
22776 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22777 # doesn't hurt to check since this sometimes defines pthreads too;
22778 # also defines -D_REENTRANT)
22779 # pthread: Linux, etcetera
22780 # --thread-safe: KAI C++
22781 # pthread-config: use pthread-config program (for GNU Pth library)
22783 case "${host_cpu}-${host_os}" in
22786 # On Solaris (at least, for some versions), libc contains stubbed
22787 # (non-functional) versions of the pthreads routines, so link-based
22788 # tests will erroneously succeed. (We need to link with -pthread or
22789 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22790 # a function called by this macro, so we could check for that, but
22791 # who knows whether they'll stub that too in a future libc.) So,
22792 # we'll just look for -pthreads and -lpthread first:
22794 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22798 if test x"$acx_pthread_ok" = xno; then
22799 for flag in $acx_pthread_flags; do
22801 tryPTHREAD_CFLAGS=""
22805 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22806 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
22810 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22811 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
22812 tryPTHREAD_CFLAGS="$flag"
22816 # skip this if we already have flags defined, for PostgreSQL
22817 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22818 # Extract the first word of "pthread-config", so it can be a program name with args.
22819 set dummy pthread-config; ac_word=$2
22820 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22821 $as_echo_n "checking for $ac_word... " >&6; }
22822 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22823 $as_echo_n "(cached) " >&6
22825 if test -n "$acx_pthread_config"; then
22826 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22829 for as_dir in $PATH
22832 test -z "$as_dir" && as_dir=.
22833 for ac_exec_ext in '' $ac_executable_extensions; do
22834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22835 ac_cv_prog_acx_pthread_config="yes"
22836 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22843 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22846 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22847 if test -n "$acx_pthread_config"; then
22848 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22849 $as_echo "$acx_pthread_config" >&6; }
22851 { $as_echo "$as_me:$LINENO: result: no" >&5
22852 $as_echo "no" >&6; }
22856 if test x"$acx_pthread_config" = xno; then continue; fi
22857 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22858 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22862 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22863 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
22864 tryPTHREAD_LIBS="-l$flag"
22869 save_CFLAGS="$CFLAGS"
22870 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22871 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22873 # Check for various functions. We must include pthread.h,
22874 # since some functions may be macros. (On the Sequent, we
22875 # need a special flag -Kthread to make this header compile.)
22876 # We check for pthread_join because it is in -lpthread on IRIX
22877 # while pthread_create is in libc. We check for pthread_attr_init
22878 # due to DEC craziness with -lpthreads. We check for
22879 # pthread_cleanup_push because it is one of the few pthread
22880 # functions on Solaris that doesn't have a non-functional libc stub.
22881 # We try pthread_create on general principles.
22882 cat >conftest.$ac_ext <<_ACEOF
22885 cat confdefs.h >>conftest.$ac_ext
22886 cat >>conftest.$ac_ext <<_ACEOF
22887 /* end confdefs.h. */
22888 #include <pthread.h>
22892 pthread_t th; pthread_join(th, 0);
22893 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22894 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22899 rm -f conftest.$ac_objext conftest$ac_exeext
22900 if { (ac_try="$ac_link"
22901 case "(($ac_try" in
22902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22903 *) ac_try_echo=$ac_try;;
22905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22906 $as_echo "$ac_try_echo") >&5
22907 (eval "$ac_link") 2>conftest.er1
22909 grep -v '^ *+' conftest.er1 >conftest.err
22911 cat conftest.err >&5
22912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913 (exit $ac_status); } && {
22914 test -z "$ac_c_werror_flag" ||
22915 test ! -s conftest.err
22916 } && test -s conftest$ac_exeext && {
22917 test "$cross_compiling" = yes ||
22918 $as_test_x conftest$ac_exeext
22922 $as_echo "$as_me: failed program was:" >&5
22923 sed 's/^/| /' conftest.$ac_ext >&5
22928 rm -rf conftest.dSYM
22929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22930 conftest$ac_exeext conftest.$ac_ext
22932 if test "x$acx_pthread_ok" = xyes; then
22933 # Don't use options that are ignored by the compiler.
22934 # We find them by checking stderror.
22935 cat >conftest.$ac_ext <<_ACEOF
22937 main (int argc, char **argv)
22944 rm -f conftest.$ac_objext conftest$ac_exeext
22945 # Check both linking and compiling, because they might tolerate different options.
22946 if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
22947 # we continue with more flags because Linux needs -lpthread
22948 # for libpq builds on PostgreSQL. The test above only
22949 # tests for building binaries, not shared libraries.
22950 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22951 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22952 else acx_pthread_ok=no
22957 CFLAGS="$save_CFLAGS"
22959 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22960 $as_echo "$acx_pthread_ok" >&6; }
22964 # Various other checks:
22965 if test "x$acx_pthread_ok" = xyes; then
22967 LIBS="$PTHREAD_LIBS $LIBS"
22968 save_CFLAGS="$CFLAGS"
22969 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22971 # Detect AIX lossage: threads are created detached by default
22972 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22973 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22974 $as_echo_n "checking for joinable pthread attribute... " >&6; }
22975 cat >conftest.$ac_ext <<_ACEOF
22978 cat confdefs.h >>conftest.$ac_ext
22979 cat >>conftest.$ac_ext <<_ACEOF
22980 /* end confdefs.h. */
22981 #include <pthread.h>
22985 int attr=PTHREAD_CREATE_JOINABLE;
22990 rm -f conftest.$ac_objext conftest$ac_exeext
22991 if { (ac_try="$ac_link"
22992 case "(($ac_try" in
22993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22994 *) ac_try_echo=$ac_try;;
22996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22997 $as_echo "$ac_try_echo") >&5
22998 (eval "$ac_link") 2>conftest.er1
23000 grep -v '^ *+' conftest.er1 >conftest.err
23002 cat conftest.err >&5
23003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004 (exit $ac_status); } && {
23005 test -z "$ac_c_werror_flag" ||
23006 test ! -s conftest.err
23007 } && test -s conftest$ac_exeext && {
23008 test "$cross_compiling" = yes ||
23009 $as_test_x conftest$ac_exeext
23011 ok=PTHREAD_CREATE_JOINABLE
23013 $as_echo "$as_me: failed program was:" >&5
23014 sed 's/^/| /' conftest.$ac_ext >&5
23019 rm -rf conftest.dSYM
23020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23021 conftest$ac_exeext conftest.$ac_ext
23022 if test x"$ok" = xunknown; then
23023 cat >conftest.$ac_ext <<_ACEOF
23026 cat confdefs.h >>conftest.$ac_ext
23027 cat >>conftest.$ac_ext <<_ACEOF
23028 /* end confdefs.h. */
23029 #include <pthread.h>
23033 int attr=PTHREAD_CREATE_UNDETACHED;
23038 rm -f conftest.$ac_objext conftest$ac_exeext
23039 if { (ac_try="$ac_link"
23040 case "(($ac_try" in
23041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23042 *) ac_try_echo=$ac_try;;
23044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23045 $as_echo "$ac_try_echo") >&5
23046 (eval "$ac_link") 2>conftest.er1
23048 grep -v '^ *+' conftest.er1 >conftest.err
23050 cat conftest.err >&5
23051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052 (exit $ac_status); } && {
23053 test -z "$ac_c_werror_flag" ||
23054 test ! -s conftest.err
23055 } && test -s conftest$ac_exeext && {
23056 test "$cross_compiling" = yes ||
23057 $as_test_x conftest$ac_exeext
23059 ok=PTHREAD_CREATE_UNDETACHED
23061 $as_echo "$as_me: failed program was:" >&5
23062 sed 's/^/| /' conftest.$ac_ext >&5
23067 rm -rf conftest.dSYM
23068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23069 conftest$ac_exeext conftest.$ac_ext
23071 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
23073 cat >>confdefs.h <<\_ACEOF
23074 #define PTHREAD_CREATE_JOINABLE $ok
23078 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
23079 $as_echo "${ok}" >&6; }
23080 if test x"$ok" = xunknown; then
23081 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
23082 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
23085 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23086 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
23088 # We always add these in PostgreSQL
23089 # case "${host_cpu}-${host_os}" in
23090 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23091 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23093 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
23094 $as_echo "${flag}" >&6; }
23095 if test "x$flag" != xno; then
23096 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23100 CFLAGS="$save_CFLAGS"
23102 # Supporting cc_r would require a special CC in all places that
23103 # use libpq, and that is ugly, so we don't do it. Users can still
23104 # define their compiler as cc_r to do thread builds of everything.
23105 # More AIX lossage: must compile with cc_r
23106 # Extract the first word of "cc_r", so it can be a program name with args.
23107 set dummy cc_r; ac_word=$2
23108 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23109 $as_echo_n "checking for $ac_word... " >&6; }
23110 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23111 $as_echo_n "(cached) " >&6
23113 if test -n "$PTHREAD_CC"; then
23114 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23117 for as_dir in $PATH
23120 test -z "$as_dir" && as_dir=.
23121 for ac_exec_ext in '' $ac_executable_extensions; do
23122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23123 ac_cv_prog_PTHREAD_CC="cc_r"
23124 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23131 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23134 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23135 if test -n "$PTHREAD_CC"; then
23136 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23137 $as_echo "$PTHREAD_CC" >&6; }
23139 { $as_echo "$as_me:$LINENO: result: no" >&5
23140 $as_echo "no" >&6; }
23152 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23153 if test x"$acx_pthread_ok" = xyes; then
23155 cat >>confdefs.h <<\_ACEOF
23156 #define HAVE_PTHREAD 1
23165 ac_cpp='$CPP $CPPFLAGS'
23166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23172 # Some platforms use these, so just define them. They can't hurt if they
23173 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23174 # enables 5-arg getpwuid_r, among other things.
23175 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23178 # At this point, we don't want to muck with the compiler name for threading.
23179 # Let's see who fails, perhaps AIX. 2004-04-23
23180 if test "$PTHREAD_CC" != "$CC"; then
23181 { { $as_echo "$as_me:$LINENO: error:
23182 PostgreSQL does not support platforms that require a special compiler
23183 for thread safety; use --disable-thread-safety to disable thread safety." >&5
23184 $as_echo "$as_me: error:
23185 PostgreSQL does not support platforms that require a special compiler
23186 for thread safety; use --disable-thread-safety to disable thread safety." >&2;}
23187 { (exit 1); exit 1; }; }
23190 # Check for *_r functions
23193 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23194 LIBS="$LIBS $PTHREAD_LIBS"
23196 if test "$PORTNAME" != "win32"; then
23197 if test "${ac_cv_header_pthread_h+set}" = set; then
23198 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23199 $as_echo_n "checking for pthread.h... " >&6; }
23200 if test "${ac_cv_header_pthread_h+set}" = set; then
23201 $as_echo_n "(cached) " >&6
23203 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23204 $as_echo "$ac_cv_header_pthread_h" >&6; }
23206 # Is the header compilable?
23207 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23208 $as_echo_n "checking pthread.h usability... " >&6; }
23209 cat >conftest.$ac_ext <<_ACEOF
23212 cat confdefs.h >>conftest.$ac_ext
23213 cat >>conftest.$ac_ext <<_ACEOF
23214 /* end confdefs.h. */
23215 $ac_includes_default
23216 #include <pthread.h>
23218 rm -f conftest.$ac_objext
23219 if { (ac_try="$ac_compile"
23220 case "(($ac_try" in
23221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23222 *) ac_try_echo=$ac_try;;
23224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23225 $as_echo "$ac_try_echo") >&5
23226 (eval "$ac_compile") 2>conftest.er1
23228 grep -v '^ *+' conftest.er1 >conftest.err
23230 cat conftest.err >&5
23231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); } && {
23233 test -z "$ac_c_werror_flag" ||
23234 test ! -s conftest.err
23235 } && test -s conftest.$ac_objext; then
23236 ac_header_compiler=yes
23238 $as_echo "$as_me: failed program was:" >&5
23239 sed 's/^/| /' conftest.$ac_ext >&5
23241 ac_header_compiler=no
23244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23245 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23246 $as_echo "$ac_header_compiler" >&6; }
23248 # Is the header present?
23249 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23250 $as_echo_n "checking pthread.h presence... " >&6; }
23251 cat >conftest.$ac_ext <<_ACEOF
23254 cat confdefs.h >>conftest.$ac_ext
23255 cat >>conftest.$ac_ext <<_ACEOF
23256 /* end confdefs.h. */
23257 #include <pthread.h>
23259 if { (ac_try="$ac_cpp conftest.$ac_ext"
23260 case "(($ac_try" in
23261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23262 *) ac_try_echo=$ac_try;;
23264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23265 $as_echo "$ac_try_echo") >&5
23266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23268 grep -v '^ *+' conftest.er1 >conftest.err
23270 cat conftest.err >&5
23271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); } >/dev/null && {
23273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23274 test ! -s conftest.err
23276 ac_header_preproc=yes
23278 $as_echo "$as_me: failed program was:" >&5
23279 sed 's/^/| /' conftest.$ac_ext >&5
23281 ac_header_preproc=no
23284 rm -f conftest.err conftest.$ac_ext
23285 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23286 $as_echo "$ac_header_preproc" >&6; }
23288 # So? What about this header?
23289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23291 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23292 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23293 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23294 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23295 ac_header_preproc=yes
23298 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23299 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23300 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
23301 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
23302 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23303 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23304 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
23305 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
23306 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23307 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23308 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23309 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23311 ## ---------------------------------------- ##
23312 ## Report this to pgsql-bugs@postgresql.org ##
23313 ## ---------------------------------------- ##
23315 ) | sed "s/^/$as_me: WARNING: /" >&2
23318 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23319 $as_echo_n "checking for pthread.h... " >&6; }
23320 if test "${ac_cv_header_pthread_h+set}" = set; then
23321 $as_echo_n "(cached) " >&6
23323 ac_cv_header_pthread_h=$ac_header_preproc
23325 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23326 $as_echo "$ac_cv_header_pthread_h" >&6; }
23329 if test "x$ac_cv_header_pthread_h" = x""yes; then
23332 { { $as_echo "$as_me:$LINENO: error:
23333 pthread.h not found; use --disable-thread-safety to disable thread safety" >&5
23334 $as_echo "$as_me: error:
23335 pthread.h not found; use --disable-thread-safety to disable thread safety" >&2;}
23336 { (exit 1); exit 1; }; }
23345 for ac_func in strerror_r getpwuid_r gethostbyname_r
23347 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23348 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23349 $as_echo_n "checking for $ac_func... " >&6; }
23350 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23351 $as_echo_n "(cached) " >&6
23353 cat >conftest.$ac_ext <<_ACEOF
23356 cat confdefs.h >>conftest.$ac_ext
23357 cat >>conftest.$ac_ext <<_ACEOF
23358 /* end confdefs.h. */
23359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23361 #define $ac_func innocuous_$ac_func
23363 /* System header to define __stub macros and hopefully few prototypes,
23364 which can conflict with char $ac_func (); below.
23365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23366 <limits.h> exists even on freestanding compilers. */
23369 # include <limits.h>
23371 # include <assert.h>
23376 /* Override any GCC internal prototype to avoid an error.
23377 Use char because int might match the return type of a GCC
23378 builtin and then its argument prototype would still apply. */
23383 /* The GNU C library defines this for functions which it implements
23384 to always fail with ENOSYS. Some functions are actually named
23385 something starting with __ and the normal name is an alias. */
23386 #if defined __stub_$ac_func || defined __stub___$ac_func
23393 return $ac_func ();
23398 rm -f conftest.$ac_objext conftest$ac_exeext
23399 if { (ac_try="$ac_link"
23400 case "(($ac_try" in
23401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23402 *) ac_try_echo=$ac_try;;
23404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23405 $as_echo "$ac_try_echo") >&5
23406 (eval "$ac_link") 2>conftest.er1
23408 grep -v '^ *+' conftest.er1 >conftest.err
23410 cat conftest.err >&5
23411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412 (exit $ac_status); } && {
23413 test -z "$ac_c_werror_flag" ||
23414 test ! -s conftest.err
23415 } && test -s conftest$ac_exeext && {
23416 test "$cross_compiling" = yes ||
23417 $as_test_x conftest$ac_exeext
23419 eval "$as_ac_var=yes"
23421 $as_echo "$as_me: failed program was:" >&5
23422 sed 's/^/| /' conftest.$ac_ext >&5
23424 eval "$as_ac_var=no"
23427 rm -rf conftest.dSYM
23428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23429 conftest$ac_exeext conftest.$ac_ext
23431 ac_res=`eval 'as_val=${'$as_ac_var'}
23432 $as_echo "$as_val"'`
23433 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23434 $as_echo "$ac_res" >&6; }
23435 as_val=`eval 'as_val=${'$as_ac_var'}
23436 $as_echo "$as_val"'`
23437 if test "x$as_val" = x""yes; then
23438 cat >>confdefs.h <<_ACEOF
23439 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23446 # Do test here with the proper thread flags
23447 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
23448 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
23449 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
23450 $as_echo_n "(cached) " >&6
23452 cat >conftest.$ac_ext <<_ACEOF
23455 cat confdefs.h >>conftest.$ac_ext
23456 cat >>conftest.$ac_ext <<_ACEOF
23457 /* end confdefs.h. */
23458 #include <sys/types.h>
23464 struct passwd *space;
23467 struct passwd **result;
23468 getpwuid_r(uid, space, buf, bufsize, result);
23473 rm -f conftest.$ac_objext
23474 if { (ac_try="$ac_compile"
23475 case "(($ac_try" in
23476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23477 *) ac_try_echo=$ac_try;;
23479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23480 $as_echo "$ac_try_echo") >&5
23481 (eval "$ac_compile") 2>conftest.er1
23483 grep -v '^ *+' conftest.er1 >conftest.err
23485 cat conftest.err >&5
23486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487 (exit $ac_status); } && {
23488 test -z "$ac_c_werror_flag" ||
23489 test ! -s conftest.err
23490 } && test -s conftest.$ac_objext; then
23491 pgac_cv_func_getpwuid_r_5arg=yes
23493 $as_echo "$as_me: failed program was:" >&5
23494 sed 's/^/| /' conftest.$ac_ext >&5
23496 pgac_cv_func_getpwuid_r_5arg=no
23499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23501 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
23502 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
23503 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
23505 cat >>confdefs.h <<\_ACEOF
23506 #define GETPWUID_R_5ARG /**/
23511 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
23512 $as_echo_n "checking whether strerror_r returns int... " >&6; }
23513 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
23514 $as_echo_n "(cached) " >&6
23516 cat >conftest.$ac_ext <<_ACEOF
23519 cat confdefs.h >>conftest.$ac_ext
23520 cat >>conftest.$ac_ext <<_ACEOF
23521 /* end confdefs.h. */
23522 #include <string.h>
23527 int strerror_r(int, char *, size_t);
23529 /* Older AIX has 'int' for the third argument so we don't test the args. */
23536 rm -f conftest.$ac_objext
23537 if { (ac_try="$ac_compile"
23538 case "(($ac_try" in
23539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23540 *) ac_try_echo=$ac_try;;
23542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23543 $as_echo "$ac_try_echo") >&5
23544 (eval "$ac_compile") 2>conftest.er1
23546 grep -v '^ *+' conftest.er1 >conftest.err
23548 cat conftest.err >&5
23549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550 (exit $ac_status); } && {
23551 test -z "$ac_c_werror_flag" ||
23552 test ! -s conftest.err
23553 } && test -s conftest.$ac_objext; then
23554 pgac_cv_func_strerror_r_int=yes
23556 $as_echo "$as_me: failed program was:" >&5
23557 sed 's/^/| /' conftest.$ac_ext >&5
23559 pgac_cv_func_strerror_r_int=no
23562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23564 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
23565 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
23566 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
23568 cat >>confdefs.h <<\_ACEOF
23569 #define STRERROR_R_INT /**/
23579 # do not use values from template file
23588 # We can test for libldap_r only after we know PTHREAD_LIBS
23589 if test "$with_ldap" = yes ; then
23591 if test "$PORTNAME" != "win32"; then
23593 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
23594 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
23595 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
23596 $as_echo_n "(cached) " >&6
23598 ac_check_lib_save_LIBS=$LIBS
23599 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
23600 cat >conftest.$ac_ext <<_ACEOF
23603 cat confdefs.h >>conftest.$ac_ext
23604 cat >>conftest.$ac_ext <<_ACEOF
23605 /* end confdefs.h. */
23607 /* Override any GCC internal prototype to avoid an error.
23608 Use char because int might match the return type of a GCC
23609 builtin and then its argument prototype would still apply. */
23617 return ldap_bind ();
23622 rm -f conftest.$ac_objext conftest$ac_exeext
23623 if { (ac_try="$ac_link"
23624 case "(($ac_try" in
23625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23626 *) ac_try_echo=$ac_try;;
23628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23629 $as_echo "$ac_try_echo") >&5
23630 (eval "$ac_link") 2>conftest.er1
23632 grep -v '^ *+' conftest.er1 >conftest.err
23634 cat conftest.err >&5
23635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636 (exit $ac_status); } && {
23637 test -z "$ac_c_werror_flag" ||
23638 test ! -s conftest.err
23639 } && test -s conftest$ac_exeext && {
23640 test "$cross_compiling" = yes ||
23641 $as_test_x conftest$ac_exeext
23643 ac_cv_lib_ldap_ldap_bind=yes
23645 $as_echo "$as_me: failed program was:" >&5
23646 sed 's/^/| /' conftest.$ac_ext >&5
23648 ac_cv_lib_ldap_ldap_bind=no
23651 rm -rf conftest.dSYM
23652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23653 conftest$ac_exeext conftest.$ac_ext
23654 LIBS=$ac_check_lib_save_LIBS
23656 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
23657 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23658 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23659 cat >>confdefs.h <<_ACEOF
23660 #define HAVE_LIBLDAP 1
23663 LIBS="-lldap $LIBS"
23666 { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
23667 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
23668 { (exit 1); exit 1; }; }
23671 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23672 if test "$enable_thread_safety" = yes; then
23673 # on some platforms ldap_r fails to link without PTHREAD_LIBS
23675 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
23676 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
23677 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23678 $as_echo_n "(cached) " >&6
23680 ac_check_lib_save_LIBS=$LIBS
23681 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23682 cat >conftest.$ac_ext <<_ACEOF
23685 cat confdefs.h >>conftest.$ac_ext
23686 cat >>conftest.$ac_ext <<_ACEOF
23687 /* end confdefs.h. */
23689 /* Override any GCC internal prototype to avoid an error.
23690 Use char because int might match the return type of a GCC
23691 builtin and then its argument prototype would still apply. */
23695 char ldap_simple_bind ();
23699 return ldap_simple_bind ();
23704 rm -f conftest.$ac_objext conftest$ac_exeext
23705 if { (ac_try="$ac_link"
23706 case "(($ac_try" in
23707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23708 *) ac_try_echo=$ac_try;;
23710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23711 $as_echo "$ac_try_echo") >&5
23712 (eval "$ac_link") 2>conftest.er1
23714 grep -v '^ *+' conftest.er1 >conftest.err
23716 cat conftest.err >&5
23717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); } && {
23719 test -z "$ac_c_werror_flag" ||
23720 test ! -s conftest.err
23721 } && test -s conftest$ac_exeext && {
23722 test "$cross_compiling" = yes ||
23723 $as_test_x conftest$ac_exeext
23725 ac_cv_lib_ldap_r_ldap_simple_bind=yes
23727 $as_echo "$as_me: failed program was:" >&5
23728 sed 's/^/| /' conftest.$ac_ext >&5
23730 ac_cv_lib_ldap_r_ldap_simple_bind=no
23733 rm -rf conftest.dSYM
23734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23735 conftest$ac_exeext conftest.$ac_ext
23736 LIBS=$ac_check_lib_save_LIBS
23738 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23739 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23740 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23741 cat >>confdefs.h <<_ACEOF
23742 #define HAVE_LIBLDAP_R 1
23745 LIBS="-lldap_r $LIBS"
23748 { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
23749 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
23750 { (exit 1); exit 1; }; }
23753 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23755 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23759 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
23760 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
23761 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23762 $as_echo_n "(cached) " >&6
23764 ac_check_lib_save_LIBS=$LIBS
23765 LIBS="-lwldap32 $LIBS"
23766 cat >conftest.$ac_ext <<_ACEOF
23769 cat confdefs.h >>conftest.$ac_ext
23770 cat >>conftest.$ac_ext <<_ACEOF
23771 /* end confdefs.h. */
23773 /* Override any GCC internal prototype to avoid an error.
23774 Use char because int might match the return type of a GCC
23775 builtin and then its argument prototype would still apply. */
23783 return ldap_bind ();
23788 rm -f conftest.$ac_objext conftest$ac_exeext
23789 if { (ac_try="$ac_link"
23790 case "(($ac_try" in
23791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23792 *) ac_try_echo=$ac_try;;
23794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23795 $as_echo "$ac_try_echo") >&5
23796 (eval "$ac_link") 2>conftest.er1
23798 grep -v '^ *+' conftest.er1 >conftest.err
23800 cat conftest.err >&5
23801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23802 (exit $ac_status); } && {
23803 test -z "$ac_c_werror_flag" ||
23804 test ! -s conftest.err
23805 } && test -s conftest$ac_exeext && {
23806 test "$cross_compiling" = yes ||
23807 $as_test_x conftest$ac_exeext
23809 ac_cv_lib_wldap32_ldap_bind=yes
23811 $as_echo "$as_me: failed program was:" >&5
23812 sed 's/^/| /' conftest.$ac_ext >&5
23814 ac_cv_lib_wldap32_ldap_bind=no
23817 rm -rf conftest.dSYM
23818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23819 conftest$ac_exeext conftest.$ac_ext
23820 LIBS=$ac_check_lib_save_LIBS
23822 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
23823 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23824 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23825 cat >>confdefs.h <<_ACEOF
23826 #define HAVE_LIBWLDAP32 1
23829 LIBS="-lwldap32 $LIBS"
23832 { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
23833 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
23834 { (exit 1); exit 1; }; }
23837 LDAP_LIBS_FE="-lwldap32"
23838 LDAP_LIBS_BE="-lwldap32"
23846 # Older versions of libxml2 lack the xmlStructuredErrorContext variable
23847 # (which could be a macro referring to a function, if threading is enabled)
23848 if test "$with_libxml" = yes ; then
23849 { $as_echo "$as_me:$LINENO: checking for xmlStructuredErrorContext" >&5
23850 $as_echo_n "checking for xmlStructuredErrorContext... " >&6; }
23851 if test "${pgac_cv_libxml_structerrctx+set}" = set; then
23852 $as_echo_n "(cached) " >&6
23854 cat >conftest.$ac_ext <<_ACEOF
23857 cat confdefs.h >>conftest.$ac_ext
23858 cat >>conftest.$ac_ext <<_ACEOF
23859 /* end confdefs.h. */
23860 #include <libxml/globals.h>
23865 globptr = xmlStructuredErrorContext
23870 rm -f conftest.$ac_objext conftest$ac_exeext
23871 if { (ac_try="$ac_link"
23872 case "(($ac_try" in
23873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23874 *) ac_try_echo=$ac_try;;
23876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23877 $as_echo "$ac_try_echo") >&5
23878 (eval "$ac_link") 2>conftest.er1
23880 grep -v '^ *+' conftest.er1 >conftest.err
23882 cat conftest.err >&5
23883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); } && {
23885 test -z "$ac_c_werror_flag" ||
23886 test ! -s conftest.err
23887 } && test -s conftest$ac_exeext && {
23888 test "$cross_compiling" = yes ||
23889 $as_test_x conftest$ac_exeext
23891 pgac_cv_libxml_structerrctx=yes
23893 $as_echo "$as_me: failed program was:" >&5
23894 sed 's/^/| /' conftest.$ac_ext >&5
23896 pgac_cv_libxml_structerrctx=no
23899 rm -rf conftest.dSYM
23900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23901 conftest$ac_exeext conftest.$ac_ext
23903 { $as_echo "$as_me:$LINENO: result: $pgac_cv_libxml_structerrctx" >&5
23904 $as_echo "$pgac_cv_libxml_structerrctx" >&6; }
23905 if test x"$pgac_cv_libxml_structerrctx" = x"yes"; then
23907 cat >>confdefs.h <<\_ACEOF
23908 #define HAVE_XMLSTRUCTUREDERRORCONTEXT 1
23915 # This test makes sure that run tests work at all. Sometimes a shared
23916 # library is found by the linker, but the runtime linker can't find it.
23917 # This check should come after all modifications of compiler or linker
23918 # variables, and before any other run tests.
23919 { $as_echo "$as_me:$LINENO: checking test program" >&5
23920 $as_echo_n "checking test program... " >&6; }
23921 if test "$cross_compiling" = yes; then
23922 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
23923 $as_echo "cross-compiling" >&6; }
23925 cat >conftest.$ac_ext <<_ACEOF
23928 cat confdefs.h >>conftest.$ac_ext
23929 cat >>conftest.$ac_ext <<_ACEOF
23930 /* end confdefs.h. */
23931 int main() { return 0; }
23933 rm -f conftest$ac_exeext
23934 if { (ac_try="$ac_link"
23935 case "(($ac_try" in
23936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23937 *) ac_try_echo=$ac_try;;
23939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23940 $as_echo "$ac_try_echo") >&5
23941 (eval "$ac_link") 2>&5
23943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23945 { (case "(($ac_try" in
23946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23947 *) ac_try_echo=$ac_try;;
23949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23950 $as_echo "$ac_try_echo") >&5
23951 (eval "$ac_try") 2>&5
23953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954 (exit $ac_status); }; }; then
23955 { $as_echo "$as_me:$LINENO: result: ok" >&5
23956 $as_echo "ok" >&6; }
23958 $as_echo "$as_me: program exited with status $ac_status" >&5
23959 $as_echo "$as_me: failed program was:" >&5
23960 sed 's/^/| /' conftest.$ac_ext >&5
23962 ( exit $ac_status )
23963 { $as_echo "$as_me:$LINENO: result: failed" >&5
23964 $as_echo "failed" >&6; }
23965 { { $as_echo "$as_me:$LINENO: error:
23966 Could not execute a simple test program. This may be a problem
23967 related to locating shared libraries. Check the file 'config.log'
23968 for the exact reason." >&5
23969 $as_echo "$as_me: error:
23970 Could not execute a simple test program. This may be a problem
23971 related to locating shared libraries. Check the file 'config.log'
23972 for the exact reason." >&2;}
23973 { (exit 1); exit 1; }; }
23975 rm -rf conftest.dSYM
23976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23981 # --------------------
23982 # Run tests below here
23983 # --------------------
23985 # Force use of our snprintf if system's doesn't do arg control
23986 # See comment above at snprintf test for details.
23987 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23988 { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
23989 $as_echo_n "checking whether printf supports argument control... " >&6; }
23990 if test "${pgac_cv_printf_arg_control+set}" = set; then
23991 $as_echo_n "(cached) " >&6
23993 if test "$cross_compiling" = yes; then
23994 pgac_cv_printf_arg_control=cross
23996 cat >conftest.$ac_ext <<_ACEOF
23999 cat confdefs.h >>conftest.$ac_ext
24000 cat >>conftest.$ac_ext <<_ACEOF
24001 /* end confdefs.h. */
24003 #include <string.h>
24009 /* can it swap arguments? */
24010 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
24011 if (strcmp(buf, "4 3") != 0)
24016 rm -f conftest$ac_exeext
24017 if { (ac_try="$ac_link"
24018 case "(($ac_try" in
24019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24020 *) ac_try_echo=$ac_try;;
24022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24023 $as_echo "$ac_try_echo") >&5
24024 (eval "$ac_link") 2>&5
24026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24028 { (case "(($ac_try" in
24029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24030 *) ac_try_echo=$ac_try;;
24032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24033 $as_echo "$ac_try_echo") >&5
24034 (eval "$ac_try") 2>&5
24036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037 (exit $ac_status); }; }; then
24038 pgac_cv_printf_arg_control=yes
24040 $as_echo "$as_me: program exited with status $ac_status" >&5
24041 $as_echo "$as_me: failed program was:" >&5
24042 sed 's/^/| /' conftest.$ac_ext >&5
24044 ( exit $ac_status )
24045 pgac_cv_printf_arg_control=no
24047 rm -rf conftest.dSYM
24048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24054 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
24055 $as_echo "$pgac_cv_printf_arg_control" >&6; }
24057 if test $pgac_cv_printf_arg_control != yes ; then
24058 pgac_need_repl_snprintf=yes
24065 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
24066 $as_echo_n "checking whether long int is 64 bits... " >&6; }
24067 if test "${pgac_cv_type_long_int_64+set}" = set; then
24068 $as_echo_n "(cached) " >&6
24070 if test "$cross_compiling" = yes; then
24071 # If cross-compiling, check the size reported by the compiler and
24072 # trust that the arithmetic works.
24073 cat >conftest.$ac_ext <<_ACEOF
24076 cat confdefs.h >>conftest.$ac_ext
24077 cat >>conftest.$ac_ext <<_ACEOF
24078 /* end confdefs.h. */
24083 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
24090 rm -f conftest.$ac_objext
24091 if { (ac_try="$ac_compile"
24092 case "(($ac_try" in
24093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24094 *) ac_try_echo=$ac_try;;
24096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24097 $as_echo "$ac_try_echo") >&5
24098 (eval "$ac_compile") 2>conftest.er1
24100 grep -v '^ *+' conftest.er1 >conftest.err
24102 cat conftest.err >&5
24103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24104 (exit $ac_status); } && {
24105 test -z "$ac_c_werror_flag" ||
24106 test ! -s conftest.err
24107 } && test -s conftest.$ac_objext; then
24108 pgac_cv_type_long_int_64=yes
24110 $as_echo "$as_me: failed program was:" >&5
24111 sed 's/^/| /' conftest.$ac_ext >&5
24113 pgac_cv_type_long_int_64=no
24116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24118 cat >conftest.$ac_ext <<_ACEOF
24121 cat confdefs.h >>conftest.$ac_ext
24122 cat >>conftest.$ac_ext <<_ACEOF
24123 /* end confdefs.h. */
24124 typedef long int ac_int64;
24127 * These are globals to discourage the compiler from folding all the
24128 * arithmetic tests down to compile-time constants.
24130 ac_int64 a = 20000001;
24131 ac_int64 b = 40000005;
24133 int does_int64_work()
24137 if (sizeof(ac_int64) != 8)
24138 return 0; /* definitely not the right size */
24140 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24148 exit(! does_int64_work());
24151 rm -f conftest$ac_exeext
24152 if { (ac_try="$ac_link"
24153 case "(($ac_try" in
24154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24155 *) ac_try_echo=$ac_try;;
24157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24158 $as_echo "$ac_try_echo") >&5
24159 (eval "$ac_link") 2>&5
24161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24163 { (case "(($ac_try" in
24164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24165 *) ac_try_echo=$ac_try;;
24167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24168 $as_echo "$ac_try_echo") >&5
24169 (eval "$ac_try") 2>&5
24171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24172 (exit $ac_status); }; }; then
24173 pgac_cv_type_long_int_64=yes
24175 $as_echo "$as_me: program exited with status $ac_status" >&5
24176 $as_echo "$as_me: failed program was:" >&5
24177 sed 's/^/| /' conftest.$ac_ext >&5
24179 ( exit $ac_status )
24180 pgac_cv_type_long_int_64=no
24182 rm -rf conftest.dSYM
24183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24188 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
24189 $as_echo "$pgac_cv_type_long_int_64" >&6; }
24191 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
24192 if test x"$pgac_cv_type_long_int_64" = xyes ; then
24194 cat >>confdefs.h <<\_ACEOF
24195 #define HAVE_LONG_INT_64 1
24201 if test x"$HAVE_LONG_INT_64" = x"no" ; then
24202 { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24203 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24204 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24205 $as_echo_n "(cached) " >&6
24207 if test "$cross_compiling" = yes; then
24208 # If cross-compiling, check the size reported by the compiler and
24209 # trust that the arithmetic works.
24210 cat >conftest.$ac_ext <<_ACEOF
24213 cat confdefs.h >>conftest.$ac_ext
24214 cat >>conftest.$ac_ext <<_ACEOF
24215 /* end confdefs.h. */
24220 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24227 rm -f conftest.$ac_objext
24228 if { (ac_try="$ac_compile"
24229 case "(($ac_try" in
24230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24231 *) ac_try_echo=$ac_try;;
24233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24234 $as_echo "$ac_try_echo") >&5
24235 (eval "$ac_compile") 2>conftest.er1
24237 grep -v '^ *+' conftest.er1 >conftest.err
24239 cat conftest.err >&5
24240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241 (exit $ac_status); } && {
24242 test -z "$ac_c_werror_flag" ||
24243 test ! -s conftest.err
24244 } && test -s conftest.$ac_objext; then
24245 pgac_cv_type_long_long_int_64=yes
24247 $as_echo "$as_me: failed program was:" >&5
24248 sed 's/^/| /' conftest.$ac_ext >&5
24250 pgac_cv_type_long_long_int_64=no
24253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24255 cat >conftest.$ac_ext <<_ACEOF
24258 cat confdefs.h >>conftest.$ac_ext
24259 cat >>conftest.$ac_ext <<_ACEOF
24260 /* end confdefs.h. */
24261 typedef long long int ac_int64;
24264 * These are globals to discourage the compiler from folding all the
24265 * arithmetic tests down to compile-time constants.
24267 ac_int64 a = 20000001;
24268 ac_int64 b = 40000005;
24270 int does_int64_work()
24274 if (sizeof(ac_int64) != 8)
24275 return 0; /* definitely not the right size */
24277 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24285 exit(! does_int64_work());
24288 rm -f conftest$ac_exeext
24289 if { (ac_try="$ac_link"
24290 case "(($ac_try" in
24291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24292 *) ac_try_echo=$ac_try;;
24294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24295 $as_echo "$ac_try_echo") >&5
24296 (eval "$ac_link") 2>&5
24298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24300 { (case "(($ac_try" in
24301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24302 *) ac_try_echo=$ac_try;;
24304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24305 $as_echo "$ac_try_echo") >&5
24306 (eval "$ac_try") 2>&5
24308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24309 (exit $ac_status); }; }; then
24310 pgac_cv_type_long_long_int_64=yes
24312 $as_echo "$as_me: program exited with status $ac_status" >&5
24313 $as_echo "$as_me: failed program was:" >&5
24314 sed 's/^/| /' conftest.$ac_ext >&5
24316 ( exit $ac_status )
24317 pgac_cv_type_long_long_int_64=no
24319 rm -rf conftest.dSYM
24320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24325 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24326 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24328 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24329 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24331 cat >>confdefs.h <<\_ACEOF
24332 #define HAVE_LONG_LONG_INT_64 1
24337 if test x"$HAVE_LONG_LONG_INT_64" = x"no" ; then
24338 { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24339 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24340 { (exit 1); exit 1; }; }
24346 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24347 cat >conftest.$ac_ext <<_ACEOF
24350 cat confdefs.h >>conftest.$ac_ext
24351 cat >>conftest.$ac_ext <<_ACEOF
24352 /* end confdefs.h. */
24354 #define INT64CONST(x) x##LL
24355 long long int foo = INT64CONST(0x1234567890123456);
24365 rm -f conftest.$ac_objext
24366 if { (ac_try="$ac_compile"
24367 case "(($ac_try" in
24368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24369 *) ac_try_echo=$ac_try;;
24371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24372 $as_echo "$ac_try_echo") >&5
24373 (eval "$ac_compile") 2>conftest.er1
24375 grep -v '^ *+' conftest.er1 >conftest.err
24377 cat conftest.err >&5
24378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24379 (exit $ac_status); } && {
24380 test -z "$ac_c_werror_flag" ||
24381 test ! -s conftest.err
24382 } && test -s conftest.$ac_objext; then
24384 cat >>confdefs.h <<\_ACEOF
24385 #define HAVE_LL_CONSTANTS 1
24389 $as_echo "$as_me: failed program was:" >&5
24390 sed 's/^/| /' conftest.$ac_ext >&5
24395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24399 # If we found "long int" is 64 bits, assume snprintf handles it. If
24400 # we found we need to use "long long int", better check. We cope with
24401 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
24402 # work, fall back to our own snprintf emulation (which we know uses %lld).
24404 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
24405 if test $pgac_need_repl_snprintf = no; then
24406 { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
24407 $as_echo_n "checking snprintf format for long long int... " >&6; }
24408 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
24409 $as_echo_n "(cached) " >&6
24411 for pgac_format in '%lld' '%qd' '%I64d'; do
24412 if test "$cross_compiling" = yes; then
24413 pgac_cv_snprintf_long_long_int_format=cross; break
24415 cat >conftest.$ac_ext <<_ACEOF
24418 cat confdefs.h >>conftest.$ac_ext
24419 cat >>conftest.$ac_ext <<_ACEOF
24420 /* end confdefs.h. */
24422 typedef long long int ac_int64;
24423 #define INT64_FORMAT "$pgac_format"
24425 ac_int64 a = 20000001;
24426 ac_int64 b = 40000005;
24428 int does_int64_snprintf_work()
24433 if (sizeof(ac_int64) != 8)
24434 return 0; /* doesn't look like the right size */
24437 snprintf(buf, 100, INT64_FORMAT, c);
24438 if (strcmp(buf, "800000140000005") != 0)
24439 return 0; /* either multiply or snprintf is busted */
24443 exit(! does_int64_snprintf_work());
24446 rm -f conftest$ac_exeext
24447 if { (ac_try="$ac_link"
24448 case "(($ac_try" in
24449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24450 *) ac_try_echo=$ac_try;;
24452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24453 $as_echo "$ac_try_echo") >&5
24454 (eval "$ac_link") 2>&5
24456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24458 { (case "(($ac_try" in
24459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24460 *) ac_try_echo=$ac_try;;
24462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24463 $as_echo "$ac_try_echo") >&5
24464 (eval "$ac_try") 2>&5
24466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467 (exit $ac_status); }; }; then
24468 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
24470 $as_echo "$as_me: program exited with status $ac_status" >&5
24471 $as_echo "$as_me: failed program was:" >&5
24472 sed 's/^/| /' conftest.$ac_ext >&5
24475 rm -rf conftest.dSYM
24476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24483 LONG_LONG_INT_FORMAT=''
24485 case $pgac_cv_snprintf_long_long_int_format in
24486 cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
24487 $as_echo "cannot test (not on host machine)" >&6; };;
24488 ?*) { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
24489 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
24490 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
24491 *) { $as_echo "$as_me:$LINENO: result: none" >&5
24492 $as_echo "none" >&6; };;
24494 if test "$LONG_LONG_INT_FORMAT" = ""; then
24495 # Force usage of our own snprintf, since system snprintf is broken
24496 pgac_need_repl_snprintf=yes
24497 LONG_LONG_INT_FORMAT='%lld'
24500 # Here if we previously decided we needed to use our own snprintf
24501 LONG_LONG_INT_FORMAT='%lld'
24503 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
24504 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
24505 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
24507 # Here if we are not using 'long long int' at all
24508 INT64_FORMAT='"%ld"'
24509 UINT64_FORMAT='"%lu"'
24513 cat >>confdefs.h <<_ACEOF
24514 #define INT64_FORMAT $INT64_FORMAT
24519 cat >>confdefs.h <<_ACEOF
24520 #define UINT64_FORMAT $UINT64_FORMAT
24524 # Now we have checked all the reasons to replace snprintf
24525 if test $pgac_need_repl_snprintf = yes; then
24527 cat >>confdefs.h <<\_ACEOF
24528 #define USE_REPL_SNPRINTF 1
24531 case " $LIBOBJS " in
24532 *" snprintf.$ac_objext "* ) ;;
24533 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
24539 # Check size of void *, size_t (enables tweaks for > 32bit address space)
24540 # The cast to long int works around a bug in the HP C Compiler
24541 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24542 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24543 # This bug is HP SR number 8606223364.
24544 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
24545 $as_echo_n "checking size of void *... " >&6; }
24546 if test "${ac_cv_sizeof_void_p+set}" = set; then
24547 $as_echo_n "(cached) " >&6
24549 if test "$cross_compiling" = yes; then
24550 # Depending upon the size, compute the lo and hi bounds.
24551 cat >conftest.$ac_ext <<_ACEOF
24554 cat confdefs.h >>conftest.$ac_ext
24555 cat >>conftest.$ac_ext <<_ACEOF
24556 /* end confdefs.h. */
24557 $ac_includes_default
24561 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
24568 rm -f conftest.$ac_objext
24569 if { (ac_try="$ac_compile"
24570 case "(($ac_try" in
24571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24572 *) ac_try_echo=$ac_try;;
24574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24575 $as_echo "$ac_try_echo") >&5
24576 (eval "$ac_compile") 2>conftest.er1
24578 grep -v '^ *+' conftest.er1 >conftest.err
24580 cat conftest.err >&5
24581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); } && {
24583 test -z "$ac_c_werror_flag" ||
24584 test ! -s conftest.err
24585 } && test -s conftest.$ac_objext; then
24588 cat >conftest.$ac_ext <<_ACEOF
24591 cat confdefs.h >>conftest.$ac_ext
24592 cat >>conftest.$ac_ext <<_ACEOF
24593 /* end confdefs.h. */
24594 $ac_includes_default
24598 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24605 rm -f conftest.$ac_objext
24606 if { (ac_try="$ac_compile"
24607 case "(($ac_try" in
24608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24609 *) ac_try_echo=$ac_try;;
24611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24612 $as_echo "$ac_try_echo") >&5
24613 (eval "$ac_compile") 2>conftest.er1
24615 grep -v '^ *+' conftest.er1 >conftest.err
24617 cat conftest.err >&5
24618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619 (exit $ac_status); } && {
24620 test -z "$ac_c_werror_flag" ||
24621 test ! -s conftest.err
24622 } && test -s conftest.$ac_objext; then
24623 ac_hi=$ac_mid; break
24625 $as_echo "$as_me: failed program was:" >&5
24626 sed 's/^/| /' conftest.$ac_ext >&5
24628 ac_lo=`expr $ac_mid + 1`
24629 if test $ac_lo -le $ac_mid; then
24633 ac_mid=`expr 2 '*' $ac_mid + 1`
24636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24639 $as_echo "$as_me: failed program was:" >&5
24640 sed 's/^/| /' conftest.$ac_ext >&5
24642 cat >conftest.$ac_ext <<_ACEOF
24645 cat confdefs.h >>conftest.$ac_ext
24646 cat >>conftest.$ac_ext <<_ACEOF
24647 /* end confdefs.h. */
24648 $ac_includes_default
24652 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
24659 rm -f conftest.$ac_objext
24660 if { (ac_try="$ac_compile"
24661 case "(($ac_try" in
24662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24663 *) ac_try_echo=$ac_try;;
24665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24666 $as_echo "$ac_try_echo") >&5
24667 (eval "$ac_compile") 2>conftest.er1
24669 grep -v '^ *+' conftest.er1 >conftest.err
24671 cat conftest.err >&5
24672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673 (exit $ac_status); } && {
24674 test -z "$ac_c_werror_flag" ||
24675 test ! -s conftest.err
24676 } && test -s conftest.$ac_objext; then
24679 cat >conftest.$ac_ext <<_ACEOF
24682 cat confdefs.h >>conftest.$ac_ext
24683 cat >>conftest.$ac_ext <<_ACEOF
24684 /* end confdefs.h. */
24685 $ac_includes_default
24689 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24696 rm -f conftest.$ac_objext
24697 if { (ac_try="$ac_compile"
24698 case "(($ac_try" in
24699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24700 *) ac_try_echo=$ac_try;;
24702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24703 $as_echo "$ac_try_echo") >&5
24704 (eval "$ac_compile") 2>conftest.er1
24706 grep -v '^ *+' conftest.er1 >conftest.err
24708 cat conftest.err >&5
24709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710 (exit $ac_status); } && {
24711 test -z "$ac_c_werror_flag" ||
24712 test ! -s conftest.err
24713 } && test -s conftest.$ac_objext; then
24714 ac_lo=$ac_mid; break
24716 $as_echo "$as_me: failed program was:" >&5
24717 sed 's/^/| /' conftest.$ac_ext >&5
24719 ac_hi=`expr '(' $ac_mid ')' - 1`
24720 if test $ac_mid -le $ac_hi; then
24724 ac_mid=`expr 2 '*' $ac_mid`
24727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24730 $as_echo "$as_me: failed program was:" >&5
24731 sed 's/^/| /' conftest.$ac_ext >&5
24736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24740 # Binary search between lo and hi bounds.
24741 while test "x$ac_lo" != "x$ac_hi"; do
24742 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24743 cat >conftest.$ac_ext <<_ACEOF
24746 cat confdefs.h >>conftest.$ac_ext
24747 cat >>conftest.$ac_ext <<_ACEOF
24748 /* end confdefs.h. */
24749 $ac_includes_default
24753 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24760 rm -f conftest.$ac_objext
24761 if { (ac_try="$ac_compile"
24762 case "(($ac_try" in
24763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24764 *) ac_try_echo=$ac_try;;
24766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24767 $as_echo "$ac_try_echo") >&5
24768 (eval "$ac_compile") 2>conftest.er1
24770 grep -v '^ *+' conftest.er1 >conftest.err
24772 cat conftest.err >&5
24773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24774 (exit $ac_status); } && {
24775 test -z "$ac_c_werror_flag" ||
24776 test ! -s conftest.err
24777 } && test -s conftest.$ac_objext; then
24780 $as_echo "$as_me: failed program was:" >&5
24781 sed 's/^/| /' conftest.$ac_ext >&5
24783 ac_lo=`expr '(' $ac_mid ')' + 1`
24786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24789 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24790 '') if test "$ac_cv_type_void_p" = yes; then
24791 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24793 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24794 See \`config.log' for more details." >&5
24795 $as_echo "$as_me: error: cannot compute sizeof (void *)
24796 See \`config.log' for more details." >&2;}
24797 { (exit 77); exit 77; }; }; }
24799 ac_cv_sizeof_void_p=0
24803 cat >conftest.$ac_ext <<_ACEOF
24806 cat confdefs.h >>conftest.$ac_ext
24807 cat >>conftest.$ac_ext <<_ACEOF
24808 /* end confdefs.h. */
24809 $ac_includes_default
24810 static long int longval () { return (long int) (sizeof (void *)); }
24811 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24813 #include <stdlib.h>
24818 FILE *f = fopen ("conftest.val", "w");
24821 if (((long int) (sizeof (void *))) < 0)
24823 long int i = longval ();
24824 if (i != ((long int) (sizeof (void *))))
24826 fprintf (f, "%ld", i);
24830 unsigned long int i = ulongval ();
24831 if (i != ((long int) (sizeof (void *))))
24833 fprintf (f, "%lu", i);
24835 /* Do not output a trailing newline, as this causes \r\n confusion
24836 on some platforms. */
24837 return ferror (f) || fclose (f) != 0;
24843 rm -f conftest$ac_exeext
24844 if { (ac_try="$ac_link"
24845 case "(($ac_try" in
24846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24847 *) ac_try_echo=$ac_try;;
24849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24850 $as_echo "$ac_try_echo") >&5
24851 (eval "$ac_link") 2>&5
24853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24855 { (case "(($ac_try" in
24856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24857 *) ac_try_echo=$ac_try;;
24859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24860 $as_echo "$ac_try_echo") >&5
24861 (eval "$ac_try") 2>&5
24863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864 (exit $ac_status); }; }; then
24865 ac_cv_sizeof_void_p=`cat conftest.val`
24867 $as_echo "$as_me: program exited with status $ac_status" >&5
24868 $as_echo "$as_me: failed program was:" >&5
24869 sed 's/^/| /' conftest.$ac_ext >&5
24871 ( exit $ac_status )
24872 if test "$ac_cv_type_void_p" = yes; then
24873 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24875 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24876 See \`config.log' for more details." >&5
24877 $as_echo "$as_me: error: cannot compute sizeof (void *)
24878 See \`config.log' for more details." >&2;}
24879 { (exit 77); exit 77; }; }; }
24881 ac_cv_sizeof_void_p=0
24884 rm -rf conftest.dSYM
24885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24889 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24890 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24894 cat >>confdefs.h <<_ACEOF
24895 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24899 # The cast to long int works around a bug in the HP C Compiler
24900 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24901 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24902 # This bug is HP SR number 8606223364.
24903 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24904 $as_echo_n "checking size of size_t... " >&6; }
24905 if test "${ac_cv_sizeof_size_t+set}" = set; then
24906 $as_echo_n "(cached) " >&6
24908 if test "$cross_compiling" = yes; then
24909 # Depending upon the size, compute the lo and hi bounds.
24910 cat >conftest.$ac_ext <<_ACEOF
24913 cat confdefs.h >>conftest.$ac_ext
24914 cat >>conftest.$ac_ext <<_ACEOF
24915 /* end confdefs.h. */
24916 $ac_includes_default
24920 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24927 rm -f conftest.$ac_objext
24928 if { (ac_try="$ac_compile"
24929 case "(($ac_try" in
24930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24931 *) ac_try_echo=$ac_try;;
24933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24934 $as_echo "$ac_try_echo") >&5
24935 (eval "$ac_compile") 2>conftest.er1
24937 grep -v '^ *+' conftest.er1 >conftest.err
24939 cat conftest.err >&5
24940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941 (exit $ac_status); } && {
24942 test -z "$ac_c_werror_flag" ||
24943 test ! -s conftest.err
24944 } && test -s conftest.$ac_objext; then
24947 cat >conftest.$ac_ext <<_ACEOF
24950 cat confdefs.h >>conftest.$ac_ext
24951 cat >>conftest.$ac_ext <<_ACEOF
24952 /* end confdefs.h. */
24953 $ac_includes_default
24957 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24964 rm -f conftest.$ac_objext
24965 if { (ac_try="$ac_compile"
24966 case "(($ac_try" in
24967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24968 *) ac_try_echo=$ac_try;;
24970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24971 $as_echo "$ac_try_echo") >&5
24972 (eval "$ac_compile") 2>conftest.er1
24974 grep -v '^ *+' conftest.er1 >conftest.err
24976 cat conftest.err >&5
24977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24978 (exit $ac_status); } && {
24979 test -z "$ac_c_werror_flag" ||
24980 test ! -s conftest.err
24981 } && test -s conftest.$ac_objext; then
24982 ac_hi=$ac_mid; break
24984 $as_echo "$as_me: failed program was:" >&5
24985 sed 's/^/| /' conftest.$ac_ext >&5
24987 ac_lo=`expr $ac_mid + 1`
24988 if test $ac_lo -le $ac_mid; then
24992 ac_mid=`expr 2 '*' $ac_mid + 1`
24995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24998 $as_echo "$as_me: failed program was:" >&5
24999 sed 's/^/| /' conftest.$ac_ext >&5
25001 cat >conftest.$ac_ext <<_ACEOF
25004 cat confdefs.h >>conftest.$ac_ext
25005 cat >>conftest.$ac_ext <<_ACEOF
25006 /* end confdefs.h. */
25007 $ac_includes_default
25011 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
25018 rm -f conftest.$ac_objext
25019 if { (ac_try="$ac_compile"
25020 case "(($ac_try" in
25021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25022 *) ac_try_echo=$ac_try;;
25024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25025 $as_echo "$ac_try_echo") >&5
25026 (eval "$ac_compile") 2>conftest.er1
25028 grep -v '^ *+' conftest.er1 >conftest.err
25030 cat conftest.err >&5
25031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25032 (exit $ac_status); } && {
25033 test -z "$ac_c_werror_flag" ||
25034 test ! -s conftest.err
25035 } && test -s conftest.$ac_objext; then
25038 cat >conftest.$ac_ext <<_ACEOF
25041 cat confdefs.h >>conftest.$ac_ext
25042 cat >>conftest.$ac_ext <<_ACEOF
25043 /* end confdefs.h. */
25044 $ac_includes_default
25048 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
25055 rm -f conftest.$ac_objext
25056 if { (ac_try="$ac_compile"
25057 case "(($ac_try" in
25058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25059 *) ac_try_echo=$ac_try;;
25061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25062 $as_echo "$ac_try_echo") >&5
25063 (eval "$ac_compile") 2>conftest.er1
25065 grep -v '^ *+' conftest.er1 >conftest.err
25067 cat conftest.err >&5
25068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069 (exit $ac_status); } && {
25070 test -z "$ac_c_werror_flag" ||
25071 test ! -s conftest.err
25072 } && test -s conftest.$ac_objext; then
25073 ac_lo=$ac_mid; break
25075 $as_echo "$as_me: failed program was:" >&5
25076 sed 's/^/| /' conftest.$ac_ext >&5
25078 ac_hi=`expr '(' $ac_mid ')' - 1`
25079 if test $ac_mid -le $ac_hi; then
25083 ac_mid=`expr 2 '*' $ac_mid`
25086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25089 $as_echo "$as_me: failed program was:" >&5
25090 sed 's/^/| /' conftest.$ac_ext >&5
25095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25099 # Binary search between lo and hi bounds.
25100 while test "x$ac_lo" != "x$ac_hi"; do
25101 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25102 cat >conftest.$ac_ext <<_ACEOF
25105 cat confdefs.h >>conftest.$ac_ext
25106 cat >>conftest.$ac_ext <<_ACEOF
25107 /* end confdefs.h. */
25108 $ac_includes_default
25112 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25119 rm -f conftest.$ac_objext
25120 if { (ac_try="$ac_compile"
25121 case "(($ac_try" in
25122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25123 *) ac_try_echo=$ac_try;;
25125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25126 $as_echo "$ac_try_echo") >&5
25127 (eval "$ac_compile") 2>conftest.er1
25129 grep -v '^ *+' conftest.er1 >conftest.err
25131 cat conftest.err >&5
25132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133 (exit $ac_status); } && {
25134 test -z "$ac_c_werror_flag" ||
25135 test ! -s conftest.err
25136 } && test -s conftest.$ac_objext; then
25139 $as_echo "$as_me: failed program was:" >&5
25140 sed 's/^/| /' conftest.$ac_ext >&5
25142 ac_lo=`expr '(' $ac_mid ')' + 1`
25145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25148 ?*) ac_cv_sizeof_size_t=$ac_lo;;
25149 '') if test "$ac_cv_type_size_t" = yes; then
25150 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25152 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25153 See \`config.log' for more details." >&5
25154 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25155 See \`config.log' for more details." >&2;}
25156 { (exit 77); exit 77; }; }; }
25158 ac_cv_sizeof_size_t=0
25162 cat >conftest.$ac_ext <<_ACEOF
25165 cat confdefs.h >>conftest.$ac_ext
25166 cat >>conftest.$ac_ext <<_ACEOF
25167 /* end confdefs.h. */
25168 $ac_includes_default
25169 static long int longval () { return (long int) (sizeof (size_t)); }
25170 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
25172 #include <stdlib.h>
25177 FILE *f = fopen ("conftest.val", "w");
25180 if (((long int) (sizeof (size_t))) < 0)
25182 long int i = longval ();
25183 if (i != ((long int) (sizeof (size_t))))
25185 fprintf (f, "%ld", i);
25189 unsigned long int i = ulongval ();
25190 if (i != ((long int) (sizeof (size_t))))
25192 fprintf (f, "%lu", i);
25194 /* Do not output a trailing newline, as this causes \r\n confusion
25195 on some platforms. */
25196 return ferror (f) || fclose (f) != 0;
25202 rm -f conftest$ac_exeext
25203 if { (ac_try="$ac_link"
25204 case "(($ac_try" in
25205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25206 *) ac_try_echo=$ac_try;;
25208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25209 $as_echo "$ac_try_echo") >&5
25210 (eval "$ac_link") 2>&5
25212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25214 { (case "(($ac_try" in
25215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25216 *) ac_try_echo=$ac_try;;
25218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25219 $as_echo "$ac_try_echo") >&5
25220 (eval "$ac_try") 2>&5
25222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223 (exit $ac_status); }; }; then
25224 ac_cv_sizeof_size_t=`cat conftest.val`
25226 $as_echo "$as_me: program exited with status $ac_status" >&5
25227 $as_echo "$as_me: failed program was:" >&5
25228 sed 's/^/| /' conftest.$ac_ext >&5
25230 ( exit $ac_status )
25231 if test "$ac_cv_type_size_t" = yes; then
25232 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25234 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25235 See \`config.log' for more details." >&5
25236 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25237 See \`config.log' for more details." >&2;}
25238 { (exit 77); exit 77; }; }; }
25240 ac_cv_sizeof_size_t=0
25243 rm -rf conftest.dSYM
25244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25248 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25249 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25253 cat >>confdefs.h <<_ACEOF
25254 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25258 # The cast to long int works around a bug in the HP C Compiler
25259 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25260 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25261 # This bug is HP SR number 8606223364.
25262 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25263 $as_echo_n "checking size of long... " >&6; }
25264 if test "${ac_cv_sizeof_long+set}" = set; then
25265 $as_echo_n "(cached) " >&6
25267 if test "$cross_compiling" = yes; then
25268 # Depending upon the size, compute the lo and hi bounds.
25269 cat >conftest.$ac_ext <<_ACEOF
25272 cat confdefs.h >>conftest.$ac_ext
25273 cat >>conftest.$ac_ext <<_ACEOF
25274 /* end confdefs.h. */
25275 $ac_includes_default
25279 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25286 rm -f conftest.$ac_objext
25287 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
25296 grep -v '^ *+' conftest.er1 >conftest.err
25298 cat conftest.err >&5
25299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300 (exit $ac_status); } && {
25301 test -z "$ac_c_werror_flag" ||
25302 test ! -s conftest.err
25303 } && test -s conftest.$ac_objext; then
25306 cat >conftest.$ac_ext <<_ACEOF
25309 cat confdefs.h >>conftest.$ac_ext
25310 cat >>conftest.$ac_ext <<_ACEOF
25311 /* end confdefs.h. */
25312 $ac_includes_default
25316 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25323 rm -f conftest.$ac_objext
25324 if { (ac_try="$ac_compile"
25325 case "(($ac_try" in
25326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25327 *) ac_try_echo=$ac_try;;
25329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25330 $as_echo "$ac_try_echo") >&5
25331 (eval "$ac_compile") 2>conftest.er1
25333 grep -v '^ *+' conftest.er1 >conftest.err
25335 cat conftest.err >&5
25336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337 (exit $ac_status); } && {
25338 test -z "$ac_c_werror_flag" ||
25339 test ! -s conftest.err
25340 } && test -s conftest.$ac_objext; then
25341 ac_hi=$ac_mid; break
25343 $as_echo "$as_me: failed program was:" >&5
25344 sed 's/^/| /' conftest.$ac_ext >&5
25346 ac_lo=`expr $ac_mid + 1`
25347 if test $ac_lo -le $ac_mid; then
25351 ac_mid=`expr 2 '*' $ac_mid + 1`
25354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25357 $as_echo "$as_me: failed program was:" >&5
25358 sed 's/^/| /' conftest.$ac_ext >&5
25360 cat >conftest.$ac_ext <<_ACEOF
25363 cat confdefs.h >>conftest.$ac_ext
25364 cat >>conftest.$ac_ext <<_ACEOF
25365 /* end confdefs.h. */
25366 $ac_includes_default
25370 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25377 rm -f conftest.$ac_objext
25378 if { (ac_try="$ac_compile"
25379 case "(($ac_try" in
25380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25381 *) ac_try_echo=$ac_try;;
25383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25384 $as_echo "$ac_try_echo") >&5
25385 (eval "$ac_compile") 2>conftest.er1
25387 grep -v '^ *+' conftest.er1 >conftest.err
25389 cat conftest.err >&5
25390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391 (exit $ac_status); } && {
25392 test -z "$ac_c_werror_flag" ||
25393 test ! -s conftest.err
25394 } && test -s conftest.$ac_objext; then
25397 cat >conftest.$ac_ext <<_ACEOF
25400 cat confdefs.h >>conftest.$ac_ext
25401 cat >>conftest.$ac_ext <<_ACEOF
25402 /* end confdefs.h. */
25403 $ac_includes_default
25407 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
25414 rm -f conftest.$ac_objext
25415 if { (ac_try="$ac_compile"
25416 case "(($ac_try" in
25417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25418 *) ac_try_echo=$ac_try;;
25420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25421 $as_echo "$ac_try_echo") >&5
25422 (eval "$ac_compile") 2>conftest.er1
25424 grep -v '^ *+' conftest.er1 >conftest.err
25426 cat conftest.err >&5
25427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25428 (exit $ac_status); } && {
25429 test -z "$ac_c_werror_flag" ||
25430 test ! -s conftest.err
25431 } && test -s conftest.$ac_objext; then
25432 ac_lo=$ac_mid; break
25434 $as_echo "$as_me: failed program was:" >&5
25435 sed 's/^/| /' conftest.$ac_ext >&5
25437 ac_hi=`expr '(' $ac_mid ')' - 1`
25438 if test $ac_mid -le $ac_hi; then
25442 ac_mid=`expr 2 '*' $ac_mid`
25445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25448 $as_echo "$as_me: failed program was:" >&5
25449 sed 's/^/| /' conftest.$ac_ext >&5
25454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25458 # Binary search between lo and hi bounds.
25459 while test "x$ac_lo" != "x$ac_hi"; do
25460 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25461 cat >conftest.$ac_ext <<_ACEOF
25464 cat confdefs.h >>conftest.$ac_ext
25465 cat >>conftest.$ac_ext <<_ACEOF
25466 /* end confdefs.h. */
25467 $ac_includes_default
25471 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25478 rm -f conftest.$ac_objext
25479 if { (ac_try="$ac_compile"
25480 case "(($ac_try" in
25481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25482 *) ac_try_echo=$ac_try;;
25484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25485 $as_echo "$ac_try_echo") >&5
25486 (eval "$ac_compile") 2>conftest.er1
25488 grep -v '^ *+' conftest.er1 >conftest.err
25490 cat conftest.err >&5
25491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492 (exit $ac_status); } && {
25493 test -z "$ac_c_werror_flag" ||
25494 test ! -s conftest.err
25495 } && test -s conftest.$ac_objext; then
25498 $as_echo "$as_me: failed program was:" >&5
25499 sed 's/^/| /' conftest.$ac_ext >&5
25501 ac_lo=`expr '(' $ac_mid ')' + 1`
25504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25507 ?*) ac_cv_sizeof_long=$ac_lo;;
25508 '') if test "$ac_cv_type_long" = yes; then
25509 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25511 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25512 See \`config.log' for more details." >&5
25513 $as_echo "$as_me: error: cannot compute sizeof (long)
25514 See \`config.log' for more details." >&2;}
25515 { (exit 77); exit 77; }; }; }
25517 ac_cv_sizeof_long=0
25521 cat >conftest.$ac_ext <<_ACEOF
25524 cat confdefs.h >>conftest.$ac_ext
25525 cat >>conftest.$ac_ext <<_ACEOF
25526 /* end confdefs.h. */
25527 $ac_includes_default
25528 static long int longval () { return (long int) (sizeof (long)); }
25529 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
25531 #include <stdlib.h>
25536 FILE *f = fopen ("conftest.val", "w");
25539 if (((long int) (sizeof (long))) < 0)
25541 long int i = longval ();
25542 if (i != ((long int) (sizeof (long))))
25544 fprintf (f, "%ld", i);
25548 unsigned long int i = ulongval ();
25549 if (i != ((long int) (sizeof (long))))
25551 fprintf (f, "%lu", i);
25553 /* Do not output a trailing newline, as this causes \r\n confusion
25554 on some platforms. */
25555 return ferror (f) || fclose (f) != 0;
25561 rm -f conftest$ac_exeext
25562 if { (ac_try="$ac_link"
25563 case "(($ac_try" in
25564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25565 *) ac_try_echo=$ac_try;;
25567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25568 $as_echo "$ac_try_echo") >&5
25569 (eval "$ac_link") 2>&5
25571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25573 { (case "(($ac_try" in
25574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25575 *) ac_try_echo=$ac_try;;
25577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25578 $as_echo "$ac_try_echo") >&5
25579 (eval "$ac_try") 2>&5
25581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582 (exit $ac_status); }; }; then
25583 ac_cv_sizeof_long=`cat conftest.val`
25585 $as_echo "$as_me: program exited with status $ac_status" >&5
25586 $as_echo "$as_me: failed program was:" >&5
25587 sed 's/^/| /' conftest.$ac_ext >&5
25589 ( exit $ac_status )
25590 if test "$ac_cv_type_long" = yes; then
25591 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25593 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
25594 See \`config.log' for more details." >&5
25595 $as_echo "$as_me: error: cannot compute sizeof (long)
25596 See \`config.log' for more details." >&2;}
25597 { (exit 77); exit 77; }; }; }
25599 ac_cv_sizeof_long=0
25602 rm -rf conftest.dSYM
25603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25607 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
25608 $as_echo "$ac_cv_sizeof_long" >&6; }
25612 cat >>confdefs.h <<_ACEOF
25613 #define SIZEOF_LONG $ac_cv_sizeof_long
25618 # Decide whether float4 is passed by value: user-selectable, enabled by default
25619 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
25620 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
25623 # Check whether --enable-float4-byval was given.
25624 if test "${enable_float4_byval+set}" = set; then
25625 enableval=$enable_float4_byval;
25629 cat >>confdefs.h <<\_ACEOF
25630 #define USE_FLOAT4_BYVAL 1
25633 float4passbyval=true
25636 float4passbyval=false
25639 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
25640 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
25641 { (exit 1); exit 1; }; }
25646 enable_float4_byval=yes
25648 cat >>confdefs.h <<\_ACEOF
25649 #define USE_FLOAT4_BYVAL 1
25652 float4passbyval=true
25656 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
25657 $as_echo "$enable_float4_byval" >&6; }
25659 cat >>confdefs.h <<_ACEOF
25660 #define FLOAT4PASSBYVAL $float4passbyval
25664 # Decide whether float8 is passed by value.
25665 # Note: this setting also controls int8 and related types such as timestamp.
25666 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
25667 # If not, trying to select it is an error.
25668 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
25669 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
25670 if test $ac_cv_sizeof_void_p -ge 8 ; then
25673 # Check whether --enable-float8-byval was given.
25674 if test "${enable_float8_byval+set}" = set; then
25675 enableval=$enable_float8_byval;
25684 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25685 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25686 { (exit 1); exit 1; }; }
25691 enable_float8_byval=yes
25699 # Check whether --enable-float8-byval was given.
25700 if test "${enable_float8_byval+set}" = set; then
25701 enableval=$enable_float8_byval;
25710 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25711 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25712 { (exit 1); exit 1; }; }
25717 enable_float8_byval=no
25722 if test "$enable_float8_byval" = yes ; then
25723 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25724 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25725 { (exit 1); exit 1; }; }
25728 if test "$enable_float8_byval" = yes ; then
25730 cat >>confdefs.h <<\_ACEOF
25731 #define USE_FLOAT8_BYVAL 1
25734 float8passbyval=true
25736 float8passbyval=false
25738 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25739 $as_echo "$enable_float8_byval" >&6; }
25741 cat >>confdefs.h <<_ACEOF
25742 #define FLOAT8PASSBYVAL $float8passbyval
25746 # Determine memory alignment requirements for the basic C data types.
25748 # The cast to long int works around a bug in the HP C Compiler,
25749 # see AC_CHECK_SIZEOF for more information.
25750 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25751 $as_echo_n "checking alignment of short... " >&6; }
25752 if test "${ac_cv_alignof_short+set}" = set; then
25753 $as_echo_n "(cached) " >&6
25755 if test "$cross_compiling" = yes; then
25756 # Depending upon the size, compute the lo and hi bounds.
25757 cat >conftest.$ac_ext <<_ACEOF
25760 cat confdefs.h >>conftest.$ac_ext
25761 cat >>conftest.$ac_ext <<_ACEOF
25762 /* end confdefs.h. */
25763 $ac_includes_default
25765 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25767 typedef struct { char x; short y; } ac__type_alignof_;
25771 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25778 rm -f conftest.$ac_objext
25779 if { (ac_try="$ac_compile"
25780 case "(($ac_try" in
25781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25782 *) ac_try_echo=$ac_try;;
25784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25785 $as_echo "$ac_try_echo") >&5
25786 (eval "$ac_compile") 2>conftest.er1
25788 grep -v '^ *+' conftest.er1 >conftest.err
25790 cat conftest.err >&5
25791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25792 (exit $ac_status); } && {
25793 test -z "$ac_c_werror_flag" ||
25794 test ! -s conftest.err
25795 } && test -s conftest.$ac_objext; then
25798 cat >conftest.$ac_ext <<_ACEOF
25801 cat confdefs.h >>conftest.$ac_ext
25802 cat >>conftest.$ac_ext <<_ACEOF
25803 /* end confdefs.h. */
25804 $ac_includes_default
25806 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25808 typedef struct { char x; short y; } ac__type_alignof_;
25812 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25819 rm -f conftest.$ac_objext
25820 if { (ac_try="$ac_compile"
25821 case "(($ac_try" in
25822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25823 *) ac_try_echo=$ac_try;;
25825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25826 $as_echo "$ac_try_echo") >&5
25827 (eval "$ac_compile") 2>conftest.er1
25829 grep -v '^ *+' conftest.er1 >conftest.err
25831 cat conftest.err >&5
25832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25833 (exit $ac_status); } && {
25834 test -z "$ac_c_werror_flag" ||
25835 test ! -s conftest.err
25836 } && test -s conftest.$ac_objext; then
25837 ac_hi=$ac_mid; break
25839 $as_echo "$as_me: failed program was:" >&5
25840 sed 's/^/| /' conftest.$ac_ext >&5
25842 ac_lo=`expr $ac_mid + 1`
25843 if test $ac_lo -le $ac_mid; then
25847 ac_mid=`expr 2 '*' $ac_mid + 1`
25850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25853 $as_echo "$as_me: failed program was:" >&5
25854 sed 's/^/| /' conftest.$ac_ext >&5
25856 cat >conftest.$ac_ext <<_ACEOF
25859 cat confdefs.h >>conftest.$ac_ext
25860 cat >>conftest.$ac_ext <<_ACEOF
25861 /* end confdefs.h. */
25862 $ac_includes_default
25864 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25866 typedef struct { char x; short y; } ac__type_alignof_;
25870 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25877 rm -f conftest.$ac_objext
25878 if { (ac_try="$ac_compile"
25879 case "(($ac_try" in
25880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25881 *) ac_try_echo=$ac_try;;
25883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25884 $as_echo "$ac_try_echo") >&5
25885 (eval "$ac_compile") 2>conftest.er1
25887 grep -v '^ *+' conftest.er1 >conftest.err
25889 cat conftest.err >&5
25890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891 (exit $ac_status); } && {
25892 test -z "$ac_c_werror_flag" ||
25893 test ! -s conftest.err
25894 } && test -s conftest.$ac_objext; then
25897 cat >conftest.$ac_ext <<_ACEOF
25900 cat confdefs.h >>conftest.$ac_ext
25901 cat >>conftest.$ac_ext <<_ACEOF
25902 /* end confdefs.h. */
25903 $ac_includes_default
25905 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25907 typedef struct { char x; short y; } ac__type_alignof_;
25911 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25918 rm -f conftest.$ac_objext
25919 if { (ac_try="$ac_compile"
25920 case "(($ac_try" in
25921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25922 *) ac_try_echo=$ac_try;;
25924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25925 $as_echo "$ac_try_echo") >&5
25926 (eval "$ac_compile") 2>conftest.er1
25928 grep -v '^ *+' conftest.er1 >conftest.err
25930 cat conftest.err >&5
25931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25932 (exit $ac_status); } && {
25933 test -z "$ac_c_werror_flag" ||
25934 test ! -s conftest.err
25935 } && test -s conftest.$ac_objext; then
25936 ac_lo=$ac_mid; break
25938 $as_echo "$as_me: failed program was:" >&5
25939 sed 's/^/| /' conftest.$ac_ext >&5
25941 ac_hi=`expr '(' $ac_mid ')' - 1`
25942 if test $ac_mid -le $ac_hi; then
25946 ac_mid=`expr 2 '*' $ac_mid`
25949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25952 $as_echo "$as_me: failed program was:" >&5
25953 sed 's/^/| /' conftest.$ac_ext >&5
25958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25962 # Binary search between lo and hi bounds.
25963 while test "x$ac_lo" != "x$ac_hi"; do
25964 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25965 cat >conftest.$ac_ext <<_ACEOF
25968 cat confdefs.h >>conftest.$ac_ext
25969 cat >>conftest.$ac_ext <<_ACEOF
25970 /* end confdefs.h. */
25971 $ac_includes_default
25973 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25975 typedef struct { char x; short y; } ac__type_alignof_;
25979 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25986 rm -f conftest.$ac_objext
25987 if { (ac_try="$ac_compile"
25988 case "(($ac_try" in
25989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25990 *) ac_try_echo=$ac_try;;
25992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25993 $as_echo "$ac_try_echo") >&5
25994 (eval "$ac_compile") 2>conftest.er1
25996 grep -v '^ *+' conftest.er1 >conftest.err
25998 cat conftest.err >&5
25999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000 (exit $ac_status); } && {
26001 test -z "$ac_c_werror_flag" ||
26002 test ! -s conftest.err
26003 } && test -s conftest.$ac_objext; then
26006 $as_echo "$as_me: failed program was:" >&5
26007 sed 's/^/| /' conftest.$ac_ext >&5
26009 ac_lo=`expr '(' $ac_mid ')' + 1`
26012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26015 ?*) ac_cv_alignof_short=$ac_lo;;
26016 '') if test "$ac_cv_type_short" = yes; then
26017 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26019 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26020 See \`config.log' for more details." >&5
26021 $as_echo "$as_me: error: cannot compute alignment of short
26022 See \`config.log' for more details." >&2;}
26023 { (exit 77); exit 77; }; }; }
26025 ac_cv_alignof_short=0
26029 cat >conftest.$ac_ext <<_ACEOF
26032 cat confdefs.h >>conftest.$ac_ext
26033 cat >>conftest.$ac_ext <<_ACEOF
26034 /* end confdefs.h. */
26035 $ac_includes_default
26037 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26039 typedef struct { char x; short y; } ac__type_alignof_;
26040 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26041 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26043 #include <stdlib.h>
26048 FILE *f = fopen ("conftest.val", "w");
26051 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26053 long int i = longval ();
26054 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26056 fprintf (f, "%ld", i);
26060 unsigned long int i = ulongval ();
26061 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26063 fprintf (f, "%lu", i);
26065 /* Do not output a trailing newline, as this causes \r\n confusion
26066 on some platforms. */
26067 return ferror (f) || fclose (f) != 0;
26073 rm -f conftest$ac_exeext
26074 if { (ac_try="$ac_link"
26075 case "(($ac_try" in
26076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26077 *) ac_try_echo=$ac_try;;
26079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26080 $as_echo "$ac_try_echo") >&5
26081 (eval "$ac_link") 2>&5
26083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26085 { (case "(($ac_try" in
26086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26087 *) ac_try_echo=$ac_try;;
26089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26090 $as_echo "$ac_try_echo") >&5
26091 (eval "$ac_try") 2>&5
26093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094 (exit $ac_status); }; }; then
26095 ac_cv_alignof_short=`cat conftest.val`
26097 $as_echo "$as_me: program exited with status $ac_status" >&5
26098 $as_echo "$as_me: failed program was:" >&5
26099 sed 's/^/| /' conftest.$ac_ext >&5
26101 ( exit $ac_status )
26102 if test "$ac_cv_type_short" = yes; then
26103 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26105 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26106 See \`config.log' for more details." >&5
26107 $as_echo "$as_me: error: cannot compute alignment of short
26108 See \`config.log' for more details." >&2;}
26109 { (exit 77); exit 77; }; }; }
26111 ac_cv_alignof_short=0
26114 rm -rf conftest.dSYM
26115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26119 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
26120 $as_echo "$ac_cv_alignof_short" >&6; }
26124 cat >>confdefs.h <<_ACEOF
26125 #define ALIGNOF_SHORT $ac_cv_alignof_short
26129 # The cast to long int works around a bug in the HP C Compiler,
26130 # see AC_CHECK_SIZEOF for more information.
26131 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
26132 $as_echo_n "checking alignment of int... " >&6; }
26133 if test "${ac_cv_alignof_int+set}" = set; then
26134 $as_echo_n "(cached) " >&6
26136 if test "$cross_compiling" = yes; then
26137 # Depending upon the size, compute the lo and hi bounds.
26138 cat >conftest.$ac_ext <<_ACEOF
26141 cat confdefs.h >>conftest.$ac_ext
26142 cat >>conftest.$ac_ext <<_ACEOF
26143 /* end confdefs.h. */
26144 $ac_includes_default
26146 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26148 typedef struct { char x; int y; } ac__type_alignof_;
26152 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26159 rm -f conftest.$ac_objext
26160 if { (ac_try="$ac_compile"
26161 case "(($ac_try" in
26162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26163 *) ac_try_echo=$ac_try;;
26165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26166 $as_echo "$ac_try_echo") >&5
26167 (eval "$ac_compile") 2>conftest.er1
26169 grep -v '^ *+' conftest.er1 >conftest.err
26171 cat conftest.err >&5
26172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26173 (exit $ac_status); } && {
26174 test -z "$ac_c_werror_flag" ||
26175 test ! -s conftest.err
26176 } && test -s conftest.$ac_objext; then
26179 cat >conftest.$ac_ext <<_ACEOF
26182 cat confdefs.h >>conftest.$ac_ext
26183 cat >>conftest.$ac_ext <<_ACEOF
26184 /* end confdefs.h. */
26185 $ac_includes_default
26187 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26189 typedef struct { char x; int y; } ac__type_alignof_;
26193 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26200 rm -f conftest.$ac_objext
26201 if { (ac_try="$ac_compile"
26202 case "(($ac_try" in
26203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26204 *) ac_try_echo=$ac_try;;
26206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26207 $as_echo "$ac_try_echo") >&5
26208 (eval "$ac_compile") 2>conftest.er1
26210 grep -v '^ *+' conftest.er1 >conftest.err
26212 cat conftest.err >&5
26213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26214 (exit $ac_status); } && {
26215 test -z "$ac_c_werror_flag" ||
26216 test ! -s conftest.err
26217 } && test -s conftest.$ac_objext; then
26218 ac_hi=$ac_mid; break
26220 $as_echo "$as_me: failed program was:" >&5
26221 sed 's/^/| /' conftest.$ac_ext >&5
26223 ac_lo=`expr $ac_mid + 1`
26224 if test $ac_lo -le $ac_mid; then
26228 ac_mid=`expr 2 '*' $ac_mid + 1`
26231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26234 $as_echo "$as_me: failed program was:" >&5
26235 sed 's/^/| /' conftest.$ac_ext >&5
26237 cat >conftest.$ac_ext <<_ACEOF
26240 cat confdefs.h >>conftest.$ac_ext
26241 cat >>conftest.$ac_ext <<_ACEOF
26242 /* end confdefs.h. */
26243 $ac_includes_default
26245 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26247 typedef struct { char x; int y; } ac__type_alignof_;
26251 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26258 rm -f conftest.$ac_objext
26259 if { (ac_try="$ac_compile"
26260 case "(($ac_try" in
26261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26262 *) ac_try_echo=$ac_try;;
26264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26265 $as_echo "$ac_try_echo") >&5
26266 (eval "$ac_compile") 2>conftest.er1
26268 grep -v '^ *+' conftest.er1 >conftest.err
26270 cat conftest.err >&5
26271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272 (exit $ac_status); } && {
26273 test -z "$ac_c_werror_flag" ||
26274 test ! -s conftest.err
26275 } && test -s conftest.$ac_objext; then
26278 cat >conftest.$ac_ext <<_ACEOF
26281 cat confdefs.h >>conftest.$ac_ext
26282 cat >>conftest.$ac_ext <<_ACEOF
26283 /* end confdefs.h. */
26284 $ac_includes_default
26286 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26288 typedef struct { char x; int y; } ac__type_alignof_;
26292 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26299 rm -f conftest.$ac_objext
26300 if { (ac_try="$ac_compile"
26301 case "(($ac_try" in
26302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26303 *) ac_try_echo=$ac_try;;
26305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26306 $as_echo "$ac_try_echo") >&5
26307 (eval "$ac_compile") 2>conftest.er1
26309 grep -v '^ *+' conftest.er1 >conftest.err
26311 cat conftest.err >&5
26312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26313 (exit $ac_status); } && {
26314 test -z "$ac_c_werror_flag" ||
26315 test ! -s conftest.err
26316 } && test -s conftest.$ac_objext; then
26317 ac_lo=$ac_mid; break
26319 $as_echo "$as_me: failed program was:" >&5
26320 sed 's/^/| /' conftest.$ac_ext >&5
26322 ac_hi=`expr '(' $ac_mid ')' - 1`
26323 if test $ac_mid -le $ac_hi; then
26327 ac_mid=`expr 2 '*' $ac_mid`
26330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26333 $as_echo "$as_me: failed program was:" >&5
26334 sed 's/^/| /' conftest.$ac_ext >&5
26339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26343 # Binary search between lo and hi bounds.
26344 while test "x$ac_lo" != "x$ac_hi"; do
26345 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26346 cat >conftest.$ac_ext <<_ACEOF
26349 cat confdefs.h >>conftest.$ac_ext
26350 cat >>conftest.$ac_ext <<_ACEOF
26351 /* end confdefs.h. */
26352 $ac_includes_default
26354 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26356 typedef struct { char x; int y; } ac__type_alignof_;
26360 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26367 rm -f conftest.$ac_objext
26368 if { (ac_try="$ac_compile"
26369 case "(($ac_try" in
26370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26371 *) ac_try_echo=$ac_try;;
26373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26374 $as_echo "$ac_try_echo") >&5
26375 (eval "$ac_compile") 2>conftest.er1
26377 grep -v '^ *+' conftest.er1 >conftest.err
26379 cat conftest.err >&5
26380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381 (exit $ac_status); } && {
26382 test -z "$ac_c_werror_flag" ||
26383 test ! -s conftest.err
26384 } && test -s conftest.$ac_objext; then
26387 $as_echo "$as_me: failed program was:" >&5
26388 sed 's/^/| /' conftest.$ac_ext >&5
26390 ac_lo=`expr '(' $ac_mid ')' + 1`
26393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26396 ?*) ac_cv_alignof_int=$ac_lo;;
26397 '') if test "$ac_cv_type_int" = yes; then
26398 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26400 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26401 See \`config.log' for more details." >&5
26402 $as_echo "$as_me: error: cannot compute alignment of int
26403 See \`config.log' for more details." >&2;}
26404 { (exit 77); exit 77; }; }; }
26406 ac_cv_alignof_int=0
26410 cat >conftest.$ac_ext <<_ACEOF
26413 cat confdefs.h >>conftest.$ac_ext
26414 cat >>conftest.$ac_ext <<_ACEOF
26415 /* end confdefs.h. */
26416 $ac_includes_default
26418 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26420 typedef struct { char x; int y; } ac__type_alignof_;
26421 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26422 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26424 #include <stdlib.h>
26429 FILE *f = fopen ("conftest.val", "w");
26432 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26434 long int i = longval ();
26435 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26437 fprintf (f, "%ld", i);
26441 unsigned long int i = ulongval ();
26442 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26444 fprintf (f, "%lu", i);
26446 /* Do not output a trailing newline, as this causes \r\n confusion
26447 on some platforms. */
26448 return ferror (f) || fclose (f) != 0;
26454 rm -f conftest$ac_exeext
26455 if { (ac_try="$ac_link"
26456 case "(($ac_try" in
26457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26458 *) ac_try_echo=$ac_try;;
26460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26461 $as_echo "$ac_try_echo") >&5
26462 (eval "$ac_link") 2>&5
26464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26466 { (case "(($ac_try" in
26467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26468 *) ac_try_echo=$ac_try;;
26470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26471 $as_echo "$ac_try_echo") >&5
26472 (eval "$ac_try") 2>&5
26474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475 (exit $ac_status); }; }; then
26476 ac_cv_alignof_int=`cat conftest.val`
26478 $as_echo "$as_me: program exited with status $ac_status" >&5
26479 $as_echo "$as_me: failed program was:" >&5
26480 sed 's/^/| /' conftest.$ac_ext >&5
26482 ( exit $ac_status )
26483 if test "$ac_cv_type_int" = yes; then
26484 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26486 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
26487 See \`config.log' for more details." >&5
26488 $as_echo "$as_me: error: cannot compute alignment of int
26489 See \`config.log' for more details." >&2;}
26490 { (exit 77); exit 77; }; }; }
26492 ac_cv_alignof_int=0
26495 rm -rf conftest.dSYM
26496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26500 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
26501 $as_echo "$ac_cv_alignof_int" >&6; }
26505 cat >>confdefs.h <<_ACEOF
26506 #define ALIGNOF_INT $ac_cv_alignof_int
26510 # The cast to long int works around a bug in the HP C Compiler,
26511 # see AC_CHECK_SIZEOF for more information.
26512 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
26513 $as_echo_n "checking alignment of long... " >&6; }
26514 if test "${ac_cv_alignof_long+set}" = set; then
26515 $as_echo_n "(cached) " >&6
26517 if test "$cross_compiling" = yes; then
26518 # Depending upon the size, compute the lo and hi bounds.
26519 cat >conftest.$ac_ext <<_ACEOF
26522 cat confdefs.h >>conftest.$ac_ext
26523 cat >>conftest.$ac_ext <<_ACEOF
26524 /* end confdefs.h. */
26525 $ac_includes_default
26527 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26529 typedef struct { char x; long y; } ac__type_alignof_;
26533 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26540 rm -f conftest.$ac_objext
26541 if { (ac_try="$ac_compile"
26542 case "(($ac_try" in
26543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26544 *) ac_try_echo=$ac_try;;
26546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26547 $as_echo "$ac_try_echo") >&5
26548 (eval "$ac_compile") 2>conftest.er1
26550 grep -v '^ *+' conftest.er1 >conftest.err
26552 cat conftest.err >&5
26553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26554 (exit $ac_status); } && {
26555 test -z "$ac_c_werror_flag" ||
26556 test ! -s conftest.err
26557 } && test -s conftest.$ac_objext; then
26560 cat >conftest.$ac_ext <<_ACEOF
26563 cat confdefs.h >>conftest.$ac_ext
26564 cat >>conftest.$ac_ext <<_ACEOF
26565 /* end confdefs.h. */
26566 $ac_includes_default
26568 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26570 typedef struct { char x; long y; } ac__type_alignof_;
26574 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26581 rm -f conftest.$ac_objext
26582 if { (ac_try="$ac_compile"
26583 case "(($ac_try" in
26584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26585 *) ac_try_echo=$ac_try;;
26587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26588 $as_echo "$ac_try_echo") >&5
26589 (eval "$ac_compile") 2>conftest.er1
26591 grep -v '^ *+' conftest.er1 >conftest.err
26593 cat conftest.err >&5
26594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595 (exit $ac_status); } && {
26596 test -z "$ac_c_werror_flag" ||
26597 test ! -s conftest.err
26598 } && test -s conftest.$ac_objext; then
26599 ac_hi=$ac_mid; break
26601 $as_echo "$as_me: failed program was:" >&5
26602 sed 's/^/| /' conftest.$ac_ext >&5
26604 ac_lo=`expr $ac_mid + 1`
26605 if test $ac_lo -le $ac_mid; then
26609 ac_mid=`expr 2 '*' $ac_mid + 1`
26612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26615 $as_echo "$as_me: failed program was:" >&5
26616 sed 's/^/| /' conftest.$ac_ext >&5
26618 cat >conftest.$ac_ext <<_ACEOF
26621 cat confdefs.h >>conftest.$ac_ext
26622 cat >>conftest.$ac_ext <<_ACEOF
26623 /* end confdefs.h. */
26624 $ac_includes_default
26626 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26628 typedef struct { char x; long y; } ac__type_alignof_;
26632 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26639 rm -f conftest.$ac_objext
26640 if { (ac_try="$ac_compile"
26641 case "(($ac_try" in
26642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26643 *) ac_try_echo=$ac_try;;
26645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26646 $as_echo "$ac_try_echo") >&5
26647 (eval "$ac_compile") 2>conftest.er1
26649 grep -v '^ *+' conftest.er1 >conftest.err
26651 cat conftest.err >&5
26652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653 (exit $ac_status); } && {
26654 test -z "$ac_c_werror_flag" ||
26655 test ! -s conftest.err
26656 } && test -s conftest.$ac_objext; then
26659 cat >conftest.$ac_ext <<_ACEOF
26662 cat confdefs.h >>conftest.$ac_ext
26663 cat >>conftest.$ac_ext <<_ACEOF
26664 /* end confdefs.h. */
26665 $ac_includes_default
26667 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26669 typedef struct { char x; long y; } ac__type_alignof_;
26673 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26680 rm -f conftest.$ac_objext
26681 if { (ac_try="$ac_compile"
26682 case "(($ac_try" in
26683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26684 *) ac_try_echo=$ac_try;;
26686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26687 $as_echo "$ac_try_echo") >&5
26688 (eval "$ac_compile") 2>conftest.er1
26690 grep -v '^ *+' conftest.er1 >conftest.err
26692 cat conftest.err >&5
26693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694 (exit $ac_status); } && {
26695 test -z "$ac_c_werror_flag" ||
26696 test ! -s conftest.err
26697 } && test -s conftest.$ac_objext; then
26698 ac_lo=$ac_mid; break
26700 $as_echo "$as_me: failed program was:" >&5
26701 sed 's/^/| /' conftest.$ac_ext >&5
26703 ac_hi=`expr '(' $ac_mid ')' - 1`
26704 if test $ac_mid -le $ac_hi; then
26708 ac_mid=`expr 2 '*' $ac_mid`
26711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26714 $as_echo "$as_me: failed program was:" >&5
26715 sed 's/^/| /' conftest.$ac_ext >&5
26720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26724 # Binary search between lo and hi bounds.
26725 while test "x$ac_lo" != "x$ac_hi"; do
26726 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26727 cat >conftest.$ac_ext <<_ACEOF
26730 cat confdefs.h >>conftest.$ac_ext
26731 cat >>conftest.$ac_ext <<_ACEOF
26732 /* end confdefs.h. */
26733 $ac_includes_default
26735 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26737 typedef struct { char x; long y; } ac__type_alignof_;
26741 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26748 rm -f conftest.$ac_objext
26749 if { (ac_try="$ac_compile"
26750 case "(($ac_try" in
26751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26752 *) ac_try_echo=$ac_try;;
26754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26755 $as_echo "$ac_try_echo") >&5
26756 (eval "$ac_compile") 2>conftest.er1
26758 grep -v '^ *+' conftest.er1 >conftest.err
26760 cat conftest.err >&5
26761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762 (exit $ac_status); } && {
26763 test -z "$ac_c_werror_flag" ||
26764 test ! -s conftest.err
26765 } && test -s conftest.$ac_objext; then
26768 $as_echo "$as_me: failed program was:" >&5
26769 sed 's/^/| /' conftest.$ac_ext >&5
26771 ac_lo=`expr '(' $ac_mid ')' + 1`
26774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26777 ?*) ac_cv_alignof_long=$ac_lo;;
26778 '') if test "$ac_cv_type_long" = yes; then
26779 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26781 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26782 See \`config.log' for more details." >&5
26783 $as_echo "$as_me: error: cannot compute alignment of long
26784 See \`config.log' for more details." >&2;}
26785 { (exit 77); exit 77; }; }; }
26787 ac_cv_alignof_long=0
26791 cat >conftest.$ac_ext <<_ACEOF
26794 cat confdefs.h >>conftest.$ac_ext
26795 cat >>conftest.$ac_ext <<_ACEOF
26796 /* end confdefs.h. */
26797 $ac_includes_default
26799 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26801 typedef struct { char x; long y; } ac__type_alignof_;
26802 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26803 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26805 #include <stdlib.h>
26810 FILE *f = fopen ("conftest.val", "w");
26813 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26815 long int i = longval ();
26816 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26818 fprintf (f, "%ld", i);
26822 unsigned long int i = ulongval ();
26823 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26825 fprintf (f, "%lu", i);
26827 /* Do not output a trailing newline, as this causes \r\n confusion
26828 on some platforms. */
26829 return ferror (f) || fclose (f) != 0;
26835 rm -f conftest$ac_exeext
26836 if { (ac_try="$ac_link"
26837 case "(($ac_try" in
26838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26839 *) ac_try_echo=$ac_try;;
26841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26842 $as_echo "$ac_try_echo") >&5
26843 (eval "$ac_link") 2>&5
26845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26847 { (case "(($ac_try" in
26848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26849 *) ac_try_echo=$ac_try;;
26851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26852 $as_echo "$ac_try_echo") >&5
26853 (eval "$ac_try") 2>&5
26855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); }; }; then
26857 ac_cv_alignof_long=`cat conftest.val`
26859 $as_echo "$as_me: program exited with status $ac_status" >&5
26860 $as_echo "$as_me: failed program was:" >&5
26861 sed 's/^/| /' conftest.$ac_ext >&5
26863 ( exit $ac_status )
26864 if test "$ac_cv_type_long" = yes; then
26865 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26867 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26868 See \`config.log' for more details." >&5
26869 $as_echo "$as_me: error: cannot compute alignment of long
26870 See \`config.log' for more details." >&2;}
26871 { (exit 77); exit 77; }; }; }
26873 ac_cv_alignof_long=0
26876 rm -rf conftest.dSYM
26877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26881 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
26882 $as_echo "$ac_cv_alignof_long" >&6; }
26886 cat >>confdefs.h <<_ACEOF
26887 #define ALIGNOF_LONG $ac_cv_alignof_long
26891 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26892 # The cast to long int works around a bug in the HP C Compiler,
26893 # see AC_CHECK_SIZEOF for more information.
26894 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
26895 $as_echo_n "checking alignment of long long int... " >&6; }
26896 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26897 $as_echo_n "(cached) " >&6
26899 if test "$cross_compiling" = yes; then
26900 # Depending upon the size, compute the lo and hi bounds.
26901 cat >conftest.$ac_ext <<_ACEOF
26904 cat confdefs.h >>conftest.$ac_ext
26905 cat >>conftest.$ac_ext <<_ACEOF
26906 /* end confdefs.h. */
26907 $ac_includes_default
26909 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26911 typedef struct { char x; long long int y; } ac__type_alignof_;
26915 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26922 rm -f conftest.$ac_objext
26923 if { (ac_try="$ac_compile"
26924 case "(($ac_try" in
26925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26926 *) ac_try_echo=$ac_try;;
26928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26929 $as_echo "$ac_try_echo") >&5
26930 (eval "$ac_compile") 2>conftest.er1
26932 grep -v '^ *+' conftest.er1 >conftest.err
26934 cat conftest.err >&5
26935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26936 (exit $ac_status); } && {
26937 test -z "$ac_c_werror_flag" ||
26938 test ! -s conftest.err
26939 } && test -s conftest.$ac_objext; then
26942 cat >conftest.$ac_ext <<_ACEOF
26945 cat confdefs.h >>conftest.$ac_ext
26946 cat >>conftest.$ac_ext <<_ACEOF
26947 /* end confdefs.h. */
26948 $ac_includes_default
26950 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26952 typedef struct { char x; long long int y; } ac__type_alignof_;
26956 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26963 rm -f conftest.$ac_objext
26964 if { (ac_try="$ac_compile"
26965 case "(($ac_try" in
26966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26967 *) ac_try_echo=$ac_try;;
26969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26970 $as_echo "$ac_try_echo") >&5
26971 (eval "$ac_compile") 2>conftest.er1
26973 grep -v '^ *+' conftest.er1 >conftest.err
26975 cat conftest.err >&5
26976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977 (exit $ac_status); } && {
26978 test -z "$ac_c_werror_flag" ||
26979 test ! -s conftest.err
26980 } && test -s conftest.$ac_objext; then
26981 ac_hi=$ac_mid; break
26983 $as_echo "$as_me: failed program was:" >&5
26984 sed 's/^/| /' conftest.$ac_ext >&5
26986 ac_lo=`expr $ac_mid + 1`
26987 if test $ac_lo -le $ac_mid; then
26991 ac_mid=`expr 2 '*' $ac_mid + 1`
26994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26997 $as_echo "$as_me: failed program was:" >&5
26998 sed 's/^/| /' conftest.$ac_ext >&5
27000 cat >conftest.$ac_ext <<_ACEOF
27003 cat confdefs.h >>conftest.$ac_ext
27004 cat >>conftest.$ac_ext <<_ACEOF
27005 /* end confdefs.h. */
27006 $ac_includes_default
27008 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27010 typedef struct { char x; long long int y; } ac__type_alignof_;
27014 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27021 rm -f conftest.$ac_objext
27022 if { (ac_try="$ac_compile"
27023 case "(($ac_try" in
27024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025 *) ac_try_echo=$ac_try;;
27027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27028 $as_echo "$ac_try_echo") >&5
27029 (eval "$ac_compile") 2>conftest.er1
27031 grep -v '^ *+' conftest.er1 >conftest.err
27033 cat conftest.err >&5
27034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035 (exit $ac_status); } && {
27036 test -z "$ac_c_werror_flag" ||
27037 test ! -s conftest.err
27038 } && test -s conftest.$ac_objext; then
27041 cat >conftest.$ac_ext <<_ACEOF
27044 cat confdefs.h >>conftest.$ac_ext
27045 cat >>conftest.$ac_ext <<_ACEOF
27046 /* end confdefs.h. */
27047 $ac_includes_default
27049 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27051 typedef struct { char x; long long int y; } ac__type_alignof_;
27055 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27062 rm -f conftest.$ac_objext
27063 if { (ac_try="$ac_compile"
27064 case "(($ac_try" in
27065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27066 *) ac_try_echo=$ac_try;;
27068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27069 $as_echo "$ac_try_echo") >&5
27070 (eval "$ac_compile") 2>conftest.er1
27072 grep -v '^ *+' conftest.er1 >conftest.err
27074 cat conftest.err >&5
27075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076 (exit $ac_status); } && {
27077 test -z "$ac_c_werror_flag" ||
27078 test ! -s conftest.err
27079 } && test -s conftest.$ac_objext; then
27080 ac_lo=$ac_mid; break
27082 $as_echo "$as_me: failed program was:" >&5
27083 sed 's/^/| /' conftest.$ac_ext >&5
27085 ac_hi=`expr '(' $ac_mid ')' - 1`
27086 if test $ac_mid -le $ac_hi; then
27090 ac_mid=`expr 2 '*' $ac_mid`
27093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27096 $as_echo "$as_me: failed program was:" >&5
27097 sed 's/^/| /' conftest.$ac_ext >&5
27102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27106 # Binary search between lo and hi bounds.
27107 while test "x$ac_lo" != "x$ac_hi"; do
27108 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27109 cat >conftest.$ac_ext <<_ACEOF
27112 cat confdefs.h >>conftest.$ac_ext
27113 cat >>conftest.$ac_ext <<_ACEOF
27114 /* end confdefs.h. */
27115 $ac_includes_default
27117 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27119 typedef struct { char x; long long int y; } ac__type_alignof_;
27123 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27130 rm -f conftest.$ac_objext
27131 if { (ac_try="$ac_compile"
27132 case "(($ac_try" in
27133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27134 *) ac_try_echo=$ac_try;;
27136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27137 $as_echo "$ac_try_echo") >&5
27138 (eval "$ac_compile") 2>conftest.er1
27140 grep -v '^ *+' conftest.er1 >conftest.err
27142 cat conftest.err >&5
27143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144 (exit $ac_status); } && {
27145 test -z "$ac_c_werror_flag" ||
27146 test ! -s conftest.err
27147 } && test -s conftest.$ac_objext; then
27150 $as_echo "$as_me: failed program was:" >&5
27151 sed 's/^/| /' conftest.$ac_ext >&5
27153 ac_lo=`expr '(' $ac_mid ')' + 1`
27156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27159 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
27160 '') if test "$ac_cv_type_long_long_int" = yes; then
27161 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27163 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27164 See \`config.log' for more details." >&5
27165 $as_echo "$as_me: error: cannot compute alignment of long long int
27166 See \`config.log' for more details." >&2;}
27167 { (exit 77); exit 77; }; }; }
27169 ac_cv_alignof_long_long_int=0
27173 cat >conftest.$ac_ext <<_ACEOF
27176 cat confdefs.h >>conftest.$ac_ext
27177 cat >>conftest.$ac_ext <<_ACEOF
27178 /* end confdefs.h. */
27179 $ac_includes_default
27181 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27183 typedef struct { char x; long long int y; } ac__type_alignof_;
27184 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27185 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27187 #include <stdlib.h>
27192 FILE *f = fopen ("conftest.val", "w");
27195 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27197 long int i = longval ();
27198 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27200 fprintf (f, "%ld", i);
27204 unsigned long int i = ulongval ();
27205 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27207 fprintf (f, "%lu", i);
27209 /* Do not output a trailing newline, as this causes \r\n confusion
27210 on some platforms. */
27211 return ferror (f) || fclose (f) != 0;
27217 rm -f conftest$ac_exeext
27218 if { (ac_try="$ac_link"
27219 case "(($ac_try" in
27220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27221 *) ac_try_echo=$ac_try;;
27223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27224 $as_echo "$ac_try_echo") >&5
27225 (eval "$ac_link") 2>&5
27227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27229 { (case "(($ac_try" in
27230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27231 *) ac_try_echo=$ac_try;;
27233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27234 $as_echo "$ac_try_echo") >&5
27235 (eval "$ac_try") 2>&5
27237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27238 (exit $ac_status); }; }; then
27239 ac_cv_alignof_long_long_int=`cat conftest.val`
27241 $as_echo "$as_me: program exited with status $ac_status" >&5
27242 $as_echo "$as_me: failed program was:" >&5
27243 sed 's/^/| /' conftest.$ac_ext >&5
27245 ( exit $ac_status )
27246 if test "$ac_cv_type_long_long_int" = yes; then
27247 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27249 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27250 See \`config.log' for more details." >&5
27251 $as_echo "$as_me: error: cannot compute alignment of long long int
27252 See \`config.log' for more details." >&2;}
27253 { (exit 77); exit 77; }; }; }
27255 ac_cv_alignof_long_long_int=0
27258 rm -rf conftest.dSYM
27259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27263 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27264 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27268 cat >>confdefs.h <<_ACEOF
27269 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27274 # The cast to long int works around a bug in the HP C Compiler,
27275 # see AC_CHECK_SIZEOF for more information.
27276 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27277 $as_echo_n "checking alignment of double... " >&6; }
27278 if test "${ac_cv_alignof_double+set}" = set; then
27279 $as_echo_n "(cached) " >&6
27281 if test "$cross_compiling" = yes; then
27282 # Depending upon the size, compute the lo and hi bounds.
27283 cat >conftest.$ac_ext <<_ACEOF
27286 cat confdefs.h >>conftest.$ac_ext
27287 cat >>conftest.$ac_ext <<_ACEOF
27288 /* end confdefs.h. */
27289 $ac_includes_default
27291 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27293 typedef struct { char x; double y; } ac__type_alignof_;
27297 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27304 rm -f conftest.$ac_objext
27305 if { (ac_try="$ac_compile"
27306 case "(($ac_try" in
27307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27308 *) ac_try_echo=$ac_try;;
27310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27311 $as_echo "$ac_try_echo") >&5
27312 (eval "$ac_compile") 2>conftest.er1
27314 grep -v '^ *+' conftest.er1 >conftest.err
27316 cat conftest.err >&5
27317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318 (exit $ac_status); } && {
27319 test -z "$ac_c_werror_flag" ||
27320 test ! -s conftest.err
27321 } && test -s conftest.$ac_objext; then
27324 cat >conftest.$ac_ext <<_ACEOF
27327 cat confdefs.h >>conftest.$ac_ext
27328 cat >>conftest.$ac_ext <<_ACEOF
27329 /* end confdefs.h. */
27330 $ac_includes_default
27332 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27334 typedef struct { char x; double y; } ac__type_alignof_;
27338 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27345 rm -f conftest.$ac_objext
27346 if { (ac_try="$ac_compile"
27347 case "(($ac_try" in
27348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27349 *) ac_try_echo=$ac_try;;
27351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27352 $as_echo "$ac_try_echo") >&5
27353 (eval "$ac_compile") 2>conftest.er1
27355 grep -v '^ *+' conftest.er1 >conftest.err
27357 cat conftest.err >&5
27358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359 (exit $ac_status); } && {
27360 test -z "$ac_c_werror_flag" ||
27361 test ! -s conftest.err
27362 } && test -s conftest.$ac_objext; then
27363 ac_hi=$ac_mid; break
27365 $as_echo "$as_me: failed program was:" >&5
27366 sed 's/^/| /' conftest.$ac_ext >&5
27368 ac_lo=`expr $ac_mid + 1`
27369 if test $ac_lo -le $ac_mid; then
27373 ac_mid=`expr 2 '*' $ac_mid + 1`
27376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27379 $as_echo "$as_me: failed program was:" >&5
27380 sed 's/^/| /' conftest.$ac_ext >&5
27382 cat >conftest.$ac_ext <<_ACEOF
27385 cat confdefs.h >>conftest.$ac_ext
27386 cat >>conftest.$ac_ext <<_ACEOF
27387 /* end confdefs.h. */
27388 $ac_includes_default
27390 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27392 typedef struct { char x; double y; } ac__type_alignof_;
27396 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27403 rm -f conftest.$ac_objext
27404 if { (ac_try="$ac_compile"
27405 case "(($ac_try" in
27406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27407 *) ac_try_echo=$ac_try;;
27409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27410 $as_echo "$ac_try_echo") >&5
27411 (eval "$ac_compile") 2>conftest.er1
27413 grep -v '^ *+' conftest.er1 >conftest.err
27415 cat conftest.err >&5
27416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417 (exit $ac_status); } && {
27418 test -z "$ac_c_werror_flag" ||
27419 test ! -s conftest.err
27420 } && test -s conftest.$ac_objext; then
27423 cat >conftest.$ac_ext <<_ACEOF
27426 cat confdefs.h >>conftest.$ac_ext
27427 cat >>conftest.$ac_ext <<_ACEOF
27428 /* end confdefs.h. */
27429 $ac_includes_default
27431 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27433 typedef struct { char x; double y; } ac__type_alignof_;
27437 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27444 rm -f conftest.$ac_objext
27445 if { (ac_try="$ac_compile"
27446 case "(($ac_try" in
27447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27448 *) ac_try_echo=$ac_try;;
27450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27451 $as_echo "$ac_try_echo") >&5
27452 (eval "$ac_compile") 2>conftest.er1
27454 grep -v '^ *+' conftest.er1 >conftest.err
27456 cat conftest.err >&5
27457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458 (exit $ac_status); } && {
27459 test -z "$ac_c_werror_flag" ||
27460 test ! -s conftest.err
27461 } && test -s conftest.$ac_objext; then
27462 ac_lo=$ac_mid; break
27464 $as_echo "$as_me: failed program was:" >&5
27465 sed 's/^/| /' conftest.$ac_ext >&5
27467 ac_hi=`expr '(' $ac_mid ')' - 1`
27468 if test $ac_mid -le $ac_hi; then
27472 ac_mid=`expr 2 '*' $ac_mid`
27475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27478 $as_echo "$as_me: failed program was:" >&5
27479 sed 's/^/| /' conftest.$ac_ext >&5
27484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27488 # Binary search between lo and hi bounds.
27489 while test "x$ac_lo" != "x$ac_hi"; do
27490 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27491 cat >conftest.$ac_ext <<_ACEOF
27494 cat confdefs.h >>conftest.$ac_ext
27495 cat >>conftest.$ac_ext <<_ACEOF
27496 /* end confdefs.h. */
27497 $ac_includes_default
27499 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27501 typedef struct { char x; double y; } ac__type_alignof_;
27505 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27512 rm -f conftest.$ac_objext
27513 if { (ac_try="$ac_compile"
27514 case "(($ac_try" in
27515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27516 *) ac_try_echo=$ac_try;;
27518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27519 $as_echo "$ac_try_echo") >&5
27520 (eval "$ac_compile") 2>conftest.er1
27522 grep -v '^ *+' conftest.er1 >conftest.err
27524 cat conftest.err >&5
27525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27526 (exit $ac_status); } && {
27527 test -z "$ac_c_werror_flag" ||
27528 test ! -s conftest.err
27529 } && test -s conftest.$ac_objext; then
27532 $as_echo "$as_me: failed program was:" >&5
27533 sed 's/^/| /' conftest.$ac_ext >&5
27535 ac_lo=`expr '(' $ac_mid ')' + 1`
27538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27541 ?*) ac_cv_alignof_double=$ac_lo;;
27542 '') if test "$ac_cv_type_double" = yes; then
27543 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27545 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27546 See \`config.log' for more details." >&5
27547 $as_echo "$as_me: error: cannot compute alignment of double
27548 See \`config.log' for more details." >&2;}
27549 { (exit 77); exit 77; }; }; }
27551 ac_cv_alignof_double=0
27555 cat >conftest.$ac_ext <<_ACEOF
27558 cat confdefs.h >>conftest.$ac_ext
27559 cat >>conftest.$ac_ext <<_ACEOF
27560 /* end confdefs.h. */
27561 $ac_includes_default
27563 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27565 typedef struct { char x; double y; } ac__type_alignof_;
27566 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27567 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27569 #include <stdlib.h>
27574 FILE *f = fopen ("conftest.val", "w");
27577 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27579 long int i = longval ();
27580 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27582 fprintf (f, "%ld", i);
27586 unsigned long int i = ulongval ();
27587 if (i != ((long int) offsetof (ac__type_alignof_, y)))
27589 fprintf (f, "%lu", i);
27591 /* Do not output a trailing newline, as this causes \r\n confusion
27592 on some platforms. */
27593 return ferror (f) || fclose (f) != 0;
27599 rm -f conftest$ac_exeext
27600 if { (ac_try="$ac_link"
27601 case "(($ac_try" in
27602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27603 *) ac_try_echo=$ac_try;;
27605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27606 $as_echo "$ac_try_echo") >&5
27607 (eval "$ac_link") 2>&5
27609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27611 { (case "(($ac_try" in
27612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27613 *) ac_try_echo=$ac_try;;
27615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27616 $as_echo "$ac_try_echo") >&5
27617 (eval "$ac_try") 2>&5
27619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27620 (exit $ac_status); }; }; then
27621 ac_cv_alignof_double=`cat conftest.val`
27623 $as_echo "$as_me: program exited with status $ac_status" >&5
27624 $as_echo "$as_me: failed program was:" >&5
27625 sed 's/^/| /' conftest.$ac_ext >&5
27627 ( exit $ac_status )
27628 if test "$ac_cv_type_double" = yes; then
27629 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27631 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
27632 See \`config.log' for more details." >&5
27633 $as_echo "$as_me: error: cannot compute alignment of double
27634 See \`config.log' for more details." >&2;}
27635 { (exit 77); exit 77; }; }; }
27637 ac_cv_alignof_double=0
27640 rm -rf conftest.dSYM
27641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27645 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
27646 $as_echo "$ac_cv_alignof_double" >&6; }
27650 cat >>confdefs.h <<_ACEOF
27651 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
27656 # Compute maximum alignment of any basic type.
27657 # We assume long's alignment is at least as strong as char, short, or int;
27658 # but we must check long long (if it exists) and double.
27660 MAX_ALIGNOF=$ac_cv_alignof_long
27661 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
27662 MAX_ALIGNOF=$ac_cv_alignof_double
27664 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
27665 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
27668 cat >>confdefs.h <<_ACEOF
27669 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
27674 # Some platforms predefine the types int8, int16, etc. Only check
27675 # a (hopefully) representative subset.
27676 { $as_echo "$as_me:$LINENO: checking for int8" >&5
27677 $as_echo_n "checking for int8... " >&6; }
27678 if test "${ac_cv_type_int8+set}" = set; then
27679 $as_echo_n "(cached) " >&6
27682 cat >conftest.$ac_ext <<_ACEOF
27685 cat confdefs.h >>conftest.$ac_ext
27686 cat >>conftest.$ac_ext <<_ACEOF
27687 /* end confdefs.h. */
27699 rm -f conftest.$ac_objext
27700 if { (ac_try="$ac_compile"
27701 case "(($ac_try" in
27702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27703 *) ac_try_echo=$ac_try;;
27705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27706 $as_echo "$ac_try_echo") >&5
27707 (eval "$ac_compile") 2>conftest.er1
27709 grep -v '^ *+' conftest.er1 >conftest.err
27711 cat conftest.err >&5
27712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27713 (exit $ac_status); } && {
27714 test -z "$ac_c_werror_flag" ||
27715 test ! -s conftest.err
27716 } && test -s conftest.$ac_objext; then
27717 cat >conftest.$ac_ext <<_ACEOF
27720 cat confdefs.h >>conftest.$ac_ext
27721 cat >>conftest.$ac_ext <<_ACEOF
27722 /* end confdefs.h. */
27728 if (sizeof ((int8)))
27734 rm -f conftest.$ac_objext
27735 if { (ac_try="$ac_compile"
27736 case "(($ac_try" in
27737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27738 *) ac_try_echo=$ac_try;;
27740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27741 $as_echo "$ac_try_echo") >&5
27742 (eval "$ac_compile") 2>conftest.er1
27744 grep -v '^ *+' conftest.er1 >conftest.err
27746 cat conftest.err >&5
27747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27748 (exit $ac_status); } && {
27749 test -z "$ac_c_werror_flag" ||
27750 test ! -s conftest.err
27751 } && test -s conftest.$ac_objext; then
27754 $as_echo "$as_me: failed program was:" >&5
27755 sed 's/^/| /' conftest.$ac_ext >&5
27757 ac_cv_type_int8=yes
27760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27762 $as_echo "$as_me: failed program was:" >&5
27763 sed 's/^/| /' conftest.$ac_ext >&5
27768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27770 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27771 $as_echo "$ac_cv_type_int8" >&6; }
27772 if test "x$ac_cv_type_int8" = x""yes; then
27774 cat >>confdefs.h <<_ACEOF
27775 #define HAVE_INT8 1
27780 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27781 $as_echo_n "checking for uint8... " >&6; }
27782 if test "${ac_cv_type_uint8+set}" = set; then
27783 $as_echo_n "(cached) " >&6
27785 ac_cv_type_uint8=no
27786 cat >conftest.$ac_ext <<_ACEOF
27789 cat confdefs.h >>conftest.$ac_ext
27790 cat >>conftest.$ac_ext <<_ACEOF
27791 /* end confdefs.h. */
27797 if (sizeof (uint8))
27803 rm -f conftest.$ac_objext
27804 if { (ac_try="$ac_compile"
27805 case "(($ac_try" in
27806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27807 *) ac_try_echo=$ac_try;;
27809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27810 $as_echo "$ac_try_echo") >&5
27811 (eval "$ac_compile") 2>conftest.er1
27813 grep -v '^ *+' conftest.er1 >conftest.err
27815 cat conftest.err >&5
27816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27817 (exit $ac_status); } && {
27818 test -z "$ac_c_werror_flag" ||
27819 test ! -s conftest.err
27820 } && test -s conftest.$ac_objext; then
27821 cat >conftest.$ac_ext <<_ACEOF
27824 cat confdefs.h >>conftest.$ac_ext
27825 cat >>conftest.$ac_ext <<_ACEOF
27826 /* end confdefs.h. */
27832 if (sizeof ((uint8)))
27838 rm -f conftest.$ac_objext
27839 if { (ac_try="$ac_compile"
27840 case "(($ac_try" in
27841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27842 *) ac_try_echo=$ac_try;;
27844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27845 $as_echo "$ac_try_echo") >&5
27846 (eval "$ac_compile") 2>conftest.er1
27848 grep -v '^ *+' conftest.er1 >conftest.err
27850 cat conftest.err >&5
27851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27852 (exit $ac_status); } && {
27853 test -z "$ac_c_werror_flag" ||
27854 test ! -s conftest.err
27855 } && test -s conftest.$ac_objext; then
27858 $as_echo "$as_me: failed program was:" >&5
27859 sed 's/^/| /' conftest.$ac_ext >&5
27861 ac_cv_type_uint8=yes
27864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27866 $as_echo "$as_me: failed program was:" >&5
27867 sed 's/^/| /' conftest.$ac_ext >&5
27872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27874 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27875 $as_echo "$ac_cv_type_uint8" >&6; }
27876 if test "x$ac_cv_type_uint8" = x""yes; then
27878 cat >>confdefs.h <<_ACEOF
27879 #define HAVE_UINT8 1
27884 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27885 $as_echo_n "checking for int64... " >&6; }
27886 if test "${ac_cv_type_int64+set}" = set; then
27887 $as_echo_n "(cached) " >&6
27889 ac_cv_type_int64=no
27890 cat >conftest.$ac_ext <<_ACEOF
27893 cat confdefs.h >>conftest.$ac_ext
27894 cat >>conftest.$ac_ext <<_ACEOF
27895 /* end confdefs.h. */
27901 if (sizeof (int64))
27907 rm -f conftest.$ac_objext
27908 if { (ac_try="$ac_compile"
27909 case "(($ac_try" in
27910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27911 *) ac_try_echo=$ac_try;;
27913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27914 $as_echo "$ac_try_echo") >&5
27915 (eval "$ac_compile") 2>conftest.er1
27917 grep -v '^ *+' conftest.er1 >conftest.err
27919 cat conftest.err >&5
27920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921 (exit $ac_status); } && {
27922 test -z "$ac_c_werror_flag" ||
27923 test ! -s conftest.err
27924 } && test -s conftest.$ac_objext; then
27925 cat >conftest.$ac_ext <<_ACEOF
27928 cat confdefs.h >>conftest.$ac_ext
27929 cat >>conftest.$ac_ext <<_ACEOF
27930 /* end confdefs.h. */
27936 if (sizeof ((int64)))
27942 rm -f conftest.$ac_objext
27943 if { (ac_try="$ac_compile"
27944 case "(($ac_try" in
27945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27946 *) ac_try_echo=$ac_try;;
27948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27949 $as_echo "$ac_try_echo") >&5
27950 (eval "$ac_compile") 2>conftest.er1
27952 grep -v '^ *+' conftest.er1 >conftest.err
27954 cat conftest.err >&5
27955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956 (exit $ac_status); } && {
27957 test -z "$ac_c_werror_flag" ||
27958 test ! -s conftest.err
27959 } && test -s conftest.$ac_objext; then
27962 $as_echo "$as_me: failed program was:" >&5
27963 sed 's/^/| /' conftest.$ac_ext >&5
27965 ac_cv_type_int64=yes
27968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27970 $as_echo "$as_me: failed program was:" >&5
27971 sed 's/^/| /' conftest.$ac_ext >&5
27976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27978 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
27979 $as_echo "$ac_cv_type_int64" >&6; }
27980 if test "x$ac_cv_type_int64" = x""yes; then
27982 cat >>confdefs.h <<_ACEOF
27983 #define HAVE_INT64 1
27988 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
27989 $as_echo_n "checking for uint64... " >&6; }
27990 if test "${ac_cv_type_uint64+set}" = set; then
27991 $as_echo_n "(cached) " >&6
27993 ac_cv_type_uint64=no
27994 cat >conftest.$ac_ext <<_ACEOF
27997 cat confdefs.h >>conftest.$ac_ext
27998 cat >>conftest.$ac_ext <<_ACEOF
27999 /* end confdefs.h. */
28005 if (sizeof (uint64))
28011 rm -f conftest.$ac_objext
28012 if { (ac_try="$ac_compile"
28013 case "(($ac_try" in
28014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28015 *) ac_try_echo=$ac_try;;
28017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28018 $as_echo "$ac_try_echo") >&5
28019 (eval "$ac_compile") 2>conftest.er1
28021 grep -v '^ *+' conftest.er1 >conftest.err
28023 cat conftest.err >&5
28024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28025 (exit $ac_status); } && {
28026 test -z "$ac_c_werror_flag" ||
28027 test ! -s conftest.err
28028 } && test -s conftest.$ac_objext; then
28029 cat >conftest.$ac_ext <<_ACEOF
28032 cat confdefs.h >>conftest.$ac_ext
28033 cat >>conftest.$ac_ext <<_ACEOF
28034 /* end confdefs.h. */
28040 if (sizeof ((uint64)))
28046 rm -f conftest.$ac_objext
28047 if { (ac_try="$ac_compile"
28048 case "(($ac_try" in
28049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28050 *) ac_try_echo=$ac_try;;
28052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28053 $as_echo "$ac_try_echo") >&5
28054 (eval "$ac_compile") 2>conftest.er1
28056 grep -v '^ *+' conftest.er1 >conftest.err
28058 cat conftest.err >&5
28059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28060 (exit $ac_status); } && {
28061 test -z "$ac_c_werror_flag" ||
28062 test ! -s conftest.err
28063 } && test -s conftest.$ac_objext; then
28066 $as_echo "$as_me: failed program was:" >&5
28067 sed 's/^/| /' conftest.$ac_ext >&5
28069 ac_cv_type_uint64=yes
28072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28074 $as_echo "$as_me: failed program was:" >&5
28075 sed 's/^/| /' conftest.$ac_ext >&5
28080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28082 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
28083 $as_echo "$ac_cv_type_uint64" >&6; }
28084 if test "x$ac_cv_type_uint64" = x""yes; then
28086 cat >>confdefs.h <<_ACEOF
28087 #define HAVE_UINT64 1
28094 # We also check for sig_atomic_t, which *should* be defined per ANSI
28095 # C, but is missing on some old platforms.
28096 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
28097 $as_echo_n "checking for sig_atomic_t... " >&6; }
28098 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28099 $as_echo_n "(cached) " >&6
28101 ac_cv_type_sig_atomic_t=no
28102 cat >conftest.$ac_ext <<_ACEOF
28105 cat confdefs.h >>conftest.$ac_ext
28106 cat >>conftest.$ac_ext <<_ACEOF
28107 /* end confdefs.h. */
28108 #include <signal.h>
28113 if (sizeof (sig_atomic_t))
28119 rm -f conftest.$ac_objext
28120 if { (ac_try="$ac_compile"
28121 case "(($ac_try" in
28122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28123 *) ac_try_echo=$ac_try;;
28125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28126 $as_echo "$ac_try_echo") >&5
28127 (eval "$ac_compile") 2>conftest.er1
28129 grep -v '^ *+' conftest.er1 >conftest.err
28131 cat conftest.err >&5
28132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133 (exit $ac_status); } && {
28134 test -z "$ac_c_werror_flag" ||
28135 test ! -s conftest.err
28136 } && test -s conftest.$ac_objext; then
28137 cat >conftest.$ac_ext <<_ACEOF
28140 cat confdefs.h >>conftest.$ac_ext
28141 cat >>conftest.$ac_ext <<_ACEOF
28142 /* end confdefs.h. */
28143 #include <signal.h>
28148 if (sizeof ((sig_atomic_t)))
28154 rm -f conftest.$ac_objext
28155 if { (ac_try="$ac_compile"
28156 case "(($ac_try" in
28157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28158 *) ac_try_echo=$ac_try;;
28160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28161 $as_echo "$ac_try_echo") >&5
28162 (eval "$ac_compile") 2>conftest.er1
28164 grep -v '^ *+' conftest.er1 >conftest.err
28166 cat conftest.err >&5
28167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28168 (exit $ac_status); } && {
28169 test -z "$ac_c_werror_flag" ||
28170 test ! -s conftest.err
28171 } && test -s conftest.$ac_objext; then
28174 $as_echo "$as_me: failed program was:" >&5
28175 sed 's/^/| /' conftest.$ac_ext >&5
28177 ac_cv_type_sig_atomic_t=yes
28180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28182 $as_echo "$as_me: failed program was:" >&5
28183 sed 's/^/| /' conftest.$ac_ext >&5
28188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28190 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28191 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28192 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28194 cat >>confdefs.h <<_ACEOF
28195 #define HAVE_SIG_ATOMIC_T 1
28203 if test "$PORTNAME" != "win32"
28205 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28206 $as_echo_n "checking for POSIX signal interface... " >&6; }
28207 if test "${pgac_cv_func_posix_signals+set}" = set; then
28208 $as_echo_n "(cached) " >&6
28210 cat >conftest.$ac_ext <<_ACEOF
28213 cat confdefs.h >>conftest.$ac_ext
28214 cat >>conftest.$ac_ext <<_ACEOF
28215 /* end confdefs.h. */
28216 #include <signal.h>
28221 struct sigaction act, oact;
28222 sigemptyset(&act.sa_mask);
28223 act.sa_flags = SA_RESTART;
28224 sigaction(0, &act, &oact);
28229 rm -f conftest.$ac_objext conftest$ac_exeext
28230 if { (ac_try="$ac_link"
28231 case "(($ac_try" in
28232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28233 *) ac_try_echo=$ac_try;;
28235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28236 $as_echo "$ac_try_echo") >&5
28237 (eval "$ac_link") 2>conftest.er1
28239 grep -v '^ *+' conftest.er1 >conftest.err
28241 cat conftest.err >&5
28242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243 (exit $ac_status); } && {
28244 test -z "$ac_c_werror_flag" ||
28245 test ! -s conftest.err
28246 } && test -s conftest$ac_exeext && {
28247 test "$cross_compiling" = yes ||
28248 $as_test_x conftest$ac_exeext
28250 pgac_cv_func_posix_signals=yes
28252 $as_echo "$as_me: failed program was:" >&5
28253 sed 's/^/| /' conftest.$ac_ext >&5
28255 pgac_cv_func_posix_signals=no
28258 rm -rf conftest.dSYM
28259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28260 conftest$ac_exeext conftest.$ac_ext
28262 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28263 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28264 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28266 cat >>confdefs.h <<\_ACEOF
28267 #define HAVE_POSIX_SIGNALS /**/
28271 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28273 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28274 { { $as_echo "$as_me:$LINENO: error:
28275 Thread-safety requires POSIX signals, which are not supported by this
28276 operating system; use --disable-thread-safety to disable thread safety." >&5
28277 $as_echo "$as_me: error:
28278 Thread-safety requires POSIX signals, which are not supported by this
28279 operating system; use --disable-thread-safety to disable thread safety." >&2;}
28280 { (exit 1); exit 1; }; }
28284 # SunOS doesn't handle negative byte comparisons properly with +/- return
28285 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28286 $as_echo_n "checking for working memcmp... " >&6; }
28287 if test "${ac_cv_func_memcmp_working+set}" = set; then
28288 $as_echo_n "(cached) " >&6
28290 if test "$cross_compiling" = yes; then
28291 ac_cv_func_memcmp_working=no
28293 cat >conftest.$ac_ext <<_ACEOF
28296 cat confdefs.h >>conftest.$ac_ext
28297 cat >>conftest.$ac_ext <<_ACEOF
28298 /* end confdefs.h. */
28299 $ac_includes_default
28304 /* Some versions of memcmp are not 8-bit clean. */
28305 char c0 = '\100', c1 = '\200', c2 = '\201';
28306 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28309 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28310 or more and with at least one buffer not starting on a 4-byte boundary.
28311 William Lewis provided this test program. */
28316 for (i = 0; i < 4; i++)
28320 strcpy (a, "--------01111111");
28321 strcpy (b, "--------10000000");
28322 if (memcmp (a, b, 16) >= 0)
28332 rm -f conftest$ac_exeext
28333 if { (ac_try="$ac_link"
28334 case "(($ac_try" in
28335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28336 *) ac_try_echo=$ac_try;;
28338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28339 $as_echo "$ac_try_echo") >&5
28340 (eval "$ac_link") 2>&5
28342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28344 { (case "(($ac_try" in
28345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28346 *) ac_try_echo=$ac_try;;
28348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28349 $as_echo "$ac_try_echo") >&5
28350 (eval "$ac_try") 2>&5
28352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28353 (exit $ac_status); }; }; then
28354 ac_cv_func_memcmp_working=yes
28356 $as_echo "$as_me: program exited with status $ac_status" >&5
28357 $as_echo "$as_me: failed program was:" >&5
28358 sed 's/^/| /' conftest.$ac_ext >&5
28360 ( exit $ac_status )
28361 ac_cv_func_memcmp_working=no
28363 rm -rf conftest.dSYM
28364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28369 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28370 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28371 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28372 *" memcmp.$ac_objext "* ) ;;
28373 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28380 # Select semaphore implementation type.
28381 if test "$PORTNAME" != "win32"; then
28382 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
28384 cat >>confdefs.h <<\_ACEOF
28385 #define USE_NAMED_POSIX_SEMAPHORES 1
28388 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28390 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
28392 cat >>confdefs.h <<\_ACEOF
28393 #define USE_UNNAMED_POSIX_SEMAPHORES 1
28396 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
28399 cat >>confdefs.h <<\_ACEOF
28400 #define USE_SYSV_SEMAPHORES 1
28403 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
28408 cat >>confdefs.h <<\_ACEOF
28409 #define USE_WIN32_SEMAPHORES 1
28412 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
28416 # Select shared-memory implementation type.
28417 if test "$PORTNAME" != "win32"; then
28419 cat >>confdefs.h <<\_ACEOF
28420 #define USE_SYSV_SHARED_MEMORY 1
28423 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
28426 cat >>confdefs.h <<\_ACEOF
28427 #define USE_WIN32_SHARED_MEMORY 1
28430 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
28433 # Select latch implementation type.
28434 if test "$PORTNAME" != "win32"; then
28435 LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
28437 LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
28440 # If not set in template file, set bytes to use libc memset()
28441 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
28442 MEMSET_LOOP_LIMIT=1024
28445 cat >>confdefs.h <<_ACEOF
28446 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
28451 if test "$enable_nls" = yes ; then
28453 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
28454 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
28455 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28456 $as_echo_n "(cached) " >&6
28458 ac_func_search_save_LIBS=$LIBS
28459 cat >conftest.$ac_ext <<_ACEOF
28462 cat confdefs.h >>conftest.$ac_ext
28463 cat >>conftest.$ac_ext <<_ACEOF
28464 /* end confdefs.h. */
28466 /* Override any GCC internal prototype to avoid an error.
28467 Use char because int might match the return type of a GCC
28468 builtin and then its argument prototype would still apply. */
28472 char bind_textdomain_codeset ();
28476 return bind_textdomain_codeset ();
28481 for ac_lib in '' intl; do
28482 if test -z "$ac_lib"; then
28483 ac_res="none required"
28486 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28488 rm -f conftest.$ac_objext conftest$ac_exeext
28489 if { (ac_try="$ac_link"
28490 case "(($ac_try" in
28491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28492 *) ac_try_echo=$ac_try;;
28494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28495 $as_echo "$ac_try_echo") >&5
28496 (eval "$ac_link") 2>conftest.er1
28498 grep -v '^ *+' conftest.er1 >conftest.err
28500 cat conftest.err >&5
28501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502 (exit $ac_status); } && {
28503 test -z "$ac_c_werror_flag" ||
28504 test ! -s conftest.err
28505 } && test -s conftest$ac_exeext && {
28506 test "$cross_compiling" = yes ||
28507 $as_test_x conftest$ac_exeext
28509 ac_cv_search_bind_textdomain_codeset=$ac_res
28511 $as_echo "$as_me: failed program was:" >&5
28512 sed 's/^/| /' conftest.$ac_ext >&5
28517 rm -rf conftest.dSYM
28518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28520 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28524 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
28527 ac_cv_search_bind_textdomain_codeset=no
28529 rm conftest.$ac_ext
28530 LIBS=$ac_func_search_save_LIBS
28532 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
28533 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
28534 ac_res=$ac_cv_search_bind_textdomain_codeset
28535 if test "$ac_res" != no; then
28536 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28539 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
28540 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
28541 { (exit 1); exit 1; }; }
28544 if test "${ac_cv_header_libintl_h+set}" = set; then
28545 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28546 $as_echo_n "checking for libintl.h... " >&6; }
28547 if test "${ac_cv_header_libintl_h+set}" = set; then
28548 $as_echo_n "(cached) " >&6
28550 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28551 $as_echo "$ac_cv_header_libintl_h" >&6; }
28553 # Is the header compilable?
28554 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
28555 $as_echo_n "checking libintl.h usability... " >&6; }
28556 cat >conftest.$ac_ext <<_ACEOF
28559 cat confdefs.h >>conftest.$ac_ext
28560 cat >>conftest.$ac_ext <<_ACEOF
28561 /* end confdefs.h. */
28562 $ac_includes_default
28563 #include <libintl.h>
28565 rm -f conftest.$ac_objext
28566 if { (ac_try="$ac_compile"
28567 case "(($ac_try" in
28568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28569 *) ac_try_echo=$ac_try;;
28571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28572 $as_echo "$ac_try_echo") >&5
28573 (eval "$ac_compile") 2>conftest.er1
28575 grep -v '^ *+' conftest.er1 >conftest.err
28577 cat conftest.err >&5
28578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579 (exit $ac_status); } && {
28580 test -z "$ac_c_werror_flag" ||
28581 test ! -s conftest.err
28582 } && test -s conftest.$ac_objext; then
28583 ac_header_compiler=yes
28585 $as_echo "$as_me: failed program was:" >&5
28586 sed 's/^/| /' conftest.$ac_ext >&5
28588 ac_header_compiler=no
28591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28592 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28593 $as_echo "$ac_header_compiler" >&6; }
28595 # Is the header present?
28596 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
28597 $as_echo_n "checking libintl.h presence... " >&6; }
28598 cat >conftest.$ac_ext <<_ACEOF
28601 cat confdefs.h >>conftest.$ac_ext
28602 cat >>conftest.$ac_ext <<_ACEOF
28603 /* end confdefs.h. */
28604 #include <libintl.h>
28606 if { (ac_try="$ac_cpp conftest.$ac_ext"
28607 case "(($ac_try" in
28608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28609 *) ac_try_echo=$ac_try;;
28611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28612 $as_echo "$ac_try_echo") >&5
28613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28615 grep -v '^ *+' conftest.er1 >conftest.err
28617 cat conftest.err >&5
28618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); } >/dev/null && {
28620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28621 test ! -s conftest.err
28623 ac_header_preproc=yes
28625 $as_echo "$as_me: failed program was:" >&5
28626 sed 's/^/| /' conftest.$ac_ext >&5
28628 ac_header_preproc=no
28631 rm -f conftest.err conftest.$ac_ext
28632 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28633 $as_echo "$ac_header_preproc" >&6; }
28635 # So? What about this header?
28636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28638 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28639 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28640 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
28641 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
28642 ac_header_preproc=yes
28645 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
28646 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
28647 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
28648 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
28649 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
28650 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
28651 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
28652 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28653 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
28654 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
28655 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
28656 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28658 ## ---------------------------------------- ##
28659 ## Report this to pgsql-bugs@postgresql.org ##
28660 ## ---------------------------------------- ##
28662 ) | sed "s/^/$as_me: WARNING: /" >&2
28665 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28666 $as_echo_n "checking for libintl.h... " >&6; }
28667 if test "${ac_cv_header_libintl_h+set}" = set; then
28668 $as_echo_n "(cached) " >&6
28670 ac_cv_header_libintl_h=$ac_header_preproc
28672 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28673 $as_echo "$ac_cv_header_libintl_h" >&6; }
28676 if test "x$ac_cv_header_libintl_h" = x""yes; then
28679 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28680 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28681 { (exit 1); exit 1; }; }
28685 for ac_prog in msgfmt
28687 # Extract the first word of "$ac_prog", so it can be a program name with args.
28688 set dummy $ac_prog; ac_word=$2
28689 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28690 $as_echo_n "checking for $ac_word... " >&6; }
28691 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28692 $as_echo_n "(cached) " >&6
28694 if test -n "$MSGFMT"; then
28695 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28698 for as_dir in $PATH
28701 test -z "$as_dir" && as_dir=.
28702 for ac_exec_ext in '' $ac_executable_extensions; do
28703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28704 ac_cv_prog_MSGFMT="$ac_prog"
28705 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28714 MSGFMT=$ac_cv_prog_MSGFMT
28715 if test -n "$MSGFMT"; then
28716 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28717 $as_echo "$MSGFMT" >&6; }
28719 { $as_echo "$as_me:$LINENO: result: no" >&5
28720 $as_echo "no" >&6; }
28724 test -n "$MSGFMT" && break
28727 if test -z "$MSGFMT"; then
28728 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28729 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28730 { (exit 1); exit 1; }; }
28732 for ac_prog in msgmerge
28734 # Extract the first word of "$ac_prog", so it can be a program name with args.
28735 set dummy $ac_prog; ac_word=$2
28736 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28737 $as_echo_n "checking for $ac_word... " >&6; }
28738 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28739 $as_echo_n "(cached) " >&6
28741 if test -n "$MSGMERGE"; then
28742 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28745 for as_dir in $PATH
28748 test -z "$as_dir" && as_dir=.
28749 for ac_exec_ext in '' $ac_executable_extensions; do
28750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28751 ac_cv_prog_MSGMERGE="$ac_prog"
28752 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28761 MSGMERGE=$ac_cv_prog_MSGMERGE
28762 if test -n "$MSGMERGE"; then
28763 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28764 $as_echo "$MSGMERGE" >&6; }
28766 { $as_echo "$as_me:$LINENO: result: no" >&5
28767 $as_echo "no" >&6; }
28771 test -n "$MSGMERGE" && break
28774 for ac_prog in xgettext
28776 # Extract the first word of "$ac_prog", so it can be a program name with args.
28777 set dummy $ac_prog; ac_word=$2
28778 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28779 $as_echo_n "checking for $ac_word... " >&6; }
28780 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28781 $as_echo_n "(cached) " >&6
28783 if test -n "$XGETTEXT"; then
28784 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28787 for as_dir in $PATH
28790 test -z "$as_dir" && as_dir=.
28791 for ac_exec_ext in '' $ac_executable_extensions; do
28792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28793 ac_cv_prog_XGETTEXT="$ac_prog"
28794 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28803 XGETTEXT=$ac_cv_prog_XGETTEXT
28804 if test -n "$XGETTEXT"; then
28805 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28806 $as_echo "$XGETTEXT" >&6; }
28808 { $as_echo "$as_me:$LINENO: result: no" >&5
28809 $as_echo "no" >&6; }
28813 test -n "$XGETTEXT" && break
28819 # Check for Tcl configuration script tclConfig.sh
28820 if test "$with_tcl" = yes; then
28821 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28823 # Extract the first word of "$ac_prog", so it can be a program name with args.
28824 set dummy $ac_prog; ac_word=$2
28825 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28826 $as_echo_n "checking for $ac_word... " >&6; }
28827 if test "${ac_cv_path_TCLSH+set}" = set; then
28828 $as_echo_n "(cached) " >&6
28832 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28836 for as_dir in $PATH
28839 test -z "$as_dir" && as_dir=.
28840 for ac_exec_ext in '' $ac_executable_extensions; do
28841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28842 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28843 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28853 TCLSH=$ac_cv_path_TCLSH
28854 if test -n "$TCLSH"; then
28855 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28856 $as_echo "$TCLSH" >&6; }
28858 { $as_echo "$as_me:$LINENO: result: no" >&5
28859 $as_echo "no" >&6; }
28863 test -n "$TCLSH" && break
28866 if test x"$TCLSH" = x""; then
28867 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28868 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28869 { (exit 1); exit 1; }; }
28872 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28873 $as_echo_n "checking for tclConfig.sh... " >&6; }
28874 # Let user override test
28875 if test -z "$TCL_CONFIG_SH"; then
28876 pgac_test_dirs="$with_tclconfig"
28878 set X $pgac_test_dirs; shift
28879 if test $# -eq 0; then
28880 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28881 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28882 { (exit 1); exit 1; }; }
28883 set X `echo 'puts $auto_path' | $TCLSH`; shift
28887 if test -r "$pgac_dir/tclConfig.sh"; then
28888 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28894 if test -z "$TCL_CONFIG_SH"; then
28895 { $as_echo "$as_me:$LINENO: result: no" >&5
28896 $as_echo "no" >&6; }
28897 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28898 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28899 { (exit 1); exit 1; }; }
28901 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28902 $as_echo "$TCL_CONFIG_SH" >&6; }
28908 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28909 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28910 eval TCL_LIBS=\"$TCL_LIBS\"
28911 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28912 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28914 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28915 ac_save_CPPFLAGS=$CPPFLAGS
28916 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28917 if test "${ac_cv_header_tcl_h+set}" = set; then
28918 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28919 $as_echo_n "checking for tcl.h... " >&6; }
28920 if test "${ac_cv_header_tcl_h+set}" = set; then
28921 $as_echo_n "(cached) " >&6
28923 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28924 $as_echo "$ac_cv_header_tcl_h" >&6; }
28926 # Is the header compilable?
28927 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28928 $as_echo_n "checking tcl.h usability... " >&6; }
28929 cat >conftest.$ac_ext <<_ACEOF
28932 cat confdefs.h >>conftest.$ac_ext
28933 cat >>conftest.$ac_ext <<_ACEOF
28934 /* end confdefs.h. */
28935 $ac_includes_default
28938 rm -f conftest.$ac_objext
28939 if { (ac_try="$ac_compile"
28940 case "(($ac_try" in
28941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28942 *) ac_try_echo=$ac_try;;
28944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28945 $as_echo "$ac_try_echo") >&5
28946 (eval "$ac_compile") 2>conftest.er1
28948 grep -v '^ *+' conftest.er1 >conftest.err
28950 cat conftest.err >&5
28951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952 (exit $ac_status); } && {
28953 test -z "$ac_c_werror_flag" ||
28954 test ! -s conftest.err
28955 } && test -s conftest.$ac_objext; then
28956 ac_header_compiler=yes
28958 $as_echo "$as_me: failed program was:" >&5
28959 sed 's/^/| /' conftest.$ac_ext >&5
28961 ac_header_compiler=no
28964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28965 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28966 $as_echo "$ac_header_compiler" >&6; }
28968 # Is the header present?
28969 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28970 $as_echo_n "checking tcl.h presence... " >&6; }
28971 cat >conftest.$ac_ext <<_ACEOF
28974 cat confdefs.h >>conftest.$ac_ext
28975 cat >>conftest.$ac_ext <<_ACEOF
28976 /* end confdefs.h. */
28979 if { (ac_try="$ac_cpp conftest.$ac_ext"
28980 case "(($ac_try" in
28981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28982 *) ac_try_echo=$ac_try;;
28984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28985 $as_echo "$ac_try_echo") >&5
28986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28988 grep -v '^ *+' conftest.er1 >conftest.err
28990 cat conftest.err >&5
28991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992 (exit $ac_status); } >/dev/null && {
28993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28994 test ! -s conftest.err
28996 ac_header_preproc=yes
28998 $as_echo "$as_me: failed program was:" >&5
28999 sed 's/^/| /' conftest.$ac_ext >&5
29001 ac_header_preproc=no
29004 rm -f conftest.err conftest.$ac_ext
29005 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29006 $as_echo "$ac_header_preproc" >&6; }
29008 # So? What about this header?
29009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29011 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29012 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29013 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
29014 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
29015 ac_header_preproc=yes
29018 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
29019 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
29020 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
29021 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
29022 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
29023 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
29024 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
29025 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29026 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
29027 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
29028 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
29029 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
29031 ## ---------------------------------------- ##
29032 ## Report this to pgsql-bugs@postgresql.org ##
29033 ## ---------------------------------------- ##
29035 ) | sed "s/^/$as_me: WARNING: /" >&2
29038 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29039 $as_echo_n "checking for tcl.h... " >&6; }
29040 if test "${ac_cv_header_tcl_h+set}" = set; then
29041 $as_echo_n "(cached) " >&6
29043 ac_cv_header_tcl_h=$ac_header_preproc
29045 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29046 $as_echo "$ac_cv_header_tcl_h" >&6; }
29049 if test "x$ac_cv_header_tcl_h" = x""yes; then
29052 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
29053 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
29054 { (exit 1); exit 1; }; }
29058 CPPFLAGS=$ac_save_CPPFLAGS
29061 # check for <Python.h>
29062 if test "$with_python" = yes; then
29063 ac_save_CPPFLAGS=$CPPFLAGS
29064 CPPFLAGS="$python_includespec $CPPFLAGS"
29065 if test "${ac_cv_header_Python_h+set}" = set; then
29066 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29067 $as_echo_n "checking for Python.h... " >&6; }
29068 if test "${ac_cv_header_Python_h+set}" = set; then
29069 $as_echo_n "(cached) " >&6
29071 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29072 $as_echo "$ac_cv_header_Python_h" >&6; }
29074 # Is the header compilable?
29075 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
29076 $as_echo_n "checking Python.h usability... " >&6; }
29077 cat >conftest.$ac_ext <<_ACEOF
29080 cat confdefs.h >>conftest.$ac_ext
29081 cat >>conftest.$ac_ext <<_ACEOF
29082 /* end confdefs.h. */
29083 $ac_includes_default
29084 #include <Python.h>
29086 rm -f conftest.$ac_objext
29087 if { (ac_try="$ac_compile"
29088 case "(($ac_try" in
29089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29090 *) ac_try_echo=$ac_try;;
29092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29093 $as_echo "$ac_try_echo") >&5
29094 (eval "$ac_compile") 2>conftest.er1
29096 grep -v '^ *+' conftest.er1 >conftest.err
29098 cat conftest.err >&5
29099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100 (exit $ac_status); } && {
29101 test -z "$ac_c_werror_flag" ||
29102 test ! -s conftest.err
29103 } && test -s conftest.$ac_objext; then
29104 ac_header_compiler=yes
29106 $as_echo "$as_me: failed program was:" >&5
29107 sed 's/^/| /' conftest.$ac_ext >&5
29109 ac_header_compiler=no
29112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29113 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29114 $as_echo "$ac_header_compiler" >&6; }
29116 # Is the header present?
29117 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
29118 $as_echo_n "checking Python.h presence... " >&6; }
29119 cat >conftest.$ac_ext <<_ACEOF
29122 cat confdefs.h >>conftest.$ac_ext
29123 cat >>conftest.$ac_ext <<_ACEOF
29124 /* end confdefs.h. */
29125 #include <Python.h>
29127 if { (ac_try="$ac_cpp conftest.$ac_ext"
29128 case "(($ac_try" in
29129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29130 *) ac_try_echo=$ac_try;;
29132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29133 $as_echo "$ac_try_echo") >&5
29134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29136 grep -v '^ *+' conftest.er1 >conftest.err
29138 cat conftest.err >&5
29139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29140 (exit $ac_status); } >/dev/null && {
29141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29142 test ! -s conftest.err
29144 ac_header_preproc=yes
29146 $as_echo "$as_me: failed program was:" >&5
29147 sed 's/^/| /' conftest.$ac_ext >&5
29149 ac_header_preproc=no
29152 rm -f conftest.err conftest.$ac_ext
29153 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29154 $as_echo "$ac_header_preproc" >&6; }
29156 # So? What about this header?
29157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29159 { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
29160 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29161 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
29162 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
29163 ac_header_preproc=yes
29166 { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
29167 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
29168 { $as_echo "$as_me:$LINENO: WARNING: Python.h: check for missing prerequisite headers?" >&5
29169 $as_echo "$as_me: WARNING: Python.h: check for missing prerequisite headers?" >&2;}
29170 { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29171 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29172 { $as_echo "$as_me:$LINENO: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&5
29173 $as_echo "$as_me: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&2;}
29174 { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29175 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29176 { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29177 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29179 ## ---------------------------------------- ##
29180 ## Report this to pgsql-bugs@postgresql.org ##
29181 ## ---------------------------------------- ##
29183 ) | sed "s/^/$as_me: WARNING: /" >&2
29186 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29187 $as_echo_n "checking for Python.h... " >&6; }
29188 if test "${ac_cv_header_Python_h+set}" = set; then
29189 $as_echo_n "(cached) " >&6
29191 ac_cv_header_Python_h=$ac_header_preproc
29193 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29194 $as_echo "$ac_cv_header_Python_h" >&6; }
29197 if test "x$ac_cv_header_Python_h" = x""yes; then
29200 { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29201 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29202 { (exit 1); exit 1; }; }
29206 CPPFLAGS=$ac_save_CPPFLAGS
29210 # Check for DocBook and tools
29212 for ac_prog in onsgmls nsgmls
29214 # Extract the first word of "$ac_prog", so it can be a program name with args.
29215 set dummy $ac_prog; ac_word=$2
29216 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29217 $as_echo_n "checking for $ac_word... " >&6; }
29218 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29219 $as_echo_n "(cached) " >&6
29221 if test -n "$NSGMLS"; then
29222 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29225 for as_dir in $PATH
29228 test -z "$as_dir" && as_dir=.
29229 for ac_exec_ext in '' $ac_executable_extensions; do
29230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29231 ac_cv_prog_NSGMLS="$ac_prog"
29232 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29241 NSGMLS=$ac_cv_prog_NSGMLS
29242 if test -n "$NSGMLS"; then
29243 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
29244 $as_echo "$NSGMLS" >&6; }
29246 { $as_echo "$as_me:$LINENO: result: no" >&5
29247 $as_echo "no" >&6; }
29251 test -n "$NSGMLS" && break
29254 for ac_prog in openjade jade
29256 # Extract the first word of "$ac_prog", so it can be a program name with args.
29257 set dummy $ac_prog; ac_word=$2
29258 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29259 $as_echo_n "checking for $ac_word... " >&6; }
29260 if test "${ac_cv_prog_JADE+set}" = set; then
29261 $as_echo_n "(cached) " >&6
29263 if test -n "$JADE"; then
29264 ac_cv_prog_JADE="$JADE" # Let the user override the test.
29266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29267 for as_dir in $PATH
29270 test -z "$as_dir" && as_dir=.
29271 for ac_exec_ext in '' $ac_executable_extensions; do
29272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29273 ac_cv_prog_JADE="$ac_prog"
29274 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29283 JADE=$ac_cv_prog_JADE
29284 if test -n "$JADE"; then
29285 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
29286 $as_echo "$JADE" >&6; }
29288 { $as_echo "$as_me:$LINENO: result: no" >&5
29289 $as_echo "no" >&6; }
29293 test -n "$JADE" && break
29297 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
29298 $as_echo_n "checking for DocBook V4.2... " >&6; }
29299 if test "${pgac_cv_check_docbook+set}" = set; then
29300 $as_echo_n "(cached) " >&6
29302 cat >conftest.sgml <<EOF
29303 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
29305 <title>test</title>
29307 <title>random</title>
29309 <title>testsect</title>
29316 pgac_cv_check_docbook=no
29318 if test -n "$NSGMLS"; then
29319 $NSGMLS -s conftest.sgml 1>&5 2>&1
29320 if test $? -eq 0; then
29321 pgac_cv_check_docbook=yes
29324 rm -f conftest.sgml
29326 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
29327 $as_echo "$pgac_cv_check_docbook" >&6; }
29329 have_docbook=$pgac_cv_check_docbook
29332 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
29333 $as_echo_n "checking for DocBook stylesheets... " >&6; }
29334 if test "${pgac_cv_path_stylesheets+set}" = set; then
29335 $as_echo_n "(cached) " >&6
29337 if test -n "$DOCBOOKSTYLE"; then
29338 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
29340 for pgac_prefix in /usr /usr/local /opt /sw; do
29341 for pgac_infix in share lib; do
29342 for pgac_postfix in \
29343 sgml/stylesheets/nwalsh-modular \
29344 sgml/stylesheets/docbook \
29345 sgml/stylesheets/dsssl/docbook \
29346 sgml/docbook-dsssl \
29347 sgml/docbook/dsssl/modular \
29348 sgml/docbook/stylesheet/dsssl/modular \
29349 sgml/docbook/dsssl-stylesheets \
29350 sgml/dsssl/docbook-dsssl-nwalsh
29352 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
29353 if test -r "$pgac_candidate/html/docbook.dsl" \
29354 && test -r "$pgac_candidate/print/docbook.dsl"
29356 pgac_cv_path_stylesheets=$pgac_candidate
29365 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
29367 if test -n "$DOCBOOKSTYLE"; then
29368 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
29369 $as_echo "$DOCBOOKSTYLE" >&6; }
29371 { $as_echo "$as_me:$LINENO: result: no" >&5
29372 $as_echo "no" >&6; }
29374 if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then
29375 COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl"
29378 # Extract the first word of "collateindex.pl", so it can be a program name with args.
29379 set dummy collateindex.pl; ac_word=$2
29380 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29381 $as_echo_n "checking for $ac_word... " >&6; }
29382 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
29383 $as_echo_n "(cached) " >&6
29385 case $COLLATEINDEX in
29387 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
29390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29391 for as_dir in $PATH
29394 test -z "$as_dir" && as_dir=.
29395 for ac_exec_ext in '' $ac_executable_extensions; do
29396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29397 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
29398 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29408 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
29409 if test -n "$COLLATEINDEX"; then
29410 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
29411 $as_echo "$COLLATEINDEX" >&6; }
29413 { $as_echo "$as_me:$LINENO: result: no" >&5
29414 $as_echo "no" >&6; }
29419 for ac_prog in xsltproc
29421 # Extract the first word of "$ac_prog", so it can be a program name with args.
29422 set dummy $ac_prog; ac_word=$2
29423 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29424 $as_echo_n "checking for $ac_word... " >&6; }
29425 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
29426 $as_echo_n "(cached) " >&6
29428 if test -n "$XSLTPROC"; then
29429 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
29431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29432 for as_dir in $PATH
29435 test -z "$as_dir" && as_dir=.
29436 for ac_exec_ext in '' $ac_executable_extensions; do
29437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29438 ac_cv_prog_XSLTPROC="$ac_prog"
29439 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29448 XSLTPROC=$ac_cv_prog_XSLTPROC
29449 if test -n "$XSLTPROC"; then
29450 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
29451 $as_echo "$XSLTPROC" >&6; }
29453 { $as_echo "$as_me:$LINENO: result: no" >&5
29454 $as_echo "no" >&6; }
29458 test -n "$XSLTPROC" && break
29461 for ac_prog in osx sgml2xml sx
29463 # Extract the first word of "$ac_prog", so it can be a program name with args.
29464 set dummy $ac_prog; ac_word=$2
29465 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29466 $as_echo_n "checking for $ac_word... " >&6; }
29467 if test "${ac_cv_prog_OSX+set}" = set; then
29468 $as_echo_n "(cached) " >&6
29470 if test -n "$OSX"; then
29471 ac_cv_prog_OSX="$OSX" # Let the user override the test.
29473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29474 for as_dir in $PATH
29477 test -z "$as_dir" && as_dir=.
29478 for ac_exec_ext in '' $ac_executable_extensions; do
29479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29480 ac_cv_prog_OSX="$ac_prog"
29481 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29490 OSX=$ac_cv_prog_OSX
29491 if test -n "$OSX"; then
29492 { $as_echo "$as_me:$LINENO: result: $OSX" >&5
29493 $as_echo "$OSX" >&6; }
29495 { $as_echo "$as_me:$LINENO: result: no" >&5
29496 $as_echo "no" >&6; }
29500 test -n "$OSX" && break
29506 # We have to run the thread test near the end so we have all our symbols
29507 # defined. Cross compiling throws a warning.
29509 if test "$enable_thread_safety" = yes; then
29510 if test "$PORTNAME" != "win32"
29512 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
29513 $as_echo_n "checking thread safety of required library functions... " >&6; }
29517 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
29518 LIBS="$LIBS $PTHREAD_LIBS"
29519 if test "$cross_compiling" = yes; then
29520 { $as_echo "$as_me:$LINENO: result: maybe" >&5
29521 $as_echo "maybe" >&6; }
29522 { $as_echo "$as_me:$LINENO: WARNING:
29523 *** Skipping thread test program because of cross-compile build.
29524 *** Run the program in src/test/thread on the target machine.
29526 $as_echo "$as_me: WARNING:
29527 *** Skipping thread test program because of cross-compile build.
29528 *** Run the program in src/test/thread on the target machine.
29531 cat >conftest.$ac_ext <<_ACEOF
29534 cat confdefs.h >>conftest.$ac_ext
29535 cat >>conftest.$ac_ext <<_ACEOF
29536 /* end confdefs.h. */
29537 #include "$srcdir/src/test/thread/thread_test.c"
29539 rm -f conftest$ac_exeext
29540 if { (ac_try="$ac_link"
29541 case "(($ac_try" in
29542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29543 *) ac_try_echo=$ac_try;;
29545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29546 $as_echo "$ac_try_echo") >&5
29547 (eval "$ac_link") 2>&5
29549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29551 { (case "(($ac_try" in
29552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29553 *) ac_try_echo=$ac_try;;
29555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29556 $as_echo "$ac_try_echo") >&5
29557 (eval "$ac_try") 2>&5
29559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29560 (exit $ac_status); }; }; then
29561 { $as_echo "$as_me:$LINENO: result: yes" >&5
29562 $as_echo "yes" >&6; }
29564 $as_echo "$as_me: program exited with status $ac_status" >&5
29565 $as_echo "$as_me: failed program was:" >&5
29566 sed 's/^/| /' conftest.$ac_ext >&5
29568 ( exit $ac_status )
29569 { $as_echo "$as_me:$LINENO: result: no" >&5
29570 $as_echo "no" >&6; }
29571 { { $as_echo "$as_me:$LINENO: error: thread test program failed
29572 This platform is not thread-safe. Check the file 'config.log' or compile
29573 and run src/test/thread/thread_test for the exact reason.
29574 Use --disable-thread-safety to disable thread safety." >&5
29575 $as_echo "$as_me: error: thread test program failed
29576 This platform is not thread-safe. Check the file 'config.log' or compile
29577 and run src/test/thread/thread_test for the exact reason.
29578 Use --disable-thread-safety to disable thread safety." >&2;}
29579 { (exit 1); exit 1; }; }
29581 rm -rf conftest.dSYM
29582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29589 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
29590 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
29594 # If compiler will take -Wl,--as-needed (or various platform-specific
29595 # spellings thereof) then add that to LDFLAGS. This is much easier than
29596 # trying to filter LIBS to the minimum for each executable.
29597 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
29598 # libreadline; therefore we postpone testing it until we know what library
29599 # dependencies readline has. The test code will try to link with $LIBS.
29600 if test "$with_readline" = yes; then
29601 link_test_func=readline
29603 link_test_func=exit
29606 if test "$PORTNAME" = "darwin"; then
29607 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
29608 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
29609 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
29610 $as_echo_n "(cached) " >&6
29612 pgac_save_LDFLAGS=$LDFLAGS
29613 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
29614 if test "$cross_compiling" = yes; then
29615 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
29617 cat >conftest.$ac_ext <<_ACEOF
29620 cat confdefs.h >>conftest.$ac_ext
29621 cat >>conftest.$ac_ext <<_ACEOF
29622 /* end confdefs.h. */
29623 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29632 rm -f conftest$ac_exeext
29633 if { (ac_try="$ac_link"
29634 case "(($ac_try" in
29635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29636 *) ac_try_echo=$ac_try;;
29638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29639 $as_echo "$ac_try_echo") >&5
29640 (eval "$ac_link") 2>&5
29642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29644 { (case "(($ac_try" in
29645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29646 *) ac_try_echo=$ac_try;;
29648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29649 $as_echo "$ac_try_echo") >&5
29650 (eval "$ac_try") 2>&5
29652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653 (exit $ac_status); }; }; then
29654 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
29656 $as_echo "$as_me: program exited with status $ac_status" >&5
29657 $as_echo "$as_me: failed program was:" >&5
29658 sed 's/^/| /' conftest.$ac_ext >&5
29660 ( exit $ac_status )
29661 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
29663 rm -rf conftest.dSYM
29664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29668 LDFLAGS="$pgac_save_LDFLAGS"
29670 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
29671 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
29672 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
29673 LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
29676 elif test "$PORTNAME" = "openbsd"; then
29677 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
29678 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
29679 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
29680 $as_echo_n "(cached) " >&6
29682 pgac_save_LDFLAGS=$LDFLAGS
29683 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
29684 if test "$cross_compiling" = yes; then
29685 pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
29687 cat >conftest.$ac_ext <<_ACEOF
29690 cat confdefs.h >>conftest.$ac_ext
29691 cat >>conftest.$ac_ext <<_ACEOF
29692 /* end confdefs.h. */
29693 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29702 rm -f conftest$ac_exeext
29703 if { (ac_try="$ac_link"
29704 case "(($ac_try" in
29705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29706 *) ac_try_echo=$ac_try;;
29708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29709 $as_echo "$ac_try_echo") >&5
29710 (eval "$ac_link") 2>&5
29712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29714 { (case "(($ac_try" in
29715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29716 *) ac_try_echo=$ac_try;;
29718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29719 $as_echo "$ac_try_echo") >&5
29720 (eval "$ac_try") 2>&5
29722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29723 (exit $ac_status); }; }; then
29724 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
29726 $as_echo "$as_me: program exited with status $ac_status" >&5
29727 $as_echo "$as_me: failed program was:" >&5
29728 sed 's/^/| /' conftest.$ac_ext >&5
29730 ( exit $ac_status )
29731 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
29733 rm -rf conftest.dSYM
29734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29738 LDFLAGS="$pgac_save_LDFLAGS"
29740 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
29741 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
29742 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
29743 LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
29747 { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
29748 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
29749 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
29750 $as_echo_n "(cached) " >&6
29752 pgac_save_LDFLAGS=$LDFLAGS
29753 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
29754 if test "$cross_compiling" = yes; then
29755 pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
29757 cat >conftest.$ac_ext <<_ACEOF
29760 cat confdefs.h >>conftest.$ac_ext
29761 cat >>conftest.$ac_ext <<_ACEOF
29762 /* end confdefs.h. */
29763 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29772 rm -f conftest$ac_exeext
29773 if { (ac_try="$ac_link"
29774 case "(($ac_try" in
29775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29776 *) ac_try_echo=$ac_try;;
29778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29779 $as_echo "$ac_try_echo") >&5
29780 (eval "$ac_link") 2>&5
29782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29784 { (case "(($ac_try" in
29785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29786 *) ac_try_echo=$ac_try;;
29788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29789 $as_echo "$ac_try_echo") >&5
29790 (eval "$ac_try") 2>&5
29792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29793 (exit $ac_status); }; }; then
29794 pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
29796 $as_echo "$as_me: program exited with status $ac_status" >&5
29797 $as_echo "$as_me: failed program was:" >&5
29798 sed 's/^/| /' conftest.$ac_ext >&5
29800 ( exit $ac_status )
29801 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
29803 rm -rf conftest.dSYM
29804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29808 LDFLAGS="$pgac_save_LDFLAGS"
29810 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
29811 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
29812 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
29813 LDFLAGS="$LDFLAGS -Wl,--as-needed"
29818 # Create compiler version string
29819 if test x"$GCC" = x"yes" ; then
29820 cc_string=`${CC} --version | sed q`
29821 case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
29822 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29823 cc_string=`${CC} -V 2>&1 | sed q`
29829 cat >>confdefs.h <<_ACEOF
29830 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
29834 # Supply a numeric version string for use by 3rd party add-ons
29835 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29836 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
29838 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29840 cat >>confdefs.h <<_ACEOF
29841 #define PG_VERSION_NUM $PG_VERSION_NUM
29846 # Begin output steps
29848 { $as_echo "$as_me:$LINENO: using compiler=$cc_string" >&5
29849 $as_echo "$as_me: using compiler=$cc_string" >&6;}
29850 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29851 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29852 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29853 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29854 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29855 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29857 # prepare build tree if outside source tree
29858 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29859 # Note 2: /bin/pwd might be better than shell's built-in at getting
29860 # a symlink-free name.
29861 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
29865 if test "$no_create" != yes; then
29866 $as_echo_n "preparing build tree... " >&6
29867 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29868 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29869 || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29870 $as_echo "$as_me: error: failed" >&2;}
29871 { (exit 1); exit 1; }; }
29872 { $as_echo "$as_me:$LINENO: result: done" >&5
29873 $as_echo "done" >&6; }
29879 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29882 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}"
29885 if test "$PORTNAME" = "win32"; then
29886 ac_config_commands="$ac_config_commands check_win32_symlinks"
29890 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29893 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29896 cat >confcache <<\_ACEOF
29897 # This file is a shell script that caches the results of configure
29898 # tests run on this system so they can be shared between configure
29899 # scripts and configure runs, see configure's option --config-cache.
29900 # It is not useful on other systems. If it contains results you don't
29901 # want to keep, you may remove or edit it.
29903 # config.status only pays attention to the cache file if you give it
29904 # the --recheck option to rerun configure.
29906 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29907 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29908 # following values.
29912 # The following way of writing the cache mishandles newlines in values,
29913 # but we know of no workaround that is simple, portable, and efficient.
29914 # So, we kill variables containing newlines.
29915 # Ultrix sh set writes to stderr and can't be redirected directly,
29916 # and sets the high bit in the cache file unless we assign to the vars.
29918 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29919 eval ac_val=\$$ac_var
29923 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29924 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29927 _ | IFS | as_nl) ;; #(
29928 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29929 *) $as_unset $ac_var ;;
29935 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29936 *${as_nl}ac_space=\ *)
29937 # `set' does not quote correctly, so add quotes (double-quote
29938 # substitution turns \\\\ into \\, and sed turns \\ into \).
29941 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29944 # `set' quotes correctly as required by POSIX, so do not add quotes.
29945 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29954 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29956 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29958 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29959 if test -w "$cache_file"; then
29960 test "x$cache_file" != "x/dev/null" &&
29961 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29962 $as_echo "$as_me: updating cache $cache_file" >&6;}
29963 cat confcache >$cache_file
29965 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29966 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29971 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29972 # Let make expand exec_prefix.
29973 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29975 DEFS=-DHAVE_CONFIG_H
29979 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29980 # 1. Remove the extension, and $U if already installed.
29981 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29982 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29983 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29984 # will be set to the directory where LIBOBJS objects are built.
29985 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29986 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29988 LIBOBJS=$ac_libobjs
29990 LTLIBOBJS=$ac_ltlibobjs
29995 : ${CONFIG_STATUS=./config.status}
29997 ac_clean_files_save=$ac_clean_files
29998 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29999 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30000 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30001 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30003 # Generated by $as_me.
30004 # Run this file to recreate the current configuration.
30005 # Compiler output produced by configure, useful for debugging
30006 # configure, is in config.log if it exists.
30009 ac_cs_recheck=false
30011 SHELL=\${CONFIG_SHELL-$SHELL}
30014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30015 ## --------------------- ##
30016 ## M4sh Initialization. ##
30017 ## --------------------- ##
30019 # Be more Bourne compatible
30020 DUALCASE=1; export DUALCASE # for MKS sh
30021 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30025 # is contrary to our usage. Disable this feature.
30026 alias -g '${1+"$@"}'='"$@"'
30027 setopt NO_GLOB_SUBST
30029 case `(set -o) 2>/dev/null` in
30030 *posix*) set -o posix ;;
30039 # Avoid depending upon Character Ranges.
30040 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30041 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30042 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30043 as_cr_digits='0123456789'
30044 as_cr_alnum=$as_cr_Letters$as_cr_digits
30049 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30050 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30051 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30052 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30053 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30054 as_echo='printf %s\n'
30055 as_echo_n='printf %s'
30057 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30058 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30059 as_echo_n='/usr/ucb/echo -n'
30061 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30062 as_echo_n_body='eval
30066 expr "X$arg" : "X\\(.*\\)$as_nl";
30067 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30069 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30071 export as_echo_n_body
30072 as_echo_n='sh -c $as_echo_n_body as_echo'
30074 export as_echo_body
30075 as_echo='sh -c $as_echo_body as_echo'
30078 # The user is always right.
30079 if test "${PATH_SEPARATOR+set}" != set; then
30081 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30082 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30087 # Support unset when possible.
30088 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30096 # We need space, tab and new line, in precisely that order. Quoting is
30097 # there to prevent editors from complaining about space-tab.
30098 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30099 # splitting by setting IFS to empty value.)
30102 # Find who we are. Look in the path if we contain no directory separator.
30104 *[\\/]* ) as_myself=$0 ;;
30105 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30106 for as_dir in $PATH
30109 test -z "$as_dir" && as_dir=.
30110 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30116 # We did not find ourselves, most probably we were run as `sh COMMAND'
30117 # in which case we are not to be found in the path.
30118 if test "x$as_myself" = x; then
30121 if test ! -f "$as_myself"; then
30122 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30123 { (exit 1); exit 1; }
30126 # Work around bugs in pre-3.0 UWIN ksh.
30127 for as_var in ENV MAIL MAILPATH
30128 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30140 # Required to use basename.
30141 if expr a : '\(a\)' >/dev/null 2>&1 &&
30142 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30148 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30149 as_basename=basename
30155 # Name of the executable.
30156 as_me=`$as_basename -- "$0" ||
30157 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30158 X"$0" : 'X\(//\)$' \| \
30159 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30161 sed '/^.*\/\([^/][^/]*\)\/*$/{
30180 as_lineno_1=$LINENO
30181 as_lineno_2=$LINENO
30182 test "x$as_lineno_1" != "x$as_lineno_2" &&
30183 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30185 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30186 # uniformly replaced by the line number. The first 'sed' inserts a
30187 # line-number line after each line using $LINENO; the second 'sed'
30188 # does the real work. The second script uses 'N' to pair each
30189 # line-number line with the line containing $LINENO, and appends
30190 # trailing '-' during substitution so that $LINENO is not a special
30191 # case at line end.
30192 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30193 # scripts with optimization help from Paolo Bonzini. Blame Lee
30194 # E. McMahon (1931-1989) for sed's syntax. :-)
30206 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30209 ' >$as_me.lineno &&
30210 chmod +x "$as_me.lineno" ||
30211 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30212 { (exit 1); exit 1; }; }
30214 # Don't try to exec as it changes $[0], causing all sort of problems
30215 # (the dirname of $[0] is not the place where we might find the
30216 # original and so on. Autoconf is especially sensitive to this).
30217 . "./$as_me.lineno"
30218 # Exit status is that of the last command.
30223 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30229 ECHO_C= ECHO_N= ECHO_T=
30230 case `echo -n x` in
30232 case `echo 'x\c'` in
30233 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30239 if expr a : '\(a\)' >/dev/null 2>&1 &&
30240 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30246 rm -f conf$$ conf$$.exe conf$$.file
30247 if test -d conf$$.dir; then
30248 rm -f conf$$.dir/conf$$.file
30251 mkdir conf$$.dir 2>/dev/null
30253 if (echo >conf$$.file) 2>/dev/null; then
30254 if ln -s conf$$.file conf$$ 2>/dev/null; then
30256 # ... but there are two gotchas:
30257 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30258 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30259 # In both cases, we have to default to `cp -p'.
30260 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30262 elif ln conf$$.file conf$$ 2>/dev/null; then
30270 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30271 rmdir conf$$.dir 2>/dev/null
30273 if mkdir -p . 2>/dev/null; then
30276 test -d ./-p && rmdir ./-p
30280 if test -x / >/dev/null 2>&1; then
30281 as_test_x='test -x'
30283 if ls -dL / >/dev/null 2>&1; then
30290 if test -d "$1"; then
30296 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30297 ???[sx]*):;;*)false;;esac;fi
30301 as_executable_p=$as_test_x
30303 # Sed expression to map a string onto a valid CPP name.
30304 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30306 # Sed expression to map a string onto a valid variable name.
30307 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30312 # Save the log message, to keep $[0] and so on meaningful, and to
30313 # report actual input values of CONFIG_FILES etc. instead of their
30314 # values after options handling.
30316 This file was extended by PostgreSQL $as_me 9.3devel, which was
30317 generated by GNU Autoconf 2.63. Invocation command line was
30319 CONFIG_FILES = $CONFIG_FILES
30320 CONFIG_HEADERS = $CONFIG_HEADERS
30321 CONFIG_LINKS = $CONFIG_LINKS
30322 CONFIG_COMMANDS = $CONFIG_COMMANDS
30325 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30330 case $ac_config_files in *"
30331 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30334 case $ac_config_headers in *"
30335 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30340 # Files that config.status was made for.
30341 config_files="$ac_config_files"
30342 config_headers="$ac_config_headers"
30343 config_links="$ac_config_links"
30344 config_commands="$ac_config_commands"
30348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30350 \`$as_me' instantiates files from templates according to the
30351 current configuration.
30353 Usage: $0 [OPTION]... [FILE]...
30355 -h, --help print this help, then exit
30356 -V, --version print version number and configuration settings, then exit
30357 -q, --quiet, --silent
30358 do not print progress messages
30359 -d, --debug don't remove temporary files
30360 --recheck update $as_me by reconfiguring in the same conditions
30361 --file=FILE[:TEMPLATE]
30362 instantiate the configuration file FILE
30363 --header=FILE[:TEMPLATE]
30364 instantiate the configuration header FILE
30366 Configuration files:
30369 Configuration headers:
30372 Configuration links:
30375 Configuration commands:
30378 Report bugs to <bug-autoconf@gnu.org>."
30381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30383 PostgreSQL config.status 9.3devel
30384 configured by $0, generated by GNU Autoconf 2.63,
30385 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30387 Copyright (C) 2008 Free Software Foundation, Inc.
30388 This config.status script is free software; the Free Software Foundation
30389 gives unlimited permission to copy, distribute and modify it."
30396 test -n "\$AWK" || AWK=awk
30399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30400 # The default lists apply if the user does not specify any file.
30406 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30407 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30418 # Handling of the options.
30419 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30421 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30422 $as_echo "$ac_cs_version"; exit ;;
30423 --debug | --debu | --deb | --de | --d | -d )
30425 --file | --fil | --fi | --f )
30428 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30430 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
30431 ac_need_defaults=false;;
30432 --header | --heade | --head | --hea )
30435 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30437 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
30438 ac_need_defaults=false;;
30440 # Conflict between --help and --header
30441 { $as_echo "$as_me: error: ambiguous option: $1
30442 Try \`$0 --help' for more information." >&2
30443 { (exit 1); exit 1; }; };;
30444 --help | --hel | -h )
30445 $as_echo "$ac_cs_usage"; exit ;;
30446 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30447 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30450 # This is an error.
30451 -*) { $as_echo "$as_me: error: unrecognized option: $1
30452 Try \`$0 --help' for more information." >&2
30453 { (exit 1); exit 1; }; } ;;
30455 *) ac_config_targets="$ac_config_targets $1"
30456 ac_need_defaults=false ;;
30462 ac_configure_extra_args=
30464 if $ac_cs_silent; then
30466 ac_configure_extra_args="$ac_configure_extra_args --silent"
30470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30471 if \$ac_cs_recheck; then
30472 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30474 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30475 CONFIG_SHELL='$SHELL'
30476 export CONFIG_SHELL
30481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30485 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30486 ## Running $as_me. ##
30492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30497 # Handling of arguments.
30498 for ac_config_target in $ac_config_targets
30500 case $ac_config_target in
30501 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
30502 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
30503 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
30504 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
30505 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
30506 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
30507 "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
30508 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
30509 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
30510 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
30511 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
30512 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
30513 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
30515 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30516 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30517 { (exit 1); exit 1; }; };;
30522 # If the user did not use the arguments to specify the items to instantiate,
30523 # then the envvar interface is used. Set only those that are not.
30524 # We use the long form for the default assignment because of an extremely
30525 # bizarre bug on SunOS 4.1.3.
30526 if $ac_need_defaults; then
30527 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30528 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30529 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
30530 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30533 # Have a temporary directory for convenience. Make it in the build tree
30534 # simply because there is no reason against having it here, and in addition,
30535 # creating and moving files from /tmp can sometimes cause problems.
30536 # Hook for its removal unless debugging.
30537 # Note that there is a small window in which the directory will not be cleaned:
30538 # after its creation but before its name has been assigned to `$tmp'.
30542 trap 'exit_status=$?
30543 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30545 trap '{ (exit 1); exit 1; }' 1 2 13 15
30547 # Create a (secure) tmp directory for tmp files.
30550 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30551 test -n "$tmp" && test -d "$tmp"
30554 tmp=./conf$$-$RANDOM
30555 (umask 077 && mkdir "$tmp")
30558 $as_echo "$as_me: cannot create a temporary directory in ." >&2
30559 { (exit 1); exit 1; }
30562 # Set up the scripts for CONFIG_FILES section.
30563 # No need to generate them if there are no CONFIG_FILES.
30564 # This happens for instance with `./config.status config.h'.
30565 if test -n "$CONFIG_FILES"; then
30569 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30570 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30573 ac_cs_awk_cr=$ac_cr
30576 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30581 echo "cat >conf$$subs.awk <<_ACEOF" &&
30582 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30584 } >conf$$subs.sh ||
30585 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30586 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30587 { (exit 1); exit 1; }; }
30588 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30590 for ac_last_try in false false false false false :; do
30591 . ./conf$$subs.sh ||
30592 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30593 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30594 { (exit 1); exit 1; }; }
30596 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30597 if test $ac_delim_n = $ac_delim_num; then
30599 elif $ac_last_try; then
30600 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30601 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30602 { (exit 1); exit 1; }; }
30604 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30607 rm -f conf$$subs.sh
30609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30610 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
30614 s/^/S["/; s/!.*/"]=/
30624 s/\(.\{148\}\).*/\1/
30626 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30631 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30638 s/\(.\{148\}\).*/\1/
30640 s/["\\]/\\&/g; s/^/"/; s/$/"/
30644 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30649 ' <conf$$subs.awk | sed '
30654 ' >>$CONFIG_STATUS || ac_write_fail=1
30655 rm -f conf$$subs.awk
30656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30658 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
30659 for (key in S) S_is_set[key] = 1
30665 nfields = split(line, field, "@")
30667 len = length(field[1])
30668 for (i = 2; i < nfields; i++) {
30670 keylen = length(key)
30671 if (S_is_set[key]) {
30673 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30674 len += length(value) + length(field[++i])
30685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30686 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30687 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30690 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
30691 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
30692 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
30693 { (exit 1); exit 1; }; }
30696 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30697 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30698 # trailing colons and then remove the whole line if VPATH becomes empty
30699 # (actually we leave an empty line to preserve line numbers).
30700 if test "x$srcdir" = x.; then
30701 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30702 s/:*\$(srcdir):*/:/
30703 s/:*\${srcdir}:*/:/
30705 s/^\([^=]*=[ ]*\):*/\1/
30711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30712 fi # test -n "$CONFIG_FILES"
30714 # Set up the scripts for CONFIG_HEADERS section.
30715 # No need to generate them if there are no CONFIG_HEADERS.
30716 # This happens for instance with `./config.status Makefile'.
30717 if test -n "$CONFIG_HEADERS"; then
30718 cat >"$tmp/defines.awk" <<\_ACAWK ||
30722 # Transform confdefs.h into an awk script `defines.awk', embedded as
30723 # here-document in config.status, that substitutes the proper values into
30724 # config.h.in to produce config.h.
30726 # Create a delimiter string that does not exist in confdefs.h, to ease
30727 # handling of long lines.
30729 for ac_last_try in false false :; do
30730 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
30731 if test -z "$ac_t"; then
30733 elif $ac_last_try; then
30734 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
30735 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
30736 { (exit 1); exit 1; }; }
30738 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30742 # For the awk script, D is an array of macro values keyed by name,
30743 # likewise P contains macro parameters if any. Preserve backslash
30744 # newline sequences.
30746 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30748 s/.\{148\}/&'"$ac_delim"'/g
30751 s/^[ ]*#[ ]*define[ ][ ]*/ /
30758 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30760 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
30764 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
30765 D["\1"]=" \3\\\\\\n"\\/p
30767 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30772 s/.\{148\}/&'"$ac_delim"'/g
30777 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30780 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30782 ' <confdefs.h | sed '
30783 s/'"$ac_delim"'/"\\\
30784 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30787 for (key in D) D_is_set[key] = 1
30790 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30792 split(line, arg, " ")
30793 if (arg[1] == "#") {
30797 defundef = substr(arg[1], 2)
30800 split(mac1, mac2, "(") #)
30802 prefix = substr(line, 1, index(line, defundef) - 1)
30803 if (D_is_set[macro]) {
30804 # Preserve the white space surrounding the "#".
30805 print prefix "define", macro P[macro] D[macro]
30808 # Replace #undef with comments. This is necessary, for example,
30809 # in the case of _POSIX_SOURCE, which is predefined and required
30810 # on some systems where configure will not decide to define it.
30811 if (defundef == "undef") {
30812 print "/*", prefix defundef, macro, "*/"
30820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30821 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30822 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30823 { (exit 1); exit 1; }; }
30824 fi # test -n "$CONFIG_HEADERS"
30827 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30832 :[FHLC]) ac_mode=$ac_tag; continue;;
30834 case $ac_mode$ac_tag in
30836 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30837 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30838 { (exit 1); exit 1; }; };;
30839 :[FH]-) ac_tag=-:-;;
30840 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30857 -) ac_f="$tmp/stdin";;
30858 *) # Look for the file first in the build tree, then in the source tree
30859 # (if the path is not absolute). The absolute path cannot be DOS-style,
30860 # because $ac_f cannot contain `:'.
30864 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30866 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30867 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30868 { (exit 1); exit 1; }; };;
30870 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30871 ac_file_inputs="$ac_file_inputs '$ac_f'"
30874 # Let's still pretend it is `configure' which instantiates (i.e., don't
30875 # use $as_me), people would be surprised to read:
30876 # /* config.h. Generated by config.status. */
30877 configure_input='Generated from '`
30878 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30880 if test x"$ac_file" != x-; then
30881 configure_input="$ac_file. $configure_input"
30882 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30883 $as_echo "$as_me: creating $ac_file" >&6;}
30885 # Neutralize special characters interpreted by sed in replacement strings.
30886 case $configure_input in #(
30887 *\&* | *\|* | *\\* )
30888 ac_sed_conf_input=`$as_echo "$configure_input" |
30889 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30890 *) ac_sed_conf_input=$configure_input;;
30894 *:-:* | *:-) cat >"$tmp/stdin" \
30895 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30896 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30897 { (exit 1); exit 1; }; } ;;
30902 ac_dir=`$as_dirname -- "$ac_file" ||
30903 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30904 X"$ac_file" : 'X\(//\)[^/]' \| \
30905 X"$ac_file" : 'X\(//\)$' \| \
30906 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30907 $as_echo X"$ac_file" |
30908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30912 /^X\(\/\/\)[^/].*/{
30927 -*) as_dir=./$as_dir;;
30929 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30933 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30934 *) as_qdir=$as_dir;;
30936 as_dirs="'$as_qdir' $as_dirs"
30937 as_dir=`$as_dirname -- "$as_dir" ||
30938 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30939 X"$as_dir" : 'X\(//\)[^/]' \| \
30940 X"$as_dir" : 'X\(//\)$' \| \
30941 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30942 $as_echo X"$as_dir" |
30943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30947 /^X\(\/\/\)[^/].*/{
30960 test -d "$as_dir" && break
30962 test -z "$as_dirs" || eval "mkdir $as_dirs"
30963 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30964 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30965 { (exit 1); exit 1; }; }; }
30969 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30971 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30972 # A ".." for each directory in $ac_dir_suffix.
30973 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30974 case $ac_top_builddir_sub in
30975 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30976 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30979 ac_abs_top_builddir=$ac_pwd
30980 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30981 # for backward compatibility:
30982 ac_top_builddir=$ac_top_build_prefix
30985 .) # We are building in place.
30987 ac_top_srcdir=$ac_top_builddir_sub
30988 ac_abs_top_srcdir=$ac_pwd ;;
30989 [\\/]* | ?:[\\/]* ) # Absolute name.
30990 ac_srcdir=$srcdir$ac_dir_suffix;
30991 ac_top_srcdir=$srcdir
30992 ac_abs_top_srcdir=$srcdir ;;
30993 *) # Relative name.
30994 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30995 ac_top_srcdir=$ac_top_build_prefix$srcdir
30996 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30998 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31008 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31009 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31011 ac_MKDIR_P=$MKDIR_P
31013 [\\/$]* | ?:[\\/]* ) ;;
31014 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31019 # If the template does not know about datarootdir, expand it.
31020 # FIXME: This hack should be removed a few years after 2.60.
31021 ac_datarootdir_hack=; ac_datarootdir_seen=
31034 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31035 *datarootdir*) ac_datarootdir_seen=yes;;
31036 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31037 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31038 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31041 ac_datarootdir_hack='
31042 s&@datadir@&$datadir&g
31043 s&@docdir@&$docdir&g
31044 s&@infodir@&$infodir&g
31045 s&@localedir@&$localedir&g
31046 s&@mandir@&$mandir&g
31047 s&\\\${datarootdir}&$datarootdir&g' ;;
31051 # Neutralize VPATH when `$srcdir' = `.'.
31052 # Shell code in configure.ac might set extrasub.
31053 # FIXME: do we really want to maintain this feature?
31054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31055 ac_sed_extra="$ac_vpsub
31058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31060 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31061 s|@configure_input@|$ac_sed_conf_input|;t t
31062 s&@top_builddir@&$ac_top_builddir_sub&;t t
31063 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31064 s&@srcdir@&$ac_srcdir&;t t
31065 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31066 s&@top_srcdir@&$ac_top_srcdir&;t t
31067 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31068 s&@builddir@&$ac_builddir&;t t
31069 s&@abs_builddir@&$ac_abs_builddir&;t t
31070 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31071 s&@INSTALL@&$ac_INSTALL&;t t
31072 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31073 $ac_datarootdir_hack
31075 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31076 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31077 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31078 { (exit 1); exit 1; }; }
31080 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31081 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31082 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31083 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31084 which seems to be undefined. Please make sure it is defined." >&5
31085 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31086 which seems to be undefined. Please make sure it is defined." >&2;}
31090 -) cat "$tmp/out" && rm -f "$tmp/out";;
31091 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31093 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31094 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31095 { (exit 1); exit 1; }; }
31101 if test x"$ac_file" != x-; then
31103 $as_echo "/* $configure_input */" \
31104 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31105 } >"$tmp/config.h" \
31106 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31107 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31108 { (exit 1); exit 1; }; }
31109 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31110 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31111 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31114 mv "$tmp/config.h" "$ac_file" \
31115 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31116 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31117 { (exit 1); exit 1; }; }
31120 $as_echo "/* $configure_input */" \
31121 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31122 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31123 $as_echo "$as_me: error: could not create -" >&2;}
31124 { (exit 1); exit 1; }; }
31132 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31135 # Prefer the file from the source tree if names are identical.
31136 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31137 ac_source=$srcdir/$ac_source
31140 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31141 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31143 if test ! -r "$ac_source"; then
31144 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31145 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31146 { (exit 1); exit 1; }; }
31150 # Try a relative symlink, then a hard link, then a copy.
31152 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31153 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31155 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31156 ln "$ac_source" "$ac_file" 2>/dev/null ||
31157 cp -p "$ac_source" "$ac_file" ||
31158 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31159 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31160 { (exit 1); exit 1; }; }
31163 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31164 $as_echo "$as_me: executing $ac_file commands" >&6;}
31169 case $ac_file$ac_mode in
31170 "check_win32_symlinks":C)
31171 # Links sometimes fail undetected on Mingw -
31172 # so here we detect it and warn the user
31173 for FILE in $CONFIG_LINKS
31175 # test -e works for symlinks in the MinGW console
31176 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31177 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31180 "src/include/pg_config.h":H)
31181 # Update timestamp for pg_config.h (see Makefile.global)
31182 echo >src/include/stamp-h
31184 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31190 { (exit 0); exit 0; }
31192 chmod +x $CONFIG_STATUS
31193 ac_clean_files=$ac_clean_files_save
31195 test $ac_write_fail = 0 ||
31196 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31197 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31198 { (exit 1); exit 1; }; }
31201 # configure is writing to config.log, and then calls config.status.
31202 # config.status does its own redirection, appending to config.log.
31203 # Unfortunately, on DOS this fails, as config.log is still kept open
31204 # by configure, so config.status won't be able to write to it; its
31205 # output is simply discarded. So we exec the FD to /dev/null,
31206 # effectively closing config.log, so it can be properly (re)opened and
31207 # appended to by config.status. When coming back to configure, we
31208 # need to make the FD available again.
31209 if test "$no_create" != yes; then
31211 ac_config_status_args=
31212 test "$silent" = yes &&
31213 ac_config_status_args="$ac_config_status_args --quiet"
31215 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31217 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31218 # would make configure fail if this is the last instruction.
31219 $ac_cs_success || { (exit 1); exit 1; }
31221 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31222 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31223 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}