2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 8.5devel.
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-2009, 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='8.5devel'
602 PACKAGE_STRING='PostgreSQL 8.5devel'
603 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
605 ac_unique_file="src/backend/access/common/heaptuple.c"
606 ac_default_prefix=/usr/local/pgsql
607 # Factoring default headers for most tests.
608 ac_includes_default="\
610 #ifdef HAVE_SYS_TYPES_H
611 # include <sys/types.h>
613 #ifdef HAVE_SYS_STAT_H
614 # include <sys/stat.h>
620 # ifdef HAVE_STDLIB_H
625 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
643 ac_subst_vars='LTLIBOBJS
674 python_additional_libs
791 program_transform_name
803 enable_option_checking
808 enable_integer_datetimes
826 enable_thread_safety_force
839 with_libedit_preferred
850 ac_precious_vars='build_alias
863 # Initialize some variables set by options.
865 ac_init_version=false
866 ac_unrecognized_opts=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
877 program_transform_name=s,x,x,
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902 infodir='${datarootdir}/info'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
915 # If the previous option needs an argument, assign it.
916 if test -n "$ac_prev"; then
917 eval $ac_prev=\$ac_option
923 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 # Accept the important Cygnus configure options, so we can diagnose typos.
929 case $ac_dashdash$ac_option in
933 -bindir | --bindir | --bindi | --bind | --bin | --bi)
935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 -build | --build | --buil | --bui | --bu)
939 ac_prev=build_alias ;;
940 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941 build_alias=$ac_optarg ;;
943 -cache-file | --cache-file | --cache-fil | --cache-fi \
944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945 ac_prev=cache_file ;;
946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948 cache_file=$ac_optarg ;;
951 cache_file=config.cache ;;
953 -datadir | --datadir | --datadi | --datad)
955 -datadir=* | --datadir=* | --datadi=* | --datad=*)
956 datadir=$ac_optarg ;;
958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959 | --dataroo | --dataro | --datar)
960 ac_prev=datarootdir ;;
961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963 datarootdir=$ac_optarg ;;
965 -disable-* | --disable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
970 { (exit 1); exit 1; }; }
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
980 eval enable_$ac_useropt=no ;;
982 -docdir | --docdir | --docdi | --doc | --do)
984 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
987 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
992 -enable-* | --enable-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
997 { (exit 1); exit 1; }; }
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1002 "enable_$ac_useropt"
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1007 eval enable_$ac_useropt=\$ac_optarg ;;
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1038 htmldir=$ac_optarg ;;
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1052 -libdir | --libdir | --libdi | --libd)
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1143 -psdir | --psdir | --psdi | --psd | --ps)
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156 sbindir=$ac_optarg ;;
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167 sharedstatedir=$ac_optarg ;;
1169 -site | --site | --sit)
1171 -site=* | --site=* | --sit=*)
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1202 { (exit 1); exit 1; }; }
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1212 eval with_$ac_useropt=\$ac_optarg ;;
1214 -without-* | --without-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1219 { (exit 1); exit 1; }; }
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1229 eval with_$ac_useropt=no ;;
1232 # Obsolete; use --with-x.
1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236 | --x-incl | --x-inc | --x-in | --x-i)
1237 ac_prev=x_includes ;;
1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240 x_includes=$ac_optarg ;;
1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244 ac_prev=x_libraries ;;
1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247 x_libraries=$ac_optarg ;;
1249 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1250 Try \`$0 --help' for more information." >&2
1251 { (exit 1); exit 1; }; }
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259 { (exit 1); exit 1; }; }
1260 eval $ac_envvar=\$ac_optarg
1261 export $ac_envvar ;;
1264 # FIXME: should be removed in autoconf 3.0.
1265 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274 if test -n "$ac_prev"; then
1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1277 { (exit 1); exit 1; }; }
1280 if test -n "$ac_unrecognized_opts"; then
1281 case $enable_option_checking in
1283 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1284 { (exit 1); exit 1; }; } ;;
1285 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1289 # Check all directory arguments for consistency.
1290 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291 datadir sysconfdir sharedstatedir localstatedir includedir \
1292 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293 libdir localedir mandir
1295 eval ac_val=\$$ac_var
1296 # Remove trailing slashes.
1299 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1300 eval $ac_var=\$ac_val;;
1302 # Be sure to have absolute directory names.
1304 [\\/$]* | ?:[\\/]* ) continue;;
1305 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1307 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1308 { (exit 1); exit 1; }; }
1311 # There might be people who depend on the old broken behavior: `$host'
1312 # used to hold the argument of --host etc.
1313 # FIXME: To remove some day.
1316 target=$target_alias
1318 # FIXME: To remove some day.
1319 if test "x$host_alias" != x; then
1320 if test "x$build_alias" = x; then
1321 cross_compiling=maybe
1322 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1323 If a cross compiler is detected then cross compile mode will be used." >&2
1324 elif test "x$build_alias" != "x$host_alias"; then
1330 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332 test "$silent" = yes && exec 6>/dev/null
1335 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di=`ls -di .` &&
1337 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1339 { (exit 1); exit 1; }; }
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1342 { (exit 1); exit 1; }; }
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347 ac_srcdir_defaulted=yes
1348 # Try the directory containing this script, then the parent directory.
1349 ac_confdir=`$as_dirname -- "$as_myself" ||
1350 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351 X"$as_myself" : 'X\(//\)[^/]' \| \
1352 X"$as_myself" : 'X\(//\)$' \| \
1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354 $as_echo X"$as_myself" |
1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1377 ac_srcdir_defaulted=no
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1382 { (exit 1); exit 1; }; }
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1387 { (exit 1); exit 1; }; }
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 for ac_var in $ac_precious_vars; do
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_${ac_var}_value=\$${ac_var}
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 # Report the --help message.
1409 if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1413 \`configure' configures PostgreSQL 8.5devel to adapt to many kinds of systems.
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE. See below for descriptions of some of the useful variables.
1420 Defaults for the options are specified in brackets.
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
1427 -q, --quiet, --silent do not print \`checking...' messages
1428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1433 Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
1435 [$ac_default_prefix]
1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1444 For better control, use the options below.
1446 Fine tuning of the installation directories:
1447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --libdir=DIR object code libraries [EPREFIX/lib]
1454 --includedir=DIR C header files [PREFIX/include]
1455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458 --infodir=DIR info documentation [DATAROOTDIR/info]
1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460 --mandir=DIR man documentation [DATAROOTDIR/man]
1461 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
1471 --build=BUILD configure for building on BUILD [guessed]
1472 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1476 if test -n "$ac_init_help"; then
1477 case $ac_init_help in
1478 short | recursive ) echo "Configuration of PostgreSQL 8.5devel:";;
1483 --disable-option-checking ignore unrecognized --enable/--with options
1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1486 --disable-integer-datetimes
1487 disable 64-bit integer date/time support
1488 --enable-nls[=LANGUAGES]
1489 enable Native Language Support
1490 --disable-shared do not build shared libraries
1491 --disable-rpath do not embed shared library search path in
1493 --disable-spinlocks do not use spinlocks
1494 --enable-debug build with debugging symbols (-g)
1495 --enable-profiling build with profiling enabled
1496 --enable-coverage build with coverage testing instrumentation
1497 --enable-dtrace build with DTrace support
1498 --enable-depend turn on automatic dependency tracking
1499 --enable-cassert enable assertion checks (for debugging)
1500 --enable-thread-safety make client libraries thread-safe
1501 --enable-thread-safety-force
1502 force thread-safety despite thread test failure
1503 --disable-float4-byval disable float4 passed by value
1504 --disable-float8-byval disable float8 passed by value
1505 --disable-largefile omit support for large files
1508 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1509 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1510 --with-template=NAME override operating system template
1511 --with-includes=DIRS look for additional header files in DIRS
1512 --with-libraries=DIRS look for additional libraries in DIRS
1513 --with-libs=DIRS alternative spelling of --with-libraries
1514 --with-pgport=PORTNUM set default port number [5432]
1515 --with-blocksize=BLOCKSIZE
1516 set table block size in kB [8]
1517 --with-segsize=SEGSIZE set table segment size in GB [1]
1518 --with-wal-blocksize=BLOCKSIZE
1519 set WAL block size in kB [8]
1520 --with-wal-segsize=SEGSIZE
1521 set WAL segment size in MB [16]
1522 --with-CC=CMD set compiler (deprecated)
1523 --with-tcl build Tcl modules (PL/Tcl)
1524 --with-tclconfig=DIR tclConfig.sh is in DIR
1525 --with-perl build Perl modules (PL/Perl)
1526 --with-python build Python modules (PL/Python)
1527 --with-gssapi build with GSSAPI support
1528 --with-krb5 build with Kerberos 5 support
1529 --with-krb-srvnam=NAME default service principal name in Kerberos
1531 --with-pam build with PAM support
1532 --with-ldap build with LDAP support
1533 --with-bonjour build with Bonjour support
1534 --with-openssl build with OpenSSL support
1535 --without-readline do not use GNU Readline nor BSD Libedit for editing
1536 --with-libedit-preferred
1537 prefer BSD Libedit over GNU Readline
1538 --with-ossp-uuid use OSSP UUID library when building
1540 --with-libxml build with XML support
1541 --with-libxslt use XSLT support when building contrib/xml2
1542 --with-system-tzdata=DIR
1543 use system time zone data in DIR
1544 --without-zlib do not use Zlib
1545 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1547 Some influential environment variables:
1548 CC C compiler command
1549 CFLAGS C compiler flags
1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1551 nonstandard directory <lib dir>
1552 LIBS libraries to pass to the linker, e.g. -l<library>
1553 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554 you have headers in a nonstandard directory <include dir>
1556 LDFLAGS_SL linker flags for shared library linking
1558 location of DocBook stylesheets
1560 Use these variables to override the choices made by `configure' or to help
1561 it to find libraries and programs with nonstandard names/locations.
1563 Report bugs to <pgsql-bugs@postgresql.org>.
1568 if test "$ac_init_help" = "recursive"; then
1569 # If there are subdirs, report their specific --help.
1570 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1571 test -d "$ac_dir" ||
1572 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1580 # A ".." for each directory in $ac_dir_suffix.
1581 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1582 case $ac_top_builddir_sub in
1583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1587 ac_abs_top_builddir=$ac_pwd
1588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1589 # for backward compatibility:
1590 ac_top_builddir=$ac_top_build_prefix
1593 .) # We are building in place.
1595 ac_top_srcdir=$ac_top_builddir_sub
1596 ac_abs_top_srcdir=$ac_pwd ;;
1597 [\\/]* | ?:[\\/]* ) # Absolute name.
1598 ac_srcdir=$srcdir$ac_dir_suffix;
1599 ac_top_srcdir=$srcdir
1600 ac_abs_top_srcdir=$srcdir ;;
1602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1603 ac_top_srcdir=$ac_top_build_prefix$srcdir
1604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1608 cd "$ac_dir" || { ac_status=$?; continue; }
1609 # Check for guested configure.
1610 if test -f "$ac_srcdir/configure.gnu"; then
1612 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613 elif test -f "$ac_srcdir/configure"; then
1615 $SHELL "$ac_srcdir/configure" --help=recursive
1617 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619 cd "$ac_pwd" || { ac_status=$?; break; }
1623 test -n "$ac_init_help" && exit $ac_status
1624 if $ac_init_version; then
1626 PostgreSQL configure 8.5devel
1627 generated by GNU Autoconf 2.63
1629 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1630 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1631 This configure script is free software; the Free Software Foundation
1632 gives unlimited permission to copy, distribute and modify it.
1634 Copyright (c) 1996-2009, PostgreSQL Global Development Group
1638 cat >config.log <<_ACEOF
1639 This file contains any messages produced by compilers while
1640 running configure, to aid debugging if configure makes a mistake.
1642 It was created by PostgreSQL $as_me 8.5devel, which was
1643 generated by GNU Autoconf 2.63. Invocation command line was
1655 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1656 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1657 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1658 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1659 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1661 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1662 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1664 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1665 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1666 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1667 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1668 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1669 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1670 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1678 test -z "$as_dir" && as_dir=.
1679 $as_echo "PATH: $as_dir"
1695 # Keep a trace of the command line.
1696 # Strip out --no-create and --no-recursion so they do not pile up.
1697 # Strip out --silent because we don't want to record it for future runs.
1698 # Also quote any args containing shell meta-characters.
1699 # Make two passes to allow for proper duplicate-argument suppression.
1703 ac_must_keep_next=false
1709 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1710 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1711 | -silent | --silent | --silen | --sile | --sil)
1714 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1717 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1719 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1720 if test $ac_must_keep_next = true; then
1721 ac_must_keep_next=false # Got value, back to normal.
1724 *=* | --config-cache | -C | -disable-* | --disable-* \
1725 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1726 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1727 | -with-* | --with-* | -without-* | --without-* | --x)
1728 case "$ac_configure_args0 " in
1729 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1732 -* ) ac_must_keep_next=true ;;
1735 ac_configure_args="$ac_configure_args '$ac_arg'"
1740 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1741 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1743 # When interrupted or exit'd, cleanup temporary files, and complete
1744 # config.log. We remove comments because anyway the quotes in there
1745 # would cause problems or look ugly.
1746 # WARNING: Use '\'' to represent an apostrophe within the trap.
1747 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1748 trap 'exit_status=$?
1749 # Save into config.log some information that might help in debugging.
1754 ## ---------------- ##
1755 ## Cache variables. ##
1756 ## ---------------- ##
1759 # The following way of writing the cache mishandles newlines in values,
1761 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1762 eval ac_val=\$$ac_var
1766 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1767 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1770 _ | IFS | as_nl) ;; #(
1771 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1772 *) $as_unset $ac_var ;;
1777 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1778 *${as_nl}ac_space=\ *)
1780 "s/'\''/'\''\\\\'\'''\''/g;
1781 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1784 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1792 ## ----------------- ##
1793 ## Output variables. ##
1794 ## ----------------- ##
1797 for ac_var in $ac_subst_vars
1799 eval ac_val=\$$ac_var
1801 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1803 $as_echo "$ac_var='\''$ac_val'\''"
1807 if test -n "$ac_subst_files"; then
1809 ## ------------------- ##
1810 ## File substitutions. ##
1811 ## ------------------- ##
1814 for ac_var in $ac_subst_files
1816 eval ac_val=\$$ac_var
1818 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1820 $as_echo "$ac_var='\''$ac_val'\''"
1825 if test -s confdefs.h; then
1835 test "$ac_signal" != 0 &&
1836 $as_echo "$as_me: caught signal $ac_signal"
1837 $as_echo "$as_me: exit $exit_status"
1839 rm -f core *.core core.conftest.* &&
1840 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1843 for ac_signal in 1 2 13 15; do
1844 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1848 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1849 rm -f -r conftest* confdefs.h
1851 # Predefined preprocessor variables.
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_NAME "$PACKAGE_NAME"
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_STRING "$PACKAGE_STRING"
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1878 # Let the site file select an alternate cache file if it wants to.
1879 # Prefer an explicitly selected file to automatically selected ones.
1882 if test -n "$CONFIG_SITE"; then
1883 ac_site_file1=$CONFIG_SITE
1884 elif test "x$prefix" != xNONE; then
1885 ac_site_file1=$prefix/share/config.site
1886 ac_site_file2=$prefix/etc/config.site
1888 ac_site_file1=$ac_default_prefix/share/config.site
1889 ac_site_file2=$ac_default_prefix/etc/config.site
1891 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1893 test "x$ac_site_file" = xNONE && continue
1894 if test -r "$ac_site_file"; then
1895 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1896 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1897 sed 's/^/| /' "$ac_site_file" >&5
1902 if test -r "$cache_file"; then
1903 # Some versions of bash will fail to source /dev/null (special
1904 # files actually), so we avoid doing that.
1905 if test -f "$cache_file"; then
1906 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1907 $as_echo "$as_me: loading cache $cache_file" >&6;}
1909 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1910 *) . "./$cache_file";;
1914 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1915 $as_echo "$as_me: creating cache $cache_file" >&6;}
1919 # Check that the precious variables saved in the cache have kept the same
1921 ac_cache_corrupted=false
1922 for ac_var in $ac_precious_vars; do
1923 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1924 eval ac_new_set=\$ac_env_${ac_var}_set
1925 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1926 eval ac_new_val=\$ac_env_${ac_var}_value
1927 case $ac_old_set,$ac_new_set in
1929 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1930 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1931 ac_cache_corrupted=: ;;
1933 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1934 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1935 ac_cache_corrupted=: ;;
1938 if test "x$ac_old_val" != "x$ac_new_val"; then
1939 # differences in whitespace do not lead to failure.
1940 ac_old_val_w=`echo x $ac_old_val`
1941 ac_new_val_w=`echo x $ac_new_val`
1942 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1943 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1944 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1945 ac_cache_corrupted=:
1947 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1948 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1949 eval $ac_var=\$ac_old_val
1951 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1952 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1953 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1954 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1957 # Pass precious variables to config.status.
1958 if test "$ac_new_set" = set; then
1960 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1961 *) ac_arg=$ac_var=$ac_new_val ;;
1963 case " $ac_configure_args " in
1964 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1965 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1969 if $ac_cache_corrupted; then
1970 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1972 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1973 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1974 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1975 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1976 { (exit 1); exit 1; }; }
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2015 for ac_dir in config "$srcdir"/config; do
2016 if test -f "$ac_dir/install-sh"; then
2018 ac_install_sh="$ac_aux_dir/install-sh -c"
2020 elif test -f "$ac_dir/install.sh"; then
2022 ac_install_sh="$ac_aux_dir/install.sh -c"
2024 elif test -f "$ac_dir/shtool"; then
2026 ac_install_sh="$ac_aux_dir/shtool install -c"
2030 if test -z "$ac_aux_dir"; then
2031 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2032 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2033 { (exit 1); exit 1; }; }
2036 # These three variables are undocumented and unsupported,
2037 # and are intended to be withdrawn in a future Autoconf release.
2038 # They can cause serious problems if a builder's source tree is in a directory
2039 # whose full name contains unusual characters.
2040 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2041 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2042 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2046 configure_args=$ac_configure_args
2050 cat >>confdefs.h <<_ACEOF
2051 #define PG_VERSION "$PACKAGE_VERSION"
2054 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2057 cat >>confdefs.h <<_ACEOF
2058 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2062 # Make sure we can run config.sub.
2063 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2064 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2065 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2066 { (exit 1); exit 1; }; }
2068 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2069 $as_echo_n "checking build system type... " >&6; }
2070 if test "${ac_cv_build+set}" = set; then
2071 $as_echo_n "(cached) " >&6
2073 ac_build_alias=$build_alias
2074 test "x$ac_build_alias" = x &&
2075 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2076 test "x$ac_build_alias" = x &&
2077 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2078 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2079 { (exit 1); exit 1; }; }
2080 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2081 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2082 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2083 { (exit 1); exit 1; }; }
2086 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2087 $as_echo "$ac_cv_build" >&6; }
2088 case $ac_cv_build in
2090 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2091 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2092 { (exit 1); exit 1; }; };;
2095 ac_save_IFS=$IFS; IFS='-'
2101 # Remember, the first character of IFS is used to create $*,
2102 # except with old shells:
2105 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2108 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2109 $as_echo_n "checking host system type... " >&6; }
2110 if test "${ac_cv_host+set}" = set; then
2111 $as_echo_n "(cached) " >&6
2113 if test "x$host_alias" = x; then
2114 ac_cv_host=$ac_cv_build
2116 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2117 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2118 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2119 { (exit 1); exit 1; }; }
2123 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2124 $as_echo "$ac_cv_host" >&6; }
2127 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2128 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2129 { (exit 1); exit 1; }; };;
2132 ac_save_IFS=$IFS; IFS='-'
2138 # Remember, the first character of IFS is used to create $*,
2139 # except with old shells:
2142 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2147 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2148 $as_echo_n "checking which template to use... " >&6; }
2153 # Check whether --with-template was given.
2154 if test "${with_template+set}" = set; then
2155 withval=$with_template;
2158 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2159 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2160 { (exit 1); exit 1; }; }
2163 { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2164 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2165 { (exit 1); exit 1; }; }
2170 list) echo; ls "$srcdir/src/template"; exit;;
2171 *) if test -f "$srcdir/src/template/$with_template" ; then
2174 { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2175 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2176 { (exit 1); exit 1; }; }
2185 # --with-template not given
2188 aix*) template=aix ;;
2189 bsdi*) template=bsdi ;;
2190 cygwin*) template=cygwin ;;
2191 darwin*) template=darwin ;;
2192 dgux*) template=dgux ;;
2193 freebsd*) template=freebsd ;;
2194 hpux*) template=hpux ;;
2195 irix*) template=irix ;;
2196 linux*|gnu*|k*bsd*-gnu)
2198 mingw*) template=win32 ;;
2199 netbsd*) template=netbsd ;;
2200 nextstep*) template=nextstep ;;
2201 openbsd*) template=openbsd ;;
2202 osf*) template=osf ;;
2203 sco*) template=sco ;;
2204 solaris*) template=solaris ;;
2205 sunos*) template=sunos4 ;;
2207 case $host_vendor in
2208 univel) template=univel ;;
2210 sysv4*) template=svr4 ;;
2211 sysv5*) template=unixware ;;
2212 ultrix*) template=ultrix4 ;;
2215 if test x"$template" = x"" ; then
2216 { { $as_echo "$as_me:$LINENO: error:
2217 *******************************************************************
2218 PostgreSQL has apparently not been ported to your platform yet.
2219 To try a manual configuration, look into the src/template directory
2220 for a similar platform and use the '--with-template=' option.
2222 Please also contact <pgsql-bugs@postgresql.org> to see about
2223 rectifying this. Include the above 'checking host system type...'
2225 *******************************************************************
2227 $as_echo "$as_me: error:
2228 *******************************************************************
2229 PostgreSQL has apparently not been ported to your platform yet.
2230 To try a manual configuration, look into the src/template directory
2231 for a similar platform and use the '--with-template=' option.
2233 Please also contact <pgsql-bugs@postgresql.org> to see about
2234 rectifying this. Include the above 'checking host system type...'
2236 *******************************************************************
2238 { (exit 1); exit 1; }; }
2246 { $as_echo "$as_me:$LINENO: result: $template" >&5
2247 $as_echo "$template" >&6; }
2252 # Initialize default assumption that we do not need separate assembly code
2253 # for TAS (test-and-set). This can be overridden by the template file
2254 # when it's executed.
2261 ## Command line options
2265 # Add non-standard directories to the include path
2270 # Check whether --with-includes was given.
2271 if test "${with_includes+set}" = set; then
2272 withval=$with_includes;
2275 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2276 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2277 { (exit 1); exit 1; }; }
2280 { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2281 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2282 { (exit 1); exit 1; }; }
2295 # Add non-standard directories to the library search path
2300 # Check whether --with-libraries was given.
2301 if test "${with_libraries+set}" = set; then
2302 withval=$with_libraries;
2305 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2306 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2307 { (exit 1); exit 1; }; }
2310 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2311 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2312 { (exit 1); exit 1; }; }
2315 LIBRARY_DIRS=$withval
2326 # Check whether --with-libs was given.
2327 if test "${with_libs+set}" = set; then
2331 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2332 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2333 { (exit 1); exit 1; }; }
2336 { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2337 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2338 { (exit 1); exit 1; }; }
2341 LIBRARY_DIRS=$withval
2351 # 64-bit integer date/time storage: enabled by default.
2353 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2354 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2357 # Check whether --enable-integer-datetimes was given.
2358 if test "${enable_integer_datetimes+set}" = set; then
2359 enableval=$enable_integer_datetimes;
2363 cat >>confdefs.h <<\_ACEOF
2364 #define USE_INTEGER_DATETIMES 1
2372 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2373 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2374 { (exit 1); exit 1; }; }
2379 enable_integer_datetimes=yes
2381 cat >>confdefs.h <<\_ACEOF
2382 #define USE_INTEGER_DATETIMES 1
2388 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2389 $as_echo "$enable_integer_datetimes" >&6; }
2395 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2396 $as_echo_n "checking whether NLS is wanted... " >&6; }
2399 # Check whether --enable-nls was given.
2400 if test "${enable_nls+set}" = set; then
2401 enableval=$enable_nls;
2411 WANTED_LANGUAGES=$enableval
2421 if test "$enable_nls" = yes; then
2423 cat >>confdefs.h <<\_ACEOF
2424 #define ENABLE_NLS 1
2429 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2430 $as_echo "$enable_nls" >&6; }
2435 # Default port number (--with-pgport), default 5432
2437 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2438 $as_echo_n "checking for default port number... " >&6; }
2442 # Check whether --with-pgport was given.
2443 if test "${with_pgport+set}" = set; then
2444 withval=$with_pgport;
2447 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2448 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2449 { (exit 1); exit 1; }; }
2452 { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2453 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2454 { (exit 1); exit 1; }; }
2457 default_port=$withval
2466 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2467 $as_echo "$default_port" >&6; }
2468 # Need both of these because some places want an integer and some a string
2470 cat >>confdefs.h <<_ACEOF
2471 #define DEF_PGPORT ${default_port}
2475 cat >>confdefs.h <<_ACEOF
2476 #define DEF_PGPORT_STR "${default_port}"
2482 # Option to disable shared libraries
2486 # Check whether --enable-shared was given.
2487 if test "${enable_shared+set}" = set; then
2488 enableval=$enable_shared;
2497 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2498 $as_echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2499 { (exit 1); exit 1; }; }
2512 # '-rpath'-like feature can be disabled
2516 # Check whether --enable-rpath was given.
2517 if test "${enable_rpath+set}" = set; then
2518 enableval=$enable_rpath;
2527 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2528 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2529 { (exit 1); exit 1; }; }
2546 # Check whether --enable-spinlocks was given.
2547 if test "${enable_spinlocks+set}" = set; then
2548 enableval=$enable_spinlocks;
2557 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2558 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2559 { (exit 1); exit 1; }; }
2564 enable_spinlocks=yes
2571 # --enable-debug adds -g to compiler flags
2575 # Check whether --enable-debug was given.
2576 if test "${enable_debug+set}" = set; then
2577 enableval=$enable_debug;
2586 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2587 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2588 { (exit 1); exit 1; }; }
2601 # --enable-profiling enables gcc profiling
2605 # Check whether --enable-profiling was given.
2606 if test "${enable_profiling+set}" = set; then
2607 enableval=$enable_profiling;
2616 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2617 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2618 { (exit 1); exit 1; }; }
2631 # --enable-coverage enables generation of code coverage metrics with gcov
2635 # Check whether --enable-coverage was given.
2636 if test "${enable_coverage+set}" = set; then
2637 enableval=$enable_coverage;
2642 # Extract the first word of "$ac_prog", so it can be a program name with args.
2643 set dummy $ac_prog; ac_word=$2
2644 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2645 $as_echo_n "checking for $ac_word... " >&6; }
2646 if test "${ac_cv_prog_GCOV+set}" = set; then
2647 $as_echo_n "(cached) " >&6
2649 if test -n "$GCOV"; then
2650 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2659 ac_cv_prog_GCOV="$ac_prog"
2660 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 GCOV=$ac_cv_prog_GCOV
2670 if test -n "$GCOV"; then
2671 { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2672 $as_echo "$GCOV" >&6; }
2674 { $as_echo "$as_me:$LINENO: result: no" >&5
2675 $as_echo "no" >&6; }
2679 test -n "$GCOV" && break
2682 if test -z "$GCOV"; then
2683 { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2684 $as_echo "$as_me: error: gcov not found" >&2;}
2685 { (exit 1); exit 1; }; }
2689 # Extract the first word of "$ac_prog", so it can be a program name with args.
2690 set dummy $ac_prog; ac_word=$2
2691 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2692 $as_echo_n "checking for $ac_word... " >&6; }
2693 if test "${ac_cv_prog_LCOV+set}" = set; then
2694 $as_echo_n "(cached) " >&6
2696 if test -n "$LCOV"; then
2697 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 test -z "$as_dir" && as_dir=.
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706 ac_cv_prog_LCOV="$ac_prog"
2707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2716 LCOV=$ac_cv_prog_LCOV
2717 if test -n "$LCOV"; then
2718 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2719 $as_echo "$LCOV" >&6; }
2721 { $as_echo "$as_me:$LINENO: result: no" >&5
2722 $as_echo "no" >&6; }
2726 test -n "$LCOV" && break
2729 if test -z "$LCOV"; then
2730 { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2731 $as_echo "$as_me: error: lcov not found" >&2;}
2732 { (exit 1); exit 1; }; }
2734 for ac_prog in genhtml
2736 # Extract the first word of "$ac_prog", so it can be a program name with args.
2737 set dummy $ac_prog; ac_word=$2
2738 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2739 $as_echo_n "checking for $ac_word... " >&6; }
2740 if test "${ac_cv_prog_GENHTML+set}" = set; then
2741 $as_echo_n "(cached) " >&6
2743 if test -n "$GENHTML"; then
2744 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 test -z "$as_dir" && as_dir=.
2751 for ac_exec_ext in '' $ac_executable_extensions; do
2752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2753 ac_cv_prog_GENHTML="$ac_prog"
2754 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2763 GENHTML=$ac_cv_prog_GENHTML
2764 if test -n "$GENHTML"; then
2765 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2766 $as_echo "$GENHTML" >&6; }
2768 { $as_echo "$as_me:$LINENO: result: no" >&5
2769 $as_echo "no" >&6; }
2773 test -n "$GENHTML" && break
2776 if test -z "$GENHTML"; then
2777 { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2778 $as_echo "$as_me: error: genhtml not found" >&2;}
2779 { (exit 1); exit 1; }; }
2786 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2787 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2788 { (exit 1); exit 1; }; }
2805 # Check whether --enable-dtrace was given.
2806 if test "${enable_dtrace+set}" = set; then
2807 enableval=$enable_dtrace;
2811 cat >>confdefs.h <<\_ACEOF
2812 #define ENABLE_DTRACE 1
2815 for ac_prog in dtrace
2817 # Extract the first word of "$ac_prog", so it can be a program name with args.
2818 set dummy $ac_prog; ac_word=$2
2819 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2820 $as_echo_n "checking for $ac_word... " >&6; }
2821 if test "${ac_cv_prog_DTRACE+set}" = set; then
2822 $as_echo_n "(cached) " >&6
2824 if test -n "$DTRACE"; then
2825 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 test -z "$as_dir" && as_dir=.
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2834 ac_cv_prog_DTRACE="$ac_prog"
2835 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 DTRACE=$ac_cv_prog_DTRACE
2845 if test -n "$DTRACE"; then
2846 { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2847 $as_echo "$DTRACE" >&6; }
2849 { $as_echo "$as_me:$LINENO: result: no" >&5
2850 $as_echo "no" >&6; }
2854 test -n "$DTRACE" && break
2857 if test -z "$DTRACE"; then
2858 { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2859 $as_echo "$as_me: error: dtrace not found" >&2;}
2860 { (exit 1); exit 1; }; }
2868 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2869 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2870 { (exit 1); exit 1; }; }
2885 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2886 $as_echo_n "checking for block size... " >&6; }
2890 # Check whether --with-blocksize was given.
2891 if test "${with_blocksize+set}" = set; then
2892 withval=$with_blocksize;
2895 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2896 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2897 { (exit 1); exit 1; }; }
2900 { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2901 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2902 { (exit 1); exit 1; }; }
2914 case ${blocksize} in
2921 *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2922 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2923 { (exit 1); exit 1; }; }
2925 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2926 $as_echo "${blocksize}kB" >&6; }
2929 cat >>confdefs.h <<_ACEOF
2930 #define BLCKSZ ${BLCKSZ}
2935 # Relation segment size
2937 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2938 $as_echo_n "checking for segment size... " >&6; }
2942 # Check whether --with-segsize was given.
2943 if test "${with_segsize+set}" = set; then
2944 withval=$with_segsize;
2947 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2948 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2949 { (exit 1); exit 1; }; }
2952 { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2953 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2954 { (exit 1); exit 1; }; }
2966 # this expression is set up to avoid unnecessary integer overflow
2967 # blocksize is already guaranteed to be a factor of 1024
2968 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2969 test $? -eq 0 || exit 1
2970 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2971 $as_echo "${segsize}GB" >&6; }
2974 cat >>confdefs.h <<_ACEOF
2975 #define RELSEG_SIZE ${RELSEG_SIZE}
2982 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2983 $as_echo_n "checking for WAL block size... " >&6; }
2987 # Check whether --with-wal-blocksize was given.
2988 if test "${with_wal_blocksize+set}" = set; then
2989 withval=$with_wal_blocksize;
2992 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2993 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2994 { (exit 1); exit 1; }; }
2997 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2998 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2999 { (exit 1); exit 1; }; }
3002 wal_blocksize=$withval
3011 case ${wal_blocksize} in
3012 1) XLOG_BLCKSZ=1024;;
3013 2) XLOG_BLCKSZ=2048;;
3014 4) XLOG_BLCKSZ=4096;;
3015 8) XLOG_BLCKSZ=8192;;
3016 16) XLOG_BLCKSZ=16384;;
3017 32) XLOG_BLCKSZ=32768;;
3018 64) XLOG_BLCKSZ=65536;;
3019 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
3020 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3021 { (exit 1); exit 1; }; }
3023 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
3024 $as_echo "${wal_blocksize}kB" >&6; }
3027 cat >>confdefs.h <<_ACEOF
3028 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3035 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
3036 $as_echo_n "checking for WAL segment size... " >&6; }
3040 # Check whether --with-wal-segsize was given.
3041 if test "${with_wal_segsize+set}" = set; then
3042 withval=$with_wal_segsize;
3045 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3046 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3047 { (exit 1); exit 1; }; }
3050 { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3051 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3052 { (exit 1); exit 1; }; }
3055 wal_segsize=$withval
3064 case ${wal_segsize} in
3072 *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3073 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3074 { (exit 1); exit 1; }; }
3076 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3077 $as_echo "${wal_segsize}MB" >&6; }
3080 cat >>confdefs.h <<_ACEOF
3081 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3089 # For historical reasons you can also use --with-CC to specify the C compiler
3090 # to use, although the standard way to do this is to set the CC environment
3095 # Check whether --with-CC was given.
3096 if test "${with_CC+set}" = set; then
3100 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3101 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3102 { (exit 1); exit 1; }; }
3105 { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3106 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3107 { (exit 1); exit 1; }; }
3119 aix) pgac_cc_list="gcc xlc";;
3120 irix) pgac_cc_list="cc";; # no gcc
3121 *) pgac_cc_list="gcc cc";;
3125 ac_cpp='$CPP $CPPFLAGS'
3126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3129 if test -n "$ac_tool_prefix"; then
3130 for ac_prog in $pgac_cc_list
3132 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3133 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3134 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if test "${ac_cv_prog_CC+set}" = set; then
3137 $as_echo_n "(cached) " >&6
3139 if test -n "$CC"; then
3140 ac_cv_prog_CC="$CC" # Let the user override the test.
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 test -z "$as_dir" && as_dir=.
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3149 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3150 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3160 if test -n "$CC"; then
3161 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3162 $as_echo "$CC" >&6; }
3164 { $as_echo "$as_me:$LINENO: result: no" >&5
3165 $as_echo "no" >&6; }
3169 test -n "$CC" && break
3172 if test -z "$CC"; then
3174 for ac_prog in $pgac_cc_list
3176 # Extract the first word of "$ac_prog", so it can be a program name with args.
3177 set dummy $ac_prog; ac_word=$2
3178 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3179 $as_echo_n "checking for $ac_word... " >&6; }
3180 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3181 $as_echo_n "(cached) " >&6
3183 if test -n "$ac_ct_CC"; then
3184 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 test -z "$as_dir" && as_dir=.
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3193 ac_cv_prog_ac_ct_CC="$ac_prog"
3194 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3203 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3204 if test -n "$ac_ct_CC"; then
3205 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3206 $as_echo "$ac_ct_CC" >&6; }
3208 { $as_echo "$as_me:$LINENO: result: no" >&5
3209 $as_echo "no" >&6; }
3213 test -n "$ac_ct_CC" && break
3216 if test "x$ac_ct_CC" = x; then
3219 case $cross_compiling:$ac_tool_warned in
3221 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3223 ac_tool_warned=yes ;;
3230 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3232 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3233 See \`config.log' for more details." >&5
3234 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3235 See \`config.log' for more details." >&2;}
3236 { (exit 1); exit 1; }; }; }
3238 # Provide some information about the compiler.
3239 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3242 { (ac_try="$ac_compiler --version >&5"
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3248 $as_echo "$ac_try_echo") >&5
3249 (eval "$ac_compiler --version >&5") 2>&5
3251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }
3253 { (ac_try="$ac_compiler -v >&5"
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3259 $as_echo "$ac_try_echo") >&5
3260 (eval "$ac_compiler -v >&5") 2>&5
3262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }
3264 { (ac_try="$ac_compiler -V >&5"
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3270 $as_echo "$ac_try_echo") >&5
3271 (eval "$ac_compiler -V >&5") 2>&5
3273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }
3276 cat >conftest.$ac_ext <<_ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3291 ac_clean_files_save=$ac_clean_files
3292 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3293 # Try to create an executable without -o first, disregard a.out.
3294 # It will help us diagnose broken compilers, and finding out an intuition
3296 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3297 $as_echo_n "checking for C compiler default output file name... " >&6; }
3298 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3300 # The possible output files:
3301 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3304 for ac_file in $ac_files
3307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3308 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3313 if { (ac_try="$ac_link_default"
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3319 $as_echo "$ac_try_echo") >&5
3320 (eval "$ac_link_default") 2>&5
3322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); }; then
3324 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3325 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3326 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3327 # so that the user can short-circuit this test for compilers unknown to
3329 for ac_file in $ac_files ''
3331 test -f "$ac_file" || continue
3333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3336 # We found the default executable, but exeext='' is most
3340 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3342 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3344 # We set ac_cv_exeext here because the later test for it is not
3345 # safe: cross compilers may not add the suffix if given an `-o'
3346 # argument, so we may need to know it at that point already.
3347 # Even if this section looks crufty: it has the advantage of
3354 test "$ac_cv_exeext" = no && ac_cv_exeext=
3360 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3361 $as_echo "$ac_file" >&6; }
3362 if test -z "$ac_file"; then
3363 $as_echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3366 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3368 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3369 See \`config.log' for more details." >&5
3370 $as_echo "$as_me: error: C compiler cannot create executables
3371 See \`config.log' for more details." >&2;}
3372 { (exit 77); exit 77; }; }; }
3375 ac_exeext=$ac_cv_exeext
3377 # Check that the compiler produces executables we can run. If not, either
3378 # the compiler is broken, or we cross compile.
3379 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3380 $as_echo_n "checking whether the C compiler works... " >&6; }
3381 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3382 # If not cross compiling, check that we can run a simple program.
3383 if test "$cross_compiling" != yes; then
3384 if { ac_try='./$ac_file'
3385 { (case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3390 $as_echo "$ac_try_echo") >&5
3391 (eval "$ac_try") 2>&5
3393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; }; then
3397 if test "$cross_compiling" = maybe; then
3400 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3403 If you meant to cross compile, use \`--host'.
3404 See \`config.log' for more details." >&5
3405 $as_echo "$as_me: error: cannot run C compiled programs.
3406 If you meant to cross compile, use \`--host'.
3407 See \`config.log' for more details." >&2;}
3408 { (exit 1); exit 1; }; }; }
3412 { $as_echo "$as_me:$LINENO: result: yes" >&5
3413 $as_echo "yes" >&6; }
3415 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3416 ac_clean_files=$ac_clean_files_save
3417 # Check that the compiler produces executables we can run. If not, either
3418 # the compiler is broken, or we cross compile.
3419 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3420 $as_echo_n "checking whether we are cross compiling... " >&6; }
3421 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3422 $as_echo "$cross_compiling" >&6; }
3424 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3425 $as_echo_n "checking for suffix of executables... " >&6; }
3426 if { (ac_try="$ac_link"
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3432 $as_echo "$ac_try_echo") >&5
3433 (eval "$ac_link") 2>&5
3435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; then
3437 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3438 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3439 # work properly (i.e., refer to `conftest.exe'), while it won't with
3441 for ac_file in conftest.exe conftest conftest.*; do
3442 test -f "$ac_file" || continue
3444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3445 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3451 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3454 See \`config.log' for more details." >&5
3455 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3456 See \`config.log' for more details." >&2;}
3457 { (exit 1); exit 1; }; }; }
3460 rm -f conftest$ac_cv_exeext
3461 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3462 $as_echo "$ac_cv_exeext" >&6; }
3464 rm -f conftest.$ac_ext
3465 EXEEXT=$ac_cv_exeext
3467 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3468 $as_echo_n "checking for suffix of object files... " >&6; }
3469 if test "${ac_cv_objext+set}" = set; then
3470 $as_echo_n "(cached) " >&6
3472 cat >conftest.$ac_ext <<_ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3487 rm -f conftest.o conftest.obj
3488 if { (ac_try="$ac_compile"
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3494 $as_echo "$ac_try_echo") >&5
3495 (eval "$ac_compile") 2>&5
3497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }; then
3499 for ac_file in conftest.o conftest.obj conftest.*; do
3500 test -f "$ac_file" || continue;
3502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3503 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3508 $as_echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3511 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3514 See \`config.log' for more details." >&5
3515 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3516 See \`config.log' for more details." >&2;}
3517 { (exit 1); exit 1; }; }; }
3520 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3522 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3523 $as_echo "$ac_cv_objext" >&6; }
3524 OBJEXT=$ac_cv_objext
3526 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3527 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3528 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3529 $as_echo_n "(cached) " >&6
3531 cat >conftest.$ac_ext <<_ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h. */
3549 rm -f conftest.$ac_objext
3550 if { (ac_try="$ac_compile"
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3556 $as_echo "$ac_try_echo") >&5
3557 (eval "$ac_compile") 2>conftest.er1
3559 grep -v '^ *+' conftest.er1 >conftest.err
3561 cat conftest.err >&5
3562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563 (exit $ac_status); } && {
3564 test -z "$ac_c_werror_flag" ||
3565 test ! -s conftest.err
3566 } && test -s conftest.$ac_objext; then
3569 $as_echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3579 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3580 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3581 if test $ac_compiler_gnu = yes; then
3586 ac_test_CFLAGS=${CFLAGS+set}
3587 ac_save_CFLAGS=$CFLAGS
3588 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3589 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3590 if test "${ac_cv_prog_cc_g+set}" = set; then
3591 $as_echo_n "(cached) " >&6
3593 ac_save_c_werror_flag=$ac_c_werror_flag
3594 ac_c_werror_flag=yes
3597 cat >conftest.$ac_ext <<_ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3612 rm -f conftest.$ac_objext
3613 if { (ac_try="$ac_compile"
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3619 $as_echo "$ac_try_echo") >&5
3620 (eval "$ac_compile") 2>conftest.er1
3622 grep -v '^ *+' conftest.er1 >conftest.err
3624 cat conftest.err >&5
3625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } && {
3627 test -z "$ac_c_werror_flag" ||
3628 test ! -s conftest.err
3629 } && test -s conftest.$ac_objext; then
3632 $as_echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3636 cat >conftest.$ac_ext <<_ACEOF
3639 cat confdefs.h >>conftest.$ac_ext
3640 cat >>conftest.$ac_ext <<_ACEOF
3641 /* end confdefs.h. */
3651 rm -f conftest.$ac_objext
3652 if { (ac_try="$ac_compile"
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3658 $as_echo "$ac_try_echo") >&5
3659 (eval "$ac_compile") 2>conftest.er1
3661 grep -v '^ *+' conftest.er1 >conftest.err
3663 cat conftest.err >&5
3664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } && {
3666 test -z "$ac_c_werror_flag" ||
3667 test ! -s conftest.err
3668 } && test -s conftest.$ac_objext; then
3671 $as_echo "$as_me: failed program was:" >&5
3672 sed 's/^/| /' conftest.$ac_ext >&5
3674 ac_c_werror_flag=$ac_save_c_werror_flag
3676 cat >conftest.$ac_ext <<_ACEOF
3679 cat confdefs.h >>conftest.$ac_ext
3680 cat >>conftest.$ac_ext <<_ACEOF
3681 /* end confdefs.h. */
3691 rm -f conftest.$ac_objext
3692 if { (ac_try="$ac_compile"
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3698 $as_echo "$ac_try_echo") >&5
3699 (eval "$ac_compile") 2>conftest.er1
3701 grep -v '^ *+' conftest.er1 >conftest.err
3703 cat conftest.err >&5
3704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); } && {
3706 test -z "$ac_c_werror_flag" ||
3707 test ! -s conftest.err
3708 } && test -s conftest.$ac_objext; then
3711 $as_echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 ac_c_werror_flag=$ac_save_c_werror_flag
3726 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3727 $as_echo "$ac_cv_prog_cc_g" >&6; }
3728 if test "$ac_test_CFLAGS" = set; then
3729 CFLAGS=$ac_save_CFLAGS
3730 elif test $ac_cv_prog_cc_g = yes; then
3731 if test "$GCC" = yes; then
3737 if test "$GCC" = yes; then
3743 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3744 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3745 if test "${ac_cv_prog_cc_c89+set}" = set; then
3746 $as_echo_n "(cached) " >&6
3748 ac_cv_prog_cc_c89=no
3750 cat >conftest.$ac_ext <<_ACEOF
3753 cat confdefs.h >>conftest.$ac_ext
3754 cat >>conftest.$ac_ext <<_ACEOF
3755 /* end confdefs.h. */
3758 #include <sys/types.h>
3759 #include <sys/stat.h>
3760 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3761 struct buf { int x; };
3762 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3763 static char *e (p, i)
3769 static char *f (char * (*g) (char **, int), char **p, ...)
3774 s = g (p, va_arg (v,int));
3779 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3780 function prototypes and stuff, but not '\xHH' hex character constants.
3781 These don't provoke an error unfortunately, instead are silently treated
3782 as 'x'. The following induces an error, until -std is added to get
3783 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3784 array size at least. It's necessary to write '\x00'==0 to get something
3785 that's true only with -std. */
3786 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3788 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3789 inside strings and character constants. */
3791 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3793 int test (int i, double x);
3794 struct s1 {int (*f) (int a);};
3795 struct s2 {int (*f) (double a);};
3796 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3802 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3807 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3808 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3810 CC="$ac_save_CC $ac_arg"
3811 rm -f conftest.$ac_objext
3812 if { (ac_try="$ac_compile"
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3818 $as_echo "$ac_try_echo") >&5
3819 (eval "$ac_compile") 2>conftest.er1
3821 grep -v '^ *+' conftest.er1 >conftest.err
3823 cat conftest.err >&5
3824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); } && {
3826 test -z "$ac_c_werror_flag" ||
3827 test ! -s conftest.err
3828 } && test -s conftest.$ac_objext; then
3829 ac_cv_prog_cc_c89=$ac_arg
3831 $as_echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.$ac_ext >&5
3837 rm -f core conftest.err conftest.$ac_objext
3838 test "x$ac_cv_prog_cc_c89" != "xno" && break
3840 rm -f conftest.$ac_ext
3845 case "x$ac_cv_prog_cc_c89" in
3847 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3848 $as_echo "none needed" >&6; } ;;
3850 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3851 $as_echo "unsupported" >&6; } ;;
3853 CC="$CC $ac_cv_prog_cc_c89"
3854 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3855 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3860 ac_cpp='$CPP $CPPFLAGS'
3861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3866 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3867 # but has idiosyncrasies of its own. We assume icc will define
3868 # __INTEL_COMPILER regardless of CFLAGS.
3870 cat >conftest.$ac_ext <<_ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3880 #ifndef __INTEL_COMPILER
3887 rm -f conftest.$ac_objext
3888 if { (ac_try="$ac_compile"
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3894 $as_echo "$ac_try_echo") >&5
3895 (eval "$ac_compile") 2>conftest.er1
3897 grep -v '^ *+' conftest.er1 >conftest.err
3899 cat conftest.err >&5
3900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } && {
3902 test -z "$ac_c_werror_flag" ||
3903 test ! -s conftest.err
3904 } && test -s conftest.$ac_objext; then
3907 $as_echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915 # Check if it's Sun Studio compiler. We assume that
3916 # __SUNPRO_C will be defined for Sun Studio compilers
3917 cat >conftest.$ac_ext <<_ACEOF
3920 cat confdefs.h >>conftest.$ac_ext
3921 cat >>conftest.$ac_ext <<_ACEOF
3922 /* end confdefs.h. */
3934 rm -f conftest.$ac_objext
3935 if { (ac_try="$ac_compile"
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3941 $as_echo "$ac_try_echo") >&5
3942 (eval "$ac_compile") 2>conftest.er1
3944 grep -v '^ *+' conftest.er1 >conftest.err
3946 cat conftest.err >&5
3947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); } && {
3949 test -z "$ac_c_werror_flag" ||
3950 test ! -s conftest.err
3951 } && test -s conftest.$ac_objext; then
3954 $as_echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969 . "$srcdir/src/template/$template" || exit
3971 # CFLAGS are selected so:
3972 # If the user specifies something in the environment, that is used.
3973 # else: If the template file set something, that is used.
3974 # else: If coverage was enabled, don't set anything.
3975 # else: If the compiler is GCC, then we use -O2.
3976 # else: If the compiler is something else, then we use -O, unless debugging.
3978 if test "$ac_env_CFLAGS_set" = set; then
3979 CFLAGS=$ac_env_CFLAGS_value
3980 elif test "${CFLAGS+set}" = set; then
3981 : # (keep what template set)
3982 elif test "$enable_coverage" = yes; then
3983 : # no optimization by default
3984 elif test "$GCC" = yes; then
3987 # if the user selected debug mode, don't use -O
3988 if test "$enable_debug" != yes; then
3993 # Some versions of GCC support some additional useful warning flags.
3994 # Check whether they are supported, and add them to CFLAGS if so.
3995 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3996 # but has its own. Also check other compiler-specific flags here.
3998 if test "$GCC" = yes -a "$ICC" = no; then
3999 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
4000 # These work in some but not all gcc versions
4001 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
4002 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
4003 pgac_save_CFLAGS=$CFLAGS
4004 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4005 cat >conftest.$ac_ext <<_ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h. */
4020 rm -f conftest.$ac_objext
4021 if { (ac_try="$ac_compile"
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4027 $as_echo "$ac_try_echo") >&5
4028 (eval "$ac_compile") 2>conftest.er1
4030 grep -v '^ *+' conftest.er1 >conftest.err
4032 cat conftest.err >&5
4033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } && {
4035 test -z "$ac_c_werror_flag" ||
4036 test ! -s conftest.err
4037 } && test -s conftest.$ac_objext; then
4038 { $as_echo "$as_me:$LINENO: result: yes" >&5
4039 $as_echo "yes" >&6; }
4041 $as_echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4044 CFLAGS="$pgac_save_CFLAGS"
4045 { $as_echo "$as_me:$LINENO: result: no" >&5
4046 $as_echo "no" >&6; }
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4051 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
4052 $as_echo_n "checking if $CC supports -Wendif-labels... " >&6; }
4053 pgac_save_CFLAGS=$CFLAGS
4054 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4055 cat >conftest.$ac_ext <<_ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4070 rm -f conftest.$ac_objext
4071 if { (ac_try="$ac_compile"
4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074 *) ac_try_echo=$ac_try;;
4076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4077 $as_echo "$ac_try_echo") >&5
4078 (eval "$ac_compile") 2>conftest.er1
4080 grep -v '^ *+' conftest.er1 >conftest.err
4082 cat conftest.err >&5
4083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); } && {
4085 test -z "$ac_c_werror_flag" ||
4086 test ! -s conftest.err
4087 } && test -s conftest.$ac_objext; then
4088 { $as_echo "$as_me:$LINENO: result: yes" >&5
4089 $as_echo "yes" >&6; }
4091 $as_echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4094 CFLAGS="$pgac_save_CFLAGS"
4095 { $as_echo "$as_me:$LINENO: result: no" >&5
4096 $as_echo "no" >&6; }
4099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 # Disable strict-aliasing rules; needed for gcc 3.3+
4102 { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4103 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4104 pgac_save_CFLAGS=$CFLAGS
4105 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4106 cat >conftest.$ac_ext <<_ACEOF
4109 cat confdefs.h >>conftest.$ac_ext
4110 cat >>conftest.$ac_ext <<_ACEOF
4111 /* end confdefs.h. */
4121 rm -f conftest.$ac_objext
4122 if { (ac_try="$ac_compile"
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4128 $as_echo "$ac_try_echo") >&5
4129 (eval "$ac_compile") 2>conftest.er1
4131 grep -v '^ *+' conftest.er1 >conftest.err
4133 cat conftest.err >&5
4134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); } && {
4136 test -z "$ac_c_werror_flag" ||
4137 test ! -s conftest.err
4138 } && test -s conftest.$ac_objext; then
4139 { $as_echo "$as_me:$LINENO: result: yes" >&5
4140 $as_echo "yes" >&6; }
4142 $as_echo "$as_me: failed program was:" >&5
4143 sed 's/^/| /' conftest.$ac_ext >&5
4145 CFLAGS="$pgac_save_CFLAGS"
4146 { $as_echo "$as_me:$LINENO: result: no" >&5
4147 $as_echo "no" >&6; }
4150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4153 { $as_echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
4154 $as_echo_n "checking if $CC supports -fwrapv... " >&6; }
4155 pgac_save_CFLAGS=$CFLAGS
4156 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4157 cat >conftest.$ac_ext <<_ACEOF
4160 cat confdefs.h >>conftest.$ac_ext
4161 cat >>conftest.$ac_ext <<_ACEOF
4162 /* end confdefs.h. */
4172 rm -f conftest.$ac_objext
4173 if { (ac_try="$ac_compile"
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4179 $as_echo "$ac_try_echo") >&5
4180 (eval "$ac_compile") 2>conftest.er1
4182 grep -v '^ *+' conftest.er1 >conftest.err
4184 cat conftest.err >&5
4185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } && {
4187 test -z "$ac_c_werror_flag" ||
4188 test ! -s conftest.err
4189 } && test -s conftest.$ac_objext; then
4190 { $as_echo "$as_me:$LINENO: result: yes" >&5
4191 $as_echo "yes" >&6; }
4193 $as_echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4196 CFLAGS="$pgac_save_CFLAGS"
4197 { $as_echo "$as_me:$LINENO: result: no" >&5
4198 $as_echo "no" >&6; }
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 elif test "$ICC" = yes; then
4204 # Intel's compiler has a bug/misoptimization in checking for
4205 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4206 { $as_echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4207 $as_echo_n "checking if $CC supports -mp1... " >&6; }
4208 pgac_save_CFLAGS=$CFLAGS
4209 CFLAGS="$pgac_save_CFLAGS -mp1"
4210 cat >conftest.$ac_ext <<_ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */
4225 rm -f conftest.$ac_objext
4226 if { (ac_try="$ac_compile"
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4232 $as_echo "$ac_try_echo") >&5
4233 (eval "$ac_compile") 2>conftest.er1
4235 grep -v '^ *+' conftest.er1 >conftest.err
4237 cat conftest.err >&5
4238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } && {
4240 test -z "$ac_c_werror_flag" ||
4241 test ! -s conftest.err
4242 } && test -s conftest.$ac_objext; then
4243 { $as_echo "$as_me:$LINENO: result: yes" >&5
4244 $as_echo "yes" >&6; }
4246 $as_echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4249 CFLAGS="$pgac_save_CFLAGS"
4250 { $as_echo "$as_me:$LINENO: result: no" >&5
4251 $as_echo "no" >&6; }
4254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4256 # Make sure strict aliasing is off (though this is said to be the default)
4257 { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4258 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4259 pgac_save_CFLAGS=$CFLAGS
4260 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4261 cat >conftest.$ac_ext <<_ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4276 rm -f conftest.$ac_objext
4277 if { (ac_try="$ac_compile"
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4283 $as_echo "$ac_try_echo") >&5
4284 (eval "$ac_compile") 2>conftest.er1
4286 grep -v '^ *+' conftest.er1 >conftest.err
4288 cat conftest.err >&5
4289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } && {
4291 test -z "$ac_c_werror_flag" ||
4292 test ! -s conftest.err
4293 } && test -s conftest.$ac_objext; then
4294 { $as_echo "$as_me:$LINENO: result: yes" >&5
4295 $as_echo "yes" >&6; }
4297 $as_echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4300 CFLAGS="$pgac_save_CFLAGS"
4301 { $as_echo "$as_me:$LINENO: result: no" >&5
4302 $as_echo "no" >&6; }
4305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307 elif test "$PORTNAME" = "aix"; then
4308 # AIX's xlc has to have strict aliasing turned off too
4309 { $as_echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4310 $as_echo_n "checking if $CC supports -qnoansialias... " >&6; }
4311 pgac_save_CFLAGS=$CFLAGS
4312 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4313 cat >conftest.$ac_ext <<_ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4328 rm -f conftest.$ac_objext
4329 if { (ac_try="$ac_compile"
4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4335 $as_echo "$ac_try_echo") >&5
4336 (eval "$ac_compile") 2>conftest.er1
4338 grep -v '^ *+' conftest.er1 >conftest.err
4340 cat conftest.err >&5
4341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } && {
4343 test -z "$ac_c_werror_flag" ||
4344 test ! -s conftest.err
4345 } && test -s conftest.$ac_objext; then
4346 { $as_echo "$as_me:$LINENO: result: yes" >&5
4347 $as_echo "yes" >&6; }
4349 $as_echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4352 CFLAGS="$pgac_save_CFLAGS"
4353 { $as_echo "$as_me:$LINENO: result: no" >&5
4354 $as_echo "no" >&6; }
4357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4361 # supply -g if --enable-debug
4362 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4366 # enable code coverage if --enable-coverage
4367 if test "$enable_coverage" = yes; then
4368 if test "$GCC" = yes; then
4369 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4371 { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4372 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4373 { (exit 1); exit 1; }; }
4377 # enable profiling if --enable-profiling
4378 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4379 if test "$GCC" = yes; then
4381 cat >>confdefs.h <<\_ACEOF
4382 #define PROFILE_PID_DIR 1
4385 CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4387 { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4388 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4389 { (exit 1); exit 1; }; }
4393 # We already have this in Makefile.win32, but configure needs it too
4394 if test "$PORTNAME" = "win32"; then
4395 CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4398 # Check if the compiler still works with the template settings
4399 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4400 $as_echo_n "checking whether the C compiler still works... " >&6; }
4401 cat >conftest.$ac_ext <<_ACEOF
4404 cat confdefs.h >>conftest.$ac_ext
4405 cat >>conftest.$ac_ext <<_ACEOF
4406 /* end confdefs.h. */
4416 rm -f conftest.$ac_objext conftest$ac_exeext
4417 if { (ac_try="$ac_link"
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4423 $as_echo "$ac_try_echo") >&5
4424 (eval "$ac_link") 2>conftest.er1
4426 grep -v '^ *+' conftest.er1 >conftest.err
4428 cat conftest.err >&5
4429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); } && {
4431 test -z "$ac_c_werror_flag" ||
4432 test ! -s conftest.err
4433 } && test -s conftest$ac_exeext && {
4434 test "$cross_compiling" = yes ||
4435 $as_test_x conftest$ac_exeext
4437 { $as_echo "$as_me:$LINENO: result: yes" >&5
4438 $as_echo "yes" >&6; }
4440 $as_echo "$as_me: failed program was:" >&5
4441 sed 's/^/| /' conftest.$ac_ext >&5
4443 { $as_echo "$as_me:$LINENO: result: no" >&5
4444 $as_echo "no" >&6; }
4445 { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4446 $as_echo "$as_me: error: cannot proceed" >&2;}
4447 { (exit 1); exit 1; }; }
4450 rm -rf conftest.dSYM
4451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4452 conftest$ac_exeext conftest.$ac_ext
4454 # Defend against gcc -ffast-math
4455 if test "$GCC" = yes; then
4456 cat >conftest.$ac_ext <<_ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4466 #ifdef __FAST_MATH__
4473 rm -f conftest.$ac_objext
4474 if { (ac_try="$ac_compile"
4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477 *) ac_try_echo=$ac_try;;
4479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4480 $as_echo "$ac_try_echo") >&5
4481 (eval "$ac_compile") 2>conftest.er1
4483 grep -v '^ *+' conftest.er1 >conftest.err
4485 cat conftest.err >&5
4486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } && {
4488 test -z "$ac_c_werror_flag" ||
4489 test ! -s conftest.err
4490 } && test -s conftest.$ac_objext; then
4493 $as_echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4496 { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4497 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4498 { (exit 1); exit 1; }; }
4501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4505 ac_cpp='$CPP $CPPFLAGS'
4506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4509 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4510 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4511 # On Suns, sometimes $CPP names a directory.
4512 if test -n "$CPP" && test -d "$CPP"; then
4515 if test -z "$CPP"; then
4516 if test "${ac_cv_prog_CPP+set}" = set; then
4517 $as_echo_n "(cached) " >&6
4519 # Double quotes because CPP needs to be expanded
4520 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4523 for ac_c_preproc_warn_flag in '' yes
4525 # Use a header file that comes with gcc, so configuring glibc
4526 # with a fresh cross-compiler works.
4527 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4528 # <limits.h> exists even on freestanding compilers.
4529 # On the NeXT, cc -E runs the code through the compiler's parser,
4530 # not just through cpp. "Syntax error" is here to catch this case.
4531 cat >conftest.$ac_ext <<_ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h. */
4538 # include <limits.h>
4540 # include <assert.h>
4544 if { (ac_try="$ac_cpp conftest.$ac_ext"
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4550 $as_echo "$ac_try_echo") >&5
4551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4553 grep -v '^ *+' conftest.er1 >conftest.err
4555 cat conftest.err >&5
4556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); } >/dev/null && {
4558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4559 test ! -s conftest.err
4563 $as_echo "$as_me: failed program was:" >&5
4564 sed 's/^/| /' conftest.$ac_ext >&5
4566 # Broken: fails on valid input.
4570 rm -f conftest.err conftest.$ac_ext
4572 # OK, works on sane cases. Now check whether nonexistent headers
4573 # can be detected and how.
4574 cat >conftest.$ac_ext <<_ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h. */
4580 #include <ac_nonexistent.h>
4582 if { (ac_try="$ac_cpp conftest.$ac_ext"
4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585 *) ac_try_echo=$ac_try;;
4587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4588 $as_echo "$ac_try_echo") >&5
4589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4591 grep -v '^ *+' conftest.er1 >conftest.err
4593 cat conftest.err >&5
4594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } >/dev/null && {
4596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4597 test ! -s conftest.err
4599 # Broken: success on invalid input.
4602 $as_echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4605 # Passes both tests.
4610 rm -f conftest.err conftest.$ac_ext
4613 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4614 rm -f conftest.err conftest.$ac_ext
4615 if $ac_preproc_ok; then
4627 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4628 $as_echo "$CPP" >&6; }
4630 for ac_c_preproc_warn_flag in '' yes
4632 # Use a header file that comes with gcc, so configuring glibc
4633 # with a fresh cross-compiler works.
4634 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4635 # <limits.h> exists even on freestanding compilers.
4636 # On the NeXT, cc -E runs the code through the compiler's parser,
4637 # not just through cpp. "Syntax error" is here to catch this case.
4638 cat >conftest.$ac_ext <<_ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h. */
4645 # include <limits.h>
4647 # include <assert.h>
4651 if { (ac_try="$ac_cpp conftest.$ac_ext"
4653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4654 *) ac_try_echo=$ac_try;;
4656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4657 $as_echo "$ac_try_echo") >&5
4658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4660 grep -v '^ *+' conftest.er1 >conftest.err
4662 cat conftest.err >&5
4663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } >/dev/null && {
4665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4666 test ! -s conftest.err
4670 $as_echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4673 # Broken: fails on valid input.
4677 rm -f conftest.err conftest.$ac_ext
4679 # OK, works on sane cases. Now check whether nonexistent headers
4680 # can be detected and how.
4681 cat >conftest.$ac_ext <<_ACEOF
4684 cat confdefs.h >>conftest.$ac_ext
4685 cat >>conftest.$ac_ext <<_ACEOF
4686 /* end confdefs.h. */
4687 #include <ac_nonexistent.h>
4689 if { (ac_try="$ac_cpp conftest.$ac_ext"
4691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692 *) ac_try_echo=$ac_try;;
4694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4695 $as_echo "$ac_try_echo") >&5
4696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4698 grep -v '^ *+' conftest.er1 >conftest.err
4700 cat conftest.err >&5
4701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); } >/dev/null && {
4703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4704 test ! -s conftest.err
4706 # Broken: success on invalid input.
4709 $as_echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4712 # Passes both tests.
4717 rm -f conftest.err conftest.$ac_ext
4720 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4721 rm -f conftest.err conftest.$ac_ext
4722 if $ac_preproc_ok; then
4725 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4727 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4728 See \`config.log' for more details." >&5
4729 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4730 See \`config.log' for more details." >&2;}
4731 { (exit 1); exit 1; }; }; }
4735 ac_cpp='$CPP $CPPFLAGS'
4736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4744 # Set up TAS assembly code if needed; the template file has now had its
4745 # chance to request this.
4747 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4750 if test "$need_tas" = yes ; then
4759 # Automatic dependency tracking
4763 # Check whether --enable-depend was given.
4764 if test "${enable_depend+set}" = set; then
4765 enableval=$enable_depend;
4774 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4775 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4776 { (exit 1); exit 1; }; }
4790 # Enable assert checks
4794 # Check whether --enable-cassert was given.
4795 if test "${enable_cassert+set}" = set; then
4796 enableval=$enable_cassert;
4800 cat >>confdefs.h <<\_ACEOF
4801 #define USE_ASSERT_CHECKING 1
4809 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4810 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4811 { (exit 1); exit 1; }; }
4824 # Include directories
4827 IFS="${IFS}${PATH_SEPARATOR}"
4828 # SRCH_INC comes from the template file
4829 for dir in $with_includes $SRCH_INC; do
4830 if test -d "$dir"; then
4831 INCLUDES="$INCLUDES -I$dir"
4833 { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4834 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4842 # Library directories
4845 IFS="${IFS}${PATH_SEPARATOR}"
4846 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4847 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4848 if test -d "$dir"; then
4849 LIBDIRS="$LIBDIRS -L$dir"
4851 { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4852 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4858 # Enable thread-safe client libraries
4860 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4861 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
4862 if test "$PORTNAME" != "win32"; then
4865 # Check whether --enable-thread-safety was given.
4866 if test "${enable_thread_safety+set}" = set; then
4867 enableval=$enable_thread_safety;
4876 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4877 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4878 { (exit 1); exit 1; }; }
4883 enable_thread_safety=no
4889 # Win32 should always use threads
4892 # Check whether --enable-thread-safety was given.
4893 if test "${enable_thread_safety+set}" = set; then
4894 enableval=$enable_thread_safety;
4903 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4904 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4905 { (exit 1); exit 1; }; }
4910 enable_thread_safety=yes
4919 # Check whether --enable-thread-safety-force was given.
4920 if test "${enable_thread_safety_force+set}" = set; then
4921 enableval=$enable_thread_safety_force;
4930 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4931 $as_echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4932 { (exit 1); exit 1; }; }
4937 enable_thread_safety_force=no
4942 if test "$enable_thread_safety" = yes -o \
4943 "$enable_thread_safety_force" = yes; then
4944 enable_thread_safety="yes" # for 'force'
4946 cat >>confdefs.h <<\_ACEOF
4947 #define ENABLE_THREAD_SAFETY 1
4951 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4952 $as_echo "$enable_thread_safety" >&6; }
4956 # Optionally build Tcl modules (PL/Tcl)
4958 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4959 $as_echo_n "checking whether to build with Tcl... " >&6; }
4963 # Check whether --with-tcl was given.
4964 if test "${with_tcl+set}" = set; then
4974 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4975 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4976 { (exit 1); exit 1; }; }
4986 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
4987 $as_echo "$with_tcl" >&6; }
4990 # We see if the path to the Tcl/Tk configuration scripts is specified.
4991 # This will override the use of tclsh to find the paths to search.
4996 # Check whether --with-tclconfig was given.
4997 if test "${with_tclconfig+set}" = set; then
4998 withval=$with_tclconfig;
5001 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5002 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5003 { (exit 1); exit 1; }; }
5006 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5007 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5008 { (exit 1); exit 1; }; }
5020 # Optionally build Perl modules (PL/Perl)
5022 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5023 $as_echo_n "checking whether to build Perl modules... " >&6; }
5027 # Check whether --with-perl was given.
5028 if test "${with_perl+set}" = set; then
5038 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5039 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5040 { (exit 1); exit 1; }; }
5050 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5051 $as_echo "$with_perl" >&6; }
5055 # Optionally build Python modules (PL/Python)
5057 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5058 $as_echo_n "checking whether to build Python modules... " >&6; }
5062 # Check whether --with-python was given.
5063 if test "${with_python+set}" = set; then
5064 withval=$with_python;
5073 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5074 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5075 { (exit 1); exit 1; }; }
5085 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5086 $as_echo "$with_python" >&6; }
5092 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5093 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5097 # Check whether --with-gssapi was given.
5098 if test "${with_gssapi+set}" = set; then
5099 withval=$with_gssapi;
5104 cat >>confdefs.h <<\_ACEOF
5105 #define ENABLE_GSS 1
5108 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5115 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5116 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5117 { (exit 1); exit 1; }; }
5127 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5128 $as_echo "$with_gssapi" >&6; }
5134 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5135 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5139 # Check whether --with-krb5 was given.
5140 if test "${with_krb5+set}" = set; then
5146 cat >>confdefs.h <<\_ACEOF
5150 krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5157 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5158 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5159 { (exit 1); exit 1; }; }
5169 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5170 $as_echo "$with_krb5" >&6; }
5178 # Kerberos configuration parameters
5183 # Check whether --with-krb-srvnam was given.
5184 if test "${with_krb_srvnam+set}" = set; then
5185 withval=$with_krb_srvnam;
5188 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5189 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5190 { (exit 1); exit 1; }; }
5193 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5194 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5195 { (exit 1); exit 1; }; }
5203 with_krb_srvnam="postgres"
5208 cat >>confdefs.h <<_ACEOF
5209 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5217 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5218 $as_echo_n "checking whether to build with PAM support... " >&6; }
5222 # Check whether --with-pam was given.
5223 if test "${with_pam+set}" = set; then
5228 cat >>confdefs.h <<\_ACEOF
5237 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5238 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5239 { (exit 1); exit 1; }; }
5249 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5250 $as_echo "$with_pam" >&6; }
5257 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5258 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5262 # Check whether --with-ldap was given.
5263 if test "${with_ldap+set}" = set; then
5268 cat >>confdefs.h <<\_ACEOF
5277 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5278 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5279 { (exit 1); exit 1; }; }
5289 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5290 $as_echo "$with_ldap" >&6; }
5297 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5298 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5302 # Check whether --with-bonjour was given.
5303 if test "${with_bonjour+set}" = set; then
5304 withval=$with_bonjour;
5308 cat >>confdefs.h <<\_ACEOF
5309 #define USE_BONJOUR 1
5317 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5318 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5319 { (exit 1); exit 1; }; }
5329 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5330 $as_echo "$with_bonjour" >&6; }
5337 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5338 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5342 # Check whether --with-openssl was given.
5343 if test "${with_openssl+set}" = set; then
5344 withval=$with_openssl;
5348 cat >>confdefs.h <<\_ACEOF
5357 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5358 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5359 { (exit 1); exit 1; }; }
5369 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5370 $as_echo "$with_openssl" >&6; }
5380 # Check whether --with-readline was given.
5381 if test "${with_readline+set}" = set; then
5382 withval=$with_readline;
5391 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5392 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5393 { (exit 1); exit 1; }; }
5403 # readline on MinGW has problems with backslashes in psql and other bugs.
5404 # This is particularly a problem with non-US code pages.
5405 # Therefore disable its use until we understand the cause. 2004-07-20
5406 if test "$PORTNAME" = "win32"; then
5407 if test "$with_readline" = yes; then
5408 { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5409 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5421 # Check whether --with-libedit-preferred was given.
5422 if test "${with_libedit_preferred+set}" = set; then
5423 withval=$with_libedit_preferred;
5432 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5433 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5434 { (exit 1); exit 1; }; }
5439 with_libedit_preferred=no
5452 # Check whether --with-ossp-uuid was given.
5453 if test "${with_ossp_uuid+set}" = set; then
5454 withval=$with_ossp_uuid;
5463 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5464 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5465 { (exit 1); exit 1; }; }
5484 # Check whether --with-libxml was given.
5485 if test "${with_libxml+set}" = set; then
5486 withval=$with_libxml;
5490 cat >>confdefs.h <<\_ACEOF
5491 #define USE_LIBXML 1
5499 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5500 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5501 { (exit 1); exit 1; }; }
5512 if test "$with_libxml" = yes ; then
5513 for ac_prog in xml2-config
5515 # Extract the first word of "$ac_prog", so it can be a program name with args.
5516 set dummy $ac_prog; ac_word=$2
5517 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5520 $as_echo_n "(cached) " >&6
5522 if test -n "$XML2_CONFIG"; then
5523 ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5532 ac_cv_prog_XML2_CONFIG="$ac_prog"
5533 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5543 if test -n "$XML2_CONFIG"; then
5544 { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5545 $as_echo "$XML2_CONFIG" >&6; }
5547 { $as_echo "$as_me:$LINENO: result: no" >&5
5548 $as_echo "no" >&6; }
5552 test -n "$XML2_CONFIG" && break
5555 if test -n "$XML2_CONFIG"; then
5556 for pgac_option in `$XML2_CONFIG --cflags`; do
5557 case $pgac_option in
5558 -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5561 for pgac_option in `$XML2_CONFIG --libs`; do
5562 case $pgac_option in
5563 -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5577 # Check whether --with-libxslt was given.
5578 if test "${with_libxslt+set}" = set; then
5579 withval=$with_libxslt;
5583 cat >>confdefs.h <<\_ACEOF
5584 #define USE_LIBXSLT 1
5592 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5593 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5594 { (exit 1); exit 1; }; }
5614 # Check whether --with-system-tzdata was given.
5615 if test "${with_system_tzdata+set}" = set; then
5616 withval=$with_system_tzdata;
5619 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5620 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5621 { (exit 1); exit 1; }; }
5624 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5625 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5626 { (exit 1); exit 1; }; }
5644 # Check whether --with-zlib was given.
5645 if test "${with_zlib+set}" = set; then
5655 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5656 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5657 { (exit 1); exit 1; }; }
5673 # Assume system is ELF if it predefines __ELF__ as 1,
5674 # otherwise believe host_os based default.
5676 freebsd1*|freebsd2*) elf=no;;
5677 freebsd3*|freebsd4*) elf=yes;;
5681 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5682 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5683 if test "${ac_cv_path_GREP+set}" = set; then
5684 $as_echo_n "(cached) " >&6
5686 if test -z "$GREP"; then
5687 ac_path_GREP_found=false
5688 # Loop through the user's path and test for each of PROGNAME-LIST
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5693 test -z "$as_dir" && as_dir=.
5694 for ac_prog in grep ggrep; do
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5697 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5698 # Check for GNU ac_path_GREP and select it if it is found.
5699 # Check for GNU $ac_path_GREP
5700 case `"$ac_path_GREP" --version 2>&1` in
5702 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5705 $as_echo_n 0123456789 >"conftest.in"
5708 cat "conftest.in" "conftest.in" >"conftest.tmp"
5709 mv "conftest.tmp" "conftest.in"
5710 cp "conftest.in" "conftest.nl"
5711 $as_echo 'GREP' >> "conftest.nl"
5712 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5713 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5714 ac_count=`expr $ac_count + 1`
5715 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5716 # Best one so far, save it but keep looking for a better one
5717 ac_cv_path_GREP="$ac_path_GREP"
5718 ac_path_GREP_max=$ac_count
5720 # 10*(2^10) chars as input seems more than enough
5721 test $ac_count -gt 10 && break
5723 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5726 $ac_path_GREP_found && break 3
5731 if test -z "$ac_cv_path_GREP"; then
5732 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5733 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5734 { (exit 1); exit 1; }; }
5737 ac_cv_path_GREP=$GREP
5741 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5742 $as_echo "$ac_cv_path_GREP" >&6; }
5743 GREP="$ac_cv_path_GREP"
5746 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5747 $as_echo_n "checking for egrep... " >&6; }
5748 if test "${ac_cv_path_EGREP+set}" = set; then
5749 $as_echo_n "(cached) " >&6
5751 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5752 then ac_cv_path_EGREP="$GREP -E"
5754 if test -z "$EGREP"; then
5755 ac_path_EGREP_found=false
5756 # Loop through the user's path and test for each of PROGNAME-LIST
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5761 test -z "$as_dir" && as_dir=.
5762 for ac_prog in egrep; do
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5765 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5766 # Check for GNU ac_path_EGREP and select it if it is found.
5767 # Check for GNU $ac_path_EGREP
5768 case `"$ac_path_EGREP" --version 2>&1` in
5770 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5773 $as_echo_n 0123456789 >"conftest.in"
5776 cat "conftest.in" "conftest.in" >"conftest.tmp"
5777 mv "conftest.tmp" "conftest.in"
5778 cp "conftest.in" "conftest.nl"
5779 $as_echo 'EGREP' >> "conftest.nl"
5780 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5782 ac_count=`expr $ac_count + 1`
5783 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5784 # Best one so far, save it but keep looking for a better one
5785 ac_cv_path_EGREP="$ac_path_EGREP"
5786 ac_path_EGREP_max=$ac_count
5788 # 10*(2^10) chars as input seems more than enough
5789 test $ac_count -gt 10 && break
5791 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5794 $ac_path_EGREP_found && break 3
5799 if test -z "$ac_cv_path_EGREP"; then
5800 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5801 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5802 { (exit 1); exit 1; }; }
5805 ac_cv_path_EGREP=$EGREP
5810 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5811 $as_echo "$ac_cv_path_EGREP" >&6; }
5812 EGREP="$ac_cv_path_EGREP"
5815 cat >conftest.$ac_ext <<_ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5827 $EGREP "yes" >/dev/null 2>&1; then
5830 if test "X$elf" = "Xyes" ; then
5844 CPPFLAGS="$CPPFLAGS $INCLUDES"
5845 LDFLAGS="$LDFLAGS $LIBDIRS"
5850 # Check whether --with-gnu-ld was given.
5851 if test "${with_gnu_ld+set}" = set; then
5852 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5858 if test "$GCC" = yes; then
5859 # Check if gcc -print-prog-name=ld gives a path.
5860 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5861 $as_echo_n "checking for ld used by GCC... " >&6; }
5864 # gcc leaves a trailing carriage return which upsets mingw
5865 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5867 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5870 # Accept absolute paths.
5871 [\\/]* | [A-Za-z]:[\\/]*)
5872 re_direlt='/[^/][^/]*/\.\./'
5873 # Canonicalize the path of ld
5874 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5875 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5876 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5878 test -z "$LD" && LD="$ac_prog"
5881 # If it fails, then pretend we aren't using GCC.
5885 # If it is relative, then search for the first ld in PATH.
5889 elif test "$with_gnu_ld" = yes; then
5890 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5891 $as_echo_n "checking for GNU ld... " >&6; }
5893 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5894 $as_echo_n "checking for non-GNU ld... " >&6; }
5896 if test "${ac_cv_path_LD+set}" = set; then
5897 $as_echo_n "(cached) " >&6
5899 if test -z "$LD"; then
5900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5901 for ac_dir in $PATH; do
5902 test -z "$ac_dir" && ac_dir=.
5903 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5904 ac_cv_path_LD="$ac_dir/$ac_prog"
5905 # Check to see if the program is GNU ld. I'd rather use --version,
5906 # but apparently some GNU ld's only accept -v.
5907 # Break only if it was the GNU/non-GNU ld that we prefer.
5908 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5909 test "$with_gnu_ld" != no && break
5911 test "$with_gnu_ld" != yes && break
5917 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5922 if test -n "$LD"; then
5923 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5924 $as_echo "$LD" >&6; }
5926 { $as_echo "$as_me:$LINENO: result: no" >&5
5927 $as_echo "no" >&6; }
5929 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5930 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5931 { (exit 1); exit 1; }; }
5932 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5933 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5934 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5935 $as_echo_n "(cached) " >&6
5937 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5938 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5939 ac_cv_prog_gnu_ld=yes
5941 ac_cv_prog_gnu_ld=no
5944 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5945 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
5946 with_gnu_ld=$ac_cv_prog_gnu_ld
5951 case $host_os in sysv5*)
5952 { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
5953 $as_echo_n "checking whether ld -R works... " >&6; }
5954 if test "${pgac_cv_prog_ld_R+set}" = set; then
5955 $as_echo_n "(cached) " >&6
5958 pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5959 cat >conftest.$ac_ext <<_ACEOF
5962 cat confdefs.h >>conftest.$ac_ext
5963 cat >>conftest.$ac_ext <<_ACEOF
5964 /* end confdefs.h. */
5974 rm -f conftest.$ac_objext conftest$ac_exeext
5975 if { (ac_try="$ac_link"
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5981 $as_echo "$ac_try_echo") >&5
5982 (eval "$ac_link") 2>conftest.er1
5984 grep -v '^ *+' conftest.er1 >conftest.err
5986 cat conftest.err >&5
5987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } && {
5989 test -z "$ac_c_werror_flag" ||
5990 test ! -s conftest.err
5991 } && test -s conftest$ac_exeext && {
5992 test "$cross_compiling" = yes ||
5993 $as_test_x conftest$ac_exeext
5995 pgac_cv_prog_ld_R=yes
5997 $as_echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
6000 pgac_cv_prog_ld_R=no
6003 rm -rf conftest.dSYM
6004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6005 conftest$ac_exeext conftest.$ac_ext
6006 LDFLAGS=$pgac_save_LDFLAGS
6009 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6010 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6011 ld_R_works=$pgac_cv_prog_ld_R
6014 if test -n "$ac_tool_prefix"; then
6015 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6016 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6017 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6018 $as_echo_n "checking for $ac_word... " >&6; }
6019 if test "${ac_cv_prog_RANLIB+set}" = set; then
6020 $as_echo_n "(cached) " >&6
6022 if test -n "$RANLIB"; then
6023 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6032 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6033 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6042 RANLIB=$ac_cv_prog_RANLIB
6043 if test -n "$RANLIB"; then
6044 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6045 $as_echo "$RANLIB" >&6; }
6047 { $as_echo "$as_me:$LINENO: result: no" >&5
6048 $as_echo "no" >&6; }
6053 if test -z "$ac_cv_prog_RANLIB"; then
6054 ac_ct_RANLIB=$RANLIB
6055 # Extract the first word of "ranlib", so it can be a program name with args.
6056 set dummy ranlib; ac_word=$2
6057 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6058 $as_echo_n "checking for $ac_word... " >&6; }
6059 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6060 $as_echo_n "(cached) " >&6
6062 if test -n "$ac_ct_RANLIB"; then
6063 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 test -z "$as_dir" && as_dir=.
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6072 ac_cv_prog_ac_ct_RANLIB="ranlib"
6073 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6082 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6083 if test -n "$ac_ct_RANLIB"; then
6084 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6085 $as_echo "$ac_ct_RANLIB" >&6; }
6087 { $as_echo "$as_me:$LINENO: result: no" >&5
6088 $as_echo "no" >&6; }
6091 if test "x$ac_ct_RANLIB" = x; then
6094 case $cross_compiling:$ac_tool_warned in
6096 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6098 ac_tool_warned=yes ;;
6100 RANLIB=$ac_ct_RANLIB
6103 RANLIB="$ac_cv_prog_RANLIB"
6107 if test -n "$ac_tool_prefix"; then
6108 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6109 set dummy ${ac_tool_prefix}strip; ac_word=$2
6110 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6111 $as_echo_n "checking for $ac_word... " >&6; }
6112 if test "${ac_cv_prog_STRIP+set}" = set; then
6113 $as_echo_n "(cached) " >&6
6115 if test -n "$STRIP"; then
6116 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 test -z "$as_dir" && as_dir=.
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6125 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6126 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 STRIP=$ac_cv_prog_STRIP
6136 if test -n "$STRIP"; then
6137 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6138 $as_echo "$STRIP" >&6; }
6140 { $as_echo "$as_me:$LINENO: result: no" >&5
6141 $as_echo "no" >&6; }
6146 if test -z "$ac_cv_prog_STRIP"; then
6148 # Extract the first word of "strip", so it can be a program name with args.
6149 set dummy strip; ac_word=$2
6150 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6151 $as_echo_n "checking for $ac_word... " >&6; }
6152 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6153 $as_echo_n "(cached) " >&6
6155 if test -n "$ac_ct_STRIP"; then
6156 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6165 ac_cv_prog_ac_ct_STRIP="strip"
6166 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6176 if test -n "$ac_ct_STRIP"; then
6177 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6178 $as_echo "$ac_ct_STRIP" >&6; }
6180 { $as_echo "$as_me:$LINENO: result: no" >&5
6181 $as_echo "no" >&6; }
6184 if test "x$ac_ct_STRIP" = x; then
6187 case $cross_compiling:$ac_tool_warned in
6189 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6191 ac_tool_warned=yes ;;
6196 STRIP="$ac_cv_prog_STRIP"
6200 { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6201 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6202 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6203 STRIP_STATIC_LIB="$STRIP -x"
6204 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6205 { $as_echo "$as_me:$LINENO: result: yes" >&5
6206 $as_echo "yes" >&6; }
6210 { $as_echo "$as_me:$LINENO: result: no" >&5
6211 $as_echo "no" >&6; }
6216 if test -n "$ac_tool_prefix"; then
6217 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6218 set dummy ${ac_tool_prefix}ar; ac_word=$2
6219 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6220 $as_echo_n "checking for $ac_word... " >&6; }
6221 if test "${ac_cv_prog_AR+set}" = set; then
6222 $as_echo_n "(cached) " >&6
6224 if test -n "$AR"; then
6225 ac_cv_prog_AR="$AR" # Let the user override the test.
6227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 test -z "$as_dir" && as_dir=.
6232 for ac_exec_ext in '' $ac_executable_extensions; do
6233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6234 ac_cv_prog_AR="${ac_tool_prefix}ar"
6235 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6245 if test -n "$AR"; then
6246 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6247 $as_echo "$AR" >&6; }
6249 { $as_echo "$as_me:$LINENO: result: no" >&5
6250 $as_echo "no" >&6; }
6255 if test -z "$ac_cv_prog_AR"; then
6257 # Extract the first word of "ar", so it can be a program name with args.
6258 set dummy ar; ac_word=$2
6259 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6260 $as_echo_n "checking for $ac_word... " >&6; }
6261 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6262 $as_echo_n "(cached) " >&6
6264 if test -n "$ac_ct_AR"; then
6265 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 test -z "$as_dir" && as_dir=.
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6274 ac_cv_prog_ac_ct_AR="ar"
6275 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6284 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6285 if test -n "$ac_ct_AR"; then
6286 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6287 $as_echo "$ac_ct_AR" >&6; }
6289 { $as_echo "$as_me:$LINENO: result: no" >&5
6290 $as_echo "no" >&6; }
6293 if test "x$ac_ct_AR" = x; then
6296 case $cross_compiling:$ac_tool_warned in
6298 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6300 ac_tool_warned=yes ;;
6308 if test "$PORTNAME" = "win32"; then
6309 if test -n "$ac_tool_prefix"; then
6310 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6311 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6312 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6313 $as_echo_n "checking for $ac_word... " >&6; }
6314 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6315 $as_echo_n "(cached) " >&6
6317 if test -n "$DLLTOOL"; then
6318 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 test -z "$as_dir" && as_dir=.
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6327 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6328 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 DLLTOOL=$ac_cv_prog_DLLTOOL
6338 if test -n "$DLLTOOL"; then
6339 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6340 $as_echo "$DLLTOOL" >&6; }
6342 { $as_echo "$as_me:$LINENO: result: no" >&5
6343 $as_echo "no" >&6; }
6348 if test -z "$ac_cv_prog_DLLTOOL"; then
6349 ac_ct_DLLTOOL=$DLLTOOL
6350 # Extract the first word of "dlltool", so it can be a program name with args.
6351 set dummy dlltool; ac_word=$2
6352 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6353 $as_echo_n "checking for $ac_word... " >&6; }
6354 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6355 $as_echo_n "(cached) " >&6
6357 if test -n "$ac_ct_DLLTOOL"; then
6358 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 test -z "$as_dir" && as_dir=.
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6367 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6368 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6378 if test -n "$ac_ct_DLLTOOL"; then
6379 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6380 $as_echo "$ac_ct_DLLTOOL" >&6; }
6382 { $as_echo "$as_me:$LINENO: result: no" >&5
6383 $as_echo "no" >&6; }
6386 if test "x$ac_ct_DLLTOOL" = x; then
6389 case $cross_compiling:$ac_tool_warned in
6391 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6393 ac_tool_warned=yes ;;
6395 DLLTOOL=$ac_ct_DLLTOOL
6398 DLLTOOL="$ac_cv_prog_DLLTOOL"
6401 if test -n "$ac_tool_prefix"; then
6402 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6403 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6404 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6405 $as_echo_n "checking for $ac_word... " >&6; }
6406 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6407 $as_echo_n "(cached) " >&6
6409 if test -n "$DLLWRAP"; then
6410 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 test -z "$as_dir" && as_dir=.
6417 for ac_exec_ext in '' $ac_executable_extensions; do
6418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6419 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6420 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6429 DLLWRAP=$ac_cv_prog_DLLWRAP
6430 if test -n "$DLLWRAP"; then
6431 { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6432 $as_echo "$DLLWRAP" >&6; }
6434 { $as_echo "$as_me:$LINENO: result: no" >&5
6435 $as_echo "no" >&6; }
6440 if test -z "$ac_cv_prog_DLLWRAP"; then
6441 ac_ct_DLLWRAP=$DLLWRAP
6442 # Extract the first word of "dllwrap", so it can be a program name with args.
6443 set dummy dllwrap; ac_word=$2
6444 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6445 $as_echo_n "checking for $ac_word... " >&6; }
6446 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6447 $as_echo_n "(cached) " >&6
6449 if test -n "$ac_ct_DLLWRAP"; then
6450 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 test -z "$as_dir" && as_dir=.
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6459 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6460 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6469 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6470 if test -n "$ac_ct_DLLWRAP"; then
6471 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6472 $as_echo "$ac_ct_DLLWRAP" >&6; }
6474 { $as_echo "$as_me:$LINENO: result: no" >&5
6475 $as_echo "no" >&6; }
6478 if test "x$ac_ct_DLLWRAP" = x; then
6481 case $cross_compiling:$ac_tool_warned in
6483 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6485 ac_tool_warned=yes ;;
6487 DLLWRAP=$ac_ct_DLLWRAP
6490 DLLWRAP="$ac_cv_prog_DLLWRAP"
6493 if test -n "$ac_tool_prefix"; then
6494 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6495 set dummy ${ac_tool_prefix}windres; ac_word=$2
6496 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6497 $as_echo_n "checking for $ac_word... " >&6; }
6498 if test "${ac_cv_prog_WINDRES+set}" = set; then
6499 $as_echo_n "(cached) " >&6
6501 if test -n "$WINDRES"; then
6502 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 test -z "$as_dir" && as_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6511 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6512 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6521 WINDRES=$ac_cv_prog_WINDRES
6522 if test -n "$WINDRES"; then
6523 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6524 $as_echo "$WINDRES" >&6; }
6526 { $as_echo "$as_me:$LINENO: result: no" >&5
6527 $as_echo "no" >&6; }
6532 if test -z "$ac_cv_prog_WINDRES"; then
6533 ac_ct_WINDRES=$WINDRES
6534 # Extract the first word of "windres", so it can be a program name with args.
6535 set dummy windres; ac_word=$2
6536 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6539 $as_echo_n "(cached) " >&6
6541 if test -n "$ac_ct_WINDRES"; then
6542 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 test -z "$as_dir" && as_dir=.
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6551 ac_cv_prog_ac_ct_WINDRES="windres"
6552 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6562 if test -n "$ac_ct_WINDRES"; then
6563 { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6564 $as_echo "$ac_ct_WINDRES" >&6; }
6566 { $as_echo "$as_me:$LINENO: result: no" >&5
6567 $as_echo "no" >&6; }
6570 if test "x$ac_ct_WINDRES" = x; then
6573 case $cross_compiling:$ac_tool_warned in
6575 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6577 ac_tool_warned=yes ;;
6579 WINDRES=$ac_ct_WINDRES
6582 WINDRES="$ac_cv_prog_WINDRES"
6587 # Extract the first word of "tar", so it can be a program name with args.
6588 set dummy tar; ac_word=$2
6589 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6590 $as_echo_n "checking for $ac_word... " >&6; }
6591 if test "${ac_cv_path_TAR+set}" = set; then
6592 $as_echo_n "(cached) " >&6
6596 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603 test -z "$as_dir" && as_dir=.
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6606 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6607 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6618 if test -n "$TAR"; then
6619 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6620 $as_echo "$TAR" >&6; }
6622 { $as_echo "$as_me:$LINENO: result: no" >&5
6623 $as_echo "no" >&6; }
6627 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6628 $as_echo_n "checking whether ln -s works... " >&6; }
6630 if test "$LN_S" = "ln -s"; then
6631 { $as_echo "$as_me:$LINENO: result: yes" >&5
6632 $as_echo "yes" >&6; }
6634 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6635 $as_echo "no, using $LN_S" >&6; }
6638 for ac_prog in gawk mawk nawk awk
6640 # Extract the first word of "$ac_prog", so it can be a program name with args.
6641 set dummy $ac_prog; ac_word=$2
6642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6643 $as_echo_n "checking for $ac_word... " >&6; }
6644 if test "${ac_cv_prog_AWK+set}" = set; then
6645 $as_echo_n "(cached) " >&6
6647 if test -n "$AWK"; then
6648 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 test -z "$as_dir" && as_dir=.
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6657 ac_cv_prog_AWK="$ac_prog"
6658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6668 if test -n "$AWK"; then
6669 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6670 $as_echo "$AWK" >&6; }
6672 { $as_echo "$as_me:$LINENO: result: no" >&5
6673 $as_echo "no" >&6; }
6677 test -n "$AWK" && break
6680 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6681 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6682 if test -z "$MKDIR_P"; then
6683 if test "${ac_cv_path_mkdir+set}" = set; then
6684 $as_echo_n "(cached) " >&6
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6690 test -z "$as_dir" && as_dir=.
6691 for ac_prog in mkdir gmkdir; do
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6694 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6695 'mkdir (GNU coreutils) '* | \
6696 'mkdir (coreutils) '* | \
6697 'mkdir (fileutils) '4.1*)
6698 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6708 if test "${ac_cv_path_mkdir+set}" = set; then
6709 MKDIR_P="$ac_cv_path_mkdir -p"
6711 # As a last resort, use the slow shell script. Don't cache a
6712 # value for MKDIR_P within a source directory, because that will
6713 # break other packages using the cache if that directory is
6714 # removed, or if the value is a relative name.
6715 test -d ./--version && rmdir ./--version
6716 MKDIR_P="$ac_install_sh -d"
6719 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
6720 $as_echo "$MKDIR_P" >&6; }
6722 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
6723 # a relative path to it in each makefile where it subsitutes it. This clashes
6724 # with our Makefile.global concept. This workaround helps.
6726 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
6729 # Let the user override the search
6730 if test -z "$BISON"; then
6731 for ac_prog in bison
6733 # Extract the first word of "$ac_prog", so it can be a program name with args.
6734 set dummy $ac_prog; ac_word=$2
6735 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if test "${ac_cv_path_BISON+set}" = set; then
6738 $as_echo_n "(cached) " >&6
6742 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6752 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 BISON=$ac_cv_path_BISON
6764 if test -n "$BISON"; then
6765 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6766 $as_echo "$BISON" >&6; }
6768 { $as_echo "$as_me:$LINENO: result: no" >&5
6769 $as_echo "no" >&6; }
6773 test -n "$BISON" && break
6778 if test "$BISON"; then
6779 pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6780 { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6781 $as_echo "$as_me: using $pgac_bison_version" >&6;}
6782 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6784 { $as_echo "$as_me:$LINENO: WARNING:
6785 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6786 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
6787 $as_echo "$as_me: WARNING:
6788 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6789 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
6794 if test -z "$BISON"; then
6795 { $as_echo "$as_me:$LINENO: WARNING:
6796 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6797 *** change any of the parser definition files. You can obtain Bison from
6798 *** a GNU mirror site. (If you are using the official distribution of
6799 *** PostgreSQL then you do not need to worry about this, because the Bison
6800 *** output is pre-generated.)" >&5
6801 $as_echo "$as_me: WARNING:
6802 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6803 *** change any of the parser definition files. You can obtain Bison from
6804 *** a GNU mirror site. (If you are using the official distribution of
6805 *** PostgreSQL then you do not need to worry about this, because the Bison
6806 *** output is pre-generated.)" >&2;}
6808 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6811 { $as_echo "$as_me:$LINENO: checking for flex" >&5
6812 $as_echo_n "checking for flex... " >&6; }
6813 if test "${pgac_cv_path_flex+set}" = set; then
6814 $as_echo_n "(cached) " >&6
6816 # Let the user override the test
6817 if test -n "$FLEX"; then
6818 pgac_cv_path_flex=$FLEX
6822 for pgac_dir in $PATH; do
6824 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6827 for pgac_prog in flex lex; do
6828 pgac_candidate="$pgac_dir/$pgac_prog"
6829 if test -f "$pgac_candidate" \
6830 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6832 echo '%%' > conftest.l
6833 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6834 pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
6835 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
6837 pgac_cv_path_flex=$pgac_candidate
6840 { $as_echo "$as_me:$LINENO: WARNING:
6841 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6842 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
6843 $as_echo "$as_me: WARNING:
6844 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6845 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
6851 rm -f conftest.l lex.yy.c
6852 : ${pgac_cv_path_flex=no}
6856 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6857 $as_echo "$pgac_cv_path_flex" >&6; }
6858 if test x"$pgac_cv_path_flex" = x"no"; then
6859 { $as_echo "$as_me:$LINENO: WARNING:
6860 *** Without Flex you will not be able to build PostgreSQL from CVS nor
6861 *** change any of the scanner definition files. You can obtain Flex from
6862 *** a GNU mirror site. (If you are using the official distribution of
6863 *** PostgreSQL then you do not need to worry about this because the Flex
6864 *** output is pre-generated.)" >&5
6865 $as_echo "$as_me: WARNING:
6866 *** Without Flex you will not be able to build PostgreSQL from CVS nor
6867 *** change any of the scanner definition files. You can obtain Flex from
6868 *** a GNU mirror site. (If you are using the official distribution of
6869 *** PostgreSQL then you do not need to worry about this because the Flex
6870 *** output is pre-generated.)" >&2;}
6874 FLEX=$pgac_cv_path_flex
6875 pgac_flex_version=`$FLEX --version 2>/dev/null`
6876 { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6877 $as_echo "$as_me: using $pgac_flex_version" >&6;}
6884 # Extract the first word of "perl", so it can be a program name with args.
6885 set dummy perl; ac_word=$2
6886 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6887 $as_echo_n "checking for $ac_word... " >&6; }
6888 if test "${ac_cv_path_PERL+set}" = set; then
6889 $as_echo_n "(cached) " >&6
6893 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6903 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6904 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6914 PERL=$ac_cv_path_PERL
6915 if test -n "$PERL"; then
6916 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
6917 $as_echo "$PERL" >&6; }
6919 { $as_echo "$as_me:$LINENO: result: no" >&5
6920 $as_echo "no" >&6; }
6924 if test "$with_perl" = yes; then
6926 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6927 $as_echo_n "checking for Perl archlibexp... " >&6; }
6928 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6929 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6930 $as_echo "$perl_archlibexp" >&6; }
6931 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6932 $as_echo_n "checking for Perl privlibexp... " >&6; }
6933 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6934 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6935 $as_echo "$perl_privlibexp" >&6; }
6936 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6937 $as_echo_n "checking for Perl useshrplib... " >&6; }
6938 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6939 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6940 $as_echo "$perl_useshrplib" >&6; }
6942 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6943 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
6944 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6945 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6946 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
6947 if test -z "$perl_embed_ldflags" ; then
6948 { $as_echo "$as_me:$LINENO: result: no" >&5
6949 $as_echo "no" >&6; }
6950 { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6951 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6953 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
6954 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6956 { (exit 1); exit 1; }; }
6958 { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6959 $as_echo "$perl_embed_ldflags" >&6; }
6964 if test "$with_python" = yes; then
6965 # Extract the first word of "python", so it can be a program name with args.
6966 set dummy python; ac_word=$2
6967 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6968 $as_echo_n "checking for $ac_word... " >&6; }
6969 if test "${ac_cv_path_PYTHON+set}" = set; then
6970 $as_echo_n "(cached) " >&6
6974 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6984 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6985 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 PYTHON=$ac_cv_path_PYTHON
6996 if test -n "$PYTHON"; then
6997 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
6998 $as_echo "$PYTHON" >&6; }
7000 { $as_echo "$as_me:$LINENO: result: no" >&5
7001 $as_echo "no" >&6; }
7005 if test x"$PYTHON" = x""; then
7006 { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7007 $as_echo "$as_me: error: Python not found" >&2;}
7008 { (exit 1); exit 1; }; }
7012 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7013 $as_echo_n "checking for Python distutils module... " >&6; }
7014 if "${PYTHON}" 2>&- -c 'import distutils'
7016 { $as_echo "$as_me:$LINENO: result: yes" >&5
7017 $as_echo "yes" >&6; }
7019 { $as_echo "$as_me:$LINENO: result: no" >&5
7020 $as_echo "no" >&6; }
7021 { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7022 $as_echo "$as_me: error: distutils module not found" >&2;}
7023 { (exit 1); exit 1; }; }
7025 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7026 $as_echo_n "checking Python configuration directory... " >&6; }
7027 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7028 python_configdir=`${PYTHON} -c "from distutils.sysconfig import get_python_lib as f; import os; print(os.path.join(f(plat_specific=1,standard_lib=1),'config'))"`
7029 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7031 # This should be enough of a message.
7032 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7033 $as_echo "$python_configdir" >&6; }
7036 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7037 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7039 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7040 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7041 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7042 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7044 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7046 # New way: use the official shared library
7047 ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7048 python_libspec="-L${python_libdir} -l${ldlibrary}"
7050 # Old way: use libpython from python_configdir
7051 python_libdir="${python_configdir}"
7052 python_libspec="-L${python_libdir} -lpython${python_version}"
7055 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS'))))"`
7057 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7058 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7061 # threaded python is not supported on bsd's
7062 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7063 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7064 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7065 if test "$pythreads" = "1"; then
7066 { $as_echo "$as_me:$LINENO: result: yes" >&5
7067 $as_echo "yes" >&6; }
7070 { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7071 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7072 { (exit 1); exit 1; }; }
7076 { $as_echo "$as_me:$LINENO: result: no" >&5
7077 $as_echo "no" >&6; }
7083 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7084 # Extract the first word of "zic", so it can be a program name with args.
7085 set dummy zic; ac_word=$2
7086 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7087 $as_echo_n "checking for $ac_word... " >&6; }
7088 if test "${ac_cv_path_ZIC+set}" = set; then
7089 $as_echo_n "(cached) " >&6
7093 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100 test -z "$as_dir" && as_dir=.
7101 for ac_exec_ext in '' $ac_executable_extensions; do
7102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7103 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7104 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 if test -n "$ZIC"; then
7116 { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7117 $as_echo "$ZIC" >&6; }
7119 { $as_echo "$as_me:$LINENO: result: no" >&5
7120 $as_echo "no" >&6; }
7124 if test -z "$ZIC"; then
7125 { { $as_echo "$as_me:$LINENO: error:
7126 When cross-compiling, either use the option --with-system-tzdata to use
7127 existing time-zone data, or set the environment variable ZIC to a zic
7128 program to use during the build." >&5
7129 $as_echo "$as_me: error:
7130 When cross-compiling, either use the option --with-system-tzdata to use
7131 existing time-zone data, or set the environment variable ZIC to a zic
7132 program to use during the build." >&2;}
7133 { (exit 1); exit 1; }; }
7141 ## Most libraries are included only if they demonstrably provide a function
7142 ## we need, but libm is an exception: always include it, because there are
7143 ## too many compilers that play cute optimization games that will break
7144 ## probes for standard functions such as pow().
7148 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7149 $as_echo_n "checking for main in -lm... " >&6; }
7150 if test "${ac_cv_lib_m_main+set}" = set; then
7151 $as_echo_n "(cached) " >&6
7153 ac_check_lib_save_LIBS=$LIBS
7155 cat >conftest.$ac_ext <<_ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7171 rm -f conftest.$ac_objext conftest$ac_exeext
7172 if { (ac_try="$ac_link"
7174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7175 *) ac_try_echo=$ac_try;;
7177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7178 $as_echo "$ac_try_echo") >&5
7179 (eval "$ac_link") 2>conftest.er1
7181 grep -v '^ *+' conftest.er1 >conftest.err
7183 cat conftest.err >&5
7184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } && {
7186 test -z "$ac_c_werror_flag" ||
7187 test ! -s conftest.err
7188 } && test -s conftest$ac_exeext && {
7189 test "$cross_compiling" = yes ||
7190 $as_test_x conftest$ac_exeext
7192 ac_cv_lib_m_main=yes
7194 $as_echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.$ac_ext >&5
7200 rm -rf conftest.dSYM
7201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7202 conftest$ac_exeext conftest.$ac_ext
7203 LIBS=$ac_check_lib_save_LIBS
7205 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7206 $as_echo "$ac_cv_lib_m_main" >&6; }
7207 if test "x$ac_cv_lib_m_main" = x""yes; then
7208 cat >>confdefs.h <<_ACEOF
7216 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7217 $as_echo_n "checking for library containing setproctitle... " >&6; }
7218 if test "${ac_cv_search_setproctitle+set}" = set; then
7219 $as_echo_n "(cached) " >&6
7221 ac_func_search_save_LIBS=$LIBS
7222 cat >conftest.$ac_ext <<_ACEOF
7225 cat confdefs.h >>conftest.$ac_ext
7226 cat >>conftest.$ac_ext <<_ACEOF
7227 /* end confdefs.h. */
7229 /* Override any GCC internal prototype to avoid an error.
7230 Use char because int might match the return type of a GCC
7231 builtin and then its argument prototype would still apply. */
7235 char setproctitle ();
7239 return setproctitle ();
7244 for ac_lib in '' util; do
7245 if test -z "$ac_lib"; then
7246 ac_res="none required"
7249 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7251 rm -f conftest.$ac_objext conftest$ac_exeext
7252 if { (ac_try="$ac_link"
7254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7255 *) ac_try_echo=$ac_try;;
7257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7258 $as_echo "$ac_try_echo") >&5
7259 (eval "$ac_link") 2>conftest.er1
7261 grep -v '^ *+' conftest.er1 >conftest.err
7263 cat conftest.err >&5
7264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } && {
7266 test -z "$ac_c_werror_flag" ||
7267 test ! -s conftest.err
7268 } && test -s conftest$ac_exeext && {
7269 test "$cross_compiling" = yes ||
7270 $as_test_x conftest$ac_exeext
7272 ac_cv_search_setproctitle=$ac_res
7274 $as_echo "$as_me: failed program was:" >&5
7275 sed 's/^/| /' conftest.$ac_ext >&5
7280 rm -rf conftest.dSYM
7281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7283 if test "${ac_cv_search_setproctitle+set}" = set; then
7287 if test "${ac_cv_search_setproctitle+set}" = set; then
7290 ac_cv_search_setproctitle=no
7293 LIBS=$ac_func_search_save_LIBS
7295 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7296 $as_echo "$ac_cv_search_setproctitle" >&6; }
7297 ac_res=$ac_cv_search_setproctitle
7298 if test "$ac_res" != no; then
7299 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7303 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7304 $as_echo_n "checking for library containing dlopen... " >&6; }
7305 if test "${ac_cv_search_dlopen+set}" = set; then
7306 $as_echo_n "(cached) " >&6
7308 ac_func_search_save_LIBS=$LIBS
7309 cat >conftest.$ac_ext <<_ACEOF
7312 cat confdefs.h >>conftest.$ac_ext
7313 cat >>conftest.$ac_ext <<_ACEOF
7314 /* end confdefs.h. */
7316 /* Override any GCC internal prototype to avoid an error.
7317 Use char because int might match the return type of a GCC
7318 builtin and then its argument prototype would still apply. */
7331 for ac_lib in '' dl; do
7332 if test -z "$ac_lib"; then
7333 ac_res="none required"
7336 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7338 rm -f conftest.$ac_objext conftest$ac_exeext
7339 if { (ac_try="$ac_link"
7341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7342 *) ac_try_echo=$ac_try;;
7344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7345 $as_echo "$ac_try_echo") >&5
7346 (eval "$ac_link") 2>conftest.er1
7348 grep -v '^ *+' conftest.er1 >conftest.err
7350 cat conftest.err >&5
7351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } && {
7353 test -z "$ac_c_werror_flag" ||
7354 test ! -s conftest.err
7355 } && test -s conftest$ac_exeext && {
7356 test "$cross_compiling" = yes ||
7357 $as_test_x conftest$ac_exeext
7359 ac_cv_search_dlopen=$ac_res
7361 $as_echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.$ac_ext >&5
7367 rm -rf conftest.dSYM
7368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7370 if test "${ac_cv_search_dlopen+set}" = set; then
7374 if test "${ac_cv_search_dlopen+set}" = set; then
7377 ac_cv_search_dlopen=no
7380 LIBS=$ac_func_search_save_LIBS
7382 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7383 $as_echo "$ac_cv_search_dlopen" >&6; }
7384 ac_res=$ac_cv_search_dlopen
7385 if test "$ac_res" != no; then
7386 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7390 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7391 $as_echo_n "checking for library containing socket... " >&6; }
7392 if test "${ac_cv_search_socket+set}" = set; then
7393 $as_echo_n "(cached) " >&6
7395 ac_func_search_save_LIBS=$LIBS
7396 cat >conftest.$ac_ext <<_ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h. */
7403 /* Override any GCC internal prototype to avoid an error.
7404 Use char because int might match the return type of a GCC
7405 builtin and then its argument prototype would still apply. */
7418 for ac_lib in '' socket wsock32; do
7419 if test -z "$ac_lib"; then
7420 ac_res="none required"
7423 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7425 rm -f conftest.$ac_objext conftest$ac_exeext
7426 if { (ac_try="$ac_link"
7428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7429 *) ac_try_echo=$ac_try;;
7431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7432 $as_echo "$ac_try_echo") >&5
7433 (eval "$ac_link") 2>conftest.er1
7435 grep -v '^ *+' conftest.er1 >conftest.err
7437 cat conftest.err >&5
7438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } && {
7440 test -z "$ac_c_werror_flag" ||
7441 test ! -s conftest.err
7442 } && test -s conftest$ac_exeext && {
7443 test "$cross_compiling" = yes ||
7444 $as_test_x conftest$ac_exeext
7446 ac_cv_search_socket=$ac_res
7448 $as_echo "$as_me: failed program was:" >&5
7449 sed 's/^/| /' conftest.$ac_ext >&5
7454 rm -rf conftest.dSYM
7455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7457 if test "${ac_cv_search_socket+set}" = set; then
7461 if test "${ac_cv_search_socket+set}" = set; then
7464 ac_cv_search_socket=no
7467 LIBS=$ac_func_search_save_LIBS
7469 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7470 $as_echo "$ac_cv_search_socket" >&6; }
7471 ac_res=$ac_cv_search_socket
7472 if test "$ac_res" != no; then
7473 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7477 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7478 $as_echo_n "checking for library containing shl_load... " >&6; }
7479 if test "${ac_cv_search_shl_load+set}" = set; then
7480 $as_echo_n "(cached) " >&6
7482 ac_func_search_save_LIBS=$LIBS
7483 cat >conftest.$ac_ext <<_ACEOF
7486 cat confdefs.h >>conftest.$ac_ext
7487 cat >>conftest.$ac_ext <<_ACEOF
7488 /* end confdefs.h. */
7490 /* Override any GCC internal prototype to avoid an error.
7491 Use char because int might match the return type of a GCC
7492 builtin and then its argument prototype would still apply. */
7505 for ac_lib in '' dld; do
7506 if test -z "$ac_lib"; then
7507 ac_res="none required"
7510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7512 rm -f conftest.$ac_objext conftest$ac_exeext
7513 if { (ac_try="$ac_link"
7515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7516 *) ac_try_echo=$ac_try;;
7518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7519 $as_echo "$ac_try_echo") >&5
7520 (eval "$ac_link") 2>conftest.er1
7522 grep -v '^ *+' conftest.er1 >conftest.err
7524 cat conftest.err >&5
7525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); } && {
7527 test -z "$ac_c_werror_flag" ||
7528 test ! -s conftest.err
7529 } && test -s conftest$ac_exeext && {
7530 test "$cross_compiling" = yes ||
7531 $as_test_x conftest$ac_exeext
7533 ac_cv_search_shl_load=$ac_res
7535 $as_echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7541 rm -rf conftest.dSYM
7542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7544 if test "${ac_cv_search_shl_load+set}" = set; then
7548 if test "${ac_cv_search_shl_load+set}" = set; then
7551 ac_cv_search_shl_load=no
7554 LIBS=$ac_func_search_save_LIBS
7556 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7557 $as_echo "$ac_cv_search_shl_load" >&6; }
7558 ac_res=$ac_cv_search_shl_load
7559 if test "$ac_res" != no; then
7560 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7564 # We only use libld in port/dynloader/aix.c
7567 { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7568 $as_echo_n "checking for library containing ldopen... " >&6; }
7569 if test "${ac_cv_search_ldopen+set}" = set; then
7570 $as_echo_n "(cached) " >&6
7572 ac_func_search_save_LIBS=$LIBS
7573 cat >conftest.$ac_ext <<_ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h. */
7580 /* Override any GCC internal prototype to avoid an error.
7581 Use char because int might match the return type of a GCC
7582 builtin and then its argument prototype would still apply. */
7595 for ac_lib in '' ld; do
7596 if test -z "$ac_lib"; then
7597 ac_res="none required"
7600 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7602 rm -f conftest.$ac_objext conftest$ac_exeext
7603 if { (ac_try="$ac_link"
7605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7606 *) ac_try_echo=$ac_try;;
7608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7609 $as_echo "$ac_try_echo") >&5
7610 (eval "$ac_link") 2>conftest.er1
7612 grep -v '^ *+' conftest.er1 >conftest.err
7614 cat conftest.err >&5
7615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } && {
7617 test -z "$ac_c_werror_flag" ||
7618 test ! -s conftest.err
7619 } && test -s conftest$ac_exeext && {
7620 test "$cross_compiling" = yes ||
7621 $as_test_x conftest$ac_exeext
7623 ac_cv_search_ldopen=$ac_res
7625 $as_echo "$as_me: failed program was:" >&5
7626 sed 's/^/| /' conftest.$ac_ext >&5
7631 rm -rf conftest.dSYM
7632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7634 if test "${ac_cv_search_ldopen+set}" = set; then
7638 if test "${ac_cv_search_ldopen+set}" = set; then
7641 ac_cv_search_ldopen=no
7644 LIBS=$ac_func_search_save_LIBS
7646 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7647 $as_echo "$ac_cv_search_ldopen" >&6; }
7648 ac_res=$ac_cv_search_ldopen
7649 if test "$ac_res" != no; then
7650 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7656 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7657 $as_echo_n "checking for library containing getopt_long... " >&6; }
7658 if test "${ac_cv_search_getopt_long+set}" = set; then
7659 $as_echo_n "(cached) " >&6
7661 ac_func_search_save_LIBS=$LIBS
7662 cat >conftest.$ac_ext <<_ACEOF
7665 cat confdefs.h >>conftest.$ac_ext
7666 cat >>conftest.$ac_ext <<_ACEOF
7667 /* end confdefs.h. */
7669 /* Override any GCC internal prototype to avoid an error.
7670 Use char because int might match the return type of a GCC
7671 builtin and then its argument prototype would still apply. */
7675 char getopt_long ();
7679 return getopt_long ();
7684 for ac_lib in '' getopt gnugetopt; do
7685 if test -z "$ac_lib"; then
7686 ac_res="none required"
7689 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7691 rm -f conftest.$ac_objext conftest$ac_exeext
7692 if { (ac_try="$ac_link"
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7698 $as_echo "$ac_try_echo") >&5
7699 (eval "$ac_link") 2>conftest.er1
7701 grep -v '^ *+' conftest.er1 >conftest.err
7703 cat conftest.err >&5
7704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } && {
7706 test -z "$ac_c_werror_flag" ||
7707 test ! -s conftest.err
7708 } && test -s conftest$ac_exeext && {
7709 test "$cross_compiling" = yes ||
7710 $as_test_x conftest$ac_exeext
7712 ac_cv_search_getopt_long=$ac_res
7714 $as_echo "$as_me: failed program was:" >&5
7715 sed 's/^/| /' conftest.$ac_ext >&5
7720 rm -rf conftest.dSYM
7721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7723 if test "${ac_cv_search_getopt_long+set}" = set; then
7727 if test "${ac_cv_search_getopt_long+set}" = set; then
7730 ac_cv_search_getopt_long=no
7733 LIBS=$ac_func_search_save_LIBS
7735 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7736 $as_echo "$ac_cv_search_getopt_long" >&6; }
7737 ac_res=$ac_cv_search_getopt_long
7738 if test "$ac_res" != no; then
7739 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7743 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
7744 $as_echo_n "checking for library containing crypt... " >&6; }
7745 if test "${ac_cv_search_crypt+set}" = set; then
7746 $as_echo_n "(cached) " >&6
7748 ac_func_search_save_LIBS=$LIBS
7749 cat >conftest.$ac_ext <<_ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7756 /* Override any GCC internal prototype to avoid an error.
7757 Use char because int might match the return type of a GCC
7758 builtin and then its argument prototype would still apply. */
7771 for ac_lib in '' crypt; do
7772 if test -z "$ac_lib"; then
7773 ac_res="none required"
7776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7778 rm -f conftest.$ac_objext conftest$ac_exeext
7779 if { (ac_try="$ac_link"
7781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782 *) ac_try_echo=$ac_try;;
7784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7785 $as_echo "$ac_try_echo") >&5
7786 (eval "$ac_link") 2>conftest.er1
7788 grep -v '^ *+' conftest.er1 >conftest.err
7790 cat conftest.err >&5
7791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); } && {
7793 test -z "$ac_c_werror_flag" ||
7794 test ! -s conftest.err
7795 } && test -s conftest$ac_exeext && {
7796 test "$cross_compiling" = yes ||
7797 $as_test_x conftest$ac_exeext
7799 ac_cv_search_crypt=$ac_res
7801 $as_echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7807 rm -rf conftest.dSYM
7808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7810 if test "${ac_cv_search_crypt+set}" = set; then
7814 if test "${ac_cv_search_crypt+set}" = set; then
7817 ac_cv_search_crypt=no
7820 LIBS=$ac_func_search_save_LIBS
7822 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7823 $as_echo "$ac_cv_search_crypt" >&6; }
7824 ac_res=$ac_cv_search_crypt
7825 if test "$ac_res" != no; then
7826 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7831 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7832 $as_echo_n "checking for library containing fdatasync... " >&6; }
7833 if test "${ac_cv_search_fdatasync+set}" = set; then
7834 $as_echo_n "(cached) " >&6
7836 ac_func_search_save_LIBS=$LIBS
7837 cat >conftest.$ac_ext <<_ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h. */
7844 /* Override any GCC internal prototype to avoid an error.
7845 Use char because int might match the return type of a GCC
7846 builtin and then its argument prototype would still apply. */
7854 return fdatasync ();
7859 for ac_lib in '' rt posix4; do
7860 if test -z "$ac_lib"; then
7861 ac_res="none required"
7864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7866 rm -f conftest.$ac_objext conftest$ac_exeext
7867 if { (ac_try="$ac_link"
7869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870 *) ac_try_echo=$ac_try;;
7872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7873 $as_echo "$ac_try_echo") >&5
7874 (eval "$ac_link") 2>conftest.er1
7876 grep -v '^ *+' conftest.er1 >conftest.err
7878 cat conftest.err >&5
7879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } && {
7881 test -z "$ac_c_werror_flag" ||
7882 test ! -s conftest.err
7883 } && test -s conftest$ac_exeext && {
7884 test "$cross_compiling" = yes ||
7885 $as_test_x conftest$ac_exeext
7887 ac_cv_search_fdatasync=$ac_res
7889 $as_echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7895 rm -rf conftest.dSYM
7896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7898 if test "${ac_cv_search_fdatasync+set}" = set; then
7902 if test "${ac_cv_search_fdatasync+set}" = set; then
7905 ac_cv_search_fdatasync=no
7908 LIBS=$ac_func_search_save_LIBS
7910 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7911 $as_echo "$ac_cv_search_fdatasync" >&6; }
7912 ac_res=$ac_cv_search_fdatasync
7913 if test "$ac_res" != no; then
7914 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7918 # Required for thread_test.c on Solaris 2.5:
7919 # Other ports use it too (HP-UX) so test unconditionally
7920 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
7921 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
7922 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7923 $as_echo_n "(cached) " >&6
7925 ac_func_search_save_LIBS=$LIBS
7926 cat >conftest.$ac_ext <<_ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7933 /* Override any GCC internal prototype to avoid an error.
7934 Use char because int might match the return type of a GCC
7935 builtin and then its argument prototype would still apply. */
7939 char gethostbyname_r ();
7943 return gethostbyname_r ();
7948 for ac_lib in '' nsl; do
7949 if test -z "$ac_lib"; then
7950 ac_res="none required"
7953 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7955 rm -f conftest.$ac_objext conftest$ac_exeext
7956 if { (ac_try="$ac_link"
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7962 $as_echo "$ac_try_echo") >&5
7963 (eval "$ac_link") 2>conftest.er1
7965 grep -v '^ *+' conftest.er1 >conftest.err
7967 cat conftest.err >&5
7968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } && {
7970 test -z "$ac_c_werror_flag" ||
7971 test ! -s conftest.err
7972 } && test -s conftest$ac_exeext && {
7973 test "$cross_compiling" = yes ||
7974 $as_test_x conftest$ac_exeext
7976 ac_cv_search_gethostbyname_r=$ac_res
7978 $as_echo "$as_me: failed program was:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7984 rm -rf conftest.dSYM
7985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7987 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7991 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7994 ac_cv_search_gethostbyname_r=no
7997 LIBS=$ac_func_search_save_LIBS
7999 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8000 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8001 ac_res=$ac_cv_search_gethostbyname_r
8002 if test "$ac_res" != no; then
8003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8008 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8009 $as_echo_n "checking for library containing shmget... " >&6; }
8010 if test "${ac_cv_search_shmget+set}" = set; then
8011 $as_echo_n "(cached) " >&6
8013 ac_func_search_save_LIBS=$LIBS
8014 cat >conftest.$ac_ext <<_ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8021 /* Override any GCC internal prototype to avoid an error.
8022 Use char because int might match the return type of a GCC
8023 builtin and then its argument prototype would still apply. */
8036 for ac_lib in '' cygipc; do
8037 if test -z "$ac_lib"; then
8038 ac_res="none required"
8041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8043 rm -f conftest.$ac_objext conftest$ac_exeext
8044 if { (ac_try="$ac_link"
8046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047 *) ac_try_echo=$ac_try;;
8049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8050 $as_echo "$ac_try_echo") >&5
8051 (eval "$ac_link") 2>conftest.er1
8053 grep -v '^ *+' conftest.er1 >conftest.err
8055 cat conftest.err >&5
8056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } && {
8058 test -z "$ac_c_werror_flag" ||
8059 test ! -s conftest.err
8060 } && test -s conftest$ac_exeext && {
8061 test "$cross_compiling" = yes ||
8062 $as_test_x conftest$ac_exeext
8064 ac_cv_search_shmget=$ac_res
8066 $as_echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8072 rm -rf conftest.dSYM
8073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8075 if test "${ac_cv_search_shmget+set}" = set; then
8079 if test "${ac_cv_search_shmget+set}" = set; then
8082 ac_cv_search_shmget=no
8085 LIBS=$ac_func_search_save_LIBS
8087 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8088 $as_echo "$ac_cv_search_shmget" >&6; }
8089 ac_res=$ac_cv_search_shmget
8090 if test "$ac_res" != no; then
8091 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8096 if test "$with_readline" = yes; then
8099 if test "${pgac_cv_check_readline+set}" = set; then
8100 $as_echo_n "(cached) " >&6
8102 pgac_cv_check_readline=no
8103 pgac_save_LIBS=$LIBS
8104 if test x"$with_libedit_preferred" != x"yes"
8105 then READLINE_ORDER="-lreadline -ledit"
8106 else READLINE_ORDER="-ledit -lreadline"
8108 for pgac_rllib in $READLINE_ORDER ; do
8109 { $as_echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
8110 $as_echo_n "checking for ${pgac_rllib}... " >&6; }
8111 for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8112 LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8113 cat >conftest.$ac_ext <<_ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8120 /* Override any GCC internal prototype to avoid an error.
8121 Use char because int might match the return type of a GCC
8122 builtin and then its argument prototype would still apply. */
8135 rm -f conftest.$ac_objext conftest$ac_exeext
8136 if { (ac_try="$ac_link"
8138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139 *) ac_try_echo=$ac_try;;
8141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8142 $as_echo "$ac_try_echo") >&5
8143 (eval "$ac_link") 2>conftest.er1
8145 grep -v '^ *+' conftest.er1 >conftest.err
8147 cat conftest.err >&5
8148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); } && {
8150 test -z "$ac_c_werror_flag" ||
8151 test ! -s conftest.err
8152 } && test -s conftest$ac_exeext && {
8153 test "$cross_compiling" = yes ||
8154 $as_test_x conftest$ac_exeext
8157 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8158 # recognize dependent libraries; assume curses is needed if we didn't
8159 # find any dependency.
8161 netbsd* | openbsd* | irix*)
8162 if test x"$pgac_lib" = x"" ; then
8163 pgac_lib=" -lcurses"
8167 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8171 $as_echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8177 rm -rf conftest.dSYM
8178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8179 conftest$ac_exeext conftest.$ac_ext
8181 if test "$pgac_cv_check_readline" != no ; then
8182 { $as_echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
8183 $as_echo "yes ($pgac_cv_check_readline)" >&6; }
8186 { $as_echo "$as_me:$LINENO: result: no" >&5
8187 $as_echo "no" >&6; }
8190 LIBS=$pgac_save_LIBS
8194 if test "$pgac_cv_check_readline" != no ; then
8195 LIBS="$pgac_cv_check_readline $LIBS"
8197 cat >>confdefs.h <<\_ACEOF
8198 #define HAVE_LIBREADLINE 1
8204 if test x"$pgac_cv_check_readline" = x"no"; then
8205 { { $as_echo "$as_me:$LINENO: error: readline library not found
8206 If you have readline already installed, see config.log for details on the
8207 failure. It is possible the compiler isn't looking in the proper directory.
8208 Use --without-readline to disable readline support." >&5
8209 $as_echo "$as_me: error: readline library not found
8210 If you have readline already installed, see config.log for details on the
8211 failure. It is possible the compiler isn't looking in the proper directory.
8212 Use --without-readline to disable readline support." >&2;}
8213 { (exit 1); exit 1; }; }
8217 if test "$with_zlib" = yes; then
8219 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8220 $as_echo_n "checking for inflate in -lz... " >&6; }
8221 if test "${ac_cv_lib_z_inflate+set}" = set; then
8222 $as_echo_n "(cached) " >&6
8224 ac_check_lib_save_LIBS=$LIBS
8226 cat >conftest.$ac_ext <<_ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h. */
8233 /* Override any GCC internal prototype to avoid an error.
8234 Use char because int might match the return type of a GCC
8235 builtin and then its argument prototype would still apply. */
8248 rm -f conftest.$ac_objext conftest$ac_exeext
8249 if { (ac_try="$ac_link"
8251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252 *) ac_try_echo=$ac_try;;
8254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8255 $as_echo "$ac_try_echo") >&5
8256 (eval "$ac_link") 2>conftest.er1
8258 grep -v '^ *+' conftest.er1 >conftest.err
8260 cat conftest.err >&5
8261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } && {
8263 test -z "$ac_c_werror_flag" ||
8264 test ! -s conftest.err
8265 } && test -s conftest$ac_exeext && {
8266 test "$cross_compiling" = yes ||
8267 $as_test_x conftest$ac_exeext
8269 ac_cv_lib_z_inflate=yes
8271 $as_echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8274 ac_cv_lib_z_inflate=no
8277 rm -rf conftest.dSYM
8278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8279 conftest$ac_exeext conftest.$ac_ext
8280 LIBS=$ac_check_lib_save_LIBS
8282 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8283 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8284 if test "x$ac_cv_lib_z_inflate" = x""yes; then
8285 cat >>confdefs.h <<_ACEOF
8292 { { $as_echo "$as_me:$LINENO: error: zlib library not found
8293 If you have zlib already installed, see config.log for details on the
8294 failure. It is possible the compiler isn't looking in the proper directory.
8295 Use --without-zlib to disable zlib support." >&5
8296 $as_echo "$as_me: error: zlib library not found
8297 If you have zlib already installed, see config.log for details on the
8298 failure. It is possible the compiler isn't looking in the proper directory.
8299 Use --without-zlib to disable zlib support." >&2;}
8300 { (exit 1); exit 1; }; }
8305 if test "$enable_spinlocks" = yes; then
8307 cat >>confdefs.h <<\_ACEOF
8308 #define HAVE_SPINLOCKS 1
8312 { $as_echo "$as_me:$LINENO: WARNING:
8313 *** Not using spinlocks will cause poor performance." >&5
8314 $as_echo "$as_me: WARNING:
8315 *** Not using spinlocks will cause poor performance." >&2;}
8318 if test "$with_gssapi" = yes ; then
8319 if test "$PORTNAME" != "win32"; then
8320 { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8321 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8322 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8323 $as_echo_n "(cached) " >&6
8325 ac_func_search_save_LIBS=$LIBS
8326 cat >conftest.$ac_ext <<_ACEOF
8329 cat confdefs.h >>conftest.$ac_ext
8330 cat >>conftest.$ac_ext <<_ACEOF
8331 /* end confdefs.h. */
8333 /* Override any GCC internal prototype to avoid an error.
8334 Use char because int might match the return type of a GCC
8335 builtin and then its argument prototype would still apply. */
8339 char gss_init_sec_context ();
8343 return gss_init_sec_context ();
8348 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8349 if test -z "$ac_lib"; then
8350 ac_res="none required"
8353 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8355 rm -f conftest.$ac_objext conftest$ac_exeext
8356 if { (ac_try="$ac_link"
8358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8359 *) ac_try_echo=$ac_try;;
8361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8362 $as_echo "$ac_try_echo") >&5
8363 (eval "$ac_link") 2>conftest.er1
8365 grep -v '^ *+' conftest.er1 >conftest.err
8367 cat conftest.err >&5
8368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } && {
8370 test -z "$ac_c_werror_flag" ||
8371 test ! -s conftest.err
8372 } && test -s conftest$ac_exeext && {
8373 test "$cross_compiling" = yes ||
8374 $as_test_x conftest$ac_exeext
8376 ac_cv_search_gss_init_sec_context=$ac_res
8378 $as_echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8384 rm -rf conftest.dSYM
8385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8387 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8391 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8394 ac_cv_search_gss_init_sec_context=no
8397 LIBS=$ac_func_search_save_LIBS
8399 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8400 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8401 ac_res=$ac_cv_search_gss_init_sec_context
8402 if test "$ac_res" != no; then
8403 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8406 { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8407 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8408 { (exit 1); exit 1; }; }
8412 LIBS="$LIBS -lgssapi32"
8416 if test "$with_krb5" = yes ; then
8417 if test "$PORTNAME" != "win32"; then
8418 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8419 $as_echo_n "checking for library containing com_err... " >&6; }
8420 if test "${ac_cv_search_com_err+set}" = set; then
8421 $as_echo_n "(cached) " >&6
8423 ac_func_search_save_LIBS=$LIBS
8424 cat >conftest.$ac_ext <<_ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h. */
8431 /* Override any GCC internal prototype to avoid an error.
8432 Use char because int might match the return type of a GCC
8433 builtin and then its argument prototype would still apply. */
8446 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8447 if test -z "$ac_lib"; then
8448 ac_res="none required"
8451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8453 rm -f conftest.$ac_objext conftest$ac_exeext
8454 if { (ac_try="$ac_link"
8456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457 *) ac_try_echo=$ac_try;;
8459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8460 $as_echo "$ac_try_echo") >&5
8461 (eval "$ac_link") 2>conftest.er1
8463 grep -v '^ *+' conftest.er1 >conftest.err
8465 cat conftest.err >&5
8466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } && {
8468 test -z "$ac_c_werror_flag" ||
8469 test ! -s conftest.err
8470 } && test -s conftest$ac_exeext && {
8471 test "$cross_compiling" = yes ||
8472 $as_test_x conftest$ac_exeext
8474 ac_cv_search_com_err=$ac_res
8476 $as_echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8482 rm -rf conftest.dSYM
8483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8485 if test "${ac_cv_search_com_err+set}" = set; then
8489 if test "${ac_cv_search_com_err+set}" = set; then
8492 ac_cv_search_com_err=no
8495 LIBS=$ac_func_search_save_LIBS
8497 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8498 $as_echo "$ac_cv_search_com_err" >&6; }
8499 ac_res=$ac_cv_search_com_err
8500 if test "$ac_res" != no; then
8501 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8504 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8505 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8506 { (exit 1); exit 1; }; }
8509 { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8510 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8511 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8512 $as_echo_n "(cached) " >&6
8514 ac_func_search_save_LIBS=$LIBS
8515 cat >conftest.$ac_ext <<_ACEOF
8518 cat confdefs.h >>conftest.$ac_ext
8519 cat >>conftest.$ac_ext <<_ACEOF
8520 /* end confdefs.h. */
8522 /* Override any GCC internal prototype to avoid an error.
8523 Use char because int might match the return type of a GCC
8524 builtin and then its argument prototype would still apply. */
8528 char krb5_sendauth ();
8532 return krb5_sendauth ();
8537 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8538 if test -z "$ac_lib"; then
8539 ac_res="none required"
8542 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8544 rm -f conftest.$ac_objext conftest$ac_exeext
8545 if { (ac_try="$ac_link"
8547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8548 *) ac_try_echo=$ac_try;;
8550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8551 $as_echo "$ac_try_echo") >&5
8552 (eval "$ac_link") 2>conftest.er1
8554 grep -v '^ *+' conftest.er1 >conftest.err
8556 cat conftest.err >&5
8557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } && {
8559 test -z "$ac_c_werror_flag" ||
8560 test ! -s conftest.err
8561 } && test -s conftest$ac_exeext && {
8562 test "$cross_compiling" = yes ||
8563 $as_test_x conftest$ac_exeext
8565 ac_cv_search_krb5_sendauth=$ac_res
8567 $as_echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.$ac_ext >&5
8573 rm -rf conftest.dSYM
8574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8576 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8580 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8583 ac_cv_search_krb5_sendauth=no
8586 LIBS=$ac_func_search_save_LIBS
8588 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8589 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8590 ac_res=$ac_cv_search_krb5_sendauth
8591 if test "$ac_res" != no; then
8592 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8595 { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8596 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8597 { (exit 1); exit 1; }; }
8601 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8602 $as_echo_n "checking for library containing com_err... " >&6; }
8603 if test "${ac_cv_search_com_err+set}" = set; then
8604 $as_echo_n "(cached) " >&6
8606 ac_func_search_save_LIBS=$LIBS
8607 cat >conftest.$ac_ext <<_ACEOF
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h. */
8614 /* Override any GCC internal prototype to avoid an error.
8615 Use char because int might match the return type of a GCC
8616 builtin and then its argument prototype would still apply. */
8629 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8630 if test -z "$ac_lib"; then
8631 ac_res="none required"
8634 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8636 rm -f conftest.$ac_objext conftest$ac_exeext
8637 if { (ac_try="$ac_link"
8639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640 *) ac_try_echo=$ac_try;;
8642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8643 $as_echo "$ac_try_echo") >&5
8644 (eval "$ac_link") 2>conftest.er1
8646 grep -v '^ *+' conftest.er1 >conftest.err
8648 cat conftest.err >&5
8649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } && {
8651 test -z "$ac_c_werror_flag" ||
8652 test ! -s conftest.err
8653 } && test -s conftest$ac_exeext && {
8654 test "$cross_compiling" = yes ||
8655 $as_test_x conftest$ac_exeext
8657 ac_cv_search_com_err=$ac_res
8659 $as_echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8665 rm -rf conftest.dSYM
8666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8668 if test "${ac_cv_search_com_err+set}" = set; then
8672 if test "${ac_cv_search_com_err+set}" = set; then
8675 ac_cv_search_com_err=no
8678 LIBS=$ac_func_search_save_LIBS
8680 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8681 $as_echo "$ac_cv_search_com_err" >&6; }
8682 ac_res=$ac_cv_search_com_err
8683 if test "$ac_res" != no; then
8684 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8687 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8688 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8689 { (exit 1); exit 1; }; }
8695 if test "$with_openssl" = yes ; then
8696 if test "$PORTNAME" != "win32"; then
8698 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8699 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8700 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8701 $as_echo_n "(cached) " >&6
8703 ac_check_lib_save_LIBS=$LIBS
8704 LIBS="-lcrypto $LIBS"
8705 cat >conftest.$ac_ext <<_ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h. */
8712 /* Override any GCC internal prototype to avoid an error.
8713 Use char because int might match the return type of a GCC
8714 builtin and then its argument prototype would still apply. */
8718 char CRYPTO_new_ex_data ();
8722 return CRYPTO_new_ex_data ();
8727 rm -f conftest.$ac_objext conftest$ac_exeext
8728 if { (ac_try="$ac_link"
8730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8731 *) ac_try_echo=$ac_try;;
8733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8734 $as_echo "$ac_try_echo") >&5
8735 (eval "$ac_link") 2>conftest.er1
8737 grep -v '^ *+' conftest.er1 >conftest.err
8739 cat conftest.err >&5
8740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); } && {
8742 test -z "$ac_c_werror_flag" ||
8743 test ! -s conftest.err
8744 } && test -s conftest$ac_exeext && {
8745 test "$cross_compiling" = yes ||
8746 $as_test_x conftest$ac_exeext
8748 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8750 $as_echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.$ac_ext >&5
8753 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8756 rm -rf conftest.dSYM
8757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8758 conftest$ac_exeext conftest.$ac_ext
8759 LIBS=$ac_check_lib_save_LIBS
8761 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8762 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8763 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
8764 cat >>confdefs.h <<_ACEOF
8765 #define HAVE_LIBCRYPTO 1
8768 LIBS="-lcrypto $LIBS"
8771 { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8772 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8773 { (exit 1); exit 1; }; }
8777 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8778 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8779 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8780 $as_echo_n "(cached) " >&6
8782 ac_check_lib_save_LIBS=$LIBS
8784 cat >conftest.$ac_ext <<_ACEOF
8787 cat confdefs.h >>conftest.$ac_ext
8788 cat >>conftest.$ac_ext <<_ACEOF
8789 /* end confdefs.h. */
8791 /* Override any GCC internal prototype to avoid an error.
8792 Use char because int might match the return type of a GCC
8793 builtin and then its argument prototype would still apply. */
8797 char SSL_library_init ();
8801 return SSL_library_init ();
8806 rm -f conftest.$ac_objext conftest$ac_exeext
8807 if { (ac_try="$ac_link"
8809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8810 *) ac_try_echo=$ac_try;;
8812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8813 $as_echo "$ac_try_echo") >&5
8814 (eval "$ac_link") 2>conftest.er1
8816 grep -v '^ *+' conftest.er1 >conftest.err
8818 cat conftest.err >&5
8819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } && {
8821 test -z "$ac_c_werror_flag" ||
8822 test ! -s conftest.err
8823 } && test -s conftest$ac_exeext && {
8824 test "$cross_compiling" = yes ||
8825 $as_test_x conftest$ac_exeext
8827 ac_cv_lib_ssl_SSL_library_init=yes
8829 $as_echo "$as_me: failed program was:" >&5
8830 sed 's/^/| /' conftest.$ac_ext >&5
8832 ac_cv_lib_ssl_SSL_library_init=no
8835 rm -rf conftest.dSYM
8836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8837 conftest$ac_exeext conftest.$ac_ext
8838 LIBS=$ac_check_lib_save_LIBS
8840 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8841 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
8842 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
8843 cat >>confdefs.h <<_ACEOF
8844 #define HAVE_LIBSSL 1
8850 { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8851 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8852 { (exit 1); exit 1; }; }
8857 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8858 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
8859 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8860 $as_echo_n "(cached) " >&6
8862 ac_check_lib_save_LIBS=$LIBS
8863 LIBS="-leay32 $LIBS"
8864 cat >conftest.$ac_ext <<_ACEOF
8867 cat confdefs.h >>conftest.$ac_ext
8868 cat >>conftest.$ac_ext <<_ACEOF
8869 /* end confdefs.h. */
8871 /* Override any GCC internal prototype to avoid an error.
8872 Use char because int might match the return type of a GCC
8873 builtin and then its argument prototype would still apply. */
8877 char CRYPTO_new_ex_data ();
8881 return CRYPTO_new_ex_data ();
8886 rm -f conftest.$ac_objext conftest$ac_exeext
8887 if { (ac_try="$ac_link"
8889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8890 *) ac_try_echo=$ac_try;;
8892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8893 $as_echo "$ac_try_echo") >&5
8894 (eval "$ac_link") 2>conftest.er1
8896 grep -v '^ *+' conftest.er1 >conftest.err
8898 cat conftest.err >&5
8899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); } && {
8901 test -z "$ac_c_werror_flag" ||
8902 test ! -s conftest.err
8903 } && test -s conftest$ac_exeext && {
8904 test "$cross_compiling" = yes ||
8905 $as_test_x conftest$ac_exeext
8907 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8909 $as_echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8912 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8915 rm -rf conftest.dSYM
8916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8917 conftest$ac_exeext conftest.$ac_ext
8918 LIBS=$ac_check_lib_save_LIBS
8920 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8921 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8922 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
8923 cat >>confdefs.h <<_ACEOF
8924 #define HAVE_LIBEAY32 1
8927 LIBS="-leay32 $LIBS"
8930 { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8931 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8932 { (exit 1); exit 1; }; }
8936 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8937 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
8938 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8939 $as_echo_n "(cached) " >&6
8941 ac_check_lib_save_LIBS=$LIBS
8942 LIBS="-lssleay32 $LIBS"
8943 cat >conftest.$ac_ext <<_ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h. */
8950 /* Override any GCC internal prototype to avoid an error.
8951 Use char because int might match the return type of a GCC
8952 builtin and then its argument prototype would still apply. */
8956 char SSL_library_init ();
8960 return SSL_library_init ();
8965 rm -f conftest.$ac_objext conftest$ac_exeext
8966 if { (ac_try="$ac_link"
8968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8969 *) ac_try_echo=$ac_try;;
8971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8972 $as_echo "$ac_try_echo") >&5
8973 (eval "$ac_link") 2>conftest.er1
8975 grep -v '^ *+' conftest.er1 >conftest.err
8977 cat conftest.err >&5
8978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); } && {
8980 test -z "$ac_c_werror_flag" ||
8981 test ! -s conftest.err
8982 } && test -s conftest$ac_exeext && {
8983 test "$cross_compiling" = yes ||
8984 $as_test_x conftest$ac_exeext
8986 ac_cv_lib_ssleay32_SSL_library_init=yes
8988 $as_echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.$ac_ext >&5
8991 ac_cv_lib_ssleay32_SSL_library_init=no
8994 rm -rf conftest.dSYM
8995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8996 conftest$ac_exeext conftest.$ac_ext
8997 LIBS=$ac_check_lib_save_LIBS
8999 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
9000 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
9001 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x""yes; then
9002 cat >>confdefs.h <<_ACEOF
9003 #define HAVE_LIBSSLEAY32 1
9006 LIBS="-lssleay32 $LIBS"
9009 { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
9010 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
9011 { (exit 1); exit 1; }; }
9017 if test "$with_pam" = yes ; then
9019 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9020 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9021 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9022 $as_echo_n "(cached) " >&6
9024 ac_check_lib_save_LIBS=$LIBS
9026 cat >conftest.$ac_ext <<_ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h. */
9033 /* Override any GCC internal prototype to avoid an error.
9034 Use char because int might match the return type of a GCC
9035 builtin and then its argument prototype would still apply. */
9043 return pam_start ();
9048 rm -f conftest.$ac_objext conftest$ac_exeext
9049 if { (ac_try="$ac_link"
9051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9052 *) ac_try_echo=$ac_try;;
9054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9055 $as_echo "$ac_try_echo") >&5
9056 (eval "$ac_link") 2>conftest.er1
9058 grep -v '^ *+' conftest.er1 >conftest.err
9060 cat conftest.err >&5
9061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } && {
9063 test -z "$ac_c_werror_flag" ||
9064 test ! -s conftest.err
9065 } && test -s conftest$ac_exeext && {
9066 test "$cross_compiling" = yes ||
9067 $as_test_x conftest$ac_exeext
9069 ac_cv_lib_pam_pam_start=yes
9071 $as_echo "$as_me: failed program was:" >&5
9072 sed 's/^/| /' conftest.$ac_ext >&5
9074 ac_cv_lib_pam_pam_start=no
9077 rm -rf conftest.dSYM
9078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9079 conftest$ac_exeext conftest.$ac_ext
9080 LIBS=$ac_check_lib_save_LIBS
9082 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9083 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9084 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9085 cat >>confdefs.h <<_ACEOF
9086 #define HAVE_LIBPAM 1
9092 { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9093 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9094 { (exit 1); exit 1; }; }
9099 if test "$with_libxml" = yes ; then
9101 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9102 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9103 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9104 $as_echo_n "(cached) " >&6
9106 ac_check_lib_save_LIBS=$LIBS
9108 cat >conftest.$ac_ext <<_ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h. */
9115 /* Override any GCC internal prototype to avoid an error.
9116 Use char because int might match the return type of a GCC
9117 builtin and then its argument prototype would still apply. */
9121 char xmlSaveToBuffer ();
9125 return xmlSaveToBuffer ();
9130 rm -f conftest.$ac_objext conftest$ac_exeext
9131 if { (ac_try="$ac_link"
9133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9134 *) ac_try_echo=$ac_try;;
9136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9137 $as_echo "$ac_try_echo") >&5
9138 (eval "$ac_link") 2>conftest.er1
9140 grep -v '^ *+' conftest.er1 >conftest.err
9142 cat conftest.err >&5
9143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); } && {
9145 test -z "$ac_c_werror_flag" ||
9146 test ! -s conftest.err
9147 } && test -s conftest$ac_exeext && {
9148 test "$cross_compiling" = yes ||
9149 $as_test_x conftest$ac_exeext
9151 ac_cv_lib_xml2_xmlSaveToBuffer=yes
9153 $as_echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.$ac_ext >&5
9156 ac_cv_lib_xml2_xmlSaveToBuffer=no
9159 rm -rf conftest.dSYM
9160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9161 conftest$ac_exeext conftest.$ac_ext
9162 LIBS=$ac_check_lib_save_LIBS
9164 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9165 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9166 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9167 cat >>confdefs.h <<_ACEOF
9168 #define HAVE_LIBXML2 1
9174 { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9175 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9176 { (exit 1); exit 1; }; }
9181 if test "$with_libxslt" = yes ; then
9183 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9184 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9185 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9186 $as_echo_n "(cached) " >&6
9188 ac_check_lib_save_LIBS=$LIBS
9190 cat >conftest.$ac_ext <<_ACEOF
9193 cat confdefs.h >>conftest.$ac_ext
9194 cat >>conftest.$ac_ext <<_ACEOF
9195 /* end confdefs.h. */
9197 /* Override any GCC internal prototype to avoid an error.
9198 Use char because int might match the return type of a GCC
9199 builtin and then its argument prototype would still apply. */
9203 char xsltCleanupGlobals ();
9207 return xsltCleanupGlobals ();
9212 rm -f conftest.$ac_objext conftest$ac_exeext
9213 if { (ac_try="$ac_link"
9215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9216 *) ac_try_echo=$ac_try;;
9218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9219 $as_echo "$ac_try_echo") >&5
9220 (eval "$ac_link") 2>conftest.er1
9222 grep -v '^ *+' conftest.er1 >conftest.err
9224 cat conftest.err >&5
9225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); } && {
9227 test -z "$ac_c_werror_flag" ||
9228 test ! -s conftest.err
9229 } && test -s conftest$ac_exeext && {
9230 test "$cross_compiling" = yes ||
9231 $as_test_x conftest$ac_exeext
9233 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9235 $as_echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9238 ac_cv_lib_xslt_xsltCleanupGlobals=no
9241 rm -rf conftest.dSYM
9242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9243 conftest$ac_exeext conftest.$ac_ext
9244 LIBS=$ac_check_lib_save_LIBS
9246 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9247 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9248 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9249 cat >>confdefs.h <<_ACEOF
9250 #define HAVE_LIBXSLT 1
9256 { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9257 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9258 { (exit 1); exit 1; }; }
9263 # for contrib/uuid-ossp
9264 if test "$with_ossp_uuid" = yes ; then
9265 { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9266 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9267 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9268 $as_echo_n "(cached) " >&6
9270 ac_check_lib_save_LIBS=$LIBS
9271 LIBS="-lossp-uuid $LIBS"
9272 cat >conftest.$ac_ext <<_ACEOF
9275 cat confdefs.h >>conftest.$ac_ext
9276 cat >>conftest.$ac_ext <<_ACEOF
9277 /* end confdefs.h. */
9279 /* Override any GCC internal prototype to avoid an error.
9280 Use char because int might match the return type of a GCC
9281 builtin and then its argument prototype would still apply. */
9285 char uuid_export ();
9289 return uuid_export ();
9294 rm -f conftest.$ac_objext conftest$ac_exeext
9295 if { (ac_try="$ac_link"
9297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9298 *) ac_try_echo=$ac_try;;
9300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9301 $as_echo "$ac_try_echo") >&5
9302 (eval "$ac_link") 2>conftest.er1
9304 grep -v '^ *+' conftest.er1 >conftest.err
9306 cat conftest.err >&5
9307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); } && {
9309 test -z "$ac_c_werror_flag" ||
9310 test ! -s conftest.err
9311 } && test -s conftest$ac_exeext && {
9312 test "$cross_compiling" = yes ||
9313 $as_test_x conftest$ac_exeext
9315 ac_cv_lib_ossp_uuid_uuid_export=yes
9317 $as_echo "$as_me: failed program was:" >&5
9318 sed 's/^/| /' conftest.$ac_ext >&5
9320 ac_cv_lib_ossp_uuid_uuid_export=no
9323 rm -rf conftest.dSYM
9324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9325 conftest$ac_exeext conftest.$ac_ext
9326 LIBS=$ac_check_lib_save_LIBS
9328 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9329 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9330 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
9331 OSSP_UUID_LIBS="-lossp-uuid"
9333 { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9334 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9335 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9336 $as_echo_n "(cached) " >&6
9338 ac_check_lib_save_LIBS=$LIBS
9340 cat >conftest.$ac_ext <<_ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9347 /* Override any GCC internal prototype to avoid an error.
9348 Use char because int might match the return type of a GCC
9349 builtin and then its argument prototype would still apply. */
9353 char uuid_export ();
9357 return uuid_export ();
9362 rm -f conftest.$ac_objext conftest$ac_exeext
9363 if { (ac_try="$ac_link"
9365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9366 *) ac_try_echo=$ac_try;;
9368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9369 $as_echo "$ac_try_echo") >&5
9370 (eval "$ac_link") 2>conftest.er1
9372 grep -v '^ *+' conftest.er1 >conftest.err
9374 cat conftest.err >&5
9375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); } && {
9377 test -z "$ac_c_werror_flag" ||
9378 test ! -s conftest.err
9379 } && test -s conftest$ac_exeext && {
9380 test "$cross_compiling" = yes ||
9381 $as_test_x conftest$ac_exeext
9383 ac_cv_lib_uuid_uuid_export=yes
9385 $as_echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9388 ac_cv_lib_uuid_uuid_export=no
9391 rm -rf conftest.dSYM
9392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9393 conftest$ac_exeext conftest.$ac_ext
9394 LIBS=$ac_check_lib_save_LIBS
9396 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9397 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9398 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9399 OSSP_UUID_LIBS="-luuid"
9401 { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9402 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9403 { (exit 1); exit 1; }; }
9416 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9417 $as_echo_n "checking for ANSI C header files... " >&6; }
9418 if test "${ac_cv_header_stdc+set}" = set; then
9419 $as_echo_n "(cached) " >&6
9421 cat >conftest.$ac_ext <<_ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9440 rm -f conftest.$ac_objext
9441 if { (ac_try="$ac_compile"
9443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9444 *) ac_try_echo=$ac_try;;
9446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9447 $as_echo "$ac_try_echo") >&5
9448 (eval "$ac_compile") 2>conftest.er1
9450 grep -v '^ *+' conftest.er1 >conftest.err
9452 cat conftest.err >&5
9453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); } && {
9455 test -z "$ac_c_werror_flag" ||
9456 test ! -s conftest.err
9457 } && test -s conftest.$ac_objext; then
9458 ac_cv_header_stdc=yes
9460 $as_echo "$as_me: failed program was:" >&5
9461 sed 's/^/| /' conftest.$ac_ext >&5
9463 ac_cv_header_stdc=no
9466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9468 if test $ac_cv_header_stdc = yes; then
9469 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9470 cat >conftest.$ac_ext <<_ACEOF
9473 cat confdefs.h >>conftest.$ac_ext
9474 cat >>conftest.$ac_ext <<_ACEOF
9475 /* end confdefs.h. */
9479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9480 $EGREP "memchr" >/dev/null 2>&1; then
9483 ac_cv_header_stdc=no
9489 if test $ac_cv_header_stdc = yes; then
9490 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9491 cat >conftest.$ac_ext <<_ACEOF
9494 cat confdefs.h >>conftest.$ac_ext
9495 cat >>conftest.$ac_ext <<_ACEOF
9496 /* end confdefs.h. */
9500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9501 $EGREP "free" >/dev/null 2>&1; then
9504 ac_cv_header_stdc=no
9510 if test $ac_cv_header_stdc = yes; then
9511 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9512 if test "$cross_compiling" = yes; then
9515 cat >conftest.$ac_ext <<_ACEOF
9518 cat confdefs.h >>conftest.$ac_ext
9519 cat >>conftest.$ac_ext <<_ACEOF
9520 /* end confdefs.h. */
9523 #if ((' ' & 0x0FF) == 0x020)
9524 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9525 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9527 # define ISLOWER(c) \
9528 (('a' <= (c) && (c) <= 'i') \
9529 || ('j' <= (c) && (c) <= 'r') \
9530 || ('s' <= (c) && (c) <= 'z'))
9531 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9534 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9539 for (i = 0; i < 256; i++)
9540 if (XOR (islower (i), ISLOWER (i))
9541 || toupper (i) != TOUPPER (i))
9546 rm -f conftest$ac_exeext
9547 if { (ac_try="$ac_link"
9549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9550 *) ac_try_echo=$ac_try;;
9552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9553 $as_echo "$ac_try_echo") >&5
9554 (eval "$ac_link") 2>&5
9556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9558 { (case "(($ac_try" in
9559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560 *) ac_try_echo=$ac_try;;
9562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9563 $as_echo "$ac_try_echo") >&5
9564 (eval "$ac_try") 2>&5
9566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9570 $as_echo "$as_me: program exited with status $ac_status" >&5
9571 $as_echo "$as_me: failed program was:" >&5
9572 sed 's/^/| /' conftest.$ac_ext >&5
9575 ac_cv_header_stdc=no
9577 rm -rf conftest.dSYM
9578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9584 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9585 $as_echo "$ac_cv_header_stdc" >&6; }
9586 if test $ac_cv_header_stdc = yes; then
9588 cat >>confdefs.h <<\_ACEOF
9589 #define STDC_HEADERS 1
9594 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9604 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9605 inttypes.h stdint.h unistd.h
9607 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9608 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9609 $as_echo_n "checking for $ac_header... " >&6; }
9610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9611 $as_echo_n "(cached) " >&6
9613 cat >conftest.$ac_ext <<_ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h. */
9619 $ac_includes_default
9621 #include <$ac_header>
9623 rm -f conftest.$ac_objext
9624 if { (ac_try="$ac_compile"
9626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9627 *) ac_try_echo=$ac_try;;
9629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9630 $as_echo "$ac_try_echo") >&5
9631 (eval "$ac_compile") 2>conftest.er1
9633 grep -v '^ *+' conftest.er1 >conftest.err
9635 cat conftest.err >&5
9636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } && {
9638 test -z "$ac_c_werror_flag" ||
9639 test ! -s conftest.err
9640 } && test -s conftest.$ac_objext; then
9641 eval "$as_ac_Header=yes"
9643 $as_echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9646 eval "$as_ac_Header=no"
9649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9651 ac_res=`eval 'as_val=${'$as_ac_Header'}
9652 $as_echo "$as_val"'`
9653 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9654 $as_echo "$ac_res" >&6; }
9655 as_val=`eval 'as_val=${'$as_ac_Header'}
9656 $as_echo "$as_val"'`
9657 if test "x$as_val" = x""yes; then
9658 cat >>confdefs.h <<_ACEOF
9659 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9694 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
9696 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9698 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9699 $as_echo_n "checking for $ac_header... " >&6; }
9700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9701 $as_echo_n "(cached) " >&6
9703 ac_res=`eval 'as_val=${'$as_ac_Header'}
9704 $as_echo "$as_val"'`
9705 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9706 $as_echo "$ac_res" >&6; }
9708 # Is the header compilable?
9709 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9710 $as_echo_n "checking $ac_header usability... " >&6; }
9711 cat >conftest.$ac_ext <<_ACEOF
9714 cat confdefs.h >>conftest.$ac_ext
9715 cat >>conftest.$ac_ext <<_ACEOF
9716 /* end confdefs.h. */
9717 $ac_includes_default
9718 #include <$ac_header>
9720 rm -f conftest.$ac_objext
9721 if { (ac_try="$ac_compile"
9723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724 *) ac_try_echo=$ac_try;;
9726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9727 $as_echo "$ac_try_echo") >&5
9728 (eval "$ac_compile") 2>conftest.er1
9730 grep -v '^ *+' conftest.er1 >conftest.err
9732 cat conftest.err >&5
9733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } && {
9735 test -z "$ac_c_werror_flag" ||
9736 test ! -s conftest.err
9737 } && test -s conftest.$ac_objext; then
9738 ac_header_compiler=yes
9740 $as_echo "$as_me: failed program was:" >&5
9741 sed 's/^/| /' conftest.$ac_ext >&5
9743 ac_header_compiler=no
9746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9747 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9748 $as_echo "$ac_header_compiler" >&6; }
9750 # Is the header present?
9751 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9752 $as_echo_n "checking $ac_header presence... " >&6; }
9753 cat >conftest.$ac_ext <<_ACEOF
9756 cat confdefs.h >>conftest.$ac_ext
9757 cat >>conftest.$ac_ext <<_ACEOF
9758 /* end confdefs.h. */
9759 #include <$ac_header>
9761 if { (ac_try="$ac_cpp conftest.$ac_ext"
9763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9767 $as_echo "$ac_try_echo") >&5
9768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9770 grep -v '^ *+' conftest.er1 >conftest.err
9772 cat conftest.err >&5
9773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } >/dev/null && {
9775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9776 test ! -s conftest.err
9778 ac_header_preproc=yes
9780 $as_echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9783 ac_header_preproc=no
9786 rm -f conftest.err conftest.$ac_ext
9787 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9788 $as_echo "$ac_header_preproc" >&6; }
9790 # So? What about this header?
9791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9794 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9795 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9796 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9797 ac_header_preproc=yes
9800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9801 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9803 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9804 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9805 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9807 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9809 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9811 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9813 ## ---------------------------------------- ##
9814 ## Report this to pgsql-bugs@postgresql.org ##
9815 ## ---------------------------------------- ##
9817 ) | sed "s/^/$as_me: WARNING: /" >&2
9820 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9821 $as_echo_n "checking for $ac_header... " >&6; }
9822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9823 $as_echo_n "(cached) " >&6
9825 eval "$as_ac_Header=\$ac_header_preproc"
9827 ac_res=`eval 'as_val=${'$as_ac_Header'}
9828 $as_echo "$as_val"'`
9829 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9830 $as_echo "$ac_res" >&6; }
9833 as_val=`eval 'as_val=${'$as_ac_Header'}
9834 $as_echo "$as_val"'`
9835 if test "x$as_val" = x""yes; then
9836 cat >>confdefs.h <<_ACEOF
9837 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9845 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9846 # netinet/in.h is included first.
9848 for ac_header in netinet/in.h
9850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9852 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9853 $as_echo_n "checking for $ac_header... " >&6; }
9854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9855 $as_echo_n "(cached) " >&6
9857 ac_res=`eval 'as_val=${'$as_ac_Header'}
9858 $as_echo "$as_val"'`
9859 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9860 $as_echo "$ac_res" >&6; }
9862 # Is the header compilable?
9863 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9864 $as_echo_n "checking $ac_header usability... " >&6; }
9865 cat >conftest.$ac_ext <<_ACEOF
9868 cat confdefs.h >>conftest.$ac_ext
9869 cat >>conftest.$ac_ext <<_ACEOF
9870 /* end confdefs.h. */
9871 $ac_includes_default
9872 #include <$ac_header>
9874 rm -f conftest.$ac_objext
9875 if { (ac_try="$ac_compile"
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9881 $as_echo "$ac_try_echo") >&5
9882 (eval "$ac_compile") 2>conftest.er1
9884 grep -v '^ *+' conftest.er1 >conftest.err
9886 cat conftest.err >&5
9887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } && {
9889 test -z "$ac_c_werror_flag" ||
9890 test ! -s conftest.err
9891 } && test -s conftest.$ac_objext; then
9892 ac_header_compiler=yes
9894 $as_echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9897 ac_header_compiler=no
9900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9901 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9902 $as_echo "$ac_header_compiler" >&6; }
9904 # Is the header present?
9905 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9906 $as_echo_n "checking $ac_header presence... " >&6; }
9907 cat >conftest.$ac_ext <<_ACEOF
9910 cat confdefs.h >>conftest.$ac_ext
9911 cat >>conftest.$ac_ext <<_ACEOF
9912 /* end confdefs.h. */
9913 #include <$ac_header>
9915 if { (ac_try="$ac_cpp conftest.$ac_ext"
9917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9918 *) ac_try_echo=$ac_try;;
9920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9921 $as_echo "$ac_try_echo") >&5
9922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9924 grep -v '^ *+' conftest.er1 >conftest.err
9926 cat conftest.err >&5
9927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); } >/dev/null && {
9929 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9930 test ! -s conftest.err
9932 ac_header_preproc=yes
9934 $as_echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.$ac_ext >&5
9937 ac_header_preproc=no
9940 rm -f conftest.err conftest.$ac_ext
9941 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9942 $as_echo "$ac_header_preproc" >&6; }
9944 # So? What about this header?
9945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9947 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9948 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9949 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9950 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9951 ac_header_preproc=yes
9954 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9955 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9956 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9957 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9958 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9959 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9960 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9961 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9962 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9963 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9965 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9967 ## ---------------------------------------- ##
9968 ## Report this to pgsql-bugs@postgresql.org ##
9969 ## ---------------------------------------- ##
9971 ) | sed "s/^/$as_me: WARNING: /" >&2
9974 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9975 $as_echo_n "checking for $ac_header... " >&6; }
9976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9977 $as_echo_n "(cached) " >&6
9979 eval "$as_ac_Header=\$ac_header_preproc"
9981 ac_res=`eval 'as_val=${'$as_ac_Header'}
9982 $as_echo "$as_val"'`
9983 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9984 $as_echo "$ac_res" >&6; }
9987 as_val=`eval 'as_val=${'$as_ac_Header'}
9988 $as_echo "$as_val"'`
9989 if test "x$as_val" = x""yes; then
9990 cat >>confdefs.h <<_ACEOF
9991 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9999 for ac_header in netinet/tcp.h
10001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10002 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10003 $as_echo_n "checking for $ac_header... " >&6; }
10004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10005 $as_echo_n "(cached) " >&6
10007 cat >conftest.$ac_ext <<_ACEOF
10010 cat confdefs.h >>conftest.$ac_ext
10011 cat >>conftest.$ac_ext <<_ACEOF
10012 /* end confdefs.h. */
10013 $ac_includes_default
10014 #ifdef HAVE_NETINET_IN_H
10015 #include <netinet/in.h>
10019 #include <$ac_header>
10021 rm -f conftest.$ac_objext
10022 if { (ac_try="$ac_compile"
10023 case "(($ac_try" in
10024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025 *) ac_try_echo=$ac_try;;
10027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10028 $as_echo "$ac_try_echo") >&5
10029 (eval "$ac_compile") 2>conftest.er1
10031 grep -v '^ *+' conftest.er1 >conftest.err
10033 cat conftest.err >&5
10034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } && {
10036 test -z "$ac_c_werror_flag" ||
10037 test ! -s conftest.err
10038 } && test -s conftest.$ac_objext; then
10039 eval "$as_ac_Header=yes"
10041 $as_echo "$as_me: failed program was:" >&5
10042 sed 's/^/| /' conftest.$ac_ext >&5
10044 eval "$as_ac_Header=no"
10047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10049 ac_res=`eval 'as_val=${'$as_ac_Header'}
10050 $as_echo "$as_val"'`
10051 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10052 $as_echo "$ac_res" >&6; }
10053 as_val=`eval 'as_val=${'$as_ac_Header'}
10054 $as_echo "$as_val"'`
10055 if test "x$as_val" = x""yes; then
10056 cat >>confdefs.h <<_ACEOF
10057 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10065 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10067 for ac_header in readline/readline.h
10069 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10071 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10072 $as_echo_n "checking for $ac_header... " >&6; }
10073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10074 $as_echo_n "(cached) " >&6
10076 ac_res=`eval 'as_val=${'$as_ac_Header'}
10077 $as_echo "$as_val"'`
10078 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10079 $as_echo "$ac_res" >&6; }
10081 # Is the header compilable?
10082 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10083 $as_echo_n "checking $ac_header usability... " >&6; }
10084 cat >conftest.$ac_ext <<_ACEOF
10087 cat confdefs.h >>conftest.$ac_ext
10088 cat >>conftest.$ac_ext <<_ACEOF
10089 /* end confdefs.h. */
10090 $ac_includes_default
10091 #include <$ac_header>
10093 rm -f conftest.$ac_objext
10094 if { (ac_try="$ac_compile"
10095 case "(($ac_try" in
10096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097 *) ac_try_echo=$ac_try;;
10099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10100 $as_echo "$ac_try_echo") >&5
10101 (eval "$ac_compile") 2>conftest.er1
10103 grep -v '^ *+' conftest.er1 >conftest.err
10105 cat conftest.err >&5
10106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } && {
10108 test -z "$ac_c_werror_flag" ||
10109 test ! -s conftest.err
10110 } && test -s conftest.$ac_objext; then
10111 ac_header_compiler=yes
10113 $as_echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10116 ac_header_compiler=no
10119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10120 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10121 $as_echo "$ac_header_compiler" >&6; }
10123 # Is the header present?
10124 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10125 $as_echo_n "checking $ac_header presence... " >&6; }
10126 cat >conftest.$ac_ext <<_ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h. */
10132 #include <$ac_header>
10134 if { (ac_try="$ac_cpp conftest.$ac_ext"
10135 case "(($ac_try" in
10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137 *) ac_try_echo=$ac_try;;
10139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10140 $as_echo "$ac_try_echo") >&5
10141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10143 grep -v '^ *+' conftest.er1 >conftest.err
10145 cat conftest.err >&5
10146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } >/dev/null && {
10148 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10149 test ! -s conftest.err
10151 ac_header_preproc=yes
10153 $as_echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10156 ac_header_preproc=no
10159 rm -f conftest.err conftest.$ac_ext
10160 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10161 $as_echo "$ac_header_preproc" >&6; }
10163 # So? What about this header?
10164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10166 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10167 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10168 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10169 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10170 ac_header_preproc=yes
10173 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10174 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10175 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10176 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10178 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10179 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10180 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10181 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10182 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10183 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10184 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10186 ## ---------------------------------------- ##
10187 ## Report this to pgsql-bugs@postgresql.org ##
10188 ## ---------------------------------------- ##
10190 ) | sed "s/^/$as_me: WARNING: /" >&2
10193 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10194 $as_echo_n "checking for $ac_header... " >&6; }
10195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10196 $as_echo_n "(cached) " >&6
10198 eval "$as_ac_Header=\$ac_header_preproc"
10200 ac_res=`eval 'as_val=${'$as_ac_Header'}
10201 $as_echo "$as_val"'`
10202 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10203 $as_echo "$ac_res" >&6; }
10206 as_val=`eval 'as_val=${'$as_ac_Header'}
10207 $as_echo "$as_val"'`
10208 if test "x$as_val" = x""yes; then
10209 cat >>confdefs.h <<_ACEOF
10210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10215 for ac_header in readline.h
10217 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10219 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10220 $as_echo_n "checking for $ac_header... " >&6; }
10221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10222 $as_echo_n "(cached) " >&6
10224 ac_res=`eval 'as_val=${'$as_ac_Header'}
10225 $as_echo "$as_val"'`
10226 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10227 $as_echo "$ac_res" >&6; }
10229 # Is the header compilable?
10230 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10231 $as_echo_n "checking $ac_header usability... " >&6; }
10232 cat >conftest.$ac_ext <<_ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h. */
10238 $ac_includes_default
10239 #include <$ac_header>
10241 rm -f conftest.$ac_objext
10242 if { (ac_try="$ac_compile"
10243 case "(($ac_try" in
10244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245 *) ac_try_echo=$ac_try;;
10247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10248 $as_echo "$ac_try_echo") >&5
10249 (eval "$ac_compile") 2>conftest.er1
10251 grep -v '^ *+' conftest.er1 >conftest.err
10253 cat conftest.err >&5
10254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } && {
10256 test -z "$ac_c_werror_flag" ||
10257 test ! -s conftest.err
10258 } && test -s conftest.$ac_objext; then
10259 ac_header_compiler=yes
10261 $as_echo "$as_me: failed program was:" >&5
10262 sed 's/^/| /' conftest.$ac_ext >&5
10264 ac_header_compiler=no
10267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10268 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10269 $as_echo "$ac_header_compiler" >&6; }
10271 # Is the header present?
10272 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10273 $as_echo_n "checking $ac_header presence... " >&6; }
10274 cat >conftest.$ac_ext <<_ACEOF
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h. */
10280 #include <$ac_header>
10282 if { (ac_try="$ac_cpp conftest.$ac_ext"
10283 case "(($ac_try" in
10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10288 $as_echo "$ac_try_echo") >&5
10289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10291 grep -v '^ *+' conftest.er1 >conftest.err
10293 cat conftest.err >&5
10294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } >/dev/null && {
10296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10297 test ! -s conftest.err
10299 ac_header_preproc=yes
10301 $as_echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10304 ac_header_preproc=no
10307 rm -f conftest.err conftest.$ac_ext
10308 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10309 $as_echo "$ac_header_preproc" >&6; }
10311 # So? What about this header?
10312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10315 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10317 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10318 ac_header_preproc=yes
10321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10322 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10323 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10324 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10325 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10326 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10328 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10330 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10332 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10334 ## ---------------------------------------- ##
10335 ## Report this to pgsql-bugs@postgresql.org ##
10336 ## ---------------------------------------- ##
10338 ) | sed "s/^/$as_me: WARNING: /" >&2
10341 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10342 $as_echo_n "checking for $ac_header... " >&6; }
10343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10344 $as_echo_n "(cached) " >&6
10346 eval "$as_ac_Header=\$ac_header_preproc"
10348 ac_res=`eval 'as_val=${'$as_ac_Header'}
10349 $as_echo "$as_val"'`
10350 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10351 $as_echo "$ac_res" >&6; }
10354 as_val=`eval 'as_val=${'$as_ac_Header'}
10355 $as_echo "$as_val"'`
10356 if test "x$as_val" = x""yes; then
10357 cat >>confdefs.h <<_ACEOF
10358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10362 { { $as_echo "$as_me:$LINENO: error: readline header not found
10363 If you have readline already installed, see config.log for details on the
10364 failure. It is possible the compiler isn't looking in the proper directory.
10365 Use --without-readline to disable readline support." >&5
10366 $as_echo "$as_me: error: readline header not found
10367 If you have readline already installed, see config.log for details on the
10368 failure. It is possible the compiler isn't looking in the proper directory.
10369 Use --without-readline to disable readline support." >&2;}
10370 { (exit 1); exit 1; }; }
10380 for ac_header in readline/history.h
10382 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10384 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10385 $as_echo_n "checking for $ac_header... " >&6; }
10386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10387 $as_echo_n "(cached) " >&6
10389 ac_res=`eval 'as_val=${'$as_ac_Header'}
10390 $as_echo "$as_val"'`
10391 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10392 $as_echo "$ac_res" >&6; }
10394 # Is the header compilable?
10395 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10396 $as_echo_n "checking $ac_header usability... " >&6; }
10397 cat >conftest.$ac_ext <<_ACEOF
10400 cat confdefs.h >>conftest.$ac_ext
10401 cat >>conftest.$ac_ext <<_ACEOF
10402 /* end confdefs.h. */
10403 $ac_includes_default
10404 #include <$ac_header>
10406 rm -f conftest.$ac_objext
10407 if { (ac_try="$ac_compile"
10408 case "(($ac_try" in
10409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10410 *) ac_try_echo=$ac_try;;
10412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10413 $as_echo "$ac_try_echo") >&5
10414 (eval "$ac_compile") 2>conftest.er1
10416 grep -v '^ *+' conftest.er1 >conftest.err
10418 cat conftest.err >&5
10419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } && {
10421 test -z "$ac_c_werror_flag" ||
10422 test ! -s conftest.err
10423 } && test -s conftest.$ac_objext; then
10424 ac_header_compiler=yes
10426 $as_echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10429 ac_header_compiler=no
10432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10433 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10434 $as_echo "$ac_header_compiler" >&6; }
10436 # Is the header present?
10437 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10438 $as_echo_n "checking $ac_header presence... " >&6; }
10439 cat >conftest.$ac_ext <<_ACEOF
10442 cat confdefs.h >>conftest.$ac_ext
10443 cat >>conftest.$ac_ext <<_ACEOF
10444 /* end confdefs.h. */
10445 #include <$ac_header>
10447 if { (ac_try="$ac_cpp conftest.$ac_ext"
10448 case "(($ac_try" in
10449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450 *) ac_try_echo=$ac_try;;
10452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10453 $as_echo "$ac_try_echo") >&5
10454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10456 grep -v '^ *+' conftest.er1 >conftest.err
10458 cat conftest.err >&5
10459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } >/dev/null && {
10461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10462 test ! -s conftest.err
10464 ac_header_preproc=yes
10466 $as_echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10469 ac_header_preproc=no
10472 rm -f conftest.err conftest.$ac_ext
10473 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10474 $as_echo "$ac_header_preproc" >&6; }
10476 # So? What about this header?
10477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10480 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10482 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10483 ac_header_preproc=yes
10486 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10487 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10488 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10489 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10491 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10493 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10495 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10497 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10499 ## ---------------------------------------- ##
10500 ## Report this to pgsql-bugs@postgresql.org ##
10501 ## ---------------------------------------- ##
10503 ) | sed "s/^/$as_me: WARNING: /" >&2
10506 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10507 $as_echo_n "checking for $ac_header... " >&6; }
10508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10509 $as_echo_n "(cached) " >&6
10511 eval "$as_ac_Header=\$ac_header_preproc"
10513 ac_res=`eval 'as_val=${'$as_ac_Header'}
10514 $as_echo "$as_val"'`
10515 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10516 $as_echo "$ac_res" >&6; }
10519 as_val=`eval 'as_val=${'$as_ac_Header'}
10520 $as_echo "$as_val"'`
10521 if test "x$as_val" = x""yes; then
10522 cat >>confdefs.h <<_ACEOF
10523 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10528 for ac_header in history.h
10530 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10532 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10533 $as_echo_n "checking for $ac_header... " >&6; }
10534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10535 $as_echo_n "(cached) " >&6
10537 ac_res=`eval 'as_val=${'$as_ac_Header'}
10538 $as_echo "$as_val"'`
10539 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10540 $as_echo "$ac_res" >&6; }
10542 # Is the header compilable?
10543 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10544 $as_echo_n "checking $ac_header usability... " >&6; }
10545 cat >conftest.$ac_ext <<_ACEOF
10548 cat confdefs.h >>conftest.$ac_ext
10549 cat >>conftest.$ac_ext <<_ACEOF
10550 /* end confdefs.h. */
10551 $ac_includes_default
10552 #include <$ac_header>
10554 rm -f conftest.$ac_objext
10555 if { (ac_try="$ac_compile"
10556 case "(($ac_try" in
10557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558 *) ac_try_echo=$ac_try;;
10560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10561 $as_echo "$ac_try_echo") >&5
10562 (eval "$ac_compile") 2>conftest.er1
10564 grep -v '^ *+' conftest.er1 >conftest.err
10566 cat conftest.err >&5
10567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } && {
10569 test -z "$ac_c_werror_flag" ||
10570 test ! -s conftest.err
10571 } && test -s conftest.$ac_objext; then
10572 ac_header_compiler=yes
10574 $as_echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10577 ac_header_compiler=no
10580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10581 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10582 $as_echo "$ac_header_compiler" >&6; }
10584 # Is the header present?
10585 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10586 $as_echo_n "checking $ac_header presence... " >&6; }
10587 cat >conftest.$ac_ext <<_ACEOF
10590 cat confdefs.h >>conftest.$ac_ext
10591 cat >>conftest.$ac_ext <<_ACEOF
10592 /* end confdefs.h. */
10593 #include <$ac_header>
10595 if { (ac_try="$ac_cpp conftest.$ac_ext"
10596 case "(($ac_try" in
10597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10598 *) ac_try_echo=$ac_try;;
10600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10601 $as_echo "$ac_try_echo") >&5
10602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10604 grep -v '^ *+' conftest.er1 >conftest.err
10606 cat conftest.err >&5
10607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); } >/dev/null && {
10609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10610 test ! -s conftest.err
10612 ac_header_preproc=yes
10614 $as_echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.$ac_ext >&5
10617 ac_header_preproc=no
10620 rm -f conftest.err conftest.$ac_ext
10621 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10622 $as_echo "$ac_header_preproc" >&6; }
10624 # So? What about this header?
10625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10628 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10630 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10631 ac_header_preproc=yes
10634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10635 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10637 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10639 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10641 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10643 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10644 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10645 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10647 ## ---------------------------------------- ##
10648 ## Report this to pgsql-bugs@postgresql.org ##
10649 ## ---------------------------------------- ##
10651 ) | sed "s/^/$as_me: WARNING: /" >&2
10654 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10655 $as_echo_n "checking for $ac_header... " >&6; }
10656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10657 $as_echo_n "(cached) " >&6
10659 eval "$as_ac_Header=\$ac_header_preproc"
10661 ac_res=`eval 'as_val=${'$as_ac_Header'}
10662 $as_echo "$as_val"'`
10663 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10664 $as_echo "$ac_res" >&6; }
10667 as_val=`eval 'as_val=${'$as_ac_Header'}
10668 $as_echo "$as_val"'`
10669 if test "x$as_val" = x""yes; then
10670 cat >>confdefs.h <<_ACEOF
10671 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10675 { { $as_echo "$as_me:$LINENO: error: history header not found
10676 If you have readline already installed, see config.log for details on the
10677 failure. It is possible the compiler isn't looking in the proper directory.
10678 Use --without-readline to disable readline support." >&5
10679 $as_echo "$as_me: error: history header not found
10680 If you have readline already installed, see config.log for details on the
10681 failure. It is possible the compiler isn't looking in the proper directory.
10682 Use --without-readline to disable readline support." >&2;}
10683 { (exit 1); exit 1; }; }
10694 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10695 # Some installations of libedit usurp /usr/include/readline/, which seems
10696 # bad practice, since in combined installations readline will have its headers
10697 # there. We might have to resort to AC_EGREP checks to make sure we found
10698 # the proper header...
10700 for ac_header in editline/readline.h
10702 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10704 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10705 $as_echo_n "checking for $ac_header... " >&6; }
10706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10707 $as_echo_n "(cached) " >&6
10709 ac_res=`eval 'as_val=${'$as_ac_Header'}
10710 $as_echo "$as_val"'`
10711 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10712 $as_echo "$ac_res" >&6; }
10714 # Is the header compilable?
10715 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10716 $as_echo_n "checking $ac_header usability... " >&6; }
10717 cat >conftest.$ac_ext <<_ACEOF
10720 cat confdefs.h >>conftest.$ac_ext
10721 cat >>conftest.$ac_ext <<_ACEOF
10722 /* end confdefs.h. */
10723 $ac_includes_default
10724 #include <$ac_header>
10726 rm -f conftest.$ac_objext
10727 if { (ac_try="$ac_compile"
10728 case "(($ac_try" in
10729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730 *) ac_try_echo=$ac_try;;
10732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10733 $as_echo "$ac_try_echo") >&5
10734 (eval "$ac_compile") 2>conftest.er1
10736 grep -v '^ *+' conftest.er1 >conftest.err
10738 cat conftest.err >&5
10739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); } && {
10741 test -z "$ac_c_werror_flag" ||
10742 test ! -s conftest.err
10743 } && test -s conftest.$ac_objext; then
10744 ac_header_compiler=yes
10746 $as_echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10749 ac_header_compiler=no
10752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10753 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10754 $as_echo "$ac_header_compiler" >&6; }
10756 # Is the header present?
10757 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10758 $as_echo_n "checking $ac_header presence... " >&6; }
10759 cat >conftest.$ac_ext <<_ACEOF
10762 cat confdefs.h >>conftest.$ac_ext
10763 cat >>conftest.$ac_ext <<_ACEOF
10764 /* end confdefs.h. */
10765 #include <$ac_header>
10767 if { (ac_try="$ac_cpp conftest.$ac_ext"
10768 case "(($ac_try" in
10769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10770 *) ac_try_echo=$ac_try;;
10772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10773 $as_echo "$ac_try_echo") >&5
10774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10776 grep -v '^ *+' conftest.er1 >conftest.err
10778 cat conftest.err >&5
10779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } >/dev/null && {
10781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10782 test ! -s conftest.err
10784 ac_header_preproc=yes
10786 $as_echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10789 ac_header_preproc=no
10792 rm -f conftest.err conftest.$ac_ext
10793 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10794 $as_echo "$ac_header_preproc" >&6; }
10796 # So? What about this header?
10797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10799 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10800 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10801 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10802 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10803 ac_header_preproc=yes
10806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10807 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10809 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10811 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10813 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10815 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10817 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10819 ## ---------------------------------------- ##
10820 ## Report this to pgsql-bugs@postgresql.org ##
10821 ## ---------------------------------------- ##
10823 ) | sed "s/^/$as_me: WARNING: /" >&2
10826 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10827 $as_echo_n "checking for $ac_header... " >&6; }
10828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10829 $as_echo_n "(cached) " >&6
10831 eval "$as_ac_Header=\$ac_header_preproc"
10833 ac_res=`eval 'as_val=${'$as_ac_Header'}
10834 $as_echo "$as_val"'`
10835 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10836 $as_echo "$ac_res" >&6; }
10839 as_val=`eval 'as_val=${'$as_ac_Header'}
10840 $as_echo "$as_val"'`
10841 if test "x$as_val" = x""yes; then
10842 cat >>confdefs.h <<_ACEOF
10843 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10848 for ac_header in readline.h
10850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10852 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10853 $as_echo_n "checking for $ac_header... " >&6; }
10854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10855 $as_echo_n "(cached) " >&6
10857 ac_res=`eval 'as_val=${'$as_ac_Header'}
10858 $as_echo "$as_val"'`
10859 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10860 $as_echo "$ac_res" >&6; }
10862 # Is the header compilable?
10863 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10864 $as_echo_n "checking $ac_header usability... " >&6; }
10865 cat >conftest.$ac_ext <<_ACEOF
10868 cat confdefs.h >>conftest.$ac_ext
10869 cat >>conftest.$ac_ext <<_ACEOF
10870 /* end confdefs.h. */
10871 $ac_includes_default
10872 #include <$ac_header>
10874 rm -f conftest.$ac_objext
10875 if { (ac_try="$ac_compile"
10876 case "(($ac_try" in
10877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878 *) ac_try_echo=$ac_try;;
10880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10881 $as_echo "$ac_try_echo") >&5
10882 (eval "$ac_compile") 2>conftest.er1
10884 grep -v '^ *+' conftest.er1 >conftest.err
10886 cat conftest.err >&5
10887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); } && {
10889 test -z "$ac_c_werror_flag" ||
10890 test ! -s conftest.err
10891 } && test -s conftest.$ac_objext; then
10892 ac_header_compiler=yes
10894 $as_echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.$ac_ext >&5
10897 ac_header_compiler=no
10900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10901 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10902 $as_echo "$ac_header_compiler" >&6; }
10904 # Is the header present?
10905 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10906 $as_echo_n "checking $ac_header presence... " >&6; }
10907 cat >conftest.$ac_ext <<_ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h. */
10913 #include <$ac_header>
10915 if { (ac_try="$ac_cpp conftest.$ac_ext"
10916 case "(($ac_try" in
10917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10918 *) ac_try_echo=$ac_try;;
10920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10921 $as_echo "$ac_try_echo") >&5
10922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10924 grep -v '^ *+' conftest.er1 >conftest.err
10926 cat conftest.err >&5
10927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); } >/dev/null && {
10929 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10930 test ! -s conftest.err
10932 ac_header_preproc=yes
10934 $as_echo "$as_me: failed program was:" >&5
10935 sed 's/^/| /' conftest.$ac_ext >&5
10937 ac_header_preproc=no
10940 rm -f conftest.err conftest.$ac_ext
10941 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10942 $as_echo "$ac_header_preproc" >&6; }
10944 # So? What about this header?
10945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10947 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10948 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10949 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10950 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10951 ac_header_preproc=yes
10954 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10955 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10956 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10957 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10958 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10959 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10960 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10961 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10962 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10963 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10965 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10967 ## ---------------------------------------- ##
10968 ## Report this to pgsql-bugs@postgresql.org ##
10969 ## ---------------------------------------- ##
10971 ) | sed "s/^/$as_me: WARNING: /" >&2
10974 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10975 $as_echo_n "checking for $ac_header... " >&6; }
10976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10977 $as_echo_n "(cached) " >&6
10979 eval "$as_ac_Header=\$ac_header_preproc"
10981 ac_res=`eval 'as_val=${'$as_ac_Header'}
10982 $as_echo "$as_val"'`
10983 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10984 $as_echo "$ac_res" >&6; }
10987 as_val=`eval 'as_val=${'$as_ac_Header'}
10988 $as_echo "$as_val"'`
10989 if test "x$as_val" = x""yes; then
10990 cat >>confdefs.h <<_ACEOF
10991 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10996 for ac_header in readline/readline.h
10998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11000 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11001 $as_echo_n "checking for $ac_header... " >&6; }
11002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11003 $as_echo_n "(cached) " >&6
11005 ac_res=`eval 'as_val=${'$as_ac_Header'}
11006 $as_echo "$as_val"'`
11007 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11008 $as_echo "$ac_res" >&6; }
11010 # Is the header compilable?
11011 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11012 $as_echo_n "checking $ac_header usability... " >&6; }
11013 cat >conftest.$ac_ext <<_ACEOF
11016 cat confdefs.h >>conftest.$ac_ext
11017 cat >>conftest.$ac_ext <<_ACEOF
11018 /* end confdefs.h. */
11019 $ac_includes_default
11020 #include <$ac_header>
11022 rm -f conftest.$ac_objext
11023 if { (ac_try="$ac_compile"
11024 case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026 *) ac_try_echo=$ac_try;;
11028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11029 $as_echo "$ac_try_echo") >&5
11030 (eval "$ac_compile") 2>conftest.er1
11032 grep -v '^ *+' conftest.er1 >conftest.err
11034 cat conftest.err >&5
11035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } && {
11037 test -z "$ac_c_werror_flag" ||
11038 test ! -s conftest.err
11039 } && test -s conftest.$ac_objext; then
11040 ac_header_compiler=yes
11042 $as_echo "$as_me: failed program was:" >&5
11043 sed 's/^/| /' conftest.$ac_ext >&5
11045 ac_header_compiler=no
11048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11049 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11050 $as_echo "$ac_header_compiler" >&6; }
11052 # Is the header present?
11053 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11054 $as_echo_n "checking $ac_header presence... " >&6; }
11055 cat >conftest.$ac_ext <<_ACEOF
11058 cat confdefs.h >>conftest.$ac_ext
11059 cat >>conftest.$ac_ext <<_ACEOF
11060 /* end confdefs.h. */
11061 #include <$ac_header>
11063 if { (ac_try="$ac_cpp conftest.$ac_ext"
11064 case "(($ac_try" in
11065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11066 *) ac_try_echo=$ac_try;;
11068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11069 $as_echo "$ac_try_echo") >&5
11070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11072 grep -v '^ *+' conftest.er1 >conftest.err
11074 cat conftest.err >&5
11075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); } >/dev/null && {
11077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11078 test ! -s conftest.err
11080 ac_header_preproc=yes
11082 $as_echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11085 ac_header_preproc=no
11088 rm -f conftest.err conftest.$ac_ext
11089 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11090 $as_echo "$ac_header_preproc" >&6; }
11092 # So? What about this header?
11093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11096 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11098 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11099 ac_header_preproc=yes
11102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11103 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11105 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11107 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11109 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11111 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11113 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11115 ## ---------------------------------------- ##
11116 ## Report this to pgsql-bugs@postgresql.org ##
11117 ## ---------------------------------------- ##
11119 ) | sed "s/^/$as_me: WARNING: /" >&2
11122 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11123 $as_echo_n "checking for $ac_header... " >&6; }
11124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11125 $as_echo_n "(cached) " >&6
11127 eval "$as_ac_Header=\$ac_header_preproc"
11129 ac_res=`eval 'as_val=${'$as_ac_Header'}
11130 $as_echo "$as_val"'`
11131 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11132 $as_echo "$ac_res" >&6; }
11135 as_val=`eval 'as_val=${'$as_ac_Header'}
11136 $as_echo "$as_val"'`
11137 if test "x$as_val" = x""yes; then
11138 cat >>confdefs.h <<_ACEOF
11139 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11143 { { $as_echo "$as_me:$LINENO: error: readline header not found
11144 If you have libedit already installed, see config.log for details on the
11145 failure. It is possible the compiler isn't looking in the proper directory.
11146 Use --without-readline to disable libedit support." >&5
11147 $as_echo "$as_me: error: readline header not found
11148 If you have libedit already installed, see config.log for details on the
11149 failure. It is possible the compiler isn't looking in the proper directory.
11150 Use --without-readline to disable libedit support." >&2;}
11151 { (exit 1); exit 1; }; }
11164 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11165 # not be there at all. Hence, don't complain if not found. We must check
11166 # though, since in yet other versions it is an independent header.
11168 for ac_header in editline/history.h
11170 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11172 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11173 $as_echo_n "checking for $ac_header... " >&6; }
11174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11175 $as_echo_n "(cached) " >&6
11177 ac_res=`eval 'as_val=${'$as_ac_Header'}
11178 $as_echo "$as_val"'`
11179 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11180 $as_echo "$ac_res" >&6; }
11182 # Is the header compilable?
11183 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11184 $as_echo_n "checking $ac_header usability... " >&6; }
11185 cat >conftest.$ac_ext <<_ACEOF
11188 cat confdefs.h >>conftest.$ac_ext
11189 cat >>conftest.$ac_ext <<_ACEOF
11190 /* end confdefs.h. */
11191 $ac_includes_default
11192 #include <$ac_header>
11194 rm -f conftest.$ac_objext
11195 if { (ac_try="$ac_compile"
11196 case "(($ac_try" in
11197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198 *) ac_try_echo=$ac_try;;
11200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11201 $as_echo "$ac_try_echo") >&5
11202 (eval "$ac_compile") 2>conftest.er1
11204 grep -v '^ *+' conftest.er1 >conftest.err
11206 cat conftest.err >&5
11207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } && {
11209 test -z "$ac_c_werror_flag" ||
11210 test ! -s conftest.err
11211 } && test -s conftest.$ac_objext; then
11212 ac_header_compiler=yes
11214 $as_echo "$as_me: failed program was:" >&5
11215 sed 's/^/| /' conftest.$ac_ext >&5
11217 ac_header_compiler=no
11220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11221 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11222 $as_echo "$ac_header_compiler" >&6; }
11224 # Is the header present?
11225 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11226 $as_echo_n "checking $ac_header presence... " >&6; }
11227 cat >conftest.$ac_ext <<_ACEOF
11230 cat confdefs.h >>conftest.$ac_ext
11231 cat >>conftest.$ac_ext <<_ACEOF
11232 /* end confdefs.h. */
11233 #include <$ac_header>
11235 if { (ac_try="$ac_cpp conftest.$ac_ext"
11236 case "(($ac_try" in
11237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11238 *) ac_try_echo=$ac_try;;
11240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11241 $as_echo "$ac_try_echo") >&5
11242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11244 grep -v '^ *+' conftest.er1 >conftest.err
11246 cat conftest.err >&5
11247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } >/dev/null && {
11249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11250 test ! -s conftest.err
11252 ac_header_preproc=yes
11254 $as_echo "$as_me: failed program was:" >&5
11255 sed 's/^/| /' conftest.$ac_ext >&5
11257 ac_header_preproc=no
11260 rm -f conftest.err conftest.$ac_ext
11261 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11262 $as_echo "$ac_header_preproc" >&6; }
11264 # So? What about this header?
11265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11268 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11270 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11271 ac_header_preproc=yes
11274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11275 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11277 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11279 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11280 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11281 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11283 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11285 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11287 ## ---------------------------------------- ##
11288 ## Report this to pgsql-bugs@postgresql.org ##
11289 ## ---------------------------------------- ##
11291 ) | sed "s/^/$as_me: WARNING: /" >&2
11294 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11295 $as_echo_n "checking for $ac_header... " >&6; }
11296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11297 $as_echo_n "(cached) " >&6
11299 eval "$as_ac_Header=\$ac_header_preproc"
11301 ac_res=`eval 'as_val=${'$as_ac_Header'}
11302 $as_echo "$as_val"'`
11303 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11304 $as_echo "$ac_res" >&6; }
11307 as_val=`eval 'as_val=${'$as_ac_Header'}
11308 $as_echo "$as_val"'`
11309 if test "x$as_val" = x""yes; then
11310 cat >>confdefs.h <<_ACEOF
11311 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11316 for ac_header in history.h
11318 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11320 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11321 $as_echo_n "checking for $ac_header... " >&6; }
11322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11323 $as_echo_n "(cached) " >&6
11325 ac_res=`eval 'as_val=${'$as_ac_Header'}
11326 $as_echo "$as_val"'`
11327 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11328 $as_echo "$ac_res" >&6; }
11330 # Is the header compilable?
11331 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11332 $as_echo_n "checking $ac_header usability... " >&6; }
11333 cat >conftest.$ac_ext <<_ACEOF
11336 cat confdefs.h >>conftest.$ac_ext
11337 cat >>conftest.$ac_ext <<_ACEOF
11338 /* end confdefs.h. */
11339 $ac_includes_default
11340 #include <$ac_header>
11342 rm -f conftest.$ac_objext
11343 if { (ac_try="$ac_compile"
11344 case "(($ac_try" in
11345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346 *) ac_try_echo=$ac_try;;
11348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11349 $as_echo "$ac_try_echo") >&5
11350 (eval "$ac_compile") 2>conftest.er1
11352 grep -v '^ *+' conftest.er1 >conftest.err
11354 cat conftest.err >&5
11355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); } && {
11357 test -z "$ac_c_werror_flag" ||
11358 test ! -s conftest.err
11359 } && test -s conftest.$ac_objext; then
11360 ac_header_compiler=yes
11362 $as_echo "$as_me: failed program was:" >&5
11363 sed 's/^/| /' conftest.$ac_ext >&5
11365 ac_header_compiler=no
11368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11369 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11370 $as_echo "$ac_header_compiler" >&6; }
11372 # Is the header present?
11373 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11374 $as_echo_n "checking $ac_header presence... " >&6; }
11375 cat >conftest.$ac_ext <<_ACEOF
11378 cat confdefs.h >>conftest.$ac_ext
11379 cat >>conftest.$ac_ext <<_ACEOF
11380 /* end confdefs.h. */
11381 #include <$ac_header>
11383 if { (ac_try="$ac_cpp conftest.$ac_ext"
11384 case "(($ac_try" in
11385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386 *) ac_try_echo=$ac_try;;
11388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11389 $as_echo "$ac_try_echo") >&5
11390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11392 grep -v '^ *+' conftest.er1 >conftest.err
11394 cat conftest.err >&5
11395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } >/dev/null && {
11397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11398 test ! -s conftest.err
11400 ac_header_preproc=yes
11402 $as_echo "$as_me: failed program was:" >&5
11403 sed 's/^/| /' conftest.$ac_ext >&5
11405 ac_header_preproc=no
11408 rm -f conftest.err conftest.$ac_ext
11409 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11410 $as_echo "$ac_header_preproc" >&6; }
11412 # So? What about this header?
11413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11416 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11418 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11419 ac_header_preproc=yes
11422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11423 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11425 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11427 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11429 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11431 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11433 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11435 ## ---------------------------------------- ##
11436 ## Report this to pgsql-bugs@postgresql.org ##
11437 ## ---------------------------------------- ##
11439 ) | sed "s/^/$as_me: WARNING: /" >&2
11442 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11443 $as_echo_n "checking for $ac_header... " >&6; }
11444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11445 $as_echo_n "(cached) " >&6
11447 eval "$as_ac_Header=\$ac_header_preproc"
11449 ac_res=`eval 'as_val=${'$as_ac_Header'}
11450 $as_echo "$as_val"'`
11451 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11452 $as_echo "$ac_res" >&6; }
11455 as_val=`eval 'as_val=${'$as_ac_Header'}
11456 $as_echo "$as_val"'`
11457 if test "x$as_val" = x""yes; then
11458 cat >>confdefs.h <<_ACEOF
11459 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11464 for ac_header in readline/history.h
11466 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11468 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11469 $as_echo_n "checking for $ac_header... " >&6; }
11470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11471 $as_echo_n "(cached) " >&6
11473 ac_res=`eval 'as_val=${'$as_ac_Header'}
11474 $as_echo "$as_val"'`
11475 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11476 $as_echo "$ac_res" >&6; }
11478 # Is the header compilable?
11479 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11480 $as_echo_n "checking $ac_header usability... " >&6; }
11481 cat >conftest.$ac_ext <<_ACEOF
11484 cat confdefs.h >>conftest.$ac_ext
11485 cat >>conftest.$ac_ext <<_ACEOF
11486 /* end confdefs.h. */
11487 $ac_includes_default
11488 #include <$ac_header>
11490 rm -f conftest.$ac_objext
11491 if { (ac_try="$ac_compile"
11492 case "(($ac_try" in
11493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494 *) ac_try_echo=$ac_try;;
11496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11497 $as_echo "$ac_try_echo") >&5
11498 (eval "$ac_compile") 2>conftest.er1
11500 grep -v '^ *+' conftest.er1 >conftest.err
11502 cat conftest.err >&5
11503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); } && {
11505 test -z "$ac_c_werror_flag" ||
11506 test ! -s conftest.err
11507 } && test -s conftest.$ac_objext; then
11508 ac_header_compiler=yes
11510 $as_echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11513 ac_header_compiler=no
11516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11517 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11518 $as_echo "$ac_header_compiler" >&6; }
11520 # Is the header present?
11521 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11522 $as_echo_n "checking $ac_header presence... " >&6; }
11523 cat >conftest.$ac_ext <<_ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h. */
11529 #include <$ac_header>
11531 if { (ac_try="$ac_cpp conftest.$ac_ext"
11532 case "(($ac_try" in
11533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11534 *) ac_try_echo=$ac_try;;
11536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11537 $as_echo "$ac_try_echo") >&5
11538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11540 grep -v '^ *+' conftest.er1 >conftest.err
11542 cat conftest.err >&5
11543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); } >/dev/null && {
11545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11546 test ! -s conftest.err
11548 ac_header_preproc=yes
11550 $as_echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11553 ac_header_preproc=no
11556 rm -f conftest.err conftest.$ac_ext
11557 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11558 $as_echo "$ac_header_preproc" >&6; }
11560 # So? What about this header?
11561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11564 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11566 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11567 ac_header_preproc=yes
11570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11571 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11573 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11575 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11577 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11578 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11579 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11580 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11581 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11583 ## ---------------------------------------- ##
11584 ## Report this to pgsql-bugs@postgresql.org ##
11585 ## ---------------------------------------- ##
11587 ) | sed "s/^/$as_me: WARNING: /" >&2
11590 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11591 $as_echo_n "checking for $ac_header... " >&6; }
11592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11593 $as_echo_n "(cached) " >&6
11595 eval "$as_ac_Header=\$ac_header_preproc"
11597 ac_res=`eval 'as_val=${'$as_ac_Header'}
11598 $as_echo "$as_val"'`
11599 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11600 $as_echo "$ac_res" >&6; }
11603 as_val=`eval 'as_val=${'$as_ac_Header'}
11604 $as_echo "$as_val"'`
11605 if test "x$as_val" = x""yes; then
11606 cat >>confdefs.h <<_ACEOF
11607 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11624 if test "$with_zlib" = yes; then
11625 if test "${ac_cv_header_zlib_h+set}" = set; then
11626 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11627 $as_echo_n "checking for zlib.h... " >&6; }
11628 if test "${ac_cv_header_zlib_h+set}" = set; then
11629 $as_echo_n "(cached) " >&6
11631 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11632 $as_echo "$ac_cv_header_zlib_h" >&6; }
11634 # Is the header compilable?
11635 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
11636 $as_echo_n "checking zlib.h usability... " >&6; }
11637 cat >conftest.$ac_ext <<_ACEOF
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h. */
11643 $ac_includes_default
11646 rm -f conftest.$ac_objext
11647 if { (ac_try="$ac_compile"
11648 case "(($ac_try" in
11649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650 *) ac_try_echo=$ac_try;;
11652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11653 $as_echo "$ac_try_echo") >&5
11654 (eval "$ac_compile") 2>conftest.er1
11656 grep -v '^ *+' conftest.er1 >conftest.err
11658 cat conftest.err >&5
11659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } && {
11661 test -z "$ac_c_werror_flag" ||
11662 test ! -s conftest.err
11663 } && test -s conftest.$ac_objext; then
11664 ac_header_compiler=yes
11666 $as_echo "$as_me: failed program was:" >&5
11667 sed 's/^/| /' conftest.$ac_ext >&5
11669 ac_header_compiler=no
11672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11673 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11674 $as_echo "$ac_header_compiler" >&6; }
11676 # Is the header present?
11677 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
11678 $as_echo_n "checking zlib.h presence... " >&6; }
11679 cat >conftest.$ac_ext <<_ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h. */
11687 if { (ac_try="$ac_cpp conftest.$ac_ext"
11688 case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11693 $as_echo "$ac_try_echo") >&5
11694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11696 grep -v '^ *+' conftest.er1 >conftest.err
11698 cat conftest.err >&5
11699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } >/dev/null && {
11701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11702 test ! -s conftest.err
11704 ac_header_preproc=yes
11706 $as_echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11709 ac_header_preproc=no
11712 rm -f conftest.err conftest.$ac_ext
11713 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11714 $as_echo "$ac_header_preproc" >&6; }
11716 # So? What about this header?
11717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11719 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11720 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11721 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11722 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11723 ac_header_preproc=yes
11726 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11727 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11728 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11729 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11730 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11731 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11732 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
11733 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11734 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11735 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11736 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11737 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11739 ## ---------------------------------------- ##
11740 ## Report this to pgsql-bugs@postgresql.org ##
11741 ## ---------------------------------------- ##
11743 ) | sed "s/^/$as_me: WARNING: /" >&2
11746 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11747 $as_echo_n "checking for zlib.h... " >&6; }
11748 if test "${ac_cv_header_zlib_h+set}" = set; then
11749 $as_echo_n "(cached) " >&6
11751 ac_cv_header_zlib_h=$ac_header_preproc
11753 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11754 $as_echo "$ac_cv_header_zlib_h" >&6; }
11757 if test "x$ac_cv_header_zlib_h" = x""yes; then
11760 { { $as_echo "$as_me:$LINENO: error: zlib header not found
11761 If you have zlib already installed, see config.log for details on the
11762 failure. It is possible the compiler isn't looking in the proper directory.
11763 Use --without-zlib to disable zlib support." >&5
11764 $as_echo "$as_me: error: zlib header not found
11765 If you have zlib already installed, see config.log for details on the
11766 failure. It is possible the compiler isn't looking in the proper directory.
11767 Use --without-zlib to disable zlib support." >&2;}
11768 { (exit 1); exit 1; }; }
11774 if test "$with_gssapi" = yes ; then
11776 for ac_header in gssapi/gssapi.h
11778 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11780 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11781 $as_echo_n "checking for $ac_header... " >&6; }
11782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11783 $as_echo_n "(cached) " >&6
11785 ac_res=`eval 'as_val=${'$as_ac_Header'}
11786 $as_echo "$as_val"'`
11787 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11788 $as_echo "$ac_res" >&6; }
11790 # Is the header compilable?
11791 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11792 $as_echo_n "checking $ac_header usability... " >&6; }
11793 cat >conftest.$ac_ext <<_ACEOF
11796 cat confdefs.h >>conftest.$ac_ext
11797 cat >>conftest.$ac_ext <<_ACEOF
11798 /* end confdefs.h. */
11799 $ac_includes_default
11800 #include <$ac_header>
11802 rm -f conftest.$ac_objext
11803 if { (ac_try="$ac_compile"
11804 case "(($ac_try" in
11805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806 *) ac_try_echo=$ac_try;;
11808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11809 $as_echo "$ac_try_echo") >&5
11810 (eval "$ac_compile") 2>conftest.er1
11812 grep -v '^ *+' conftest.er1 >conftest.err
11814 cat conftest.err >&5
11815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); } && {
11817 test -z "$ac_c_werror_flag" ||
11818 test ! -s conftest.err
11819 } && test -s conftest.$ac_objext; then
11820 ac_header_compiler=yes
11822 $as_echo "$as_me: failed program was:" >&5
11823 sed 's/^/| /' conftest.$ac_ext >&5
11825 ac_header_compiler=no
11828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11829 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11830 $as_echo "$ac_header_compiler" >&6; }
11832 # Is the header present?
11833 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11834 $as_echo_n "checking $ac_header presence... " >&6; }
11835 cat >conftest.$ac_ext <<_ACEOF
11838 cat confdefs.h >>conftest.$ac_ext
11839 cat >>conftest.$ac_ext <<_ACEOF
11840 /* end confdefs.h. */
11841 #include <$ac_header>
11843 if { (ac_try="$ac_cpp conftest.$ac_ext"
11844 case "(($ac_try" in
11845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846 *) ac_try_echo=$ac_try;;
11848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11849 $as_echo "$ac_try_echo") >&5
11850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11852 grep -v '^ *+' conftest.er1 >conftest.err
11854 cat conftest.err >&5
11855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); } >/dev/null && {
11857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11858 test ! -s conftest.err
11860 ac_header_preproc=yes
11862 $as_echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11865 ac_header_preproc=no
11868 rm -f conftest.err conftest.$ac_ext
11869 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11870 $as_echo "$ac_header_preproc" >&6; }
11872 # So? What about this header?
11873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11876 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11878 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11879 ac_header_preproc=yes
11882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11883 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11885 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11887 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11889 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11891 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11893 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11895 ## ---------------------------------------- ##
11896 ## Report this to pgsql-bugs@postgresql.org ##
11897 ## ---------------------------------------- ##
11899 ) | sed "s/^/$as_me: WARNING: /" >&2
11902 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11903 $as_echo_n "checking for $ac_header... " >&6; }
11904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11905 $as_echo_n "(cached) " >&6
11907 eval "$as_ac_Header=\$ac_header_preproc"
11909 ac_res=`eval 'as_val=${'$as_ac_Header'}
11910 $as_echo "$as_val"'`
11911 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11912 $as_echo "$ac_res" >&6; }
11915 as_val=`eval 'as_val=${'$as_ac_Header'}
11916 $as_echo "$as_val"'`
11917 if test "x$as_val" = x""yes; then
11918 cat >>confdefs.h <<_ACEOF
11919 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11924 for ac_header in gssapi.h
11926 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11928 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11929 $as_echo_n "checking for $ac_header... " >&6; }
11930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11931 $as_echo_n "(cached) " >&6
11933 ac_res=`eval 'as_val=${'$as_ac_Header'}
11934 $as_echo "$as_val"'`
11935 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11936 $as_echo "$ac_res" >&6; }
11938 # Is the header compilable?
11939 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11940 $as_echo_n "checking $ac_header usability... " >&6; }
11941 cat >conftest.$ac_ext <<_ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h. */
11947 $ac_includes_default
11948 #include <$ac_header>
11950 rm -f conftest.$ac_objext
11951 if { (ac_try="$ac_compile"
11952 case "(($ac_try" in
11953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11957 $as_echo "$ac_try_echo") >&5
11958 (eval "$ac_compile") 2>conftest.er1
11960 grep -v '^ *+' conftest.er1 >conftest.err
11962 cat conftest.err >&5
11963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } && {
11965 test -z "$ac_c_werror_flag" ||
11966 test ! -s conftest.err
11967 } && test -s conftest.$ac_objext; then
11968 ac_header_compiler=yes
11970 $as_echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11973 ac_header_compiler=no
11976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11977 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11978 $as_echo "$ac_header_compiler" >&6; }
11980 # Is the header present?
11981 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11982 $as_echo_n "checking $ac_header presence... " >&6; }
11983 cat >conftest.$ac_ext <<_ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h. */
11989 #include <$ac_header>
11991 if { (ac_try="$ac_cpp conftest.$ac_ext"
11992 case "(($ac_try" in
11993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994 *) ac_try_echo=$ac_try;;
11996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11997 $as_echo "$ac_try_echo") >&5
11998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12000 grep -v '^ *+' conftest.er1 >conftest.err
12002 cat conftest.err >&5
12003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } >/dev/null && {
12005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12006 test ! -s conftest.err
12008 ac_header_preproc=yes
12010 $as_echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12013 ac_header_preproc=no
12016 rm -f conftest.err conftest.$ac_ext
12017 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12018 $as_echo "$ac_header_preproc" >&6; }
12020 # So? What about this header?
12021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12024 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12026 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12027 ac_header_preproc=yes
12030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12031 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12033 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12035 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12037 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12039 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12041 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12043 ## ---------------------------------------- ##
12044 ## Report this to pgsql-bugs@postgresql.org ##
12045 ## ---------------------------------------- ##
12047 ) | sed "s/^/$as_me: WARNING: /" >&2
12050 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12051 $as_echo_n "checking for $ac_header... " >&6; }
12052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12053 $as_echo_n "(cached) " >&6
12055 eval "$as_ac_Header=\$ac_header_preproc"
12057 ac_res=`eval 'as_val=${'$as_ac_Header'}
12058 $as_echo "$as_val"'`
12059 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12060 $as_echo "$ac_res" >&6; }
12063 as_val=`eval 'as_val=${'$as_ac_Header'}
12064 $as_echo "$as_val"'`
12065 if test "x$as_val" = x""yes; then
12066 cat >>confdefs.h <<_ACEOF
12067 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12071 { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12072 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12073 { (exit 1); exit 1; }; }
12084 if test "$with_krb5" = yes ; then
12085 if test "${ac_cv_header_krb5_h+set}" = set; then
12086 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12087 $as_echo_n "checking for krb5.h... " >&6; }
12088 if test "${ac_cv_header_krb5_h+set}" = set; then
12089 $as_echo_n "(cached) " >&6
12091 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12092 $as_echo "$ac_cv_header_krb5_h" >&6; }
12094 # Is the header compilable?
12095 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12096 $as_echo_n "checking krb5.h usability... " >&6; }
12097 cat >conftest.$ac_ext <<_ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h. */
12103 $ac_includes_default
12106 rm -f conftest.$ac_objext
12107 if { (ac_try="$ac_compile"
12108 case "(($ac_try" in
12109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110 *) ac_try_echo=$ac_try;;
12112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12113 $as_echo "$ac_try_echo") >&5
12114 (eval "$ac_compile") 2>conftest.er1
12116 grep -v '^ *+' conftest.er1 >conftest.err
12118 cat conftest.err >&5
12119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } && {
12121 test -z "$ac_c_werror_flag" ||
12122 test ! -s conftest.err
12123 } && test -s conftest.$ac_objext; then
12124 ac_header_compiler=yes
12126 $as_echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12129 ac_header_compiler=no
12132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12133 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12134 $as_echo "$ac_header_compiler" >&6; }
12136 # Is the header present?
12137 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12138 $as_echo_n "checking krb5.h presence... " >&6; }
12139 cat >conftest.$ac_ext <<_ACEOF
12142 cat confdefs.h >>conftest.$ac_ext
12143 cat >>conftest.$ac_ext <<_ACEOF
12144 /* end confdefs.h. */
12147 if { (ac_try="$ac_cpp conftest.$ac_ext"
12148 case "(($ac_try" in
12149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150 *) ac_try_echo=$ac_try;;
12152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12153 $as_echo "$ac_try_echo") >&5
12154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12156 grep -v '^ *+' conftest.er1 >conftest.err
12158 cat conftest.err >&5
12159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); } >/dev/null && {
12161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12162 test ! -s conftest.err
12164 ac_header_preproc=yes
12166 $as_echo "$as_me: failed program was:" >&5
12167 sed 's/^/| /' conftest.$ac_ext >&5
12169 ac_header_preproc=no
12172 rm -f conftest.err conftest.$ac_ext
12173 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12174 $as_echo "$ac_header_preproc" >&6; }
12176 # So? What about this header?
12177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12179 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12180 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12181 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12182 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12183 ac_header_preproc=yes
12186 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12187 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12188 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
12189 $as_echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
12190 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12191 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12192 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
12193 $as_echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
12194 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12195 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12196 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12197 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12199 ## ---------------------------------------- ##
12200 ## Report this to pgsql-bugs@postgresql.org ##
12201 ## ---------------------------------------- ##
12203 ) | sed "s/^/$as_me: WARNING: /" >&2
12206 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12207 $as_echo_n "checking for krb5.h... " >&6; }
12208 if test "${ac_cv_header_krb5_h+set}" = set; then
12209 $as_echo_n "(cached) " >&6
12211 ac_cv_header_krb5_h=$ac_header_preproc
12213 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12214 $as_echo "$ac_cv_header_krb5_h" >&6; }
12217 if test "x$ac_cv_header_krb5_h" = x""yes; then
12220 { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12221 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12222 { (exit 1); exit 1; }; }
12228 if test "$with_openssl" = yes ; then
12229 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12230 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12231 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12232 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12233 $as_echo_n "(cached) " >&6
12235 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12236 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12238 # Is the header compilable?
12239 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12240 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12241 cat >conftest.$ac_ext <<_ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h. */
12247 $ac_includes_default
12248 #include <openssl/ssl.h>
12250 rm -f conftest.$ac_objext
12251 if { (ac_try="$ac_compile"
12252 case "(($ac_try" in
12253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12254 *) ac_try_echo=$ac_try;;
12256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12257 $as_echo "$ac_try_echo") >&5
12258 (eval "$ac_compile") 2>conftest.er1
12260 grep -v '^ *+' conftest.er1 >conftest.err
12262 cat conftest.err >&5
12263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } && {
12265 test -z "$ac_c_werror_flag" ||
12266 test ! -s conftest.err
12267 } && test -s conftest.$ac_objext; then
12268 ac_header_compiler=yes
12270 $as_echo "$as_me: failed program was:" >&5
12271 sed 's/^/| /' conftest.$ac_ext >&5
12273 ac_header_compiler=no
12276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12277 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12278 $as_echo "$ac_header_compiler" >&6; }
12280 # Is the header present?
12281 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12282 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12283 cat >conftest.$ac_ext <<_ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h. */
12289 #include <openssl/ssl.h>
12291 if { (ac_try="$ac_cpp conftest.$ac_ext"
12292 case "(($ac_try" in
12293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12294 *) ac_try_echo=$ac_try;;
12296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12297 $as_echo "$ac_try_echo") >&5
12298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12300 grep -v '^ *+' conftest.er1 >conftest.err
12302 cat conftest.err >&5
12303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } >/dev/null && {
12305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12306 test ! -s conftest.err
12308 ac_header_preproc=yes
12310 $as_echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12313 ac_header_preproc=no
12316 rm -f conftest.err conftest.$ac_ext
12317 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12318 $as_echo "$ac_header_preproc" >&6; }
12320 # So? What about this header?
12321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12323 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12324 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12325 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12326 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12327 ac_header_preproc=yes
12330 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12331 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12332 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12333 $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12334 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12335 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12336 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12337 $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12338 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12339 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12340 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12341 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12343 ## ---------------------------------------- ##
12344 ## Report this to pgsql-bugs@postgresql.org ##
12345 ## ---------------------------------------- ##
12347 ) | sed "s/^/$as_me: WARNING: /" >&2
12350 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12351 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12352 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12353 $as_echo_n "(cached) " >&6
12355 ac_cv_header_openssl_ssl_h=$ac_header_preproc
12357 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12358 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12361 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12364 { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12365 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12366 { (exit 1); exit 1; }; }
12370 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12371 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12372 $as_echo_n "checking for openssl/err.h... " >&6; }
12373 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12374 $as_echo_n "(cached) " >&6
12376 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12377 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12379 # Is the header compilable?
12380 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12381 $as_echo_n "checking openssl/err.h usability... " >&6; }
12382 cat >conftest.$ac_ext <<_ACEOF
12385 cat confdefs.h >>conftest.$ac_ext
12386 cat >>conftest.$ac_ext <<_ACEOF
12387 /* end confdefs.h. */
12388 $ac_includes_default
12389 #include <openssl/err.h>
12391 rm -f conftest.$ac_objext
12392 if { (ac_try="$ac_compile"
12393 case "(($ac_try" in
12394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12395 *) ac_try_echo=$ac_try;;
12397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12398 $as_echo "$ac_try_echo") >&5
12399 (eval "$ac_compile") 2>conftest.er1
12401 grep -v '^ *+' conftest.er1 >conftest.err
12403 cat conftest.err >&5
12404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); } && {
12406 test -z "$ac_c_werror_flag" ||
12407 test ! -s conftest.err
12408 } && test -s conftest.$ac_objext; then
12409 ac_header_compiler=yes
12411 $as_echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12414 ac_header_compiler=no
12417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12418 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12419 $as_echo "$ac_header_compiler" >&6; }
12421 # Is the header present?
12422 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12423 $as_echo_n "checking openssl/err.h presence... " >&6; }
12424 cat >conftest.$ac_ext <<_ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h. */
12430 #include <openssl/err.h>
12432 if { (ac_try="$ac_cpp conftest.$ac_ext"
12433 case "(($ac_try" in
12434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435 *) ac_try_echo=$ac_try;;
12437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12438 $as_echo "$ac_try_echo") >&5
12439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12441 grep -v '^ *+' conftest.er1 >conftest.err
12443 cat conftest.err >&5
12444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); } >/dev/null && {
12446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12447 test ! -s conftest.err
12449 ac_header_preproc=yes
12451 $as_echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12454 ac_header_preproc=no
12457 rm -f conftest.err conftest.$ac_ext
12458 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12459 $as_echo "$ac_header_preproc" >&6; }
12461 # So? What about this header?
12462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12464 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12465 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12466 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12467 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12468 ac_header_preproc=yes
12471 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12472 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12473 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12474 $as_echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12475 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12476 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12477 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12478 $as_echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12479 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12480 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12481 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12482 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12484 ## ---------------------------------------- ##
12485 ## Report this to pgsql-bugs@postgresql.org ##
12486 ## ---------------------------------------- ##
12488 ) | sed "s/^/$as_me: WARNING: /" >&2
12491 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12492 $as_echo_n "checking for openssl/err.h... " >&6; }
12493 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12494 $as_echo_n "(cached) " >&6
12496 ac_cv_header_openssl_err_h=$ac_header_preproc
12498 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12499 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12502 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12505 { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12506 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12507 { (exit 1); exit 1; }; }
12512 for ac_func in ERR_set_mark
12514 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12515 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12516 $as_echo_n "checking for $ac_func... " >&6; }
12517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12518 $as_echo_n "(cached) " >&6
12520 cat >conftest.$ac_ext <<_ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12528 #define $ac_func innocuous_$ac_func
12530 /* System header to define __stub macros and hopefully few prototypes,
12531 which can conflict with char $ac_func (); below.
12532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12533 <limits.h> exists even on freestanding compilers. */
12536 # include <limits.h>
12538 # include <assert.h>
12543 /* Override any GCC internal prototype to avoid an error.
12544 Use char because int might match the return type of a GCC
12545 builtin and then its argument prototype would still apply. */
12550 /* The GNU C library defines this for functions which it implements
12551 to always fail with ENOSYS. Some functions are actually named
12552 something starting with __ and the normal name is an alias. */
12553 #if defined __stub_$ac_func || defined __stub___$ac_func
12560 return $ac_func ();
12565 rm -f conftest.$ac_objext conftest$ac_exeext
12566 if { (ac_try="$ac_link"
12567 case "(($ac_try" in
12568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12569 *) ac_try_echo=$ac_try;;
12571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12572 $as_echo "$ac_try_echo") >&5
12573 (eval "$ac_link") 2>conftest.er1
12575 grep -v '^ *+' conftest.er1 >conftest.err
12577 cat conftest.err >&5
12578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); } && {
12580 test -z "$ac_c_werror_flag" ||
12581 test ! -s conftest.err
12582 } && test -s conftest$ac_exeext && {
12583 test "$cross_compiling" = yes ||
12584 $as_test_x conftest$ac_exeext
12586 eval "$as_ac_var=yes"
12588 $as_echo "$as_me: failed program was:" >&5
12589 sed 's/^/| /' conftest.$ac_ext >&5
12591 eval "$as_ac_var=no"
12594 rm -rf conftest.dSYM
12595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12596 conftest$ac_exeext conftest.$ac_ext
12598 ac_res=`eval 'as_val=${'$as_ac_var'}
12599 $as_echo "$as_val"'`
12600 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12601 $as_echo "$ac_res" >&6; }
12602 as_val=`eval 'as_val=${'$as_ac_var'}
12603 $as_echo "$as_val"'`
12604 if test "x$as_val" = x""yes; then
12605 cat >>confdefs.h <<_ACEOF
12606 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12614 if test "$with_pam" = yes ; then
12616 for ac_header in security/pam_appl.h
12618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12620 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12621 $as_echo_n "checking for $ac_header... " >&6; }
12622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12623 $as_echo_n "(cached) " >&6
12625 ac_res=`eval 'as_val=${'$as_ac_Header'}
12626 $as_echo "$as_val"'`
12627 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12628 $as_echo "$ac_res" >&6; }
12630 # Is the header compilable?
12631 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12632 $as_echo_n "checking $ac_header usability... " >&6; }
12633 cat >conftest.$ac_ext <<_ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h. */
12639 $ac_includes_default
12640 #include <$ac_header>
12642 rm -f conftest.$ac_objext
12643 if { (ac_try="$ac_compile"
12644 case "(($ac_try" in
12645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12646 *) ac_try_echo=$ac_try;;
12648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12649 $as_echo "$ac_try_echo") >&5
12650 (eval "$ac_compile") 2>conftest.er1
12652 grep -v '^ *+' conftest.er1 >conftest.err
12654 cat conftest.err >&5
12655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } && {
12657 test -z "$ac_c_werror_flag" ||
12658 test ! -s conftest.err
12659 } && test -s conftest.$ac_objext; then
12660 ac_header_compiler=yes
12662 $as_echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12665 ac_header_compiler=no
12668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12669 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12670 $as_echo "$ac_header_compiler" >&6; }
12672 # Is the header present?
12673 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12674 $as_echo_n "checking $ac_header presence... " >&6; }
12675 cat >conftest.$ac_ext <<_ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h. */
12681 #include <$ac_header>
12683 if { (ac_try="$ac_cpp conftest.$ac_ext"
12684 case "(($ac_try" in
12685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12686 *) ac_try_echo=$ac_try;;
12688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12689 $as_echo "$ac_try_echo") >&5
12690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12692 grep -v '^ *+' conftest.er1 >conftest.err
12694 cat conftest.err >&5
12695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } >/dev/null && {
12697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12698 test ! -s conftest.err
12700 ac_header_preproc=yes
12702 $as_echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.$ac_ext >&5
12705 ac_header_preproc=no
12708 rm -f conftest.err conftest.$ac_ext
12709 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12710 $as_echo "$ac_header_preproc" >&6; }
12712 # So? What about this header?
12713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12716 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12717 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12718 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12719 ac_header_preproc=yes
12722 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12723 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12724 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12725 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12726 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12727 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12729 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12731 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12733 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12735 ## ---------------------------------------- ##
12736 ## Report this to pgsql-bugs@postgresql.org ##
12737 ## ---------------------------------------- ##
12739 ) | sed "s/^/$as_me: WARNING: /" >&2
12742 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12743 $as_echo_n "checking for $ac_header... " >&6; }
12744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12745 $as_echo_n "(cached) " >&6
12747 eval "$as_ac_Header=\$ac_header_preproc"
12749 ac_res=`eval 'as_val=${'$as_ac_Header'}
12750 $as_echo "$as_val"'`
12751 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12752 $as_echo "$ac_res" >&6; }
12755 as_val=`eval 'as_val=${'$as_ac_Header'}
12756 $as_echo "$as_val"'`
12757 if test "x$as_val" = x""yes; then
12758 cat >>confdefs.h <<_ACEOF
12759 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12764 for ac_header in pam/pam_appl.h
12766 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12768 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12769 $as_echo_n "checking for $ac_header... " >&6; }
12770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12771 $as_echo_n "(cached) " >&6
12773 ac_res=`eval 'as_val=${'$as_ac_Header'}
12774 $as_echo "$as_val"'`
12775 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12776 $as_echo "$ac_res" >&6; }
12778 # Is the header compilable?
12779 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12780 $as_echo_n "checking $ac_header usability... " >&6; }
12781 cat >conftest.$ac_ext <<_ACEOF
12784 cat confdefs.h >>conftest.$ac_ext
12785 cat >>conftest.$ac_ext <<_ACEOF
12786 /* end confdefs.h. */
12787 $ac_includes_default
12788 #include <$ac_header>
12790 rm -f conftest.$ac_objext
12791 if { (ac_try="$ac_compile"
12792 case "(($ac_try" in
12793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794 *) ac_try_echo=$ac_try;;
12796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12797 $as_echo "$ac_try_echo") >&5
12798 (eval "$ac_compile") 2>conftest.er1
12800 grep -v '^ *+' conftest.er1 >conftest.err
12802 cat conftest.err >&5
12803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); } && {
12805 test -z "$ac_c_werror_flag" ||
12806 test ! -s conftest.err
12807 } && test -s conftest.$ac_objext; then
12808 ac_header_compiler=yes
12810 $as_echo "$as_me: failed program was:" >&5
12811 sed 's/^/| /' conftest.$ac_ext >&5
12813 ac_header_compiler=no
12816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12817 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12818 $as_echo "$ac_header_compiler" >&6; }
12820 # Is the header present?
12821 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12822 $as_echo_n "checking $ac_header presence... " >&6; }
12823 cat >conftest.$ac_ext <<_ACEOF
12826 cat confdefs.h >>conftest.$ac_ext
12827 cat >>conftest.$ac_ext <<_ACEOF
12828 /* end confdefs.h. */
12829 #include <$ac_header>
12831 if { (ac_try="$ac_cpp conftest.$ac_ext"
12832 case "(($ac_try" in
12833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834 *) ac_try_echo=$ac_try;;
12836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12837 $as_echo "$ac_try_echo") >&5
12838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12840 grep -v '^ *+' conftest.er1 >conftest.err
12842 cat conftest.err >&5
12843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } >/dev/null && {
12845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12846 test ! -s conftest.err
12848 ac_header_preproc=yes
12850 $as_echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12853 ac_header_preproc=no
12856 rm -f conftest.err conftest.$ac_ext
12857 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12858 $as_echo "$ac_header_preproc" >&6; }
12860 # So? What about this header?
12861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12864 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12866 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12867 ac_header_preproc=yes
12870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12871 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12873 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12875 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12877 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12879 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12881 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12883 ## ---------------------------------------- ##
12884 ## Report this to pgsql-bugs@postgresql.org ##
12885 ## ---------------------------------------- ##
12887 ) | sed "s/^/$as_me: WARNING: /" >&2
12890 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12891 $as_echo_n "checking for $ac_header... " >&6; }
12892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12893 $as_echo_n "(cached) " >&6
12895 eval "$as_ac_Header=\$ac_header_preproc"
12897 ac_res=`eval 'as_val=${'$as_ac_Header'}
12898 $as_echo "$as_val"'`
12899 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12900 $as_echo "$ac_res" >&6; }
12903 as_val=`eval 'as_val=${'$as_ac_Header'}
12904 $as_echo "$as_val"'`
12905 if test "x$as_val" = x""yes; then
12906 cat >>confdefs.h <<_ACEOF
12907 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12911 { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12912 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12913 { (exit 1); exit 1; }; }
12924 if test "$with_libxml" = yes ; then
12925 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12926 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12927 $as_echo_n "checking for libxml/parser.h... " >&6; }
12928 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12929 $as_echo_n "(cached) " >&6
12931 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12932 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
12934 # Is the header compilable?
12935 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12936 $as_echo_n "checking libxml/parser.h usability... " >&6; }
12937 cat >conftest.$ac_ext <<_ACEOF
12940 cat confdefs.h >>conftest.$ac_ext
12941 cat >>conftest.$ac_ext <<_ACEOF
12942 /* end confdefs.h. */
12943 $ac_includes_default
12944 #include <libxml/parser.h>
12946 rm -f conftest.$ac_objext
12947 if { (ac_try="$ac_compile"
12948 case "(($ac_try" in
12949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12950 *) ac_try_echo=$ac_try;;
12952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12953 $as_echo "$ac_try_echo") >&5
12954 (eval "$ac_compile") 2>conftest.er1
12956 grep -v '^ *+' conftest.er1 >conftest.err
12958 cat conftest.err >&5
12959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); } && {
12961 test -z "$ac_c_werror_flag" ||
12962 test ! -s conftest.err
12963 } && test -s conftest.$ac_objext; then
12964 ac_header_compiler=yes
12966 $as_echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12969 ac_header_compiler=no
12972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12973 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12974 $as_echo "$ac_header_compiler" >&6; }
12976 # Is the header present?
12977 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12978 $as_echo_n "checking libxml/parser.h presence... " >&6; }
12979 cat >conftest.$ac_ext <<_ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h. */
12985 #include <libxml/parser.h>
12987 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
13001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13002 test ! -s conftest.err
13004 ac_header_preproc=yes
13006 $as_echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13009 ac_header_preproc=no
13012 rm -f conftest.err conftest.$ac_ext
13013 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13014 $as_echo "$ac_header_preproc" >&6; }
13016 # So? What about this header?
13017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13019 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13020 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13021 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13022 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13023 ac_header_preproc=yes
13026 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13027 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13028 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
13029 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
13030 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13031 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13032 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
13033 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
13034 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13035 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13036 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13037 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13039 ## ---------------------------------------- ##
13040 ## Report this to pgsql-bugs@postgresql.org ##
13041 ## ---------------------------------------- ##
13043 ) | sed "s/^/$as_me: WARNING: /" >&2
13046 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13047 $as_echo_n "checking for libxml/parser.h... " >&6; }
13048 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13049 $as_echo_n "(cached) " >&6
13051 ac_cv_header_libxml_parser_h=$ac_header_preproc
13053 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13054 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13057 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13060 { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13061 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13062 { (exit 1); exit 1; }; }
13068 if test "$with_libxslt" = yes ; then
13069 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13070 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13071 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13072 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13073 $as_echo_n "(cached) " >&6
13075 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13076 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13078 # Is the header compilable?
13079 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13080 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13081 cat >conftest.$ac_ext <<_ACEOF
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h. */
13087 $ac_includes_default
13088 #include <libxslt/xslt.h>
13090 rm -f conftest.$ac_objext
13091 if { (ac_try="$ac_compile"
13092 case "(($ac_try" in
13093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094 *) ac_try_echo=$ac_try;;
13096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13097 $as_echo "$ac_try_echo") >&5
13098 (eval "$ac_compile") 2>conftest.er1
13100 grep -v '^ *+' conftest.er1 >conftest.err
13102 cat conftest.err >&5
13103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); } && {
13105 test -z "$ac_c_werror_flag" ||
13106 test ! -s conftest.err
13107 } && test -s conftest.$ac_objext; then
13108 ac_header_compiler=yes
13110 $as_echo "$as_me: failed program was:" >&5
13111 sed 's/^/| /' conftest.$ac_ext >&5
13113 ac_header_compiler=no
13116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13117 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13118 $as_echo "$ac_header_compiler" >&6; }
13120 # Is the header present?
13121 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13122 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13123 cat >conftest.$ac_ext <<_ACEOF
13126 cat confdefs.h >>conftest.$ac_ext
13127 cat >>conftest.$ac_ext <<_ACEOF
13128 /* end confdefs.h. */
13129 #include <libxslt/xslt.h>
13131 if { (ac_try="$ac_cpp conftest.$ac_ext"
13132 case "(($ac_try" in
13133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134 *) ac_try_echo=$ac_try;;
13136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13137 $as_echo "$ac_try_echo") >&5
13138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13140 grep -v '^ *+' conftest.er1 >conftest.err
13142 cat conftest.err >&5
13143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); } >/dev/null && {
13145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13146 test ! -s conftest.err
13148 ac_header_preproc=yes
13150 $as_echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13153 ac_header_preproc=no
13156 rm -f conftest.err conftest.$ac_ext
13157 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13158 $as_echo "$ac_header_preproc" >&6; }
13160 # So? What about this header?
13161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13163 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13164 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13165 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13166 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13167 ac_header_preproc=yes
13170 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13171 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13172 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
13173 $as_echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
13174 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13175 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13176 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
13177 $as_echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
13178 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13179 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13180 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13181 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13183 ## ---------------------------------------- ##
13184 ## Report this to pgsql-bugs@postgresql.org ##
13185 ## ---------------------------------------- ##
13187 ) | sed "s/^/$as_me: WARNING: /" >&2
13190 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13191 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13192 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13193 $as_echo_n "(cached) " >&6
13195 ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13197 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13198 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13201 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
13204 { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13205 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13206 { (exit 1); exit 1; }; }
13212 if test "$with_ldap" = yes ; then
13213 if test "$PORTNAME" != "win32"; then
13215 for ac_header in ldap.h
13217 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13219 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13220 $as_echo_n "checking for $ac_header... " >&6; }
13221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13222 $as_echo_n "(cached) " >&6
13224 ac_res=`eval 'as_val=${'$as_ac_Header'}
13225 $as_echo "$as_val"'`
13226 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13227 $as_echo "$ac_res" >&6; }
13229 # Is the header compilable?
13230 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13231 $as_echo_n "checking $ac_header usability... " >&6; }
13232 cat >conftest.$ac_ext <<_ACEOF
13235 cat confdefs.h >>conftest.$ac_ext
13236 cat >>conftest.$ac_ext <<_ACEOF
13237 /* end confdefs.h. */
13238 $ac_includes_default
13239 #include <$ac_header>
13241 rm -f conftest.$ac_objext
13242 if { (ac_try="$ac_compile"
13243 case "(($ac_try" in
13244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13245 *) ac_try_echo=$ac_try;;
13247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13248 $as_echo "$ac_try_echo") >&5
13249 (eval "$ac_compile") 2>conftest.er1
13251 grep -v '^ *+' conftest.er1 >conftest.err
13253 cat conftest.err >&5
13254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } && {
13256 test -z "$ac_c_werror_flag" ||
13257 test ! -s conftest.err
13258 } && test -s conftest.$ac_objext; then
13259 ac_header_compiler=yes
13261 $as_echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13264 ac_header_compiler=no
13267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13268 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13269 $as_echo "$ac_header_compiler" >&6; }
13271 # Is the header present?
13272 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13273 $as_echo_n "checking $ac_header presence... " >&6; }
13274 cat >conftest.$ac_ext <<_ACEOF
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h. */
13280 #include <$ac_header>
13282 if { (ac_try="$ac_cpp conftest.$ac_ext"
13283 case "(($ac_try" in
13284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13285 *) ac_try_echo=$ac_try;;
13287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13288 $as_echo "$ac_try_echo") >&5
13289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13291 grep -v '^ *+' conftest.er1 >conftest.err
13293 cat conftest.err >&5
13294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); } >/dev/null && {
13296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13297 test ! -s conftest.err
13299 ac_header_preproc=yes
13301 $as_echo "$as_me: failed program was:" >&5
13302 sed 's/^/| /' conftest.$ac_ext >&5
13304 ac_header_preproc=no
13307 rm -f conftest.err conftest.$ac_ext
13308 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13309 $as_echo "$ac_header_preproc" >&6; }
13311 # So? What about this header?
13312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13315 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13317 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13318 ac_header_preproc=yes
13321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13322 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13323 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13324 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13325 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13326 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13328 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13330 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13332 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13334 ## ---------------------------------------- ##
13335 ## Report this to pgsql-bugs@postgresql.org ##
13336 ## ---------------------------------------- ##
13338 ) | sed "s/^/$as_me: WARNING: /" >&2
13341 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13342 $as_echo_n "checking for $ac_header... " >&6; }
13343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13344 $as_echo_n "(cached) " >&6
13346 eval "$as_ac_Header=\$ac_header_preproc"
13348 ac_res=`eval 'as_val=${'$as_ac_Header'}
13349 $as_echo "$as_val"'`
13350 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13351 $as_echo "$ac_res" >&6; }
13354 as_val=`eval 'as_val=${'$as_ac_Header'}
13355 $as_echo "$as_val"'`
13356 if test "x$as_val" = x""yes; then
13357 cat >>confdefs.h <<_ACEOF
13358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13362 { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13363 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13364 { (exit 1); exit 1; }; }
13371 for ac_header in winldap.h
13373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13374 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13375 $as_echo_n "checking for $ac_header... " >&6; }
13376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13377 $as_echo_n "(cached) " >&6
13379 cat >conftest.$ac_ext <<_ACEOF
13382 cat confdefs.h >>conftest.$ac_ext
13383 cat >>conftest.$ac_ext <<_ACEOF
13384 /* end confdefs.h. */
13385 $ac_includes_default
13386 #include <windows.h>
13389 #include <$ac_header>
13391 rm -f conftest.$ac_objext
13392 if { (ac_try="$ac_compile"
13393 case "(($ac_try" in
13394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13395 *) ac_try_echo=$ac_try;;
13397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13398 $as_echo "$ac_try_echo") >&5
13399 (eval "$ac_compile") 2>conftest.er1
13401 grep -v '^ *+' conftest.er1 >conftest.err
13403 cat conftest.err >&5
13404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); } && {
13406 test -z "$ac_c_werror_flag" ||
13407 test ! -s conftest.err
13408 } && test -s conftest.$ac_objext; then
13409 eval "$as_ac_Header=yes"
13411 $as_echo "$as_me: failed program was:" >&5
13412 sed 's/^/| /' conftest.$ac_ext >&5
13414 eval "$as_ac_Header=no"
13417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13419 ac_res=`eval 'as_val=${'$as_ac_Header'}
13420 $as_echo "$as_val"'`
13421 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13422 $as_echo "$ac_res" >&6; }
13423 as_val=`eval 'as_val=${'$as_ac_Header'}
13424 $as_echo "$as_val"'`
13425 if test "x$as_val" = x""yes; then
13426 cat >>confdefs.h <<_ACEOF
13427 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13431 { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13432 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13433 { (exit 1); exit 1; }; }
13441 if test "$with_bonjour" = yes ; then
13442 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13443 { $as_echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13444 $as_echo_n "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... " >&6; }
13445 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13446 $as_echo_n "(cached) " >&6
13448 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13449 $as_echo "$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13451 # Is the header compilable?
13452 { $as_echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
13453 $as_echo_n "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... " >&6; }
13454 cat >conftest.$ac_ext <<_ACEOF
13457 cat confdefs.h >>conftest.$ac_ext
13458 cat >>conftest.$ac_ext <<_ACEOF
13459 /* end confdefs.h. */
13460 $ac_includes_default
13461 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13463 rm -f conftest.$ac_objext
13464 if { (ac_try="$ac_compile"
13465 case "(($ac_try" in
13466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13467 *) ac_try_echo=$ac_try;;
13469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13470 $as_echo "$ac_try_echo") >&5
13471 (eval "$ac_compile") 2>conftest.er1
13473 grep -v '^ *+' conftest.er1 >conftest.err
13475 cat conftest.err >&5
13476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); } && {
13478 test -z "$ac_c_werror_flag" ||
13479 test ! -s conftest.err
13480 } && test -s conftest.$ac_objext; then
13481 ac_header_compiler=yes
13483 $as_echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13486 ac_header_compiler=no
13489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13490 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13491 $as_echo "$ac_header_compiler" >&6; }
13493 # Is the header present?
13494 { $as_echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
13495 $as_echo_n "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... " >&6; }
13496 cat >conftest.$ac_ext <<_ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h. */
13502 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13504 if { (ac_try="$ac_cpp conftest.$ac_ext"
13505 case "(($ac_try" in
13506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507 *) ac_try_echo=$ac_try;;
13509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13510 $as_echo "$ac_try_echo") >&5
13511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13513 grep -v '^ *+' conftest.er1 >conftest.err
13515 cat conftest.err >&5
13516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } >/dev/null && {
13518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13519 test ! -s conftest.err
13521 ac_header_preproc=yes
13523 $as_echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.$ac_ext >&5
13526 ac_header_preproc=no
13529 rm -f conftest.err conftest.$ac_ext
13530 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13531 $as_echo "$ac_header_preproc" >&6; }
13533 # So? What about this header?
13534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13536 { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
13537 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13538 { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
13539 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
13540 ac_header_preproc=yes
13543 { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
13544 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
13545 { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&5
13546 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: check for missing prerequisite headers?" >&2;}
13547 { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
13548 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
13549 { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&5
13550 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: section \"Present But Cannot Be Compiled\"" >&2;}
13551 { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
13552 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
13553 { $as_echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
13554 $as_echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
13556 ## ---------------------------------------- ##
13557 ## Report this to pgsql-bugs@postgresql.org ##
13558 ## ---------------------------------------- ##
13560 ) | sed "s/^/$as_me: WARNING: /" >&2
13563 { $as_echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13564 $as_echo_n "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... " >&6; }
13565 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13566 $as_echo_n "(cached) " >&6
13568 ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
13570 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13571 $as_echo "$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13574 if test "x$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" = x""yes; then
13577 { { $as_echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
13578 $as_echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
13579 { (exit 1); exit 1; }; }
13585 # for contrib/uuid-ossp
13586 if test "$with_ossp_uuid" = yes ; then
13588 for ac_header in ossp/uuid.h
13590 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13592 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13593 $as_echo_n "checking for $ac_header... " >&6; }
13594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13595 $as_echo_n "(cached) " >&6
13597 ac_res=`eval 'as_val=${'$as_ac_Header'}
13598 $as_echo "$as_val"'`
13599 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13600 $as_echo "$ac_res" >&6; }
13602 # Is the header compilable?
13603 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13604 $as_echo_n "checking $ac_header usability... " >&6; }
13605 cat >conftest.$ac_ext <<_ACEOF
13608 cat confdefs.h >>conftest.$ac_ext
13609 cat >>conftest.$ac_ext <<_ACEOF
13610 /* end confdefs.h. */
13611 $ac_includes_default
13612 #include <$ac_header>
13614 rm -f conftest.$ac_objext
13615 if { (ac_try="$ac_compile"
13616 case "(($ac_try" in
13617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618 *) ac_try_echo=$ac_try;;
13620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13621 $as_echo "$ac_try_echo") >&5
13622 (eval "$ac_compile") 2>conftest.er1
13624 grep -v '^ *+' conftest.er1 >conftest.err
13626 cat conftest.err >&5
13627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); } && {
13629 test -z "$ac_c_werror_flag" ||
13630 test ! -s conftest.err
13631 } && test -s conftest.$ac_objext; then
13632 ac_header_compiler=yes
13634 $as_echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13637 ac_header_compiler=no
13640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13641 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13642 $as_echo "$ac_header_compiler" >&6; }
13644 # Is the header present?
13645 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13646 $as_echo_n "checking $ac_header presence... " >&6; }
13647 cat >conftest.$ac_ext <<_ACEOF
13650 cat confdefs.h >>conftest.$ac_ext
13651 cat >>conftest.$ac_ext <<_ACEOF
13652 /* end confdefs.h. */
13653 #include <$ac_header>
13655 if { (ac_try="$ac_cpp conftest.$ac_ext"
13656 case "(($ac_try" in
13657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658 *) ac_try_echo=$ac_try;;
13660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13661 $as_echo "$ac_try_echo") >&5
13662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13664 grep -v '^ *+' conftest.er1 >conftest.err
13666 cat conftest.err >&5
13667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); } >/dev/null && {
13669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13670 test ! -s conftest.err
13672 ac_header_preproc=yes
13674 $as_echo "$as_me: failed program was:" >&5
13675 sed 's/^/| /' conftest.$ac_ext >&5
13677 ac_header_preproc=no
13680 rm -f conftest.err conftest.$ac_ext
13681 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13682 $as_echo "$ac_header_preproc" >&6; }
13684 # So? What about this header?
13685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13688 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13690 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13691 ac_header_preproc=yes
13694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13695 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13697 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13699 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13701 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13703 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13705 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13707 ## ---------------------------------------- ##
13708 ## Report this to pgsql-bugs@postgresql.org ##
13709 ## ---------------------------------------- ##
13711 ) | sed "s/^/$as_me: WARNING: /" >&2
13714 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13715 $as_echo_n "checking for $ac_header... " >&6; }
13716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13717 $as_echo_n "(cached) " >&6
13719 eval "$as_ac_Header=\$ac_header_preproc"
13721 ac_res=`eval 'as_val=${'$as_ac_Header'}
13722 $as_echo "$as_val"'`
13723 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13724 $as_echo "$ac_res" >&6; }
13727 as_val=`eval 'as_val=${'$as_ac_Header'}
13728 $as_echo "$as_val"'`
13729 if test "x$as_val" = x""yes; then
13730 cat >>confdefs.h <<_ACEOF
13731 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13737 for ac_header in uuid.h
13739 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13741 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13742 $as_echo_n "checking for $ac_header... " >&6; }
13743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13744 $as_echo_n "(cached) " >&6
13746 ac_res=`eval 'as_val=${'$as_ac_Header'}
13747 $as_echo "$as_val"'`
13748 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13749 $as_echo "$ac_res" >&6; }
13751 # Is the header compilable?
13752 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13753 $as_echo_n "checking $ac_header usability... " >&6; }
13754 cat >conftest.$ac_ext <<_ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h. */
13760 $ac_includes_default
13761 #include <$ac_header>
13763 rm -f conftest.$ac_objext
13764 if { (ac_try="$ac_compile"
13765 case "(($ac_try" in
13766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767 *) ac_try_echo=$ac_try;;
13769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13770 $as_echo "$ac_try_echo") >&5
13771 (eval "$ac_compile") 2>conftest.er1
13773 grep -v '^ *+' conftest.er1 >conftest.err
13775 cat conftest.err >&5
13776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); } && {
13778 test -z "$ac_c_werror_flag" ||
13779 test ! -s conftest.err
13780 } && test -s conftest.$ac_objext; then
13781 ac_header_compiler=yes
13783 $as_echo "$as_me: failed program was:" >&5
13784 sed 's/^/| /' conftest.$ac_ext >&5
13786 ac_header_compiler=no
13789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13790 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13791 $as_echo "$ac_header_compiler" >&6; }
13793 # Is the header present?
13794 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13795 $as_echo_n "checking $ac_header presence... " >&6; }
13796 cat >conftest.$ac_ext <<_ACEOF
13799 cat confdefs.h >>conftest.$ac_ext
13800 cat >>conftest.$ac_ext <<_ACEOF
13801 /* end confdefs.h. */
13802 #include <$ac_header>
13804 if { (ac_try="$ac_cpp conftest.$ac_ext"
13805 case "(($ac_try" in
13806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807 *) ac_try_echo=$ac_try;;
13809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13810 $as_echo "$ac_try_echo") >&5
13811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13813 grep -v '^ *+' conftest.er1 >conftest.err
13815 cat conftest.err >&5
13816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); } >/dev/null && {
13818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13819 test ! -s conftest.err
13821 ac_header_preproc=yes
13823 $as_echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.$ac_ext >&5
13826 ac_header_preproc=no
13829 rm -f conftest.err conftest.$ac_ext
13830 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13831 $as_echo "$ac_header_preproc" >&6; }
13833 # So? What about this header?
13834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13837 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13839 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13840 ac_header_preproc=yes
13843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13844 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13846 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13848 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13850 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13852 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13854 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13856 ## ---------------------------------------- ##
13857 ## Report this to pgsql-bugs@postgresql.org ##
13858 ## ---------------------------------------- ##
13860 ) | sed "s/^/$as_me: WARNING: /" >&2
13863 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13864 $as_echo_n "checking for $ac_header... " >&6; }
13865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13866 $as_echo_n "(cached) " >&6
13868 eval "$as_ac_Header=\$ac_header_preproc"
13870 ac_res=`eval 'as_val=${'$as_ac_Header'}
13871 $as_echo "$as_val"'`
13872 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13873 $as_echo "$ac_res" >&6; }
13876 as_val=`eval 'as_val=${'$as_ac_Header'}
13877 $as_echo "$as_val"'`
13878 if test "x$as_val" = x""yes; then
13879 cat >>confdefs.h <<_ACEOF
13880 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13884 { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13885 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13886 { (exit 1); exit 1; }; }
13899 ## Types, structures, compiler characteristics
13903 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13904 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13905 if test "${ac_cv_c_bigendian+set}" = set; then
13906 $as_echo_n "(cached) " >&6
13908 ac_cv_c_bigendian=unknown
13909 # See if we're dealing with a universal compiler.
13910 cat >conftest.$ac_ext <<_ACEOF
13913 cat confdefs.h >>conftest.$ac_ext
13914 cat >>conftest.$ac_ext <<_ACEOF
13915 /* end confdefs.h. */
13916 #ifndef __APPLE_CC__
13917 not a universal capable compiler
13922 rm -f conftest.$ac_objext
13923 if { (ac_try="$ac_compile"
13924 case "(($ac_try" in
13925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13926 *) ac_try_echo=$ac_try;;
13928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13929 $as_echo "$ac_try_echo") >&5
13930 (eval "$ac_compile") 2>conftest.er1
13932 grep -v '^ *+' conftest.er1 >conftest.err
13934 cat conftest.err >&5
13935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } && {
13937 test -z "$ac_c_werror_flag" ||
13938 test ! -s conftest.err
13939 } && test -s conftest.$ac_objext; then
13941 # Check for potential -arch flags. It is not universal unless
13942 # there are some -arch flags. Note that *ppc* also matches
13943 # ppc64. This check is also rather less than ideal.
13944 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
13945 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
13948 $as_echo "$as_me: failed program was:" >&5
13949 sed 's/^/| /' conftest.$ac_ext >&5
13954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13955 if test $ac_cv_c_bigendian = unknown; then
13956 # See if sys/param.h defines the BYTE_ORDER macro.
13957 cat >conftest.$ac_ext <<_ACEOF
13960 cat confdefs.h >>conftest.$ac_ext
13961 cat >>conftest.$ac_ext <<_ACEOF
13962 /* end confdefs.h. */
13963 #include <sys/types.h>
13964 #include <sys/param.h>
13969 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13970 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13972 bogus endian macros
13979 rm -f conftest.$ac_objext
13980 if { (ac_try="$ac_compile"
13981 case "(($ac_try" in
13982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983 *) ac_try_echo=$ac_try;;
13985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13986 $as_echo "$ac_try_echo") >&5
13987 (eval "$ac_compile") 2>conftest.er1
13989 grep -v '^ *+' conftest.er1 >conftest.err
13991 cat conftest.err >&5
13992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); } && {
13994 test -z "$ac_c_werror_flag" ||
13995 test ! -s conftest.err
13996 } && test -s conftest.$ac_objext; then
13997 # It does; now see whether it defined to BIG_ENDIAN or not.
13998 cat >conftest.$ac_ext <<_ACEOF
14001 cat confdefs.h >>conftest.$ac_ext
14002 cat >>conftest.$ac_ext <<_ACEOF
14003 /* end confdefs.h. */
14004 #include <sys/types.h>
14005 #include <sys/param.h>
14010 #if BYTE_ORDER != BIG_ENDIAN
14018 rm -f conftest.$ac_objext
14019 if { (ac_try="$ac_compile"
14020 case "(($ac_try" in
14021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14022 *) ac_try_echo=$ac_try;;
14024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14025 $as_echo "$ac_try_echo") >&5
14026 (eval "$ac_compile") 2>conftest.er1
14028 grep -v '^ *+' conftest.er1 >conftest.err
14030 cat conftest.err >&5
14031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); } && {
14033 test -z "$ac_c_werror_flag" ||
14034 test ! -s conftest.err
14035 } && test -s conftest.$ac_objext; then
14036 ac_cv_c_bigendian=yes
14038 $as_echo "$as_me: failed program was:" >&5
14039 sed 's/^/| /' conftest.$ac_ext >&5
14041 ac_cv_c_bigendian=no
14044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14046 $as_echo "$as_me: failed program was:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14054 if test $ac_cv_c_bigendian = unknown; then
14055 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14056 cat >conftest.$ac_ext <<_ACEOF
14059 cat confdefs.h >>conftest.$ac_ext
14060 cat >>conftest.$ac_ext <<_ACEOF
14061 /* end confdefs.h. */
14062 #include <limits.h>
14067 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14068 bogus endian macros
14075 rm -f conftest.$ac_objext
14076 if { (ac_try="$ac_compile"
14077 case "(($ac_try" in
14078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079 *) ac_try_echo=$ac_try;;
14081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14082 $as_echo "$ac_try_echo") >&5
14083 (eval "$ac_compile") 2>conftest.er1
14085 grep -v '^ *+' conftest.er1 >conftest.err
14087 cat conftest.err >&5
14088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); } && {
14090 test -z "$ac_c_werror_flag" ||
14091 test ! -s conftest.err
14092 } && test -s conftest.$ac_objext; then
14093 # It does; now see whether it defined to _BIG_ENDIAN or not.
14094 cat >conftest.$ac_ext <<_ACEOF
14097 cat confdefs.h >>conftest.$ac_ext
14098 cat >>conftest.$ac_ext <<_ACEOF
14099 /* end confdefs.h. */
14100 #include <limits.h>
14105 #ifndef _BIG_ENDIAN
14113 rm -f conftest.$ac_objext
14114 if { (ac_try="$ac_compile"
14115 case "(($ac_try" in
14116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117 *) ac_try_echo=$ac_try;;
14119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14120 $as_echo "$ac_try_echo") >&5
14121 (eval "$ac_compile") 2>conftest.er1
14123 grep -v '^ *+' conftest.er1 >conftest.err
14125 cat conftest.err >&5
14126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); } && {
14128 test -z "$ac_c_werror_flag" ||
14129 test ! -s conftest.err
14130 } && test -s conftest.$ac_objext; then
14131 ac_cv_c_bigendian=yes
14133 $as_echo "$as_me: failed program was:" >&5
14134 sed 's/^/| /' conftest.$ac_ext >&5
14136 ac_cv_c_bigendian=no
14139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14141 $as_echo "$as_me: failed program was:" >&5
14142 sed 's/^/| /' conftest.$ac_ext >&5
14147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14149 if test $ac_cv_c_bigendian = unknown; then
14150 # Compile a test program.
14151 if test "$cross_compiling" = yes; then
14152 # Try to guess by grepping values from an object file.
14153 cat >conftest.$ac_ext <<_ACEOF
14156 cat confdefs.h >>conftest.$ac_ext
14157 cat >>conftest.$ac_ext <<_ACEOF
14158 /* end confdefs.h. */
14159 short int ascii_mm[] =
14160 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14161 short int ascii_ii[] =
14162 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14163 int use_ascii (int i) {
14164 return ascii_mm[i] + ascii_ii[i];
14166 short int ebcdic_ii[] =
14167 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14168 short int ebcdic_mm[] =
14169 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14170 int use_ebcdic (int i) {
14171 return ebcdic_mm[i] + ebcdic_ii[i];
14178 return use_ascii (foo) == use_ebcdic (foo);
14183 rm -f conftest.$ac_objext
14184 if { (ac_try="$ac_compile"
14185 case "(($ac_try" in
14186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14187 *) ac_try_echo=$ac_try;;
14189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14190 $as_echo "$ac_try_echo") >&5
14191 (eval "$ac_compile") 2>conftest.er1
14193 grep -v '^ *+' conftest.er1 >conftest.err
14195 cat conftest.err >&5
14196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); } && {
14198 test -z "$ac_c_werror_flag" ||
14199 test ! -s conftest.err
14200 } && test -s conftest.$ac_objext; then
14201 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14202 ac_cv_c_bigendian=yes
14204 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14205 if test "$ac_cv_c_bigendian" = unknown; then
14206 ac_cv_c_bigendian=no
14208 # finding both strings is unlikely to happen, but who knows?
14209 ac_cv_c_bigendian=unknown
14213 $as_echo "$as_me: failed program was:" >&5
14214 sed 's/^/| /' conftest.$ac_ext >&5
14219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14221 cat >conftest.$ac_ext <<_ACEOF
14224 cat confdefs.h >>conftest.$ac_ext
14225 cat >>conftest.$ac_ext <<_ACEOF
14226 /* end confdefs.h. */
14227 $ac_includes_default
14232 /* Are we little or big endian? From Harbison&Steele. */
14236 char c[sizeof (long int)];
14239 return u.c[sizeof (long int) - 1] == 1;
14245 rm -f conftest$ac_exeext
14246 if { (ac_try="$ac_link"
14247 case "(($ac_try" in
14248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249 *) ac_try_echo=$ac_try;;
14251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14252 $as_echo "$ac_try_echo") >&5
14253 (eval "$ac_link") 2>&5
14255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14257 { (case "(($ac_try" in
14258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14259 *) ac_try_echo=$ac_try;;
14261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14262 $as_echo "$ac_try_echo") >&5
14263 (eval "$ac_try") 2>&5
14265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); }; }; then
14267 ac_cv_c_bigendian=no
14269 $as_echo "$as_me: program exited with status $ac_status" >&5
14270 $as_echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.$ac_ext >&5
14273 ( exit $ac_status )
14274 ac_cv_c_bigendian=yes
14276 rm -rf conftest.dSYM
14277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14283 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14284 $as_echo "$ac_cv_c_bigendian" >&6; }
14285 case $ac_cv_c_bigendian in #(
14287 cat >>confdefs.h <<\_ACEOF
14288 #define WORDS_BIGENDIAN 1
14295 cat >>confdefs.h <<\_ACEOF
14296 #define AC_APPLE_UNIVERSAL_BUILD 1
14301 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14302 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14303 $as_echo "$as_me: error: unknown endianness
14304 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14305 { (exit 1); exit 1; }; } ;;
14308 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14309 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14310 if test "${ac_cv_c_const+set}" = set; then
14311 $as_echo_n "(cached) " >&6
14313 cat >conftest.$ac_ext <<_ACEOF
14316 cat confdefs.h >>conftest.$ac_ext
14317 cat >>conftest.$ac_ext <<_ACEOF
14318 /* end confdefs.h. */
14323 /* FIXME: Include the comments suggested by Paul. */
14324 #ifndef __cplusplus
14325 /* Ultrix mips cc rejects this. */
14326 typedef int charset[2];
14328 /* SunOS 4.1.1 cc rejects this. */
14329 char const *const *pcpcc;
14331 /* NEC SVR4.0.2 mips cc rejects this. */
14332 struct point {int x, y;};
14333 static struct point const zero = {0,0};
14334 /* AIX XL C 1.02.0.0 rejects this.
14335 It does not let you subtract one const X* pointer from another in
14336 an arm of an if-expression whose if-part is not a constant
14338 const char *g = "string";
14339 pcpcc = &g + (g ? g-g : 0);
14340 /* HPUX 7.0 cc rejects these. */
14342 ppc = (char**) pcpcc;
14343 pcpcc = (char const *const *) ppc;
14344 { /* SCO 3.2v4 cc rejects this. */
14346 char const *s = 0 ? (char *) 0 : (char const *) 0;
14351 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14352 int x[] = {25, 17};
14353 const int *foo = &x[0];
14356 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14357 typedef const int *iptr;
14361 { /* AIX XL C 1.02.0.0 rejects this saying
14362 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14363 struct s { int j; const int *ap[3]; };
14364 struct s *b; b->j = 5;
14366 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14367 const int foo = 10;
14368 if (!foo) return 0;
14370 return !cs[0] && !zero.x;
14377 rm -f conftest.$ac_objext
14378 if { (ac_try="$ac_compile"
14379 case "(($ac_try" in
14380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381 *) ac_try_echo=$ac_try;;
14383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14384 $as_echo "$ac_try_echo") >&5
14385 (eval "$ac_compile") 2>conftest.er1
14387 grep -v '^ *+' conftest.er1 >conftest.err
14389 cat conftest.err >&5
14390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); } && {
14392 test -z "$ac_c_werror_flag" ||
14393 test ! -s conftest.err
14394 } && test -s conftest.$ac_objext; then
14397 $as_echo "$as_me: failed program was:" >&5
14398 sed 's/^/| /' conftest.$ac_ext >&5
14403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14405 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14406 $as_echo "$ac_cv_c_const" >&6; }
14407 if test $ac_cv_c_const = no; then
14409 cat >>confdefs.h <<\_ACEOF
14415 { $as_echo "$as_me:$LINENO: checking for inline" >&5
14416 $as_echo_n "checking for inline... " >&6; }
14417 if test "${ac_cv_c_inline+set}" = set; then
14418 $as_echo_n "(cached) " >&6
14421 for ac_kw in inline __inline__ __inline; do
14422 cat >conftest.$ac_ext <<_ACEOF
14425 cat confdefs.h >>conftest.$ac_ext
14426 cat >>conftest.$ac_ext <<_ACEOF
14427 /* end confdefs.h. */
14428 #ifndef __cplusplus
14430 static $ac_kw foo_t static_foo () {return 0; }
14431 $ac_kw foo_t foo () {return 0; }
14435 rm -f conftest.$ac_objext
14436 if { (ac_try="$ac_compile"
14437 case "(($ac_try" in
14438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439 *) ac_try_echo=$ac_try;;
14441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14442 $as_echo "$ac_try_echo") >&5
14443 (eval "$ac_compile") 2>conftest.er1
14445 grep -v '^ *+' conftest.er1 >conftest.err
14447 cat conftest.err >&5
14448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); } && {
14450 test -z "$ac_c_werror_flag" ||
14451 test ! -s conftest.err
14452 } && test -s conftest.$ac_objext; then
14453 ac_cv_c_inline=$ac_kw
14455 $as_echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14462 test "$ac_cv_c_inline" != no && break
14466 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14467 $as_echo "$ac_cv_c_inline" >&6; }
14470 case $ac_cv_c_inline in
14473 case $ac_cv_c_inline in
14475 *) ac_val=$ac_cv_c_inline;;
14477 cat >>confdefs.h <<_ACEOF
14478 #ifndef __cplusplus
14479 #define inline $ac_val
14485 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14486 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
14487 if test "${ac_cv_c_stringize+set}" = set; then
14488 $as_echo_n "(cached) " >&6
14490 cat >conftest.$ac_ext <<_ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14498 char *s = x(teststring);
14500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14501 $EGREP "#teststring" >/dev/null 2>&1; then
14502 ac_cv_c_stringize=no
14504 ac_cv_c_stringize=yes
14509 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
14510 $as_echo "$ac_cv_c_stringize" >&6; }
14511 if test $ac_cv_c_stringize = yes; then
14513 cat >>confdefs.h <<\_ACEOF
14514 #define HAVE_STRINGIZE 1
14519 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
14520 $as_echo_n "checking for signed types... " >&6; }
14521 if test "${pgac_cv_c_signed+set}" = set; then
14522 $as_echo_n "(cached) " >&6
14524 cat >conftest.$ac_ext <<_ACEOF
14527 cat confdefs.h >>conftest.$ac_ext
14528 cat >>conftest.$ac_ext <<_ACEOF
14529 /* end confdefs.h. */
14534 signed char c; signed short s; signed int i;
14539 rm -f conftest.$ac_objext
14540 if { (ac_try="$ac_compile"
14541 case "(($ac_try" in
14542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14543 *) ac_try_echo=$ac_try;;
14545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14546 $as_echo "$ac_try_echo") >&5
14547 (eval "$ac_compile") 2>conftest.er1
14549 grep -v '^ *+' conftest.er1 >conftest.err
14551 cat conftest.err >&5
14552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); } && {
14554 test -z "$ac_c_werror_flag" ||
14555 test ! -s conftest.err
14556 } && test -s conftest.$ac_objext; then
14557 pgac_cv_c_signed=yes
14559 $as_echo "$as_me: failed program was:" >&5
14560 sed 's/^/| /' conftest.$ac_ext >&5
14562 pgac_cv_c_signed=no
14565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14567 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14568 $as_echo "$pgac_cv_c_signed" >&6; }
14569 if test x"$pgac_cv_c_signed" = xno ; then
14571 cat >>confdefs.h <<\_ACEOF
14572 #define signed /**/
14576 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
14577 $as_echo_n "checking for working volatile... " >&6; }
14578 if test "${ac_cv_c_volatile+set}" = set; then
14579 $as_echo_n "(cached) " >&6
14581 cat >conftest.$ac_ext <<_ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14593 int * volatile y = (int *) 0;
14599 rm -f conftest.$ac_objext
14600 if { (ac_try="$ac_compile"
14601 case "(($ac_try" in
14602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603 *) ac_try_echo=$ac_try;;
14605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14606 $as_echo "$ac_try_echo") >&5
14607 (eval "$ac_compile") 2>conftest.er1
14609 grep -v '^ *+' conftest.er1 >conftest.err
14611 cat conftest.err >&5
14612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); } && {
14614 test -z "$ac_c_werror_flag" ||
14615 test ! -s conftest.err
14616 } && test -s conftest.$ac_objext; then
14617 ac_cv_c_volatile=yes
14619 $as_echo "$as_me: failed program was:" >&5
14620 sed 's/^/| /' conftest.$ac_ext >&5
14622 ac_cv_c_volatile=no
14625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14627 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14628 $as_echo "$ac_cv_c_volatile" >&6; }
14629 if test $ac_cv_c_volatile = no; then
14631 cat >>confdefs.h <<\_ACEOF
14632 #define volatile /**/
14637 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
14638 $as_echo_n "checking for __func__... " >&6; }
14639 if test "${pgac_cv_funcname_func_support+set}" = set; then
14640 $as_echo_n "(cached) " >&6
14642 cat >conftest.$ac_ext <<_ACEOF
14645 cat confdefs.h >>conftest.$ac_ext
14646 cat >>conftest.$ac_ext <<_ACEOF
14647 /* end confdefs.h. */
14652 printf("%s\n", __func__);
14657 rm -f conftest.$ac_objext
14658 if { (ac_try="$ac_compile"
14659 case "(($ac_try" in
14660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14661 *) ac_try_echo=$ac_try;;
14663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14664 $as_echo "$ac_try_echo") >&5
14665 (eval "$ac_compile") 2>conftest.er1
14667 grep -v '^ *+' conftest.er1 >conftest.err
14669 cat conftest.err >&5
14670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } && {
14672 test -z "$ac_c_werror_flag" ||
14673 test ! -s conftest.err
14674 } && test -s conftest.$ac_objext; then
14675 pgac_cv_funcname_func_support=yes
14677 $as_echo "$as_me: failed program was:" >&5
14678 sed 's/^/| /' conftest.$ac_ext >&5
14680 pgac_cv_funcname_func_support=no
14683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14685 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14686 $as_echo "$pgac_cv_funcname_func_support" >&6; }
14687 if test x"$pgac_cv_funcname_func_support" = xyes ; then
14689 cat >>confdefs.h <<\_ACEOF
14690 #define HAVE_FUNCNAME__FUNC 1
14694 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14695 $as_echo_n "checking for __FUNCTION__... " >&6; }
14696 if test "${pgac_cv_funcname_function_support+set}" = set; then
14697 $as_echo_n "(cached) " >&6
14699 cat >conftest.$ac_ext <<_ACEOF
14702 cat confdefs.h >>conftest.$ac_ext
14703 cat >>conftest.$ac_ext <<_ACEOF
14704 /* end confdefs.h. */
14709 printf("%s\n", __FUNCTION__);
14714 rm -f conftest.$ac_objext
14715 if { (ac_try="$ac_compile"
14716 case "(($ac_try" in
14717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718 *) ac_try_echo=$ac_try;;
14720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14721 $as_echo "$ac_try_echo") >&5
14722 (eval "$ac_compile") 2>conftest.er1
14724 grep -v '^ *+' conftest.er1 >conftest.err
14726 cat conftest.err >&5
14727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); } && {
14729 test -z "$ac_c_werror_flag" ||
14730 test ! -s conftest.err
14731 } && test -s conftest.$ac_objext; then
14732 pgac_cv_funcname_function_support=yes
14734 $as_echo "$as_me: failed program was:" >&5
14735 sed 's/^/| /' conftest.$ac_ext >&5
14737 pgac_cv_funcname_function_support=no
14740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14742 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14743 $as_echo "$pgac_cv_funcname_function_support" >&6; }
14744 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14746 cat >>confdefs.h <<\_ACEOF
14747 #define HAVE_FUNCNAME__FUNCTION 1
14752 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14753 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14754 if test "${ac_cv_struct_tm+set}" = set; then
14755 $as_echo_n "(cached) " >&6
14757 cat >conftest.$ac_ext <<_ACEOF
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h. */
14763 #include <sys/types.h>
14770 int *p = &tm.tm_sec;
14776 rm -f conftest.$ac_objext
14777 if { (ac_try="$ac_compile"
14778 case "(($ac_try" in
14779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14780 *) ac_try_echo=$ac_try;;
14782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14783 $as_echo "$ac_try_echo") >&5
14784 (eval "$ac_compile") 2>conftest.er1
14786 grep -v '^ *+' conftest.er1 >conftest.err
14788 cat conftest.err >&5
14789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); } && {
14791 test -z "$ac_c_werror_flag" ||
14792 test ! -s conftest.err
14793 } && test -s conftest.$ac_objext; then
14794 ac_cv_struct_tm=time.h
14796 $as_echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14799 ac_cv_struct_tm=sys/time.h
14802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14804 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14805 $as_echo "$ac_cv_struct_tm" >&6; }
14806 if test $ac_cv_struct_tm = sys/time.h; then
14808 cat >>confdefs.h <<\_ACEOF
14809 #define TM_IN_SYS_TIME 1
14814 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14815 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
14816 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14817 $as_echo_n "(cached) " >&6
14819 cat >conftest.$ac_ext <<_ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h. */
14825 #include <sys/types.h>
14826 #include <$ac_cv_struct_tm>
14832 static struct tm ac_aggr;
14833 if (ac_aggr.tm_zone)
14839 rm -f conftest.$ac_objext
14840 if { (ac_try="$ac_compile"
14841 case "(($ac_try" in
14842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14843 *) ac_try_echo=$ac_try;;
14845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14846 $as_echo "$ac_try_echo") >&5
14847 (eval "$ac_compile") 2>conftest.er1
14849 grep -v '^ *+' conftest.er1 >conftest.err
14851 cat conftest.err >&5
14852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } && {
14854 test -z "$ac_c_werror_flag" ||
14855 test ! -s conftest.err
14856 } && test -s conftest.$ac_objext; then
14857 ac_cv_member_struct_tm_tm_zone=yes
14859 $as_echo "$as_me: failed program was:" >&5
14860 sed 's/^/| /' conftest.$ac_ext >&5
14862 cat >conftest.$ac_ext <<_ACEOF
14865 cat confdefs.h >>conftest.$ac_ext
14866 cat >>conftest.$ac_ext <<_ACEOF
14867 /* end confdefs.h. */
14868 #include <sys/types.h>
14869 #include <$ac_cv_struct_tm>
14875 static struct tm ac_aggr;
14876 if (sizeof ac_aggr.tm_zone)
14882 rm -f conftest.$ac_objext
14883 if { (ac_try="$ac_compile"
14884 case "(($ac_try" in
14885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886 *) ac_try_echo=$ac_try;;
14888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14889 $as_echo "$ac_try_echo") >&5
14890 (eval "$ac_compile") 2>conftest.er1
14892 grep -v '^ *+' conftest.er1 >conftest.err
14894 cat conftest.err >&5
14895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } && {
14897 test -z "$ac_c_werror_flag" ||
14898 test ! -s conftest.err
14899 } && test -s conftest.$ac_objext; then
14900 ac_cv_member_struct_tm_tm_zone=yes
14902 $as_echo "$as_me: failed program was:" >&5
14903 sed 's/^/| /' conftest.$ac_ext >&5
14905 ac_cv_member_struct_tm_tm_zone=no
14908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14913 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14914 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
14915 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
14917 cat >>confdefs.h <<_ACEOF
14918 #define HAVE_STRUCT_TM_TM_ZONE 1
14924 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14926 cat >>confdefs.h <<\_ACEOF
14927 #define HAVE_TM_ZONE 1
14931 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
14932 $as_echo_n "checking for tzname... " >&6; }
14933 if test "${ac_cv_var_tzname+set}" = set; then
14934 $as_echo_n "(cached) " >&6
14936 cat >conftest.$ac_ext <<_ACEOF
14939 cat confdefs.h >>conftest.$ac_ext
14940 cat >>conftest.$ac_ext <<_ACEOF
14941 /* end confdefs.h. */
14943 #ifndef tzname /* For SGI. */
14944 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
14955 rm -f conftest.$ac_objext conftest$ac_exeext
14956 if { (ac_try="$ac_link"
14957 case "(($ac_try" in
14958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14959 *) ac_try_echo=$ac_try;;
14961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14962 $as_echo "$ac_try_echo") >&5
14963 (eval "$ac_link") 2>conftest.er1
14965 grep -v '^ *+' conftest.er1 >conftest.err
14967 cat conftest.err >&5
14968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); } && {
14970 test -z "$ac_c_werror_flag" ||
14971 test ! -s conftest.err
14972 } && test -s conftest$ac_exeext && {
14973 test "$cross_compiling" = yes ||
14974 $as_test_x conftest$ac_exeext
14976 ac_cv_var_tzname=yes
14978 $as_echo "$as_me: failed program was:" >&5
14979 sed 's/^/| /' conftest.$ac_ext >&5
14981 ac_cv_var_tzname=no
14984 rm -rf conftest.dSYM
14985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14986 conftest$ac_exeext conftest.$ac_ext
14988 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14989 $as_echo "$ac_cv_var_tzname" >&6; }
14990 if test $ac_cv_var_tzname = yes; then
14992 cat >>confdefs.h <<\_ACEOF
14993 #define HAVE_TZNAME 1
14998 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
14999 $as_echo_n "checking for union semun... " >&6; }
15000 if test "${ac_cv_type_union_semun+set}" = set; then
15001 $as_echo_n "(cached) " >&6
15003 ac_cv_type_union_semun=no
15004 cat >conftest.$ac_ext <<_ACEOF
15007 cat confdefs.h >>conftest.$ac_ext
15008 cat >>conftest.$ac_ext <<_ACEOF
15009 /* end confdefs.h. */
15010 #include <sys/types.h>
15011 #include <sys/ipc.h>
15012 #include <sys/sem.h>
15017 if (sizeof (union semun))
15023 rm -f conftest.$ac_objext
15024 if { (ac_try="$ac_compile"
15025 case "(($ac_try" in
15026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15027 *) ac_try_echo=$ac_try;;
15029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15030 $as_echo "$ac_try_echo") >&5
15031 (eval "$ac_compile") 2>conftest.er1
15033 grep -v '^ *+' conftest.er1 >conftest.err
15035 cat conftest.err >&5
15036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } && {
15038 test -z "$ac_c_werror_flag" ||
15039 test ! -s conftest.err
15040 } && test -s conftest.$ac_objext; then
15041 cat >conftest.$ac_ext <<_ACEOF
15044 cat confdefs.h >>conftest.$ac_ext
15045 cat >>conftest.$ac_ext <<_ACEOF
15046 /* end confdefs.h. */
15047 #include <sys/types.h>
15048 #include <sys/ipc.h>
15049 #include <sys/sem.h>
15054 if (sizeof ((union semun)))
15060 rm -f conftest.$ac_objext
15061 if { (ac_try="$ac_compile"
15062 case "(($ac_try" in
15063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064 *) ac_try_echo=$ac_try;;
15066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15067 $as_echo "$ac_try_echo") >&5
15068 (eval "$ac_compile") 2>conftest.er1
15070 grep -v '^ *+' conftest.er1 >conftest.err
15072 cat conftest.err >&5
15073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); } && {
15075 test -z "$ac_c_werror_flag" ||
15076 test ! -s conftest.err
15077 } && test -s conftest.$ac_objext; then
15080 $as_echo "$as_me: failed program was:" >&5
15081 sed 's/^/| /' conftest.$ac_ext >&5
15083 ac_cv_type_union_semun=yes
15086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15088 $as_echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15096 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15097 $as_echo "$ac_cv_type_union_semun" >&6; }
15098 if test "x$ac_cv_type_union_semun" = x""yes; then
15100 cat >>confdefs.h <<_ACEOF
15101 #define HAVE_UNION_SEMUN 1
15107 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15108 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15109 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15110 $as_echo_n "(cached) " >&6
15112 ac_cv_type_struct_sockaddr_un=no
15113 cat >conftest.$ac_ext <<_ACEOF
15116 cat confdefs.h >>conftest.$ac_ext
15117 cat >>conftest.$ac_ext <<_ACEOF
15118 /* end confdefs.h. */
15119 #include <sys/types.h>
15120 #ifdef HAVE_SYS_UN_H
15121 #include <sys/un.h>
15128 if (sizeof (struct sockaddr_un))
15134 rm -f conftest.$ac_objext
15135 if { (ac_try="$ac_compile"
15136 case "(($ac_try" in
15137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138 *) ac_try_echo=$ac_try;;
15140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15141 $as_echo "$ac_try_echo") >&5
15142 (eval "$ac_compile") 2>conftest.er1
15144 grep -v '^ *+' conftest.er1 >conftest.err
15146 cat conftest.err >&5
15147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); } && {
15149 test -z "$ac_c_werror_flag" ||
15150 test ! -s conftest.err
15151 } && test -s conftest.$ac_objext; then
15152 cat >conftest.$ac_ext <<_ACEOF
15155 cat confdefs.h >>conftest.$ac_ext
15156 cat >>conftest.$ac_ext <<_ACEOF
15157 /* end confdefs.h. */
15158 #include <sys/types.h>
15159 #ifdef HAVE_SYS_UN_H
15160 #include <sys/un.h>
15167 if (sizeof ((struct sockaddr_un)))
15173 rm -f conftest.$ac_objext
15174 if { (ac_try="$ac_compile"
15175 case "(($ac_try" in
15176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15177 *) ac_try_echo=$ac_try;;
15179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15180 $as_echo "$ac_try_echo") >&5
15181 (eval "$ac_compile") 2>conftest.er1
15183 grep -v '^ *+' conftest.er1 >conftest.err
15185 cat conftest.err >&5
15186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); } && {
15188 test -z "$ac_c_werror_flag" ||
15189 test ! -s conftest.err
15190 } && test -s conftest.$ac_objext; then
15193 $as_echo "$as_me: failed program was:" >&5
15194 sed 's/^/| /' conftest.$ac_ext >&5
15196 ac_cv_type_struct_sockaddr_un=yes
15199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15201 $as_echo "$as_me: failed program was:" >&5
15202 sed 's/^/| /' conftest.$ac_ext >&5
15207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15209 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15210 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15211 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
15213 cat >>confdefs.h <<_ACEOF
15214 #define HAVE_STRUCT_SOCKADDR_UN 1
15218 cat >>confdefs.h <<\_ACEOF
15219 #define HAVE_UNIX_SOCKETS 1
15224 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
15225 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15226 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
15227 $as_echo_n "(cached) " >&6
15229 ac_cv_type_struct_sockaddr_storage=no
15230 cat >conftest.$ac_ext <<_ACEOF
15233 cat confdefs.h >>conftest.$ac_ext
15234 cat >>conftest.$ac_ext <<_ACEOF
15235 /* end confdefs.h. */
15236 #include <sys/types.h>
15237 #ifdef HAVE_SYS_SOCKET_H
15238 #include <sys/socket.h>
15245 if (sizeof (struct sockaddr_storage))
15251 rm -f conftest.$ac_objext
15252 if { (ac_try="$ac_compile"
15253 case "(($ac_try" in
15254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15255 *) ac_try_echo=$ac_try;;
15257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15258 $as_echo "$ac_try_echo") >&5
15259 (eval "$ac_compile") 2>conftest.er1
15261 grep -v '^ *+' conftest.er1 >conftest.err
15263 cat conftest.err >&5
15264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } && {
15266 test -z "$ac_c_werror_flag" ||
15267 test ! -s conftest.err
15268 } && test -s conftest.$ac_objext; then
15269 cat >conftest.$ac_ext <<_ACEOF
15272 cat confdefs.h >>conftest.$ac_ext
15273 cat >>conftest.$ac_ext <<_ACEOF
15274 /* end confdefs.h. */
15275 #include <sys/types.h>
15276 #ifdef HAVE_SYS_SOCKET_H
15277 #include <sys/socket.h>
15284 if (sizeof ((struct sockaddr_storage)))
15290 rm -f conftest.$ac_objext
15291 if { (ac_try="$ac_compile"
15292 case "(($ac_try" in
15293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15294 *) ac_try_echo=$ac_try;;
15296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15297 $as_echo "$ac_try_echo") >&5
15298 (eval "$ac_compile") 2>conftest.er1
15300 grep -v '^ *+' conftest.er1 >conftest.err
15302 cat conftest.err >&5
15303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); } && {
15305 test -z "$ac_c_werror_flag" ||
15306 test ! -s conftest.err
15307 } && test -s conftest.$ac_objext; then
15310 $as_echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15313 ac_cv_type_struct_sockaddr_storage=yes
15316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15318 $as_echo "$as_me: failed program was:" >&5
15319 sed 's/^/| /' conftest.$ac_ext >&5
15324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15326 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
15327 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
15328 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
15330 cat >>confdefs.h <<_ACEOF
15331 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15337 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
15338 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
15339 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
15340 $as_echo_n "(cached) " >&6
15342 cat >conftest.$ac_ext <<_ACEOF
15345 cat confdefs.h >>conftest.$ac_ext
15346 cat >>conftest.$ac_ext <<_ACEOF
15347 /* end confdefs.h. */
15348 #include <sys/types.h>
15349 #ifdef HAVE_SYS_SOCKET_H
15350 #include <sys/socket.h>
15357 static struct sockaddr_storage ac_aggr;
15358 if (ac_aggr.ss_family)
15364 rm -f conftest.$ac_objext
15365 if { (ac_try="$ac_compile"
15366 case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15371 $as_echo "$ac_try_echo") >&5
15372 (eval "$ac_compile") 2>conftest.er1
15374 grep -v '^ *+' conftest.er1 >conftest.err
15376 cat conftest.err >&5
15377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); } && {
15379 test -z "$ac_c_werror_flag" ||
15380 test ! -s conftest.err
15381 } && test -s conftest.$ac_objext; then
15382 ac_cv_member_struct_sockaddr_storage_ss_family=yes
15384 $as_echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15387 cat >conftest.$ac_ext <<_ACEOF
15390 cat confdefs.h >>conftest.$ac_ext
15391 cat >>conftest.$ac_ext <<_ACEOF
15392 /* end confdefs.h. */
15393 #include <sys/types.h>
15394 #ifdef HAVE_SYS_SOCKET_H
15395 #include <sys/socket.h>
15402 static struct sockaddr_storage ac_aggr;
15403 if (sizeof ac_aggr.ss_family)
15409 rm -f conftest.$ac_objext
15410 if { (ac_try="$ac_compile"
15411 case "(($ac_try" in
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15416 $as_echo "$ac_try_echo") >&5
15417 (eval "$ac_compile") 2>conftest.er1
15419 grep -v '^ *+' conftest.er1 >conftest.err
15421 cat conftest.err >&5
15422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); } && {
15424 test -z "$ac_c_werror_flag" ||
15425 test ! -s conftest.err
15426 } && test -s conftest.$ac_objext; then
15427 ac_cv_member_struct_sockaddr_storage_ss_family=yes
15429 $as_echo "$as_me: failed program was:" >&5
15430 sed 's/^/| /' conftest.$ac_ext >&5
15432 ac_cv_member_struct_sockaddr_storage_ss_family=no
15435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15440 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
15441 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
15442 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
15444 cat >>confdefs.h <<_ACEOF
15445 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15450 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
15451 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
15452 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
15453 $as_echo_n "(cached) " >&6
15455 cat >conftest.$ac_ext <<_ACEOF
15458 cat confdefs.h >>conftest.$ac_ext
15459 cat >>conftest.$ac_ext <<_ACEOF
15460 /* end confdefs.h. */
15461 #include <sys/types.h>
15462 #ifdef HAVE_SYS_SOCKET_H
15463 #include <sys/socket.h>
15470 static struct sockaddr_storage ac_aggr;
15471 if (ac_aggr.__ss_family)
15477 rm -f conftest.$ac_objext
15478 if { (ac_try="$ac_compile"
15479 case "(($ac_try" in
15480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15481 *) ac_try_echo=$ac_try;;
15483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15484 $as_echo "$ac_try_echo") >&5
15485 (eval "$ac_compile") 2>conftest.er1
15487 grep -v '^ *+' conftest.er1 >conftest.err
15489 cat conftest.err >&5
15490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); } && {
15492 test -z "$ac_c_werror_flag" ||
15493 test ! -s conftest.err
15494 } && test -s conftest.$ac_objext; then
15495 ac_cv_member_struct_sockaddr_storage___ss_family=yes
15497 $as_echo "$as_me: failed program was:" >&5
15498 sed 's/^/| /' conftest.$ac_ext >&5
15500 cat >conftest.$ac_ext <<_ACEOF
15503 cat confdefs.h >>conftest.$ac_ext
15504 cat >>conftest.$ac_ext <<_ACEOF
15505 /* end confdefs.h. */
15506 #include <sys/types.h>
15507 #ifdef HAVE_SYS_SOCKET_H
15508 #include <sys/socket.h>
15515 static struct sockaddr_storage ac_aggr;
15516 if (sizeof ac_aggr.__ss_family)
15522 rm -f conftest.$ac_objext
15523 if { (ac_try="$ac_compile"
15524 case "(($ac_try" in
15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526 *) ac_try_echo=$ac_try;;
15528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15529 $as_echo "$ac_try_echo") >&5
15530 (eval "$ac_compile") 2>conftest.er1
15532 grep -v '^ *+' conftest.er1 >conftest.err
15534 cat conftest.err >&5
15535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); } && {
15537 test -z "$ac_c_werror_flag" ||
15538 test ! -s conftest.err
15539 } && test -s conftest.$ac_objext; then
15540 ac_cv_member_struct_sockaddr_storage___ss_family=yes
15542 $as_echo "$as_me: failed program was:" >&5
15543 sed 's/^/| /' conftest.$ac_ext >&5
15545 ac_cv_member_struct_sockaddr_storage___ss_family=no
15548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15553 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
15554 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
15555 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
15557 cat >>confdefs.h <<_ACEOF
15558 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15563 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
15564 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
15565 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
15566 $as_echo_n "(cached) " >&6
15568 cat >conftest.$ac_ext <<_ACEOF
15571 cat confdefs.h >>conftest.$ac_ext
15572 cat >>conftest.$ac_ext <<_ACEOF
15573 /* end confdefs.h. */
15574 #include <sys/types.h>
15575 #ifdef HAVE_SYS_SOCKET_H
15576 #include <sys/socket.h>
15583 static struct sockaddr_storage ac_aggr;
15584 if (ac_aggr.ss_len)
15590 rm -f conftest.$ac_objext
15591 if { (ac_try="$ac_compile"
15592 case "(($ac_try" in
15593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15594 *) ac_try_echo=$ac_try;;
15596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15597 $as_echo "$ac_try_echo") >&5
15598 (eval "$ac_compile") 2>conftest.er1
15600 grep -v '^ *+' conftest.er1 >conftest.err
15602 cat conftest.err >&5
15603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); } && {
15605 test -z "$ac_c_werror_flag" ||
15606 test ! -s conftest.err
15607 } && test -s conftest.$ac_objext; then
15608 ac_cv_member_struct_sockaddr_storage_ss_len=yes
15610 $as_echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15613 cat >conftest.$ac_ext <<_ACEOF
15616 cat confdefs.h >>conftest.$ac_ext
15617 cat >>conftest.$ac_ext <<_ACEOF
15618 /* end confdefs.h. */
15619 #include <sys/types.h>
15620 #ifdef HAVE_SYS_SOCKET_H
15621 #include <sys/socket.h>
15628 static struct sockaddr_storage ac_aggr;
15629 if (sizeof ac_aggr.ss_len)
15635 rm -f conftest.$ac_objext
15636 if { (ac_try="$ac_compile"
15637 case "(($ac_try" in
15638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15639 *) ac_try_echo=$ac_try;;
15641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15642 $as_echo "$ac_try_echo") >&5
15643 (eval "$ac_compile") 2>conftest.er1
15645 grep -v '^ *+' conftest.er1 >conftest.err
15647 cat conftest.err >&5
15648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); } && {
15650 test -z "$ac_c_werror_flag" ||
15651 test ! -s conftest.err
15652 } && test -s conftest.$ac_objext; then
15653 ac_cv_member_struct_sockaddr_storage_ss_len=yes
15655 $as_echo "$as_me: failed program was:" >&5
15656 sed 's/^/| /' conftest.$ac_ext >&5
15658 ac_cv_member_struct_sockaddr_storage_ss_len=no
15661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15666 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
15667 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
15668 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
15670 cat >>confdefs.h <<_ACEOF
15671 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
15676 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
15677 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
15678 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
15679 $as_echo_n "(cached) " >&6
15681 cat >conftest.$ac_ext <<_ACEOF
15684 cat confdefs.h >>conftest.$ac_ext
15685 cat >>conftest.$ac_ext <<_ACEOF
15686 /* end confdefs.h. */
15687 #include <sys/types.h>
15688 #ifdef HAVE_SYS_SOCKET_H
15689 #include <sys/socket.h>
15696 static struct sockaddr_storage ac_aggr;
15697 if (ac_aggr.__ss_len)
15703 rm -f conftest.$ac_objext
15704 if { (ac_try="$ac_compile"
15705 case "(($ac_try" in
15706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15707 *) ac_try_echo=$ac_try;;
15709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15710 $as_echo "$ac_try_echo") >&5
15711 (eval "$ac_compile") 2>conftest.er1
15713 grep -v '^ *+' conftest.er1 >conftest.err
15715 cat conftest.err >&5
15716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } && {
15718 test -z "$ac_c_werror_flag" ||
15719 test ! -s conftest.err
15720 } && test -s conftest.$ac_objext; then
15721 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15723 $as_echo "$as_me: failed program was:" >&5
15724 sed 's/^/| /' conftest.$ac_ext >&5
15726 cat >conftest.$ac_ext <<_ACEOF
15729 cat confdefs.h >>conftest.$ac_ext
15730 cat >>conftest.$ac_ext <<_ACEOF
15731 /* end confdefs.h. */
15732 #include <sys/types.h>
15733 #ifdef HAVE_SYS_SOCKET_H
15734 #include <sys/socket.h>
15741 static struct sockaddr_storage ac_aggr;
15742 if (sizeof ac_aggr.__ss_len)
15748 rm -f conftest.$ac_objext
15749 if { (ac_try="$ac_compile"
15750 case "(($ac_try" in
15751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752 *) ac_try_echo=$ac_try;;
15754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15755 $as_echo "$ac_try_echo") >&5
15756 (eval "$ac_compile") 2>conftest.er1
15758 grep -v '^ *+' conftest.er1 >conftest.err
15760 cat conftest.err >&5
15761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } && {
15763 test -z "$ac_c_werror_flag" ||
15764 test ! -s conftest.err
15765 } && test -s conftest.$ac_objext; then
15766 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15768 $as_echo "$as_me: failed program was:" >&5
15769 sed 's/^/| /' conftest.$ac_ext >&5
15771 ac_cv_member_struct_sockaddr_storage___ss_len=no
15774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15779 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
15780 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
15781 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
15783 cat >>confdefs.h <<_ACEOF
15784 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
15789 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15790 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
15791 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15792 $as_echo_n "(cached) " >&6
15794 cat >conftest.$ac_ext <<_ACEOF
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h. */
15800 #include <sys/types.h>
15801 #ifdef HAVE_SYS_SOCKET_H
15802 #include <sys/socket.h>
15809 static struct sockaddr ac_aggr;
15810 if (ac_aggr.sa_len)
15816 rm -f conftest.$ac_objext
15817 if { (ac_try="$ac_compile"
15818 case "(($ac_try" in
15819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15820 *) ac_try_echo=$ac_try;;
15822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15823 $as_echo "$ac_try_echo") >&5
15824 (eval "$ac_compile") 2>conftest.er1
15826 grep -v '^ *+' conftest.er1 >conftest.err
15828 cat conftest.err >&5
15829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); } && {
15831 test -z "$ac_c_werror_flag" ||
15832 test ! -s conftest.err
15833 } && test -s conftest.$ac_objext; then
15834 ac_cv_member_struct_sockaddr_sa_len=yes
15836 $as_echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.$ac_ext >&5
15839 cat >conftest.$ac_ext <<_ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h. */
15845 #include <sys/types.h>
15846 #ifdef HAVE_SYS_SOCKET_H
15847 #include <sys/socket.h>
15854 static struct sockaddr ac_aggr;
15855 if (sizeof ac_aggr.sa_len)
15861 rm -f conftest.$ac_objext
15862 if { (ac_try="$ac_compile"
15863 case "(($ac_try" in
15864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865 *) ac_try_echo=$ac_try;;
15867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15868 $as_echo "$ac_try_echo") >&5
15869 (eval "$ac_compile") 2>conftest.er1
15871 grep -v '^ *+' conftest.er1 >conftest.err
15873 cat conftest.err >&5
15874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); } && {
15876 test -z "$ac_c_werror_flag" ||
15877 test ! -s conftest.err
15878 } && test -s conftest.$ac_objext; then
15879 ac_cv_member_struct_sockaddr_sa_len=yes
15881 $as_echo "$as_me: failed program was:" >&5
15882 sed 's/^/| /' conftest.$ac_ext >&5
15884 ac_cv_member_struct_sockaddr_sa_len=no
15887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15892 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15893 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15894 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
15896 cat >>confdefs.h <<_ACEOF
15897 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15903 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
15904 $as_echo_n "checking for struct addrinfo... " >&6; }
15905 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
15906 $as_echo_n "(cached) " >&6
15908 ac_cv_type_struct_addrinfo=no
15909 cat >conftest.$ac_ext <<_ACEOF
15912 cat confdefs.h >>conftest.$ac_ext
15913 cat >>conftest.$ac_ext <<_ACEOF
15914 /* end confdefs.h. */
15915 #include <sys/types.h>
15916 #include <sys/socket.h>
15923 if (sizeof (struct addrinfo))
15929 rm -f conftest.$ac_objext
15930 if { (ac_try="$ac_compile"
15931 case "(($ac_try" in
15932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933 *) ac_try_echo=$ac_try;;
15935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15936 $as_echo "$ac_try_echo") >&5
15937 (eval "$ac_compile") 2>conftest.er1
15939 grep -v '^ *+' conftest.er1 >conftest.err
15941 cat conftest.err >&5
15942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); } && {
15944 test -z "$ac_c_werror_flag" ||
15945 test ! -s conftest.err
15946 } && test -s conftest.$ac_objext; then
15947 cat >conftest.$ac_ext <<_ACEOF
15950 cat confdefs.h >>conftest.$ac_ext
15951 cat >>conftest.$ac_ext <<_ACEOF
15952 /* end confdefs.h. */
15953 #include <sys/types.h>
15954 #include <sys/socket.h>
15961 if (sizeof ((struct addrinfo)))
15967 rm -f conftest.$ac_objext
15968 if { (ac_try="$ac_compile"
15969 case "(($ac_try" in
15970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15971 *) ac_try_echo=$ac_try;;
15973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15974 $as_echo "$ac_try_echo") >&5
15975 (eval "$ac_compile") 2>conftest.er1
15977 grep -v '^ *+' conftest.er1 >conftest.err
15979 cat conftest.err >&5
15980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); } && {
15982 test -z "$ac_c_werror_flag" ||
15983 test ! -s conftest.err
15984 } && test -s conftest.$ac_objext; then
15987 $as_echo "$as_me: failed program was:" >&5
15988 sed 's/^/| /' conftest.$ac_ext >&5
15990 ac_cv_type_struct_addrinfo=yes
15993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15995 $as_echo "$as_me: failed program was:" >&5
15996 sed 's/^/| /' conftest.$ac_ext >&5
16001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16003 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16004 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16005 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
16007 cat >>confdefs.h <<_ACEOF
16008 #define HAVE_STRUCT_ADDRINFO 1
16015 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
16016 $as_echo_n "checking for struct cmsgcred... " >&6; }
16017 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
16018 $as_echo_n "(cached) " >&6
16020 ac_cv_type_struct_cmsgcred=no
16021 cat >conftest.$ac_ext <<_ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h. */
16027 #include <sys/param.h>
16028 #include <sys/types.h>
16029 #include <sys/socket.h>
16030 #include <sys/ucred.h>
16035 if (sizeof (struct cmsgcred))
16041 rm -f conftest.$ac_objext
16042 if { (ac_try="$ac_compile"
16043 case "(($ac_try" in
16044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16045 *) ac_try_echo=$ac_try;;
16047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16048 $as_echo "$ac_try_echo") >&5
16049 (eval "$ac_compile") 2>conftest.er1
16051 grep -v '^ *+' conftest.er1 >conftest.err
16053 cat conftest.err >&5
16054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); } && {
16056 test -z "$ac_c_werror_flag" ||
16057 test ! -s conftest.err
16058 } && test -s conftest.$ac_objext; then
16059 cat >conftest.$ac_ext <<_ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h. */
16065 #include <sys/param.h>
16066 #include <sys/types.h>
16067 #include <sys/socket.h>
16068 #include <sys/ucred.h>
16073 if (sizeof ((struct cmsgcred)))
16079 rm -f conftest.$ac_objext
16080 if { (ac_try="$ac_compile"
16081 case "(($ac_try" in
16082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083 *) ac_try_echo=$ac_try;;
16085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16086 $as_echo "$ac_try_echo") >&5
16087 (eval "$ac_compile") 2>conftest.er1
16089 grep -v '^ *+' conftest.er1 >conftest.err
16091 cat conftest.err >&5
16092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); } && {
16094 test -z "$ac_c_werror_flag" ||
16095 test ! -s conftest.err
16096 } && test -s conftest.$ac_objext; then
16099 $as_echo "$as_me: failed program was:" >&5
16100 sed 's/^/| /' conftest.$ac_ext >&5
16102 ac_cv_type_struct_cmsgcred=yes
16105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16107 $as_echo "$as_me: failed program was:" >&5
16108 sed 's/^/| /' conftest.$ac_ext >&5
16113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16115 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
16116 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
16117 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
16119 cat >>confdefs.h <<_ACEOF
16120 #define HAVE_STRUCT_CMSGCRED 1
16125 { $as_echo "$as_me:$LINENO: checking for struct fcred" >&5
16126 $as_echo_n "checking for struct fcred... " >&6; }
16127 if test "${ac_cv_type_struct_fcred+set}" = set; then
16128 $as_echo_n "(cached) " >&6
16130 ac_cv_type_struct_fcred=no
16131 cat >conftest.$ac_ext <<_ACEOF
16134 cat confdefs.h >>conftest.$ac_ext
16135 cat >>conftest.$ac_ext <<_ACEOF
16136 /* end confdefs.h. */
16137 #include <sys/param.h>
16138 #include <sys/types.h>
16139 #include <sys/socket.h>
16140 #include <sys/ucred.h>
16145 if (sizeof (struct fcred))
16151 rm -f conftest.$ac_objext
16152 if { (ac_try="$ac_compile"
16153 case "(($ac_try" in
16154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16155 *) ac_try_echo=$ac_try;;
16157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16158 $as_echo "$ac_try_echo") >&5
16159 (eval "$ac_compile") 2>conftest.er1
16161 grep -v '^ *+' conftest.er1 >conftest.err
16163 cat conftest.err >&5
16164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); } && {
16166 test -z "$ac_c_werror_flag" ||
16167 test ! -s conftest.err
16168 } && test -s conftest.$ac_objext; then
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/param.h>
16176 #include <sys/types.h>
16177 #include <sys/socket.h>
16178 #include <sys/ucred.h>
16183 if (sizeof ((struct fcred)))
16189 rm -f conftest.$ac_objext
16190 if { (ac_try="$ac_compile"
16191 case "(($ac_try" in
16192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16193 *) ac_try_echo=$ac_try;;
16195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16196 $as_echo "$ac_try_echo") >&5
16197 (eval "$ac_compile") 2>conftest.er1
16199 grep -v '^ *+' conftest.er1 >conftest.err
16201 cat conftest.err >&5
16202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); } && {
16204 test -z "$ac_c_werror_flag" ||
16205 test ! -s conftest.err
16206 } && test -s conftest.$ac_objext; then
16209 $as_echo "$as_me: failed program was:" >&5
16210 sed 's/^/| /' conftest.$ac_ext >&5
16212 ac_cv_type_struct_fcred=yes
16215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16217 $as_echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16225 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
16226 $as_echo "$ac_cv_type_struct_fcred" >&6; }
16227 if test "x$ac_cv_type_struct_fcred" = x""yes; then
16229 cat >>confdefs.h <<_ACEOF
16230 #define HAVE_STRUCT_FCRED 1
16235 { $as_echo "$as_me:$LINENO: checking for struct sockcred" >&5
16236 $as_echo_n "checking for struct sockcred... " >&6; }
16237 if test "${ac_cv_type_struct_sockcred+set}" = set; then
16238 $as_echo_n "(cached) " >&6
16240 ac_cv_type_struct_sockcred=no
16241 cat >conftest.$ac_ext <<_ACEOF
16244 cat confdefs.h >>conftest.$ac_ext
16245 cat >>conftest.$ac_ext <<_ACEOF
16246 /* end confdefs.h. */
16247 #include <sys/param.h>
16248 #include <sys/types.h>
16249 #include <sys/socket.h>
16250 #include <sys/ucred.h>
16255 if (sizeof (struct sockcred))
16261 rm -f conftest.$ac_objext
16262 if { (ac_try="$ac_compile"
16263 case "(($ac_try" in
16264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16265 *) ac_try_echo=$ac_try;;
16267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16268 $as_echo "$ac_try_echo") >&5
16269 (eval "$ac_compile") 2>conftest.er1
16271 grep -v '^ *+' conftest.er1 >conftest.err
16273 cat conftest.err >&5
16274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); } && {
16276 test -z "$ac_c_werror_flag" ||
16277 test ! -s conftest.err
16278 } && test -s conftest.$ac_objext; then
16279 cat >conftest.$ac_ext <<_ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h. */
16285 #include <sys/param.h>
16286 #include <sys/types.h>
16287 #include <sys/socket.h>
16288 #include <sys/ucred.h>
16293 if (sizeof ((struct sockcred)))
16299 rm -f conftest.$ac_objext
16300 if { (ac_try="$ac_compile"
16301 case "(($ac_try" in
16302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16303 *) ac_try_echo=$ac_try;;
16305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16306 $as_echo "$ac_try_echo") >&5
16307 (eval "$ac_compile") 2>conftest.er1
16309 grep -v '^ *+' conftest.er1 >conftest.err
16311 cat conftest.err >&5
16312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); } && {
16314 test -z "$ac_c_werror_flag" ||
16315 test ! -s conftest.err
16316 } && test -s conftest.$ac_objext; then
16319 $as_echo "$as_me: failed program was:" >&5
16320 sed 's/^/| /' conftest.$ac_ext >&5
16322 ac_cv_type_struct_sockcred=yes
16325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16327 $as_echo "$as_me: failed program was:" >&5
16328 sed 's/^/| /' conftest.$ac_ext >&5
16333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16335 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
16336 $as_echo "$ac_cv_type_struct_sockcred" >&6; }
16337 if test "x$ac_cv_type_struct_sockcred" = x""yes; then
16339 cat >>confdefs.h <<_ACEOF
16340 #define HAVE_STRUCT_SOCKCRED 1
16347 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
16348 $as_echo_n "checking for struct option... " >&6; }
16349 if test "${ac_cv_type_struct_option+set}" = set; then
16350 $as_echo_n "(cached) " >&6
16352 ac_cv_type_struct_option=no
16353 cat >conftest.$ac_ext <<_ACEOF
16356 cat confdefs.h >>conftest.$ac_ext
16357 cat >>conftest.$ac_ext <<_ACEOF
16358 /* end confdefs.h. */
16359 #ifdef HAVE_GETOPT_H
16360 #include <getopt.h>
16366 if (sizeof (struct option))
16372 rm -f conftest.$ac_objext
16373 if { (ac_try="$ac_compile"
16374 case "(($ac_try" in
16375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16376 *) ac_try_echo=$ac_try;;
16378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16379 $as_echo "$ac_try_echo") >&5
16380 (eval "$ac_compile") 2>conftest.er1
16382 grep -v '^ *+' conftest.er1 >conftest.err
16384 cat conftest.err >&5
16385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); } && {
16387 test -z "$ac_c_werror_flag" ||
16388 test ! -s conftest.err
16389 } && test -s conftest.$ac_objext; then
16390 cat >conftest.$ac_ext <<_ACEOF
16393 cat confdefs.h >>conftest.$ac_ext
16394 cat >>conftest.$ac_ext <<_ACEOF
16395 /* end confdefs.h. */
16396 #ifdef HAVE_GETOPT_H
16397 #include <getopt.h>
16403 if (sizeof ((struct option)))
16409 rm -f conftest.$ac_objext
16410 if { (ac_try="$ac_compile"
16411 case "(($ac_try" in
16412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16413 *) ac_try_echo=$ac_try;;
16415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16416 $as_echo "$ac_try_echo") >&5
16417 (eval "$ac_compile") 2>conftest.er1
16419 grep -v '^ *+' conftest.er1 >conftest.err
16421 cat conftest.err >&5
16422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); } && {
16424 test -z "$ac_c_werror_flag" ||
16425 test ! -s conftest.err
16426 } && test -s conftest.$ac_objext; then
16429 $as_echo "$as_me: failed program was:" >&5
16430 sed 's/^/| /' conftest.$ac_ext >&5
16432 ac_cv_type_struct_option=yes
16435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16437 $as_echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16445 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
16446 $as_echo "$ac_cv_type_struct_option" >&6; }
16447 if test "x$ac_cv_type_struct_option" = x""yes; then
16449 cat >>confdefs.h <<_ACEOF
16450 #define HAVE_STRUCT_OPTION 1
16457 if test "$with_zlib" = yes; then
16458 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
16459 # did not). While we could work around the lack of z_streamp, it
16460 # seems unwise to encourage people to use such old zlib versions...
16461 { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
16462 $as_echo_n "checking for z_streamp... " >&6; }
16463 if test "${ac_cv_type_z_streamp+set}" = set; then
16464 $as_echo_n "(cached) " >&6
16466 ac_cv_type_z_streamp=no
16467 cat >conftest.$ac_ext <<_ACEOF
16470 cat confdefs.h >>conftest.$ac_ext
16471 cat >>conftest.$ac_ext <<_ACEOF
16472 /* end confdefs.h. */
16478 if (sizeof (z_streamp))
16484 rm -f conftest.$ac_objext
16485 if { (ac_try="$ac_compile"
16486 case "(($ac_try" in
16487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488 *) ac_try_echo=$ac_try;;
16490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16491 $as_echo "$ac_try_echo") >&5
16492 (eval "$ac_compile") 2>conftest.er1
16494 grep -v '^ *+' conftest.er1 >conftest.err
16496 cat conftest.err >&5
16497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); } && {
16499 test -z "$ac_c_werror_flag" ||
16500 test ! -s conftest.err
16501 } && test -s conftest.$ac_objext; then
16502 cat >conftest.$ac_ext <<_ACEOF
16505 cat confdefs.h >>conftest.$ac_ext
16506 cat >>conftest.$ac_ext <<_ACEOF
16507 /* end confdefs.h. */
16513 if (sizeof ((z_streamp)))
16519 rm -f conftest.$ac_objext
16520 if { (ac_try="$ac_compile"
16521 case "(($ac_try" in
16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523 *) ac_try_echo=$ac_try;;
16525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16526 $as_echo "$ac_try_echo") >&5
16527 (eval "$ac_compile") 2>conftest.er1
16529 grep -v '^ *+' conftest.er1 >conftest.err
16531 cat conftest.err >&5
16532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } && {
16534 test -z "$ac_c_werror_flag" ||
16535 test ! -s conftest.err
16536 } && test -s conftest.$ac_objext; then
16539 $as_echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.$ac_ext >&5
16542 ac_cv_type_z_streamp=yes
16545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16547 $as_echo "$as_me: failed program was:" >&5
16548 sed 's/^/| /' conftest.$ac_ext >&5
16553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16555 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
16556 $as_echo "$ac_cv_type_z_streamp" >&6; }
16557 if test "x$ac_cv_type_z_streamp" = x""yes; then
16560 { { $as_echo "$as_me:$LINENO: error: zlib version is too old
16561 Use --without-zlib to disable zlib support." >&5
16562 $as_echo "$as_me: error: zlib version is too old
16563 Use --without-zlib to disable zlib support." >&2;}
16564 { (exit 1); exit 1; }; }
16569 if test "$with_krb5" = yes; then
16570 # Check for differences between MIT and Heimdal (KTH) releases
16571 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
16572 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
16573 if test "${ac_cv_member_krb5_ticket_enc_part2+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. */
16587 static krb5_ticket ac_aggr;
16588 if (ac_aggr.enc_part2)
16594 rm -f conftest.$ac_objext
16595 if { (ac_try="$ac_compile"
16596 case "(($ac_try" in
16597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598 *) ac_try_echo=$ac_try;;
16600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16601 $as_echo "$ac_try_echo") >&5
16602 (eval "$ac_compile") 2>conftest.er1
16604 grep -v '^ *+' conftest.er1 >conftest.err
16606 cat conftest.err >&5
16607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); } && {
16609 test -z "$ac_c_werror_flag" ||
16610 test ! -s conftest.err
16611 } && test -s conftest.$ac_objext; then
16612 ac_cv_member_krb5_ticket_enc_part2=yes
16614 $as_echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.$ac_ext >&5
16617 cat >conftest.$ac_ext <<_ACEOF
16620 cat confdefs.h >>conftest.$ac_ext
16621 cat >>conftest.$ac_ext <<_ACEOF
16622 /* end confdefs.h. */
16628 static krb5_ticket ac_aggr;
16629 if (sizeof ac_aggr.enc_part2)
16635 rm -f conftest.$ac_objext
16636 if { (ac_try="$ac_compile"
16637 case "(($ac_try" in
16638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639 *) ac_try_echo=$ac_try;;
16641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16642 $as_echo "$ac_try_echo") >&5
16643 (eval "$ac_compile") 2>conftest.er1
16645 grep -v '^ *+' conftest.er1 >conftest.err
16647 cat conftest.err >&5
16648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); } && {
16650 test -z "$ac_c_werror_flag" ||
16651 test ! -s conftest.err
16652 } && test -s conftest.$ac_objext; then
16653 ac_cv_member_krb5_ticket_enc_part2=yes
16655 $as_echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16658 ac_cv_member_krb5_ticket_enc_part2=no
16661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16666 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
16667 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
16668 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
16670 cat >>confdefs.h <<_ACEOF
16671 #define HAVE_KRB5_TICKET_ENC_PART2 1
16676 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
16677 $as_echo_n "checking for krb5_ticket.client... " >&6; }
16678 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
16679 $as_echo_n "(cached) " >&6
16681 cat >conftest.$ac_ext <<_ACEOF
16684 cat confdefs.h >>conftest.$ac_ext
16685 cat >>conftest.$ac_ext <<_ACEOF
16686 /* end confdefs.h. */
16692 static krb5_ticket ac_aggr;
16693 if (ac_aggr.client)
16699 rm -f conftest.$ac_objext
16700 if { (ac_try="$ac_compile"
16701 case "(($ac_try" in
16702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16703 *) ac_try_echo=$ac_try;;
16705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16706 $as_echo "$ac_try_echo") >&5
16707 (eval "$ac_compile") 2>conftest.er1
16709 grep -v '^ *+' conftest.er1 >conftest.err
16711 cat conftest.err >&5
16712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); } && {
16714 test -z "$ac_c_werror_flag" ||
16715 test ! -s conftest.err
16716 } && test -s conftest.$ac_objext; then
16717 ac_cv_member_krb5_ticket_client=yes
16719 $as_echo "$as_me: failed program was:" >&5
16720 sed 's/^/| /' conftest.$ac_ext >&5
16722 cat >conftest.$ac_ext <<_ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16733 static krb5_ticket ac_aggr;
16734 if (sizeof ac_aggr.client)
16740 rm -f conftest.$ac_objext
16741 if { (ac_try="$ac_compile"
16742 case "(($ac_try" in
16743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16744 *) ac_try_echo=$ac_try;;
16746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16747 $as_echo "$ac_try_echo") >&5
16748 (eval "$ac_compile") 2>conftest.er1
16750 grep -v '^ *+' conftest.er1 >conftest.err
16752 cat conftest.err >&5
16753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); } && {
16755 test -z "$ac_c_werror_flag" ||
16756 test ! -s conftest.err
16757 } && test -s conftest.$ac_objext; then
16758 ac_cv_member_krb5_ticket_client=yes
16760 $as_echo "$as_me: failed program was:" >&5
16761 sed 's/^/| /' conftest.$ac_ext >&5
16763 ac_cv_member_krb5_ticket_client=no
16766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16771 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
16772 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
16773 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
16775 cat >>confdefs.h <<_ACEOF
16776 #define HAVE_KRB5_TICKET_CLIENT 1
16781 { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
16782 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
16783 { (exit 1); exit 1; }; }
16788 { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
16789 $as_echo_n "checking for krb5_error.text.data... " >&6; }
16790 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
16791 $as_echo_n "(cached) " >&6
16793 cat >conftest.$ac_ext <<_ACEOF
16796 cat confdefs.h >>conftest.$ac_ext
16797 cat >>conftest.$ac_ext <<_ACEOF
16798 /* end confdefs.h. */
16804 static krb5_error ac_aggr;
16805 if (ac_aggr.text.data)
16811 rm -f conftest.$ac_objext
16812 if { (ac_try="$ac_compile"
16813 case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16818 $as_echo "$ac_try_echo") >&5
16819 (eval "$ac_compile") 2>conftest.er1
16821 grep -v '^ *+' conftest.er1 >conftest.err
16823 cat conftest.err >&5
16824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); } && {
16826 test -z "$ac_c_werror_flag" ||
16827 test ! -s conftest.err
16828 } && test -s conftest.$ac_objext; then
16829 ac_cv_member_krb5_error_text_data=yes
16831 $as_echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16834 cat >conftest.$ac_ext <<_ACEOF
16837 cat confdefs.h >>conftest.$ac_ext
16838 cat >>conftest.$ac_ext <<_ACEOF
16839 /* end confdefs.h. */
16845 static krb5_error ac_aggr;
16846 if (sizeof ac_aggr.text.data)
16852 rm -f conftest.$ac_objext
16853 if { (ac_try="$ac_compile"
16854 case "(($ac_try" in
16855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856 *) ac_try_echo=$ac_try;;
16858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16859 $as_echo "$ac_try_echo") >&5
16860 (eval "$ac_compile") 2>conftest.er1
16862 grep -v '^ *+' conftest.er1 >conftest.err
16864 cat conftest.err >&5
16865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); } && {
16867 test -z "$ac_c_werror_flag" ||
16868 test ! -s conftest.err
16869 } && test -s conftest.$ac_objext; then
16870 ac_cv_member_krb5_error_text_data=yes
16872 $as_echo "$as_me: failed program was:" >&5
16873 sed 's/^/| /' conftest.$ac_ext >&5
16875 ac_cv_member_krb5_error_text_data=no
16878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16883 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
16884 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
16885 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
16887 cat >>confdefs.h <<_ACEOF
16888 #define HAVE_KRB5_ERROR_TEXT_DATA 1
16893 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
16894 $as_echo_n "checking for krb5_error.e_data... " >&6; }
16895 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
16896 $as_echo_n "(cached) " >&6
16898 cat >conftest.$ac_ext <<_ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16909 static krb5_error ac_aggr;
16910 if (ac_aggr.e_data)
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
16934 ac_cv_member_krb5_error_e_data=yes
16936 $as_echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.$ac_ext >&5
16939 cat >conftest.$ac_ext <<_ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h. */
16950 static krb5_error ac_aggr;
16951 if (sizeof ac_aggr.e_data)
16957 rm -f conftest.$ac_objext
16958 if { (ac_try="$ac_compile"
16959 case "(($ac_try" in
16960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961 *) ac_try_echo=$ac_try;;
16963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16964 $as_echo "$ac_try_echo") >&5
16965 (eval "$ac_compile") 2>conftest.er1
16967 grep -v '^ *+' conftest.er1 >conftest.err
16969 cat conftest.err >&5
16970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); } && {
16972 test -z "$ac_c_werror_flag" ||
16973 test ! -s conftest.err
16974 } && test -s conftest.$ac_objext; then
16975 ac_cv_member_krb5_error_e_data=yes
16977 $as_echo "$as_me: failed program was:" >&5
16978 sed 's/^/| /' conftest.$ac_ext >&5
16980 ac_cv_member_krb5_error_e_data=no
16983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16988 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
16989 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
16990 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
16992 cat >>confdefs.h <<_ACEOF
16993 #define HAVE_KRB5_ERROR_E_DATA 1
16998 { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
16999 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
17000 { (exit 1); exit 1; }; }
17006 # Win32 requires headers to be loaded for __stdcall, so can't use
17007 # AC_CHECK_FUNCS here.
17008 { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
17009 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
17010 cat >conftest.$ac_ext <<_ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17020 krb5_free_unparsed_name(NULL,NULL);
17025 rm -f conftest.$ac_objext conftest$ac_exeext
17026 if { (ac_try="$ac_link"
17027 case "(($ac_try" in
17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029 *) ac_try_echo=$ac_try;;
17031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17032 $as_echo "$ac_try_echo") >&5
17033 (eval "$ac_link") 2>conftest.er1
17035 grep -v '^ *+' conftest.er1 >conftest.err
17037 cat conftest.err >&5
17038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); } && {
17040 test -z "$ac_c_werror_flag" ||
17041 test ! -s conftest.err
17042 } && test -s conftest$ac_exeext && {
17043 test "$cross_compiling" = yes ||
17044 $as_test_x conftest$ac_exeext
17047 cat >>confdefs.h <<\_ACEOF
17048 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
17051 { $as_echo "$as_me:$LINENO: result: yes" >&5
17052 $as_echo "yes" >&6; }
17054 $as_echo "$as_me: failed program was:" >&5
17055 sed 's/^/| /' conftest.$ac_ext >&5
17057 { $as_echo "$as_me:$LINENO: result: no" >&5
17058 $as_echo "no" >&6; }
17061 rm -rf conftest.dSYM
17062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17063 conftest$ac_exeext conftest.$ac_ext
17068 ## Functions, global variables
17071 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
17072 $as_echo_n "checking for int timezone... " >&6; }
17073 if test "${pgac_cv_var_int_timezone+set}" = set; then
17074 $as_echo_n "(cached) " >&6
17076 cat >conftest.$ac_ext <<_ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h. */
17088 res = timezone / 60;
17090 res = _timezone / 60;
17096 rm -f conftest.$ac_objext conftest$ac_exeext
17097 if { (ac_try="$ac_link"
17098 case "(($ac_try" in
17099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100 *) ac_try_echo=$ac_try;;
17102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17103 $as_echo "$ac_try_echo") >&5
17104 (eval "$ac_link") 2>conftest.er1
17106 grep -v '^ *+' conftest.er1 >conftest.err
17108 cat conftest.err >&5
17109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } && {
17111 test -z "$ac_c_werror_flag" ||
17112 test ! -s conftest.err
17113 } && test -s conftest$ac_exeext && {
17114 test "$cross_compiling" = yes ||
17115 $as_test_x conftest$ac_exeext
17117 pgac_cv_var_int_timezone=yes
17119 $as_echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17122 pgac_cv_var_int_timezone=no
17125 rm -rf conftest.dSYM
17126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17127 conftest$ac_exeext conftest.$ac_ext
17129 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
17130 $as_echo "$pgac_cv_var_int_timezone" >&6; }
17131 if test x"$pgac_cv_var_int_timezone" = xyes ; then
17133 cat >>confdefs.h <<\_ACEOF
17134 #define HAVE_INT_TIMEZONE /**/
17138 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
17139 $as_echo_n "checking types of arguments for accept()... " >&6; }
17140 if test "${ac_cv_func_accept_return+set}" = set; then
17141 $as_echo_n "(cached) " >&6
17143 if test "${ac_cv_func_accept_arg1+set}" = set; then
17144 $as_echo_n "(cached) " >&6
17146 if test "${ac_cv_func_accept_arg2+set}" = set; then
17147 $as_echo_n "(cached) " >&6
17149 if test "${ac_cv_func_accept_arg3+set}" = set; then
17150 $as_echo_n "(cached) " >&6
17152 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
17153 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
17154 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
17155 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
17156 cat >conftest.$ac_ext <<_ACEOF
17159 cat confdefs.h >>conftest.$ac_ext
17160 cat >>conftest.$ac_ext <<_ACEOF
17161 /* end confdefs.h. */
17162 #ifdef HAVE_SYS_TYPES_H
17163 #include <sys/types.h>
17165 #ifdef HAVE_SYS_SOCKET_H
17166 #include <sys/socket.h>
17168 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
17177 rm -f conftest.$ac_objext
17178 if { (ac_try="$ac_compile"
17179 case "(($ac_try" in
17180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17181 *) ac_try_echo=$ac_try;;
17183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17184 $as_echo "$ac_try_echo") >&5
17185 (eval "$ac_compile") 2>conftest.er1
17187 grep -v '^ *+' conftest.er1 >conftest.err
17189 cat conftest.err >&5
17190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); } && {
17192 test -z "$ac_c_werror_flag" ||
17193 test ! -s conftest.err
17194 } && test -s conftest.$ac_objext; then
17195 ac_not_found=no; break 4
17197 $as_echo "$as_me: failed program was:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17208 if test "$ac_not_found" = yes; then
17209 { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
17210 $as_echo "$as_me: error: could not determine argument types" >&2;}
17211 { (exit 1); exit 1; }; }
17213 if test "$ac_cv_func_accept_arg3" = "void"; then
17214 ac_cv_func_accept_arg3=int
17224 { $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
17225 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
17227 cat >>confdefs.h <<_ACEOF
17228 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
17232 cat >>confdefs.h <<_ACEOF
17233 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
17237 cat >>confdefs.h <<_ACEOF
17238 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
17242 cat >>confdefs.h <<_ACEOF
17243 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
17247 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
17248 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
17249 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
17250 $as_echo_n "(cached) " >&6
17252 cat >conftest.$ac_ext <<_ACEOF
17255 cat confdefs.h >>conftest.$ac_ext
17256 cat >>conftest.$ac_ext <<_ACEOF
17257 /* end confdefs.h. */
17258 #include <sys/time.h>
17262 struct timeval *tp;
17263 struct timezone *tzp;
17264 gettimeofday(tp,tzp);
17269 rm -f conftest.$ac_objext
17270 if { (ac_try="$ac_compile"
17271 case "(($ac_try" in
17272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273 *) ac_try_echo=$ac_try;;
17275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17276 $as_echo "$ac_try_echo") >&5
17277 (eval "$ac_compile") 2>conftest.er1
17279 grep -v '^ *+' conftest.er1 >conftest.err
17281 cat conftest.err >&5
17282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); } && {
17284 test -z "$ac_c_werror_flag" ||
17285 test ! -s conftest.err
17286 } && test -s conftest.$ac_objext; then
17287 pgac_cv_func_gettimeofday_1arg=no
17289 $as_echo "$as_me: failed program was:" >&5
17290 sed 's/^/| /' conftest.$ac_ext >&5
17292 pgac_cv_func_gettimeofday_1arg=yes
17295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17297 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
17298 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
17299 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
17301 cat >>confdefs.h <<\_ACEOF
17302 #define GETTIMEOFDAY_1ARG /**/
17330 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getpeerucred getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
17332 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17333 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17334 $as_echo_n "checking for $ac_func... " >&6; }
17335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17336 $as_echo_n "(cached) " >&6
17338 cat >conftest.$ac_ext <<_ACEOF
17341 cat confdefs.h >>conftest.$ac_ext
17342 cat >>conftest.$ac_ext <<_ACEOF
17343 /* end confdefs.h. */
17344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17346 #define $ac_func innocuous_$ac_func
17348 /* System header to define __stub macros and hopefully few prototypes,
17349 which can conflict with char $ac_func (); below.
17350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17351 <limits.h> exists even on freestanding compilers. */
17354 # include <limits.h>
17356 # include <assert.h>
17361 /* Override any GCC internal prototype to avoid an error.
17362 Use char because int might match the return type of a GCC
17363 builtin and then its argument prototype would still apply. */
17368 /* The GNU C library defines this for functions which it implements
17369 to always fail with ENOSYS. Some functions are actually named
17370 something starting with __ and the normal name is an alias. */
17371 #if defined __stub_$ac_func || defined __stub___$ac_func
17378 return $ac_func ();
17383 rm -f conftest.$ac_objext conftest$ac_exeext
17384 if { (ac_try="$ac_link"
17385 case "(($ac_try" in
17386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387 *) ac_try_echo=$ac_try;;
17389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17390 $as_echo "$ac_try_echo") >&5
17391 (eval "$ac_link") 2>conftest.er1
17393 grep -v '^ *+' conftest.er1 >conftest.err
17395 cat conftest.err >&5
17396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); } && {
17398 test -z "$ac_c_werror_flag" ||
17399 test ! -s conftest.err
17400 } && test -s conftest$ac_exeext && {
17401 test "$cross_compiling" = yes ||
17402 $as_test_x conftest$ac_exeext
17404 eval "$as_ac_var=yes"
17406 $as_echo "$as_me: failed program was:" >&5
17407 sed 's/^/| /' conftest.$ac_ext >&5
17409 eval "$as_ac_var=no"
17412 rm -rf conftest.dSYM
17413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17414 conftest$ac_exeext conftest.$ac_ext
17416 ac_res=`eval 'as_val=${'$as_ac_var'}
17417 $as_echo "$as_val"'`
17418 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17419 $as_echo "$ac_res" >&6; }
17420 as_val=`eval 'as_val=${'$as_ac_var'}
17421 $as_echo "$as_val"'`
17422 if test "x$as_val" = x""yes; then
17423 cat >>confdefs.h <<_ACEOF
17424 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17431 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
17432 # by calling it, 2009-04-02
17433 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
17434 if test "$PORTNAME" != "solaris"; then
17436 for ac_func in posix_fadvise
17438 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17439 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17440 $as_echo_n "checking for $ac_func... " >&6; }
17441 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17442 $as_echo_n "(cached) " >&6
17444 cat >conftest.$ac_ext <<_ACEOF
17447 cat confdefs.h >>conftest.$ac_ext
17448 cat >>conftest.$ac_ext <<_ACEOF
17449 /* end confdefs.h. */
17450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17452 #define $ac_func innocuous_$ac_func
17454 /* System header to define __stub macros and hopefully few prototypes,
17455 which can conflict with char $ac_func (); below.
17456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17457 <limits.h> exists even on freestanding compilers. */
17460 # include <limits.h>
17462 # include <assert.h>
17467 /* Override any GCC internal prototype to avoid an error.
17468 Use char because int might match the return type of a GCC
17469 builtin and then its argument prototype would still apply. */
17474 /* The GNU C library defines this for functions which it implements
17475 to always fail with ENOSYS. Some functions are actually named
17476 something starting with __ and the normal name is an alias. */
17477 #if defined __stub_$ac_func || defined __stub___$ac_func
17484 return $ac_func ();
17489 rm -f conftest.$ac_objext conftest$ac_exeext
17490 if { (ac_try="$ac_link"
17491 case "(($ac_try" in
17492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17493 *) ac_try_echo=$ac_try;;
17495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17496 $as_echo "$ac_try_echo") >&5
17497 (eval "$ac_link") 2>conftest.er1
17499 grep -v '^ *+' conftest.er1 >conftest.err
17501 cat conftest.err >&5
17502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); } && {
17504 test -z "$ac_c_werror_flag" ||
17505 test ! -s conftest.err
17506 } && test -s conftest$ac_exeext && {
17507 test "$cross_compiling" = yes ||
17508 $as_test_x conftest$ac_exeext
17510 eval "$as_ac_var=yes"
17512 $as_echo "$as_me: failed program was:" >&5
17513 sed 's/^/| /' conftest.$ac_ext >&5
17515 eval "$as_ac_var=no"
17518 rm -rf conftest.dSYM
17519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17520 conftest$ac_exeext conftest.$ac_ext
17522 ac_res=`eval 'as_val=${'$as_ac_var'}
17523 $as_echo "$as_val"'`
17524 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17525 $as_echo "$ac_res" >&6; }
17526 as_val=`eval 'as_val=${'$as_ac_var'}
17527 $as_echo "$as_val"'`
17528 if test "x$as_val" = x""yes; then
17529 cat >>confdefs.h <<_ACEOF
17530 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17536 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
17537 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
17538 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
17539 $as_echo_n "(cached) " >&6
17541 cat >conftest.$ac_ext <<_ACEOF
17544 cat confdefs.h >>conftest.$ac_ext
17545 cat >>conftest.$ac_ext <<_ACEOF
17546 /* end confdefs.h. */
17552 #ifndef posix_fadvise
17553 (void) posix_fadvise;
17560 rm -f conftest.$ac_objext
17561 if { (ac_try="$ac_compile"
17562 case "(($ac_try" in
17563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17564 *) ac_try_echo=$ac_try;;
17566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17567 $as_echo "$ac_try_echo") >&5
17568 (eval "$ac_compile") 2>conftest.er1
17570 grep -v '^ *+' conftest.er1 >conftest.err
17572 cat conftest.err >&5
17573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); } && {
17575 test -z "$ac_c_werror_flag" ||
17576 test ! -s conftest.err
17577 } && test -s conftest.$ac_objext; then
17578 ac_cv_have_decl_posix_fadvise=yes
17580 $as_echo "$as_me: failed program was:" >&5
17581 sed 's/^/| /' conftest.$ac_ext >&5
17583 ac_cv_have_decl_posix_fadvise=no
17586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17588 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
17589 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
17590 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
17592 cat >>confdefs.h <<_ACEOF
17593 #define HAVE_DECL_POSIX_FADVISE 1
17598 cat >>confdefs.h <<_ACEOF
17599 #define HAVE_DECL_POSIX_FADVISE 0
17608 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
17609 $as_echo_n "checking whether fdatasync is declared... " >&6; }
17610 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
17611 $as_echo_n "(cached) " >&6
17613 cat >conftest.$ac_ext <<_ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h. */
17619 #include <unistd.h>
17632 rm -f conftest.$ac_objext
17633 if { (ac_try="$ac_compile"
17634 case "(($ac_try" in
17635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636 *) ac_try_echo=$ac_try;;
17638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17639 $as_echo "$ac_try_echo") >&5
17640 (eval "$ac_compile") 2>conftest.er1
17642 grep -v '^ *+' conftest.er1 >conftest.err
17644 cat conftest.err >&5
17645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); } && {
17647 test -z "$ac_c_werror_flag" ||
17648 test ! -s conftest.err
17649 } && test -s conftest.$ac_objext; then
17650 ac_cv_have_decl_fdatasync=yes
17652 $as_echo "$as_me: failed program was:" >&5
17653 sed 's/^/| /' conftest.$ac_ext >&5
17655 ac_cv_have_decl_fdatasync=no
17658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17660 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
17661 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
17662 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
17664 cat >>confdefs.h <<_ACEOF
17665 #define HAVE_DECL_FDATASYNC 1
17670 cat >>confdefs.h <<_ACEOF
17671 #define HAVE_DECL_FDATASYNC 0
17678 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
17679 $as_echo_n "checking whether strlcat is declared... " >&6; }
17680 if test "${ac_cv_have_decl_strlcat+set}" = set; then
17681 $as_echo_n "(cached) " >&6
17683 cat >conftest.$ac_ext <<_ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17689 $ac_includes_default
17701 rm -f conftest.$ac_objext
17702 if { (ac_try="$ac_compile"
17703 case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17708 $as_echo "$ac_try_echo") >&5
17709 (eval "$ac_compile") 2>conftest.er1
17711 grep -v '^ *+' conftest.er1 >conftest.err
17713 cat conftest.err >&5
17714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } && {
17716 test -z "$ac_c_werror_flag" ||
17717 test ! -s conftest.err
17718 } && test -s conftest.$ac_objext; then
17719 ac_cv_have_decl_strlcat=yes
17721 $as_echo "$as_me: failed program was:" >&5
17722 sed 's/^/| /' conftest.$ac_ext >&5
17724 ac_cv_have_decl_strlcat=no
17727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17729 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
17730 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
17731 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
17733 cat >>confdefs.h <<_ACEOF
17734 #define HAVE_DECL_STRLCAT 1
17739 cat >>confdefs.h <<_ACEOF
17740 #define HAVE_DECL_STRLCAT 0
17745 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
17746 $as_echo_n "checking whether strlcpy is declared... " >&6; }
17747 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
17748 $as_echo_n "(cached) " >&6
17750 cat >conftest.$ac_ext <<_ACEOF
17753 cat confdefs.h >>conftest.$ac_ext
17754 cat >>conftest.$ac_ext <<_ACEOF
17755 /* end confdefs.h. */
17756 $ac_includes_default
17768 rm -f conftest.$ac_objext
17769 if { (ac_try="$ac_compile"
17770 case "(($ac_try" in
17771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772 *) ac_try_echo=$ac_try;;
17774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17775 $as_echo "$ac_try_echo") >&5
17776 (eval "$ac_compile") 2>conftest.er1
17778 grep -v '^ *+' conftest.er1 >conftest.err
17780 cat conftest.err >&5
17781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); } && {
17783 test -z "$ac_c_werror_flag" ||
17784 test ! -s conftest.err
17785 } && test -s conftest.$ac_objext; then
17786 ac_cv_have_decl_strlcpy=yes
17788 $as_echo "$as_me: failed program was:" >&5
17789 sed 's/^/| /' conftest.$ac_ext >&5
17791 ac_cv_have_decl_strlcpy=no
17794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17796 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
17797 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
17798 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
17800 cat >>confdefs.h <<_ACEOF
17801 #define HAVE_DECL_STRLCPY 1
17806 cat >>confdefs.h <<_ACEOF
17807 #define HAVE_DECL_STRLCPY 0
17814 # This is probably only present on Darwin, but may as well check always
17815 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
17816 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
17817 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
17818 $as_echo_n "(cached) " >&6
17820 cat >conftest.$ac_ext <<_ACEOF
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h. */
17831 #ifndef F_FULLFSYNC
17832 (void) F_FULLFSYNC;
17839 rm -f conftest.$ac_objext
17840 if { (ac_try="$ac_compile"
17841 case "(($ac_try" in
17842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17843 *) ac_try_echo=$ac_try;;
17845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17846 $as_echo "$ac_try_echo") >&5
17847 (eval "$ac_compile") 2>conftest.er1
17849 grep -v '^ *+' conftest.er1 >conftest.err
17851 cat conftest.err >&5
17852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); } && {
17854 test -z "$ac_c_werror_flag" ||
17855 test ! -s conftest.err
17856 } && test -s conftest.$ac_objext; then
17857 ac_cv_have_decl_F_FULLFSYNC=yes
17859 $as_echo "$as_me: failed program was:" >&5
17860 sed 's/^/| /' conftest.$ac_ext >&5
17862 ac_cv_have_decl_F_FULLFSYNC=no
17865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17867 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
17868 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
17869 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
17871 cat >>confdefs.h <<_ACEOF
17872 #define HAVE_DECL_F_FULLFSYNC 1
17877 cat >>confdefs.h <<_ACEOF
17878 #define HAVE_DECL_F_FULLFSYNC 0
17887 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
17888 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
17889 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
17890 $as_echo_n "(cached) " >&6
17892 ac_cv_type_struct_sockaddr_in6=no
17893 cat >conftest.$ac_ext <<_ACEOF
17896 cat confdefs.h >>conftest.$ac_ext
17897 cat >>conftest.$ac_ext <<_ACEOF
17898 /* end confdefs.h. */
17899 $ac_includes_default
17900 #include <netinet/in.h>
17905 if (sizeof (struct sockaddr_in6))
17911 rm -f conftest.$ac_objext
17912 if { (ac_try="$ac_compile"
17913 case "(($ac_try" in
17914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17915 *) ac_try_echo=$ac_try;;
17917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17918 $as_echo "$ac_try_echo") >&5
17919 (eval "$ac_compile") 2>conftest.er1
17921 grep -v '^ *+' conftest.er1 >conftest.err
17923 cat conftest.err >&5
17924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } && {
17926 test -z "$ac_c_werror_flag" ||
17927 test ! -s conftest.err
17928 } && test -s conftest.$ac_objext; then
17929 cat >conftest.$ac_ext <<_ACEOF
17932 cat confdefs.h >>conftest.$ac_ext
17933 cat >>conftest.$ac_ext <<_ACEOF
17934 /* end confdefs.h. */
17935 $ac_includes_default
17936 #include <netinet/in.h>
17941 if (sizeof ((struct sockaddr_in6)))
17947 rm -f conftest.$ac_objext
17948 if { (ac_try="$ac_compile"
17949 case "(($ac_try" in
17950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951 *) ac_try_echo=$ac_try;;
17953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17954 $as_echo "$ac_try_echo") >&5
17955 (eval "$ac_compile") 2>conftest.er1
17957 grep -v '^ *+' conftest.er1 >conftest.err
17959 cat conftest.err >&5
17960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); } && {
17962 test -z "$ac_c_werror_flag" ||
17963 test ! -s conftest.err
17964 } && test -s conftest.$ac_objext; then
17967 $as_echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17970 ac_cv_type_struct_sockaddr_in6=yes
17973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17975 $as_echo "$as_me: failed program was:" >&5
17976 sed 's/^/| /' conftest.$ac_ext >&5
17981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17983 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
17984 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
17985 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
17987 cat >>confdefs.h <<\_ACEOF
17988 #define HAVE_IPV6 1
17996 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
17997 $as_echo_n "checking for PS_STRINGS... " >&6; }
17998 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
17999 $as_echo_n "(cached) " >&6
18001 cat >conftest.$ac_ext <<_ACEOF
18004 cat confdefs.h >>conftest.$ac_ext
18005 cat >>conftest.$ac_ext <<_ACEOF
18006 /* end confdefs.h. */
18007 #include <machine/vmparam.h>
18008 #include <sys/exec.h>
18013 PS_STRINGS->ps_nargvstr = 1;
18014 PS_STRINGS->ps_argvstr = "foo";
18019 rm -f conftest.$ac_objext conftest$ac_exeext
18020 if { (ac_try="$ac_link"
18021 case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18026 $as_echo "$ac_try_echo") >&5
18027 (eval "$ac_link") 2>conftest.er1
18029 grep -v '^ *+' conftest.er1 >conftest.err
18031 cat conftest.err >&5
18032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); } && {
18034 test -z "$ac_c_werror_flag" ||
18035 test ! -s conftest.err
18036 } && test -s conftest$ac_exeext && {
18037 test "$cross_compiling" = yes ||
18038 $as_test_x conftest$ac_exeext
18040 pgac_cv_var_PS_STRINGS=yes
18042 $as_echo "$as_me: failed program was:" >&5
18043 sed 's/^/| /' conftest.$ac_ext >&5
18045 pgac_cv_var_PS_STRINGS=no
18048 rm -rf conftest.dSYM
18049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18050 conftest$ac_exeext conftest.$ac_ext
18052 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
18053 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
18054 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
18056 cat >>confdefs.h <<\_ACEOF
18057 #define HAVE_PS_STRINGS /**/
18063 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
18064 # is missing. Yes, there are machines that have only one. We may
18065 # also decide to use snprintf.c if snprintf() is present but does not
18066 # have all the features we need --- see below.
18068 if test "$PORTNAME" = "win32"; then
18069 # Win32 gets snprintf.c built unconditionally.
18071 # To properly translate all NLS languages strings, we must support the
18072 # *printf() %$ format, which allows *printf() arguments to be selected
18073 # by position in the translated string.
18075 # libintl versions < 0.13 use the native *printf() functions, and Win32
18076 # *printf() doesn't understand %$, so we must use our /port versions,
18077 # which do understand %$. libintl versions >= 0.13 include their own
18078 # *printf versions on Win32. The libintl 0.13 release note text is:
18080 # C format strings with positions, as they arise when a translator
18081 # needs to reorder a sentence, are now supported on all platforms.
18082 # On those few platforms (NetBSD and Woe32) for which the native
18083 # printf()/fprintf()/... functions don't support such format
18084 # strings, replacements are provided through <libintl.h>.
18086 # We could use libintl >= 0.13's *printf() if we were sure that we had
18087 # a litint >= 0.13 at runtime, but seeing that there is no clean way
18088 # to guarantee that, it is best to just use our own, so we are sure to
18089 # get %$ support. In include/port.h we disable the *printf() macros
18090 # that might have been defined by libintl.
18092 # We do this unconditionally whether NLS is used or not so we are sure
18093 # that all Win32 libraries and binaries behave the same.
18094 pgac_need_repl_snprintf=yes
18096 pgac_need_repl_snprintf=no
18098 for ac_func in snprintf
18100 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18101 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18102 $as_echo_n "checking for $ac_func... " >&6; }
18103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18104 $as_echo_n "(cached) " >&6
18106 cat >conftest.$ac_ext <<_ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h. */
18112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18114 #define $ac_func innocuous_$ac_func
18116 /* System header to define __stub macros and hopefully few prototypes,
18117 which can conflict with char $ac_func (); below.
18118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18119 <limits.h> exists even on freestanding compilers. */
18122 # include <limits.h>
18124 # include <assert.h>
18129 /* Override any GCC internal prototype to avoid an error.
18130 Use char because int might match the return type of a GCC
18131 builtin and then its argument prototype would still apply. */
18136 /* The GNU C library defines this for functions which it implements
18137 to always fail with ENOSYS. Some functions are actually named
18138 something starting with __ and the normal name is an alias. */
18139 #if defined __stub_$ac_func || defined __stub___$ac_func
18146 return $ac_func ();
18151 rm -f conftest.$ac_objext conftest$ac_exeext
18152 if { (ac_try="$ac_link"
18153 case "(($ac_try" in
18154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18155 *) ac_try_echo=$ac_try;;
18157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18158 $as_echo "$ac_try_echo") >&5
18159 (eval "$ac_link") 2>conftest.er1
18161 grep -v '^ *+' conftest.er1 >conftest.err
18163 cat conftest.err >&5
18164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); } && {
18166 test -z "$ac_c_werror_flag" ||
18167 test ! -s conftest.err
18168 } && test -s conftest$ac_exeext && {
18169 test "$cross_compiling" = yes ||
18170 $as_test_x conftest$ac_exeext
18172 eval "$as_ac_var=yes"
18174 $as_echo "$as_me: failed program was:" >&5
18175 sed 's/^/| /' conftest.$ac_ext >&5
18177 eval "$as_ac_var=no"
18180 rm -rf conftest.dSYM
18181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18182 conftest$ac_exeext conftest.$ac_ext
18184 ac_res=`eval 'as_val=${'$as_ac_var'}
18185 $as_echo "$as_val"'`
18186 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18187 $as_echo "$ac_res" >&6; }
18188 as_val=`eval 'as_val=${'$as_ac_var'}
18189 $as_echo "$as_val"'`
18190 if test "x$as_val" = x""yes; then
18191 cat >>confdefs.h <<_ACEOF
18192 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18196 pgac_need_repl_snprintf=yes
18201 for ac_func in vsnprintf
18203 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18204 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18205 $as_echo_n "checking for $ac_func... " >&6; }
18206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18207 $as_echo_n "(cached) " >&6
18209 cat >conftest.$ac_ext <<_ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18217 #define $ac_func innocuous_$ac_func
18219 /* System header to define __stub macros and hopefully few prototypes,
18220 which can conflict with char $ac_func (); below.
18221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18222 <limits.h> exists even on freestanding compilers. */
18225 # include <limits.h>
18227 # include <assert.h>
18232 /* Override any GCC internal prototype to avoid an error.
18233 Use char because int might match the return type of a GCC
18234 builtin and then its argument prototype would still apply. */
18239 /* The GNU C library defines this for functions which it implements
18240 to always fail with ENOSYS. Some functions are actually named
18241 something starting with __ and the normal name is an alias. */
18242 #if defined __stub_$ac_func || defined __stub___$ac_func
18249 return $ac_func ();
18254 rm -f conftest.$ac_objext conftest$ac_exeext
18255 if { (ac_try="$ac_link"
18256 case "(($ac_try" in
18257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18258 *) ac_try_echo=$ac_try;;
18260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18261 $as_echo "$ac_try_echo") >&5
18262 (eval "$ac_link") 2>conftest.er1
18264 grep -v '^ *+' conftest.er1 >conftest.err
18266 cat conftest.err >&5
18267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); } && {
18269 test -z "$ac_c_werror_flag" ||
18270 test ! -s conftest.err
18271 } && test -s conftest$ac_exeext && {
18272 test "$cross_compiling" = yes ||
18273 $as_test_x conftest$ac_exeext
18275 eval "$as_ac_var=yes"
18277 $as_echo "$as_me: failed program was:" >&5
18278 sed 's/^/| /' conftest.$ac_ext >&5
18280 eval "$as_ac_var=no"
18283 rm -rf conftest.dSYM
18284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18285 conftest$ac_exeext conftest.$ac_ext
18287 ac_res=`eval 'as_val=${'$as_ac_var'}
18288 $as_echo "$as_val"'`
18289 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18290 $as_echo "$ac_res" >&6; }
18291 as_val=`eval 'as_val=${'$as_ac_var'}
18292 $as_echo "$as_val"'`
18293 if test "x$as_val" = x""yes; then
18294 cat >>confdefs.h <<_ACEOF
18295 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18299 pgac_need_repl_snprintf=yes
18306 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
18307 # include/c.h will provide declarations. Note this is a separate test
18308 # from whether the functions exist in the C library --- there are
18309 # systems that have the functions but don't bother to declare them :-(
18311 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
18312 $as_echo_n "checking whether snprintf is declared... " >&6; }
18313 if test "${ac_cv_have_decl_snprintf+set}" = set; then
18314 $as_echo_n "(cached) " >&6
18316 cat >conftest.$ac_ext <<_ACEOF
18319 cat confdefs.h >>conftest.$ac_ext
18320 cat >>conftest.$ac_ext <<_ACEOF
18321 /* end confdefs.h. */
18322 $ac_includes_default
18334 rm -f conftest.$ac_objext
18335 if { (ac_try="$ac_compile"
18336 case "(($ac_try" in
18337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338 *) ac_try_echo=$ac_try;;
18340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18341 $as_echo "$ac_try_echo") >&5
18342 (eval "$ac_compile") 2>conftest.er1
18344 grep -v '^ *+' conftest.er1 >conftest.err
18346 cat conftest.err >&5
18347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); } && {
18349 test -z "$ac_c_werror_flag" ||
18350 test ! -s conftest.err
18351 } && test -s conftest.$ac_objext; then
18352 ac_cv_have_decl_snprintf=yes
18354 $as_echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.$ac_ext >&5
18357 ac_cv_have_decl_snprintf=no
18360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18362 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
18363 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
18364 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
18366 cat >>confdefs.h <<_ACEOF
18367 #define HAVE_DECL_SNPRINTF 1
18372 cat >>confdefs.h <<_ACEOF
18373 #define HAVE_DECL_SNPRINTF 0
18378 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
18379 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
18380 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
18381 $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 $ac_includes_default
18401 rm -f conftest.$ac_objext
18402 if { (ac_try="$ac_compile"
18403 case "(($ac_try" in
18404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18405 *) ac_try_echo=$ac_try;;
18407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18408 $as_echo "$ac_try_echo") >&5
18409 (eval "$ac_compile") 2>conftest.er1
18411 grep -v '^ *+' conftest.er1 >conftest.err
18413 cat conftest.err >&5
18414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415 (exit $ac_status); } && {
18416 test -z "$ac_c_werror_flag" ||
18417 test ! -s conftest.err
18418 } && test -s conftest.$ac_objext; then
18419 ac_cv_have_decl_vsnprintf=yes
18421 $as_echo "$as_me: failed program was:" >&5
18422 sed 's/^/| /' conftest.$ac_ext >&5
18424 ac_cv_have_decl_vsnprintf=no
18427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18429 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
18430 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
18431 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
18433 cat >>confdefs.h <<_ACEOF
18434 #define HAVE_DECL_VSNPRINTF 1
18439 cat >>confdefs.h <<_ACEOF
18440 #define HAVE_DECL_VSNPRINTF 0
18449 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
18450 $as_echo_n "checking for isinf... " >&6; }
18451 if test "${ac_cv_func_isinf+set}" = set; then
18452 $as_echo_n "(cached) " >&6
18454 cat >conftest.$ac_ext <<_ACEOF
18457 cat confdefs.h >>conftest.$ac_ext
18458 cat >>conftest.$ac_ext <<_ACEOF
18459 /* end confdefs.h. */
18462 double glob_double;
18467 return isinf(glob_double) ? 0 : 1;
18472 rm -f conftest.$ac_objext conftest$ac_exeext
18473 if { (ac_try="$ac_link"
18474 case "(($ac_try" in
18475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18476 *) ac_try_echo=$ac_try;;
18478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18479 $as_echo "$ac_try_echo") >&5
18480 (eval "$ac_link") 2>conftest.er1
18482 grep -v '^ *+' conftest.er1 >conftest.err
18484 cat conftest.err >&5
18485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); } && {
18487 test -z "$ac_c_werror_flag" ||
18488 test ! -s conftest.err
18489 } && test -s conftest$ac_exeext && {
18490 test "$cross_compiling" = yes ||
18491 $as_test_x conftest$ac_exeext
18493 ac_cv_func_isinf=yes
18495 $as_echo "$as_me: failed program was:" >&5
18496 sed 's/^/| /' conftest.$ac_ext >&5
18498 ac_cv_func_isinf=no
18501 rm -rf conftest.dSYM
18502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18503 conftest$ac_exeext conftest.$ac_ext
18505 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
18506 $as_echo "$ac_cv_func_isinf" >&6; }
18508 if test $ac_cv_func_isinf = yes ; then
18510 cat >>confdefs.h <<\_ACEOF
18511 #define HAVE_ISINF 1
18515 case " $LIBOBJS " in
18516 *" isinf.$ac_objext "* ) ;;
18517 *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
18521 # Look for a way to implement a substitute for isinf()
18526 for ac_func in fpclass fp_class fp_class_d class
18528 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18529 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18530 $as_echo_n "checking for $ac_func... " >&6; }
18531 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18532 $as_echo_n "(cached) " >&6
18534 cat >conftest.$ac_ext <<_ACEOF
18537 cat confdefs.h >>conftest.$ac_ext
18538 cat >>conftest.$ac_ext <<_ACEOF
18539 /* end confdefs.h. */
18540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18542 #define $ac_func innocuous_$ac_func
18544 /* System header to define __stub macros and hopefully few prototypes,
18545 which can conflict with char $ac_func (); below.
18546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18547 <limits.h> exists even on freestanding compilers. */
18550 # include <limits.h>
18552 # include <assert.h>
18557 /* Override any GCC internal prototype to avoid an error.
18558 Use char because int might match the return type of a GCC
18559 builtin and then its argument prototype would still apply. */
18564 /* The GNU C library defines this for functions which it implements
18565 to always fail with ENOSYS. Some functions are actually named
18566 something starting with __ and the normal name is an alias. */
18567 #if defined __stub_$ac_func || defined __stub___$ac_func
18574 return $ac_func ();
18579 rm -f conftest.$ac_objext conftest$ac_exeext
18580 if { (ac_try="$ac_link"
18581 case "(($ac_try" in
18582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18583 *) ac_try_echo=$ac_try;;
18585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18586 $as_echo "$ac_try_echo") >&5
18587 (eval "$ac_link") 2>conftest.er1
18589 grep -v '^ *+' conftest.er1 >conftest.err
18591 cat conftest.err >&5
18592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); } && {
18594 test -z "$ac_c_werror_flag" ||
18595 test ! -s conftest.err
18596 } && test -s conftest$ac_exeext && {
18597 test "$cross_compiling" = yes ||
18598 $as_test_x conftest$ac_exeext
18600 eval "$as_ac_var=yes"
18602 $as_echo "$as_me: failed program was:" >&5
18603 sed 's/^/| /' conftest.$ac_ext >&5
18605 eval "$as_ac_var=no"
18608 rm -rf conftest.dSYM
18609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18610 conftest$ac_exeext conftest.$ac_ext
18612 ac_res=`eval 'as_val=${'$as_ac_var'}
18613 $as_echo "$as_val"'`
18614 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18615 $as_echo "$ac_res" >&6; }
18616 as_val=`eval 'as_val=${'$as_ac_var'}
18617 $as_echo "$as_val"'`
18618 if test "x$as_val" = x""yes; then
18619 cat >>confdefs.h <<_ACEOF
18620 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18628 # Some versions of libedit contain strlcpy(); so disregard that library while
18629 # checking for these standard libc functions.
18630 pgac_save_LIBS="$LIBS"
18631 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
18647 for ac_func in crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
18649 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18650 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18651 $as_echo_n "checking for $ac_func... " >&6; }
18652 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18653 $as_echo_n "(cached) " >&6
18655 cat >conftest.$ac_ext <<_ACEOF
18658 cat confdefs.h >>conftest.$ac_ext
18659 cat >>conftest.$ac_ext <<_ACEOF
18660 /* end confdefs.h. */
18661 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18663 #define $ac_func innocuous_$ac_func
18665 /* System header to define __stub macros and hopefully few prototypes,
18666 which can conflict with char $ac_func (); below.
18667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18668 <limits.h> exists even on freestanding compilers. */
18671 # include <limits.h>
18673 # include <assert.h>
18678 /* Override any GCC internal prototype to avoid an error.
18679 Use char because int might match the return type of a GCC
18680 builtin and then its argument prototype would still apply. */
18685 /* The GNU C library defines this for functions which it implements
18686 to always fail with ENOSYS. Some functions are actually named
18687 something starting with __ and the normal name is an alias. */
18688 #if defined __stub_$ac_func || defined __stub___$ac_func
18695 return $ac_func ();
18700 rm -f conftest.$ac_objext conftest$ac_exeext
18701 if { (ac_try="$ac_link"
18702 case "(($ac_try" in
18703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18704 *) ac_try_echo=$ac_try;;
18706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18707 $as_echo "$ac_try_echo") >&5
18708 (eval "$ac_link") 2>conftest.er1
18710 grep -v '^ *+' conftest.er1 >conftest.err
18712 cat conftest.err >&5
18713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); } && {
18715 test -z "$ac_c_werror_flag" ||
18716 test ! -s conftest.err
18717 } && test -s conftest$ac_exeext && {
18718 test "$cross_compiling" = yes ||
18719 $as_test_x conftest$ac_exeext
18721 eval "$as_ac_var=yes"
18723 $as_echo "$as_me: failed program was:" >&5
18724 sed 's/^/| /' conftest.$ac_ext >&5
18726 eval "$as_ac_var=no"
18729 rm -rf conftest.dSYM
18730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18731 conftest$ac_exeext conftest.$ac_ext
18733 ac_res=`eval 'as_val=${'$as_ac_var'}
18734 $as_echo "$as_val"'`
18735 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18736 $as_echo "$ac_res" >&6; }
18737 as_val=`eval 'as_val=${'$as_ac_var'}
18738 $as_echo "$as_val"'`
18739 if test "x$as_val" = x""yes; then
18740 cat >>confdefs.h <<_ACEOF
18741 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18745 case " $LIBOBJS " in
18746 *" $ac_func.$ac_objext "* ) ;;
18747 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18758 # Windows uses a specialised env handler
18761 cat >>confdefs.h <<\_ACEOF
18762 #define HAVE_UNSETENV 1
18765 ac_cv_func_unsetenv=yes;;
18768 for ac_func in unsetenv
18770 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18771 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18772 $as_echo_n "checking for $ac_func... " >&6; }
18773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18774 $as_echo_n "(cached) " >&6
18776 cat >conftest.$ac_ext <<_ACEOF
18779 cat confdefs.h >>conftest.$ac_ext
18780 cat >>conftest.$ac_ext <<_ACEOF
18781 /* end confdefs.h. */
18782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18784 #define $ac_func innocuous_$ac_func
18786 /* System header to define __stub macros and hopefully few prototypes,
18787 which can conflict with char $ac_func (); below.
18788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18789 <limits.h> exists even on freestanding compilers. */
18792 # include <limits.h>
18794 # include <assert.h>
18799 /* Override any GCC internal prototype to avoid an error.
18800 Use char because int might match the return type of a GCC
18801 builtin and then its argument prototype would still apply. */
18806 /* The GNU C library defines this for functions which it implements
18807 to always fail with ENOSYS. Some functions are actually named
18808 something starting with __ and the normal name is an alias. */
18809 #if defined __stub_$ac_func || defined __stub___$ac_func
18816 return $ac_func ();
18821 rm -f conftest.$ac_objext conftest$ac_exeext
18822 if { (ac_try="$ac_link"
18823 case "(($ac_try" in
18824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18825 *) ac_try_echo=$ac_try;;
18827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18828 $as_echo "$ac_try_echo") >&5
18829 (eval "$ac_link") 2>conftest.er1
18831 grep -v '^ *+' conftest.er1 >conftest.err
18833 cat conftest.err >&5
18834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); } && {
18836 test -z "$ac_c_werror_flag" ||
18837 test ! -s conftest.err
18838 } && test -s conftest$ac_exeext && {
18839 test "$cross_compiling" = yes ||
18840 $as_test_x conftest$ac_exeext
18842 eval "$as_ac_var=yes"
18844 $as_echo "$as_me: failed program was:" >&5
18845 sed 's/^/| /' conftest.$ac_ext >&5
18847 eval "$as_ac_var=no"
18850 rm -rf conftest.dSYM
18851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18852 conftest$ac_exeext conftest.$ac_ext
18854 ac_res=`eval 'as_val=${'$as_ac_var'}
18855 $as_echo "$as_val"'`
18856 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18857 $as_echo "$ac_res" >&6; }
18858 as_val=`eval 'as_val=${'$as_ac_var'}
18859 $as_echo "$as_val"'`
18860 if test "x$as_val" = x""yes; then
18861 cat >>confdefs.h <<_ACEOF
18862 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18866 case " $LIBOBJS " in
18867 *" $ac_func.$ac_objext "* ) ;;
18868 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18880 LIBS="$pgac_save_LIBS"
18882 # System's version of getaddrinfo(), if any, may be used only if we found
18883 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
18884 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
18885 # versions of getaddrinfo don't follow normal C call protocol. This is OK
18886 # because we want to use our own getaddrinfo.c on Windows anyway.)
18887 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
18889 for ac_func in getaddrinfo
18891 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18892 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18893 $as_echo_n "checking for $ac_func... " >&6; }
18894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18895 $as_echo_n "(cached) " >&6
18897 cat >conftest.$ac_ext <<_ACEOF
18900 cat confdefs.h >>conftest.$ac_ext
18901 cat >>conftest.$ac_ext <<_ACEOF
18902 /* end confdefs.h. */
18903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18905 #define $ac_func innocuous_$ac_func
18907 /* System header to define __stub macros and hopefully few prototypes,
18908 which can conflict with char $ac_func (); below.
18909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18910 <limits.h> exists even on freestanding compilers. */
18913 # include <limits.h>
18915 # include <assert.h>
18920 /* Override any GCC internal prototype to avoid an error.
18921 Use char because int might match the return type of a GCC
18922 builtin and then its argument prototype would still apply. */
18927 /* The GNU C library defines this for functions which it implements
18928 to always fail with ENOSYS. Some functions are actually named
18929 something starting with __ and the normal name is an alias. */
18930 #if defined __stub_$ac_func || defined __stub___$ac_func
18937 return $ac_func ();
18942 rm -f conftest.$ac_objext conftest$ac_exeext
18943 if { (ac_try="$ac_link"
18944 case "(($ac_try" in
18945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18946 *) ac_try_echo=$ac_try;;
18948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18949 $as_echo "$ac_try_echo") >&5
18950 (eval "$ac_link") 2>conftest.er1
18952 grep -v '^ *+' conftest.er1 >conftest.err
18954 cat conftest.err >&5
18955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } && {
18957 test -z "$ac_c_werror_flag" ||
18958 test ! -s conftest.err
18959 } && test -s conftest$ac_exeext && {
18960 test "$cross_compiling" = yes ||
18961 $as_test_x conftest$ac_exeext
18963 eval "$as_ac_var=yes"
18965 $as_echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18968 eval "$as_ac_var=no"
18971 rm -rf conftest.dSYM
18972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18973 conftest$ac_exeext conftest.$ac_ext
18975 ac_res=`eval 'as_val=${'$as_ac_var'}
18976 $as_echo "$as_val"'`
18977 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18978 $as_echo "$ac_res" >&6; }
18979 as_val=`eval 'as_val=${'$as_ac_var'}
18980 $as_echo "$as_val"'`
18981 if test "x$as_val" = x""yes; then
18982 cat >>confdefs.h <<_ACEOF
18983 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18987 case " $LIBOBJS " in
18988 *" $ac_func.$ac_objext "* ) ;;
18989 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18998 case " $LIBOBJS " in
18999 *" getaddrinfo.$ac_objext "* ) ;;
19000 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
19006 # Similarly, use system's getopt_long() only if system provides struct option.
19007 if test x"$ac_cv_type_struct_option" = xyes ; then
19009 for ac_func in getopt_long
19011 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19012 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19013 $as_echo_n "checking for $ac_func... " >&6; }
19014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19015 $as_echo_n "(cached) " >&6
19017 cat >conftest.$ac_ext <<_ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h. */
19023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19025 #define $ac_func innocuous_$ac_func
19027 /* System header to define __stub macros and hopefully few prototypes,
19028 which can conflict with char $ac_func (); below.
19029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19030 <limits.h> exists even on freestanding compilers. */
19033 # include <limits.h>
19035 # include <assert.h>
19040 /* Override any GCC internal prototype to avoid an error.
19041 Use char because int might match the return type of a GCC
19042 builtin and then its argument prototype would still apply. */
19047 /* The GNU C library defines this for functions which it implements
19048 to always fail with ENOSYS. Some functions are actually named
19049 something starting with __ and the normal name is an alias. */
19050 #if defined __stub_$ac_func || defined __stub___$ac_func
19057 return $ac_func ();
19062 rm -f conftest.$ac_objext conftest$ac_exeext
19063 if { (ac_try="$ac_link"
19064 case "(($ac_try" in
19065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19066 *) ac_try_echo=$ac_try;;
19068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19069 $as_echo "$ac_try_echo") >&5
19070 (eval "$ac_link") 2>conftest.er1
19072 grep -v '^ *+' conftest.er1 >conftest.err
19074 cat conftest.err >&5
19075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); } && {
19077 test -z "$ac_c_werror_flag" ||
19078 test ! -s conftest.err
19079 } && test -s conftest$ac_exeext && {
19080 test "$cross_compiling" = yes ||
19081 $as_test_x conftest$ac_exeext
19083 eval "$as_ac_var=yes"
19085 $as_echo "$as_me: failed program was:" >&5
19086 sed 's/^/| /' conftest.$ac_ext >&5
19088 eval "$as_ac_var=no"
19091 rm -rf conftest.dSYM
19092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19093 conftest$ac_exeext conftest.$ac_ext
19095 ac_res=`eval 'as_val=${'$as_ac_var'}
19096 $as_echo "$as_val"'`
19097 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19098 $as_echo "$ac_res" >&6; }
19099 as_val=`eval 'as_val=${'$as_ac_var'}
19100 $as_echo "$as_val"'`
19101 if test "x$as_val" = x""yes; then
19102 cat >>confdefs.h <<_ACEOF
19103 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19107 case " $LIBOBJS " in
19108 *" $ac_func.$ac_objext "* ) ;;
19109 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19118 case " $LIBOBJS " in
19119 *" getopt_long.$ac_objext "* ) ;;
19120 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
19126 # Solaris' getopt() doesn't do what we want for long options, so always use
19127 # our version on that platform.
19128 if test "$PORTNAME" = "solaris"; then
19129 case " $LIBOBJS " in
19130 *" getopt.$ac_objext "* ) ;;
19131 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
19137 # Cygwin's erand48() is broken (always returns zero) in some releases,
19138 # so force use of ours.
19139 if test "$PORTNAME" = "cygwin"; then
19140 case " $LIBOBJS " in
19141 *" erand48.$ac_objext "* ) ;;
19142 *) LIBOBJS="$LIBOBJS erand48.$ac_objext"
19149 if test "$PORTNAME" = "win32"; then
19151 for ac_func in gettimeofday
19153 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19154 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19155 $as_echo_n "checking for $ac_func... " >&6; }
19156 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19157 $as_echo_n "(cached) " >&6
19159 cat >conftest.$ac_ext <<_ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h. */
19165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19167 #define $ac_func innocuous_$ac_func
19169 /* System header to define __stub macros and hopefully few prototypes,
19170 which can conflict with char $ac_func (); below.
19171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19172 <limits.h> exists even on freestanding compilers. */
19175 # include <limits.h>
19177 # include <assert.h>
19182 /* Override any GCC internal prototype to avoid an error.
19183 Use char because int might match the return type of a GCC
19184 builtin and then its argument prototype would still apply. */
19189 /* The GNU C library defines this for functions which it implements
19190 to always fail with ENOSYS. Some functions are actually named
19191 something starting with __ and the normal name is an alias. */
19192 #if defined __stub_$ac_func || defined __stub___$ac_func
19199 return $ac_func ();
19204 rm -f conftest.$ac_objext conftest$ac_exeext
19205 if { (ac_try="$ac_link"
19206 case "(($ac_try" in
19207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208 *) ac_try_echo=$ac_try;;
19210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19211 $as_echo "$ac_try_echo") >&5
19212 (eval "$ac_link") 2>conftest.er1
19214 grep -v '^ *+' conftest.er1 >conftest.err
19216 cat conftest.err >&5
19217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); } && {
19219 test -z "$ac_c_werror_flag" ||
19220 test ! -s conftest.err
19221 } && test -s conftest$ac_exeext && {
19222 test "$cross_compiling" = yes ||
19223 $as_test_x conftest$ac_exeext
19225 eval "$as_ac_var=yes"
19227 $as_echo "$as_me: failed program was:" >&5
19228 sed 's/^/| /' conftest.$ac_ext >&5
19230 eval "$as_ac_var=no"
19233 rm -rf conftest.dSYM
19234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19235 conftest$ac_exeext conftest.$ac_ext
19237 ac_res=`eval 'as_val=${'$as_ac_var'}
19238 $as_echo "$as_val"'`
19239 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19240 $as_echo "$ac_res" >&6; }
19241 as_val=`eval 'as_val=${'$as_ac_var'}
19242 $as_echo "$as_val"'`
19243 if test "x$as_val" = x""yes; then
19244 cat >>confdefs.h <<_ACEOF
19245 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19249 case " $LIBOBJS " in
19250 *" $ac_func.$ac_objext "* ) ;;
19251 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19259 case " $LIBOBJS " in
19260 *" kill.$ac_objext "* ) ;;
19261 *) LIBOBJS="$LIBOBJS kill.$ac_objext"
19265 case " $LIBOBJS " in
19266 *" open.$ac_objext "* ) ;;
19267 *) LIBOBJS="$LIBOBJS open.$ac_objext"
19271 case " $LIBOBJS " in
19272 *" win32env.$ac_objext "* ) ;;
19273 *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
19277 case " $LIBOBJS " in
19278 *" win32error.$ac_objext "* ) ;;
19279 *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
19284 cat >>confdefs.h <<\_ACEOF
19285 #define HAVE_SYMLINK 1
19290 if test "$with_readline" = yes; then
19291 { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
19292 $as_echo_n "checking for rl_completion_append_character... " >&6; }
19293 cat >conftest.$ac_ext <<_ACEOF
19296 cat confdefs.h >>conftest.$ac_ext
19297 cat >>conftest.$ac_ext <<_ACEOF
19298 /* end confdefs.h. */
19300 #ifdef HAVE_READLINE_READLINE_H
19301 # include <readline/readline.h>
19302 #elif defined(HAVE_READLINE_H)
19303 # include <readline.h>
19309 rl_completion_append_character = 'x';
19314 rm -f conftest.$ac_objext conftest$ac_exeext
19315 if { (ac_try="$ac_link"
19316 case "(($ac_try" in
19317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318 *) ac_try_echo=$ac_try;;
19320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19321 $as_echo "$ac_try_echo") >&5
19322 (eval "$ac_link") 2>conftest.er1
19324 grep -v '^ *+' conftest.er1 >conftest.err
19326 cat conftest.err >&5
19327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); } && {
19329 test -z "$ac_c_werror_flag" ||
19330 test ! -s conftest.err
19331 } && test -s conftest$ac_exeext && {
19332 test "$cross_compiling" = yes ||
19333 $as_test_x conftest$ac_exeext
19335 { $as_echo "$as_me:$LINENO: result: yes" >&5
19336 $as_echo "yes" >&6; }
19338 cat >>confdefs.h <<\_ACEOF
19339 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
19343 $as_echo "$as_me: failed program was:" >&5
19344 sed 's/^/| /' conftest.$ac_ext >&5
19346 { $as_echo "$as_me:$LINENO: result: no" >&5
19347 $as_echo "no" >&6; }
19350 rm -rf conftest.dSYM
19351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19352 conftest$ac_exeext conftest.$ac_ext
19355 for ac_func in rl_completion_matches rl_filename_completion_function
19357 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19358 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19359 $as_echo_n "checking for $ac_func... " >&6; }
19360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19361 $as_echo_n "(cached) " >&6
19363 cat >conftest.$ac_ext <<_ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h. */
19369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19371 #define $ac_func innocuous_$ac_func
19373 /* System header to define __stub macros and hopefully few prototypes,
19374 which can conflict with char $ac_func (); below.
19375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19376 <limits.h> exists even on freestanding compilers. */
19379 # include <limits.h>
19381 # include <assert.h>
19386 /* Override any GCC internal prototype to avoid an error.
19387 Use char because int might match the return type of a GCC
19388 builtin and then its argument prototype would still apply. */
19393 /* The GNU C library defines this for functions which it implements
19394 to always fail with ENOSYS. Some functions are actually named
19395 something starting with __ and the normal name is an alias. */
19396 #if defined __stub_$ac_func || defined __stub___$ac_func
19403 return $ac_func ();
19408 rm -f conftest.$ac_objext conftest$ac_exeext
19409 if { (ac_try="$ac_link"
19410 case "(($ac_try" in
19411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412 *) ac_try_echo=$ac_try;;
19414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19415 $as_echo "$ac_try_echo") >&5
19416 (eval "$ac_link") 2>conftest.er1
19418 grep -v '^ *+' conftest.er1 >conftest.err
19420 cat conftest.err >&5
19421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } && {
19423 test -z "$ac_c_werror_flag" ||
19424 test ! -s conftest.err
19425 } && test -s conftest$ac_exeext && {
19426 test "$cross_compiling" = yes ||
19427 $as_test_x conftest$ac_exeext
19429 eval "$as_ac_var=yes"
19431 $as_echo "$as_me: failed program was:" >&5
19432 sed 's/^/| /' conftest.$ac_ext >&5
19434 eval "$as_ac_var=no"
19437 rm -rf conftest.dSYM
19438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19439 conftest$ac_exeext conftest.$ac_ext
19441 ac_res=`eval 'as_val=${'$as_ac_var'}
19442 $as_echo "$as_val"'`
19443 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19444 $as_echo "$ac_res" >&6; }
19445 as_val=`eval 'as_val=${'$as_ac_var'}
19446 $as_echo "$as_val"'`
19447 if test "x$as_val" = x""yes; then
19448 cat >>confdefs.h <<_ACEOF
19449 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19456 for ac_func in replace_history_entry
19458 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19459 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19460 $as_echo_n "checking for $ac_func... " >&6; }
19461 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19462 $as_echo_n "(cached) " >&6
19464 cat >conftest.$ac_ext <<_ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h. */
19470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19472 #define $ac_func innocuous_$ac_func
19474 /* System header to define __stub macros and hopefully few prototypes,
19475 which can conflict with char $ac_func (); below.
19476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19477 <limits.h> exists even on freestanding compilers. */
19480 # include <limits.h>
19482 # include <assert.h>
19487 /* Override any GCC internal prototype to avoid an error.
19488 Use char because int might match the return type of a GCC
19489 builtin and then its argument prototype would still apply. */
19494 /* The GNU C library defines this for functions which it implements
19495 to always fail with ENOSYS. Some functions are actually named
19496 something starting with __ and the normal name is an alias. */
19497 #if defined __stub_$ac_func || defined __stub___$ac_func
19504 return $ac_func ();
19509 rm -f conftest.$ac_objext conftest$ac_exeext
19510 if { (ac_try="$ac_link"
19511 case "(($ac_try" in
19512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19516 $as_echo "$ac_try_echo") >&5
19517 (eval "$ac_link") 2>conftest.er1
19519 grep -v '^ *+' conftest.er1 >conftest.err
19521 cat conftest.err >&5
19522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); } && {
19524 test -z "$ac_c_werror_flag" ||
19525 test ! -s conftest.err
19526 } && test -s conftest$ac_exeext && {
19527 test "$cross_compiling" = yes ||
19528 $as_test_x conftest$ac_exeext
19530 eval "$as_ac_var=yes"
19532 $as_echo "$as_me: failed program was:" >&5
19533 sed 's/^/| /' conftest.$ac_ext >&5
19535 eval "$as_ac_var=no"
19538 rm -rf conftest.dSYM
19539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19540 conftest$ac_exeext conftest.$ac_ext
19542 ac_res=`eval 'as_val=${'$as_ac_var'}
19543 $as_echo "$as_val"'`
19544 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19545 $as_echo "$ac_res" >&6; }
19546 as_val=`eval 'as_val=${'$as_ac_var'}
19547 $as_echo "$as_val"'`
19548 if test "x$as_val" = x""yes; then
19549 cat >>confdefs.h <<_ACEOF
19550 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19559 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
19560 $as_echo_n "checking for sigsetjmp... " >&6; }
19561 cat >conftest.$ac_ext <<_ACEOF
19564 cat confdefs.h >>conftest.$ac_ext
19565 cat >>conftest.$ac_ext <<_ACEOF
19566 /* end confdefs.h. */
19567 #include <setjmp.h>
19571 sigjmp_buf x; sigsetjmp(x, 1);
19576 rm -f conftest.$ac_objext conftest$ac_exeext
19577 if { (ac_try="$ac_link"
19578 case "(($ac_try" in
19579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19580 *) ac_try_echo=$ac_try;;
19582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19583 $as_echo "$ac_try_echo") >&5
19584 (eval "$ac_link") 2>conftest.er1
19586 grep -v '^ *+' conftest.er1 >conftest.err
19588 cat conftest.err >&5
19589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); } && {
19591 test -z "$ac_c_werror_flag" ||
19592 test ! -s conftest.err
19593 } && test -s conftest$ac_exeext && {
19594 test "$cross_compiling" = yes ||
19595 $as_test_x conftest$ac_exeext
19598 cat >>confdefs.h <<\_ACEOF
19599 #define HAVE_SIGSETJMP 1
19602 { $as_echo "$as_me:$LINENO: result: yes" >&5
19603 $as_echo "yes" >&6; }
19605 $as_echo "$as_me: failed program was:" >&5
19606 sed 's/^/| /' conftest.$ac_ext >&5
19608 { $as_echo "$as_me:$LINENO: result: no" >&5
19609 $as_echo "no" >&6; }
19612 rm -rf conftest.dSYM
19613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19614 conftest$ac_exeext conftest.$ac_ext
19616 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
19617 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
19618 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
19619 $as_echo_n "(cached) " >&6
19621 cat >conftest.$ac_ext <<_ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h. */
19627 #include <signal.h>
19628 /* NetBSD declares sys_siglist in unistd.h. */
19629 #ifdef HAVE_UNISTD_H
19630 # include <unistd.h>
19637 #ifndef sys_siglist
19638 (void) sys_siglist;
19645 rm -f conftest.$ac_objext
19646 if { (ac_try="$ac_compile"
19647 case "(($ac_try" in
19648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19649 *) ac_try_echo=$ac_try;;
19651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19652 $as_echo "$ac_try_echo") >&5
19653 (eval "$ac_compile") 2>conftest.er1
19655 grep -v '^ *+' conftest.er1 >conftest.err
19657 cat conftest.err >&5
19658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); } && {
19660 test -z "$ac_c_werror_flag" ||
19661 test ! -s conftest.err
19662 } && test -s conftest.$ac_objext; then
19663 ac_cv_have_decl_sys_siglist=yes
19665 $as_echo "$as_me: failed program was:" >&5
19666 sed 's/^/| /' conftest.$ac_ext >&5
19668 ac_cv_have_decl_sys_siglist=no
19671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19673 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
19674 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
19675 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
19677 cat >>confdefs.h <<_ACEOF
19678 #define HAVE_DECL_SYS_SIGLIST 1
19683 cat >>confdefs.h <<_ACEOF
19684 #define HAVE_DECL_SYS_SIGLIST 0
19693 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
19694 $as_echo_n "checking for syslog... " >&6; }
19695 if test "${ac_cv_func_syslog+set}" = set; then
19696 $as_echo_n "(cached) " >&6
19698 cat >conftest.$ac_ext <<_ACEOF
19701 cat confdefs.h >>conftest.$ac_ext
19702 cat >>conftest.$ac_ext <<_ACEOF
19703 /* end confdefs.h. */
19704 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
19705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19706 #define syslog innocuous_syslog
19708 /* System header to define __stub macros and hopefully few prototypes,
19709 which can conflict with char syslog (); below.
19710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19711 <limits.h> exists even on freestanding compilers. */
19714 # include <limits.h>
19716 # include <assert.h>
19721 /* Override any GCC internal prototype to avoid an error.
19722 Use char because int might match the return type of a GCC
19723 builtin and then its argument prototype would still apply. */
19728 /* The GNU C library defines this for functions which it implements
19729 to always fail with ENOSYS. Some functions are actually named
19730 something starting with __ and the normal name is an alias. */
19731 #if defined __stub_syslog || defined __stub___syslog
19743 rm -f conftest.$ac_objext conftest$ac_exeext
19744 if { (ac_try="$ac_link"
19745 case "(($ac_try" in
19746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19747 *) ac_try_echo=$ac_try;;
19749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19750 $as_echo "$ac_try_echo") >&5
19751 (eval "$ac_link") 2>conftest.er1
19753 grep -v '^ *+' conftest.er1 >conftest.err
19755 cat conftest.err >&5
19756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); } && {
19758 test -z "$ac_c_werror_flag" ||
19759 test ! -s conftest.err
19760 } && test -s conftest$ac_exeext && {
19761 test "$cross_compiling" = yes ||
19762 $as_test_x conftest$ac_exeext
19764 ac_cv_func_syslog=yes
19766 $as_echo "$as_me: failed program was:" >&5
19767 sed 's/^/| /' conftest.$ac_ext >&5
19769 ac_cv_func_syslog=no
19772 rm -rf conftest.dSYM
19773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19774 conftest$ac_exeext conftest.$ac_ext
19776 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
19777 $as_echo "$ac_cv_func_syslog" >&6; }
19778 if test "x$ac_cv_func_syslog" = x""yes; then
19779 if test "${ac_cv_header_syslog_h+set}" = set; then
19780 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
19781 $as_echo_n "checking for syslog.h... " >&6; }
19782 if test "${ac_cv_header_syslog_h+set}" = set; then
19783 $as_echo_n "(cached) " >&6
19785 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
19786 $as_echo "$ac_cv_header_syslog_h" >&6; }
19788 # Is the header compilable?
19789 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
19790 $as_echo_n "checking syslog.h usability... " >&6; }
19791 cat >conftest.$ac_ext <<_ACEOF
19794 cat confdefs.h >>conftest.$ac_ext
19795 cat >>conftest.$ac_ext <<_ACEOF
19796 /* end confdefs.h. */
19797 $ac_includes_default
19798 #include <syslog.h>
19800 rm -f conftest.$ac_objext
19801 if { (ac_try="$ac_compile"
19802 case "(($ac_try" in
19803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804 *) ac_try_echo=$ac_try;;
19806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19807 $as_echo "$ac_try_echo") >&5
19808 (eval "$ac_compile") 2>conftest.er1
19810 grep -v '^ *+' conftest.er1 >conftest.err
19812 cat conftest.err >&5
19813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); } && {
19815 test -z "$ac_c_werror_flag" ||
19816 test ! -s conftest.err
19817 } && test -s conftest.$ac_objext; then
19818 ac_header_compiler=yes
19820 $as_echo "$as_me: failed program was:" >&5
19821 sed 's/^/| /' conftest.$ac_ext >&5
19823 ac_header_compiler=no
19826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19827 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19828 $as_echo "$ac_header_compiler" >&6; }
19830 # Is the header present?
19831 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
19832 $as_echo_n "checking syslog.h presence... " >&6; }
19833 cat >conftest.$ac_ext <<_ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h. */
19839 #include <syslog.h>
19841 if { (ac_try="$ac_cpp conftest.$ac_ext"
19842 case "(($ac_try" in
19843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19844 *) ac_try_echo=$ac_try;;
19846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19847 $as_echo "$ac_try_echo") >&5
19848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19850 grep -v '^ *+' conftest.er1 >conftest.err
19852 cat conftest.err >&5
19853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); } >/dev/null && {
19855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19856 test ! -s conftest.err
19858 ac_header_preproc=yes
19860 $as_echo "$as_me: failed program was:" >&5
19861 sed 's/^/| /' conftest.$ac_ext >&5
19863 ac_header_preproc=no
19866 rm -f conftest.err conftest.$ac_ext
19867 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19868 $as_echo "$ac_header_preproc" >&6; }
19870 # So? What about this header?
19871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19873 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
19874 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19875 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
19876 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
19877 ac_header_preproc=yes
19880 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
19881 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
19882 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: check for missing prerequisite headers?" >&5
19883 $as_echo "$as_me: WARNING: syslog.h: check for missing prerequisite headers?" >&2;}
19884 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
19885 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
19886 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&5
19887 $as_echo "$as_me: WARNING: syslog.h: section \"Present But Cannot Be Compiled\"" >&2;}
19888 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
19889 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
19890 { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
19891 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
19893 ## ---------------------------------------- ##
19894 ## Report this to pgsql-bugs@postgresql.org ##
19895 ## ---------------------------------------- ##
19897 ) | sed "s/^/$as_me: WARNING: /" >&2
19900 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
19901 $as_echo_n "checking for syslog.h... " >&6; }
19902 if test "${ac_cv_header_syslog_h+set}" = set; then
19903 $as_echo_n "(cached) " >&6
19905 ac_cv_header_syslog_h=$ac_header_preproc
19907 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
19908 $as_echo "$ac_cv_header_syslog_h" >&6; }
19911 if test "x$ac_cv_header_syslog_h" = x""yes; then
19913 cat >>confdefs.h <<\_ACEOF
19914 #define HAVE_SYSLOG 1
19923 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
19924 $as_echo_n "checking for opterr... " >&6; }
19925 if test "${pgac_cv_var_int_opterr+set}" = set; then
19926 $as_echo_n "(cached) " >&6
19928 cat >conftest.$ac_ext <<_ACEOF
19931 cat confdefs.h >>conftest.$ac_ext
19932 cat >>conftest.$ac_ext <<_ACEOF
19933 /* end confdefs.h. */
19934 #include <unistd.h>
19938 extern int opterr; opterr = 1;
19943 rm -f conftest.$ac_objext conftest$ac_exeext
19944 if { (ac_try="$ac_link"
19945 case "(($ac_try" in
19946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947 *) ac_try_echo=$ac_try;;
19949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19950 $as_echo "$ac_try_echo") >&5
19951 (eval "$ac_link") 2>conftest.er1
19953 grep -v '^ *+' conftest.er1 >conftest.err
19955 cat conftest.err >&5
19956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); } && {
19958 test -z "$ac_c_werror_flag" ||
19959 test ! -s conftest.err
19960 } && test -s conftest$ac_exeext && {
19961 test "$cross_compiling" = yes ||
19962 $as_test_x conftest$ac_exeext
19964 pgac_cv_var_int_opterr=yes
19966 $as_echo "$as_me: failed program was:" >&5
19967 sed 's/^/| /' conftest.$ac_ext >&5
19969 pgac_cv_var_int_opterr=no
19972 rm -rf conftest.dSYM
19973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19974 conftest$ac_exeext conftest.$ac_ext
19976 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
19977 $as_echo "$pgac_cv_var_int_opterr" >&6; }
19978 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
19980 cat >>confdefs.h <<\_ACEOF
19981 #define HAVE_INT_OPTERR 1
19986 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
19987 $as_echo_n "checking for optreset... " >&6; }
19988 if test "${pgac_cv_var_int_optreset+set}" = set; then
19989 $as_echo_n "(cached) " >&6
19991 cat >conftest.$ac_ext <<_ACEOF
19994 cat confdefs.h >>conftest.$ac_ext
19995 cat >>conftest.$ac_ext <<_ACEOF
19996 /* end confdefs.h. */
19997 #include <unistd.h>
20001 extern int optreset; optreset = 1;
20006 rm -f conftest.$ac_objext conftest$ac_exeext
20007 if { (ac_try="$ac_link"
20008 case "(($ac_try" in
20009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20010 *) ac_try_echo=$ac_try;;
20012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20013 $as_echo "$ac_try_echo") >&5
20014 (eval "$ac_link") 2>conftest.er1
20016 grep -v '^ *+' conftest.er1 >conftest.err
20018 cat conftest.err >&5
20019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); } && {
20021 test -z "$ac_c_werror_flag" ||
20022 test ! -s conftest.err
20023 } && test -s conftest$ac_exeext && {
20024 test "$cross_compiling" = yes ||
20025 $as_test_x conftest$ac_exeext
20027 pgac_cv_var_int_optreset=yes
20029 $as_echo "$as_me: failed program was:" >&5
20030 sed 's/^/| /' conftest.$ac_ext >&5
20032 pgac_cv_var_int_optreset=no
20035 rm -rf conftest.dSYM
20036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20037 conftest$ac_exeext conftest.$ac_ext
20039 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
20040 $as_echo "$pgac_cv_var_int_optreset" >&6; }
20041 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
20043 cat >>confdefs.h <<\_ACEOF
20044 #define HAVE_INT_OPTRESET 1
20051 for ac_func in strtoll strtoq
20053 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20054 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20055 $as_echo_n "checking for $ac_func... " >&6; }
20056 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20057 $as_echo_n "(cached) " >&6
20059 cat >conftest.$ac_ext <<_ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h. */
20065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20067 #define $ac_func innocuous_$ac_func
20069 /* System header to define __stub macros and hopefully few prototypes,
20070 which can conflict with char $ac_func (); below.
20071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20072 <limits.h> exists even on freestanding compilers. */
20075 # include <limits.h>
20077 # include <assert.h>
20082 /* Override any GCC internal prototype to avoid an error.
20083 Use char because int might match the return type of a GCC
20084 builtin and then its argument prototype would still apply. */
20089 /* The GNU C library defines this for functions which it implements
20090 to always fail with ENOSYS. Some functions are actually named
20091 something starting with __ and the normal name is an alias. */
20092 #if defined __stub_$ac_func || defined __stub___$ac_func
20099 return $ac_func ();
20104 rm -f conftest.$ac_objext conftest$ac_exeext
20105 if { (ac_try="$ac_link"
20106 case "(($ac_try" in
20107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108 *) ac_try_echo=$ac_try;;
20110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20111 $as_echo "$ac_try_echo") >&5
20112 (eval "$ac_link") 2>conftest.er1
20114 grep -v '^ *+' conftest.er1 >conftest.err
20116 cat conftest.err >&5
20117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } && {
20119 test -z "$ac_c_werror_flag" ||
20120 test ! -s conftest.err
20121 } && test -s conftest$ac_exeext && {
20122 test "$cross_compiling" = yes ||
20123 $as_test_x conftest$ac_exeext
20125 eval "$as_ac_var=yes"
20127 $as_echo "$as_me: failed program was:" >&5
20128 sed 's/^/| /' conftest.$ac_ext >&5
20130 eval "$as_ac_var=no"
20133 rm -rf conftest.dSYM
20134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20135 conftest$ac_exeext conftest.$ac_ext
20137 ac_res=`eval 'as_val=${'$as_ac_var'}
20138 $as_echo "$as_val"'`
20139 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20140 $as_echo "$ac_res" >&6; }
20141 as_val=`eval 'as_val=${'$as_ac_var'}
20142 $as_echo "$as_val"'`
20143 if test "x$as_val" = x""yes; then
20144 cat >>confdefs.h <<_ACEOF
20145 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20153 for ac_func in strtoull strtouq
20155 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20156 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20157 $as_echo_n "checking for $ac_func... " >&6; }
20158 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20159 $as_echo_n "(cached) " >&6
20161 cat >conftest.$ac_ext <<_ACEOF
20164 cat confdefs.h >>conftest.$ac_ext
20165 cat >>conftest.$ac_ext <<_ACEOF
20166 /* end confdefs.h. */
20167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20169 #define $ac_func innocuous_$ac_func
20171 /* System header to define __stub macros and hopefully few prototypes,
20172 which can conflict with char $ac_func (); below.
20173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20174 <limits.h> exists even on freestanding compilers. */
20177 # include <limits.h>
20179 # include <assert.h>
20184 /* Override any GCC internal prototype to avoid an error.
20185 Use char because int might match the return type of a GCC
20186 builtin and then its argument prototype would still apply. */
20191 /* The GNU C library defines this for functions which it implements
20192 to always fail with ENOSYS. Some functions are actually named
20193 something starting with __ and the normal name is an alias. */
20194 #if defined __stub_$ac_func || defined __stub___$ac_func
20201 return $ac_func ();
20206 rm -f conftest.$ac_objext conftest$ac_exeext
20207 if { (ac_try="$ac_link"
20208 case "(($ac_try" in
20209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210 *) ac_try_echo=$ac_try;;
20212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20213 $as_echo "$ac_try_echo") >&5
20214 (eval "$ac_link") 2>conftest.er1
20216 grep -v '^ *+' conftest.er1 >conftest.err
20218 cat conftest.err >&5
20219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); } && {
20221 test -z "$ac_c_werror_flag" ||
20222 test ! -s conftest.err
20223 } && test -s conftest$ac_exeext && {
20224 test "$cross_compiling" = yes ||
20225 $as_test_x conftest$ac_exeext
20227 eval "$as_ac_var=yes"
20229 $as_echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20232 eval "$as_ac_var=no"
20235 rm -rf conftest.dSYM
20236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20237 conftest$ac_exeext conftest.$ac_ext
20239 ac_res=`eval 'as_val=${'$as_ac_var'}
20240 $as_echo "$as_val"'`
20241 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20242 $as_echo "$ac_res" >&6; }
20243 as_val=`eval 'as_val=${'$as_ac_var'}
20244 $as_echo "$as_val"'`
20245 if test "x$as_val" = x""yes; then
20246 cat >>confdefs.h <<_ACEOF
20247 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20254 # Check for one of atexit() or on_exit()
20256 for ac_func in atexit
20258 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20259 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20260 $as_echo_n "checking for $ac_func... " >&6; }
20261 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20262 $as_echo_n "(cached) " >&6
20264 cat >conftest.$ac_ext <<_ACEOF
20267 cat confdefs.h >>conftest.$ac_ext
20268 cat >>conftest.$ac_ext <<_ACEOF
20269 /* end confdefs.h. */
20270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20272 #define $ac_func innocuous_$ac_func
20274 /* System header to define __stub macros and hopefully few prototypes,
20275 which can conflict with char $ac_func (); below.
20276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20277 <limits.h> exists even on freestanding compilers. */
20280 # include <limits.h>
20282 # include <assert.h>
20287 /* Override any GCC internal prototype to avoid an error.
20288 Use char because int might match the return type of a GCC
20289 builtin and then its argument prototype would still apply. */
20294 /* The GNU C library defines this for functions which it implements
20295 to always fail with ENOSYS. Some functions are actually named
20296 something starting with __ and the normal name is an alias. */
20297 #if defined __stub_$ac_func || defined __stub___$ac_func
20304 return $ac_func ();
20309 rm -f conftest.$ac_objext conftest$ac_exeext
20310 if { (ac_try="$ac_link"
20311 case "(($ac_try" in
20312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20313 *) ac_try_echo=$ac_try;;
20315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20316 $as_echo "$ac_try_echo") >&5
20317 (eval "$ac_link") 2>conftest.er1
20319 grep -v '^ *+' conftest.er1 >conftest.err
20321 cat conftest.err >&5
20322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); } && {
20324 test -z "$ac_c_werror_flag" ||
20325 test ! -s conftest.err
20326 } && test -s conftest$ac_exeext && {
20327 test "$cross_compiling" = yes ||
20328 $as_test_x conftest$ac_exeext
20330 eval "$as_ac_var=yes"
20332 $as_echo "$as_me: failed program was:" >&5
20333 sed 's/^/| /' conftest.$ac_ext >&5
20335 eval "$as_ac_var=no"
20338 rm -rf conftest.dSYM
20339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20340 conftest$ac_exeext conftest.$ac_ext
20342 ac_res=`eval 'as_val=${'$as_ac_var'}
20343 $as_echo "$as_val"'`
20344 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20345 $as_echo "$ac_res" >&6; }
20346 as_val=`eval 'as_val=${'$as_ac_var'}
20347 $as_echo "$as_val"'`
20348 if test "x$as_val" = x""yes; then
20349 cat >>confdefs.h <<_ACEOF
20350 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20355 for ac_func in on_exit
20357 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20358 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20359 $as_echo_n "checking for $ac_func... " >&6; }
20360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20361 $as_echo_n "(cached) " >&6
20363 cat >conftest.$ac_ext <<_ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h. */
20369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20371 #define $ac_func innocuous_$ac_func
20373 /* System header to define __stub macros and hopefully few prototypes,
20374 which can conflict with char $ac_func (); below.
20375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20376 <limits.h> exists even on freestanding compilers. */
20379 # include <limits.h>
20381 # include <assert.h>
20386 /* Override any GCC internal prototype to avoid an error.
20387 Use char because int might match the return type of a GCC
20388 builtin and then its argument prototype would still apply. */
20393 /* The GNU C library defines this for functions which it implements
20394 to always fail with ENOSYS. Some functions are actually named
20395 something starting with __ and the normal name is an alias. */
20396 #if defined __stub_$ac_func || defined __stub___$ac_func
20403 return $ac_func ();
20408 rm -f conftest.$ac_objext conftest$ac_exeext
20409 if { (ac_try="$ac_link"
20410 case "(($ac_try" in
20411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412 *) ac_try_echo=$ac_try;;
20414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20415 $as_echo "$ac_try_echo") >&5
20416 (eval "$ac_link") 2>conftest.er1
20418 grep -v '^ *+' conftest.er1 >conftest.err
20420 cat conftest.err >&5
20421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); } && {
20423 test -z "$ac_c_werror_flag" ||
20424 test ! -s conftest.err
20425 } && test -s conftest$ac_exeext && {
20426 test "$cross_compiling" = yes ||
20427 $as_test_x conftest$ac_exeext
20429 eval "$as_ac_var=yes"
20431 $as_echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20434 eval "$as_ac_var=no"
20437 rm -rf conftest.dSYM
20438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20439 conftest$ac_exeext conftest.$ac_ext
20441 ac_res=`eval 'as_val=${'$as_ac_var'}
20442 $as_echo "$as_val"'`
20443 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20444 $as_echo "$ac_res" >&6; }
20445 as_val=`eval 'as_val=${'$as_ac_var'}
20446 $as_echo "$as_val"'`
20447 if test "x$as_val" = x""yes; then
20448 cat >>confdefs.h <<_ACEOF
20449 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20453 { { $as_echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
20454 $as_echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
20455 { (exit 1); exit 1; }; }
20464 for ac_func in fseeko
20466 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20467 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20468 $as_echo_n "checking for $ac_func... " >&6; }
20469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20470 $as_echo_n "(cached) " >&6
20472 cat >conftest.$ac_ext <<_ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h. */
20478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20480 #define $ac_func innocuous_$ac_func
20482 /* System header to define __stub macros and hopefully few prototypes,
20483 which can conflict with char $ac_func (); below.
20484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20485 <limits.h> exists even on freestanding compilers. */
20488 # include <limits.h>
20490 # include <assert.h>
20495 /* Override any GCC internal prototype to avoid an error.
20496 Use char because int might match the return type of a GCC
20497 builtin and then its argument prototype would still apply. */
20502 /* The GNU C library defines this for functions which it implements
20503 to always fail with ENOSYS. Some functions are actually named
20504 something starting with __ and the normal name is an alias. */
20505 #if defined __stub_$ac_func || defined __stub___$ac_func
20512 return $ac_func ();
20517 rm -f conftest.$ac_objext conftest$ac_exeext
20518 if { (ac_try="$ac_link"
20519 case "(($ac_try" in
20520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20521 *) ac_try_echo=$ac_try;;
20523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20524 $as_echo "$ac_try_echo") >&5
20525 (eval "$ac_link") 2>conftest.er1
20527 grep -v '^ *+' conftest.er1 >conftest.err
20529 cat conftest.err >&5
20530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); } && {
20532 test -z "$ac_c_werror_flag" ||
20533 test ! -s conftest.err
20534 } && test -s conftest$ac_exeext && {
20535 test "$cross_compiling" = yes ||
20536 $as_test_x conftest$ac_exeext
20538 eval "$as_ac_var=yes"
20540 $as_echo "$as_me: failed program was:" >&5
20541 sed 's/^/| /' conftest.$ac_ext >&5
20543 eval "$as_ac_var=no"
20546 rm -rf conftest.dSYM
20547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20548 conftest$ac_exeext conftest.$ac_ext
20550 ac_res=`eval 'as_val=${'$as_ac_var'}
20551 $as_echo "$as_val"'`
20552 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20553 $as_echo "$ac_res" >&6; }
20554 as_val=`eval 'as_val=${'$as_ac_var'}
20555 $as_echo "$as_val"'`
20556 if test "x$as_val" = x""yes; then
20557 cat >>confdefs.h <<_ACEOF
20558 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20562 case " $LIBOBJS " in
20563 *" $ac_func.$ac_objext "* ) ;;
20564 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20573 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
20574 # Mingw uses macros to access Win32 API calls
20575 bsdi*|netbsd*|mingw*)
20577 cat >>confdefs.h <<\_ACEOF
20578 #define HAVE_FSEEKO 1
20581 ac_cv_func_fseeko=yes;;
20583 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20584 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20585 if test "${ac_cv_sys_largefile_source+set}" = set; then
20586 $as_echo_n "(cached) " >&6
20589 cat >conftest.$ac_ext <<_ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h. */
20595 #include <sys/types.h> /* for off_t */
20600 int (*fp) (FILE *, off_t, int) = fseeko;
20601 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20606 rm -f conftest.$ac_objext conftest$ac_exeext
20607 if { (ac_try="$ac_link"
20608 case "(($ac_try" in
20609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20610 *) ac_try_echo=$ac_try;;
20612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20613 $as_echo "$ac_try_echo") >&5
20614 (eval "$ac_link") 2>conftest.er1
20616 grep -v '^ *+' conftest.er1 >conftest.err
20618 cat conftest.err >&5
20619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); } && {
20621 test -z "$ac_c_werror_flag" ||
20622 test ! -s conftest.err
20623 } && test -s conftest$ac_exeext && {
20624 test "$cross_compiling" = yes ||
20625 $as_test_x conftest$ac_exeext
20627 ac_cv_sys_largefile_source=no; break
20629 $as_echo "$as_me: failed program was:" >&5
20630 sed 's/^/| /' conftest.$ac_ext >&5
20635 rm -rf conftest.dSYM
20636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20637 conftest$ac_exeext conftest.$ac_ext
20638 cat >conftest.$ac_ext <<_ACEOF
20641 cat confdefs.h >>conftest.$ac_ext
20642 cat >>conftest.$ac_ext <<_ACEOF
20643 /* end confdefs.h. */
20644 #define _LARGEFILE_SOURCE 1
20645 #include <sys/types.h> /* for off_t */
20650 int (*fp) (FILE *, off_t, int) = fseeko;
20651 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20656 rm -f conftest.$ac_objext conftest$ac_exeext
20657 if { (ac_try="$ac_link"
20658 case "(($ac_try" in
20659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660 *) ac_try_echo=$ac_try;;
20662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20663 $as_echo "$ac_try_echo") >&5
20664 (eval "$ac_link") 2>conftest.er1
20666 grep -v '^ *+' conftest.er1 >conftest.err
20668 cat conftest.err >&5
20669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); } && {
20671 test -z "$ac_c_werror_flag" ||
20672 test ! -s conftest.err
20673 } && test -s conftest$ac_exeext && {
20674 test "$cross_compiling" = yes ||
20675 $as_test_x conftest$ac_exeext
20677 ac_cv_sys_largefile_source=1; break
20679 $as_echo "$as_me: failed program was:" >&5
20680 sed 's/^/| /' conftest.$ac_ext >&5
20685 rm -rf conftest.dSYM
20686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20687 conftest$ac_exeext conftest.$ac_ext
20688 ac_cv_sys_largefile_source=unknown
20692 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20693 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20694 case $ac_cv_sys_largefile_source in #(
20697 cat >>confdefs.h <<_ACEOF
20698 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20704 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20705 # in glibc 2.1.3, but that breaks too many other things.
20706 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20707 if test $ac_cv_sys_largefile_source != unknown; then
20709 cat >>confdefs.h <<\_ACEOF
20710 #define HAVE_FSEEKO 1
20721 # For each platform, we need to know about any special compile and link
20722 # libraries, and whether the normal C function names are thread-safe.
20723 # See the comment at the top of src/port/thread.c for more information.
20724 # WIN32 doesn't need the pthread tests; it always uses threads
20725 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
20730 ac_cpp='$CPP $CPPFLAGS'
20731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20737 # We used to check for pthread.h first, but this fails if pthread.h
20738 # requires special compiler flags (e.g. on True64 or Sequent).
20739 # It gets checked for in the link test anyway.
20741 # First of all, check if the user has set any of the PTHREAD_LIBS,
20742 # etcetera environment variables, and if threads linking works using
20744 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
20745 save_CFLAGS="$CFLAGS"
20746 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20748 LIBS="$PTHREAD_LIBS $LIBS"
20749 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
20750 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
20751 cat >conftest.$ac_ext <<_ACEOF
20754 cat confdefs.h >>conftest.$ac_ext
20755 cat >>conftest.$ac_ext <<_ACEOF
20756 /* end confdefs.h. */
20758 /* Override any GCC internal prototype to avoid an error.
20759 Use char because int might match the return type of a GCC
20760 builtin and then its argument prototype would still apply. */
20764 char pthread_join ();
20768 return pthread_join ();
20773 rm -f conftest.$ac_objext conftest$ac_exeext
20774 if { (ac_try="$ac_link"
20775 case "(($ac_try" in
20776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777 *) ac_try_echo=$ac_try;;
20779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20780 $as_echo "$ac_try_echo") >&5
20781 (eval "$ac_link") 2>conftest.er1
20783 grep -v '^ *+' conftest.er1 >conftest.err
20785 cat conftest.err >&5
20786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } && {
20788 test -z "$ac_c_werror_flag" ||
20789 test ! -s conftest.err
20790 } && test -s conftest$ac_exeext && {
20791 test "$cross_compiling" = yes ||
20792 $as_test_x conftest$ac_exeext
20796 $as_echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.$ac_ext >&5
20802 rm -rf conftest.dSYM
20803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20804 conftest$ac_exeext conftest.$ac_ext
20805 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
20806 $as_echo "$acx_pthread_ok" >&6; }
20807 if test x"$acx_pthread_ok" = xno; then
20812 CFLAGS="$save_CFLAGS"
20815 # We must check for the threads library under a number of different
20816 # names; the ordering is very important because some systems
20817 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
20818 # libraries is broken (non-POSIX).
20820 # Create a list of thread flags to try. Items starting with a "-" are
20821 # C compiler flags, and other items are library names, except for "none"
20822 # which indicates that we try without any flags at all, and "pthread-config"
20823 # which is a program returning the flags for the Pth emulation library.
20825 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
20827 # The ordering *is* (sometimes) important. Some notes on the
20828 # individual items follow:
20830 # pthreads: AIX (must check this before -lpthread)
20831 # none: in case threads are in libc; should be tried before -Kthread and
20832 # other compiler flags to prevent continual compiler warnings
20833 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20834 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20835 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20836 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
20837 # -pthreads: Solaris/gcc
20838 # -mthreads: Mingw32/gcc, Lynx/gcc
20839 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20840 # doesn't hurt to check since this sometimes defines pthreads too;
20841 # also defines -D_REENTRANT)
20842 # pthread: Linux, etcetera
20843 # --thread-safe: KAI C++
20844 # pthread-config: use pthread-config program (for GNU Pth library)
20846 case "${host_cpu}-${host_os}" in
20849 # On Solaris (at least, for some versions), libc contains stubbed
20850 # (non-functional) versions of the pthreads routines, so link-based
20851 # tests will erroneously succeed. (We need to link with -pthread or
20852 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
20853 # a function called by this macro, so we could check for that, but
20854 # who knows whether they'll stub that too in a future libc.) So,
20855 # we'll just look for -pthreads and -lpthread first:
20857 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
20861 if test x"$acx_pthread_ok" = xno; then
20862 for flag in $acx_pthread_flags; do
20864 tryPTHREAD_CFLAGS=""
20868 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
20869 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
20873 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
20874 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
20875 tryPTHREAD_CFLAGS="$flag"
20879 # skip this if we already have flags defined, for PostgreSQL
20880 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
20881 # Extract the first word of "pthread-config", so it can be a program name with args.
20882 set dummy pthread-config; ac_word=$2
20883 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20884 $as_echo_n "checking for $ac_word... " >&6; }
20885 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
20886 $as_echo_n "(cached) " >&6
20888 if test -n "$acx_pthread_config"; then
20889 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
20891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20892 for as_dir in $PATH
20895 test -z "$as_dir" && as_dir=.
20896 for ac_exec_ext in '' $ac_executable_extensions; do
20897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20898 ac_cv_prog_acx_pthread_config="yes"
20899 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20906 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
20909 acx_pthread_config=$ac_cv_prog_acx_pthread_config
20910 if test -n "$acx_pthread_config"; then
20911 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
20912 $as_echo "$acx_pthread_config" >&6; }
20914 { $as_echo "$as_me:$LINENO: result: no" >&5
20915 $as_echo "no" >&6; }
20919 if test x"$acx_pthread_config" = xno; then continue; fi
20920 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
20921 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20925 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
20926 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
20927 tryPTHREAD_LIBS="-l$flag"
20932 save_CFLAGS="$CFLAGS"
20933 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
20934 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
20936 # Check for various functions. We must include pthread.h,
20937 # since some functions may be macros. (On the Sequent, we
20938 # need a special flag -Kthread to make this header compile.)
20939 # We check for pthread_join because it is in -lpthread on IRIX
20940 # while pthread_create is in libc. We check for pthread_attr_init
20941 # due to DEC craziness with -lpthreads. We check for
20942 # pthread_cleanup_push because it is one of the few pthread
20943 # functions on Solaris that doesn't have a non-functional libc stub.
20944 # We try pthread_create on general principles.
20945 cat >conftest.$ac_ext <<_ACEOF
20948 cat confdefs.h >>conftest.$ac_ext
20949 cat >>conftest.$ac_ext <<_ACEOF
20950 /* end confdefs.h. */
20951 #include <pthread.h>
20955 pthread_t th; pthread_join(th, 0);
20956 pthread_attr_init(0); pthread_cleanup_push(0, 0);
20957 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
20962 rm -f conftest.$ac_objext conftest$ac_exeext
20963 if { (ac_try="$ac_link"
20964 case "(($ac_try" in
20965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20966 *) ac_try_echo=$ac_try;;
20968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20969 $as_echo "$ac_try_echo") >&5
20970 (eval "$ac_link") 2>conftest.er1
20972 grep -v '^ *+' conftest.er1 >conftest.err
20974 cat conftest.err >&5
20975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976 (exit $ac_status); } && {
20977 test -z "$ac_c_werror_flag" ||
20978 test ! -s conftest.err
20979 } && test -s conftest$ac_exeext && {
20980 test "$cross_compiling" = yes ||
20981 $as_test_x conftest$ac_exeext
20985 $as_echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.$ac_ext >&5
20991 rm -rf conftest.dSYM
20992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20993 conftest$ac_exeext conftest.$ac_ext
20995 if test "x$acx_pthread_ok" = xyes; then
20996 # Don't use options that are ignored by the compiler.
20997 # We find them by checking stderror.
20998 cat >conftest.$ac_ext <<_ACEOF
21000 main (int argc, char **argv)
21007 rm -f conftest.$ac_objext conftest$ac_exeext
21008 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
21009 # we continue with more flags because Linux needs -lpthread
21010 # for libpq builds on PostgreSQL. The test above only
21011 # tests for building binaries, not shared libraries.
21012 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
21013 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
21014 else acx_pthread_ok=no
21019 CFLAGS="$save_CFLAGS"
21021 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
21022 $as_echo "$acx_pthread_ok" >&6; }
21026 # Various other checks:
21027 if test "x$acx_pthread_ok" = xyes; then
21029 LIBS="$PTHREAD_LIBS $LIBS"
21030 save_CFLAGS="$CFLAGS"
21031 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21033 # Detect AIX lossage: threads are created detached by default
21034 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
21035 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
21036 $as_echo_n "checking for joinable pthread attribute... " >&6; }
21037 cat >conftest.$ac_ext <<_ACEOF
21040 cat confdefs.h >>conftest.$ac_ext
21041 cat >>conftest.$ac_ext <<_ACEOF
21042 /* end confdefs.h. */
21043 #include <pthread.h>
21047 int attr=PTHREAD_CREATE_JOINABLE;
21052 rm -f conftest.$ac_objext conftest$ac_exeext
21053 if { (ac_try="$ac_link"
21054 case "(($ac_try" in
21055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056 *) ac_try_echo=$ac_try;;
21058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21059 $as_echo "$ac_try_echo") >&5
21060 (eval "$ac_link") 2>conftest.er1
21062 grep -v '^ *+' conftest.er1 >conftest.err
21064 cat conftest.err >&5
21065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); } && {
21067 test -z "$ac_c_werror_flag" ||
21068 test ! -s conftest.err
21069 } && test -s conftest$ac_exeext && {
21070 test "$cross_compiling" = yes ||
21071 $as_test_x conftest$ac_exeext
21073 ok=PTHREAD_CREATE_JOINABLE
21075 $as_echo "$as_me: failed program was:" >&5
21076 sed 's/^/| /' conftest.$ac_ext >&5
21081 rm -rf conftest.dSYM
21082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21083 conftest$ac_exeext conftest.$ac_ext
21084 if test x"$ok" = xunknown; then
21085 cat >conftest.$ac_ext <<_ACEOF
21088 cat confdefs.h >>conftest.$ac_ext
21089 cat >>conftest.$ac_ext <<_ACEOF
21090 /* end confdefs.h. */
21091 #include <pthread.h>
21095 int attr=PTHREAD_CREATE_UNDETACHED;
21100 rm -f conftest.$ac_objext conftest$ac_exeext
21101 if { (ac_try="$ac_link"
21102 case "(($ac_try" in
21103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21104 *) ac_try_echo=$ac_try;;
21106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21107 $as_echo "$ac_try_echo") >&5
21108 (eval "$ac_link") 2>conftest.er1
21110 grep -v '^ *+' conftest.er1 >conftest.err
21112 cat conftest.err >&5
21113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); } && {
21115 test -z "$ac_c_werror_flag" ||
21116 test ! -s conftest.err
21117 } && test -s conftest$ac_exeext && {
21118 test "$cross_compiling" = yes ||
21119 $as_test_x conftest$ac_exeext
21121 ok=PTHREAD_CREATE_UNDETACHED
21123 $as_echo "$as_me: failed program was:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21129 rm -rf conftest.dSYM
21130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21131 conftest$ac_exeext conftest.$ac_ext
21133 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
21135 cat >>confdefs.h <<\_ACEOF
21136 #define PTHREAD_CREATE_JOINABLE $ok
21140 { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
21141 $as_echo "${ok}" >&6; }
21142 if test x"$ok" = xunknown; then
21143 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
21144 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
21147 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
21148 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
21150 # We always add these in PostgreSQL
21151 # case "${host_cpu}-${host_os}" in
21152 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
21153 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
21155 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
21156 $as_echo "${flag}" >&6; }
21157 if test "x$flag" != xno; then
21158 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
21162 CFLAGS="$save_CFLAGS"
21164 # Supporting cc_r would require a special CC in all places that
21165 # use libpq, and that is ugly, so we don't do it. Users can still
21166 # define their compiler as cc_r to do thread builds of everything.
21167 # More AIX lossage: must compile with cc_r
21168 # Extract the first word of "cc_r", so it can be a program name with args.
21169 set dummy cc_r; ac_word=$2
21170 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21171 $as_echo_n "checking for $ac_word... " >&6; }
21172 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
21173 $as_echo_n "(cached) " >&6
21175 if test -n "$PTHREAD_CC"; then
21176 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
21178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21179 for as_dir in $PATH
21182 test -z "$as_dir" && as_dir=.
21183 for ac_exec_ext in '' $ac_executable_extensions; do
21184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21185 ac_cv_prog_PTHREAD_CC="cc_r"
21186 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21193 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
21196 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
21197 if test -n "$PTHREAD_CC"; then
21198 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
21199 $as_echo "$PTHREAD_CC" >&6; }
21201 { $as_echo "$as_me:$LINENO: result: no" >&5
21202 $as_echo "no" >&6; }
21214 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
21215 if test x"$acx_pthread_ok" = xyes; then
21217 cat >>confdefs.h <<\_ACEOF
21218 #define HAVE_PTHREAD 1
21227 ac_cpp='$CPP $CPPFLAGS'
21228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21234 # Some platforms use these, so just define them. They can't hurt if they
21235 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
21236 # enables 5-arg getpwuid_r, among other things.
21237 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
21240 # At this point, we don't want to muck with the compiler name for threading.
21241 # Let's see who fails, perhaps AIX. 2004-04-23
21242 if test "$PTHREAD_CC" != "$CC"; then
21243 { { $as_echo "$as_me:$LINENO: error:
21244 PostgreSQL does not support platforms that require a special compiler
21245 for thread safety." >&5
21246 $as_echo "$as_me: error:
21247 PostgreSQL does not support platforms that require a special compiler
21248 for thread safety." >&2;}
21249 { (exit 1); exit 1; }; }
21252 if test "$THREAD_SUPPORT" = no; then
21253 { { $as_echo "$as_me:$LINENO: error: cannot enable threads on this platform
21254 This platform is known to not support thread-safe programs. For details,
21255 compile and run src/bin/pg_thread_test." >&5
21256 $as_echo "$as_me: error: cannot enable threads on this platform
21257 This platform is known to not support thread-safe programs. For details,
21258 compile and run src/bin/pg_thread_test." >&2;}
21259 { (exit 1); exit 1; }; }
21262 # Check for *_r functions
21265 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21266 LIBS="$LIBS $PTHREAD_LIBS"
21268 if test "$PORTNAME" != "win32"; then
21269 if test "${ac_cv_header_pthread_h+set}" = set; then
21270 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
21271 $as_echo_n "checking for pthread.h... " >&6; }
21272 if test "${ac_cv_header_pthread_h+set}" = set; then
21273 $as_echo_n "(cached) " >&6
21275 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21276 $as_echo "$ac_cv_header_pthread_h" >&6; }
21278 # Is the header compilable?
21279 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
21280 $as_echo_n "checking pthread.h usability... " >&6; }
21281 cat >conftest.$ac_ext <<_ACEOF
21284 cat confdefs.h >>conftest.$ac_ext
21285 cat >>conftest.$ac_ext <<_ACEOF
21286 /* end confdefs.h. */
21287 $ac_includes_default
21288 #include <pthread.h>
21290 rm -f conftest.$ac_objext
21291 if { (ac_try="$ac_compile"
21292 case "(($ac_try" in
21293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21294 *) ac_try_echo=$ac_try;;
21296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21297 $as_echo "$ac_try_echo") >&5
21298 (eval "$ac_compile") 2>conftest.er1
21300 grep -v '^ *+' conftest.er1 >conftest.err
21302 cat conftest.err >&5
21303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); } && {
21305 test -z "$ac_c_werror_flag" ||
21306 test ! -s conftest.err
21307 } && test -s conftest.$ac_objext; then
21308 ac_header_compiler=yes
21310 $as_echo "$as_me: failed program was:" >&5
21311 sed 's/^/| /' conftest.$ac_ext >&5
21313 ac_header_compiler=no
21316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21317 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21318 $as_echo "$ac_header_compiler" >&6; }
21320 # Is the header present?
21321 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
21322 $as_echo_n "checking pthread.h presence... " >&6; }
21323 cat >conftest.$ac_ext <<_ACEOF
21326 cat confdefs.h >>conftest.$ac_ext
21327 cat >>conftest.$ac_ext <<_ACEOF
21328 /* end confdefs.h. */
21329 #include <pthread.h>
21331 if { (ac_try="$ac_cpp conftest.$ac_ext"
21332 case "(($ac_try" in
21333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21334 *) ac_try_echo=$ac_try;;
21336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21337 $as_echo "$ac_try_echo") >&5
21338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21340 grep -v '^ *+' conftest.er1 >conftest.err
21342 cat conftest.err >&5
21343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344 (exit $ac_status); } >/dev/null && {
21345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21346 test ! -s conftest.err
21348 ac_header_preproc=yes
21350 $as_echo "$as_me: failed program was:" >&5
21351 sed 's/^/| /' conftest.$ac_ext >&5
21353 ac_header_preproc=no
21356 rm -f conftest.err conftest.$ac_ext
21357 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21358 $as_echo "$ac_header_preproc" >&6; }
21360 # So? What about this header?
21361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21363 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
21364 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21365 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
21366 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
21367 ac_header_preproc=yes
21370 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
21371 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
21372 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
21373 $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
21374 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
21375 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
21376 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
21377 $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
21378 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
21379 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
21380 { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
21381 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
21383 ## ---------------------------------------- ##
21384 ## Report this to pgsql-bugs@postgresql.org ##
21385 ## ---------------------------------------- ##
21387 ) | sed "s/^/$as_me: WARNING: /" >&2
21390 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
21391 $as_echo_n "checking for pthread.h... " >&6; }
21392 if test "${ac_cv_header_pthread_h+set}" = set; then
21393 $as_echo_n "(cached) " >&6
21395 ac_cv_header_pthread_h=$ac_header_preproc
21397 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21398 $as_echo "$ac_cv_header_pthread_h" >&6; }
21401 if test "x$ac_cv_header_pthread_h" = x""yes; then
21404 { { $as_echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
21405 $as_echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
21406 { (exit 1); exit 1; }; }
21415 for ac_func in strerror_r getpwuid_r gethostbyname_r
21417 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21418 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21419 $as_echo_n "checking for $ac_func... " >&6; }
21420 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21421 $as_echo_n "(cached) " >&6
21423 cat >conftest.$ac_ext <<_ACEOF
21426 cat confdefs.h >>conftest.$ac_ext
21427 cat >>conftest.$ac_ext <<_ACEOF
21428 /* end confdefs.h. */
21429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21431 #define $ac_func innocuous_$ac_func
21433 /* System header to define __stub macros and hopefully few prototypes,
21434 which can conflict with char $ac_func (); below.
21435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21436 <limits.h> exists even on freestanding compilers. */
21439 # include <limits.h>
21441 # include <assert.h>
21446 /* Override any GCC internal prototype to avoid an error.
21447 Use char because int might match the return type of a GCC
21448 builtin and then its argument prototype would still apply. */
21453 /* The GNU C library defines this for functions which it implements
21454 to always fail with ENOSYS. Some functions are actually named
21455 something starting with __ and the normal name is an alias. */
21456 #if defined __stub_$ac_func || defined __stub___$ac_func
21463 return $ac_func ();
21468 rm -f conftest.$ac_objext conftest$ac_exeext
21469 if { (ac_try="$ac_link"
21470 case "(($ac_try" in
21471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21472 *) ac_try_echo=$ac_try;;
21474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21475 $as_echo "$ac_try_echo") >&5
21476 (eval "$ac_link") 2>conftest.er1
21478 grep -v '^ *+' conftest.er1 >conftest.err
21480 cat conftest.err >&5
21481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); } && {
21483 test -z "$ac_c_werror_flag" ||
21484 test ! -s conftest.err
21485 } && test -s conftest$ac_exeext && {
21486 test "$cross_compiling" = yes ||
21487 $as_test_x conftest$ac_exeext
21489 eval "$as_ac_var=yes"
21491 $as_echo "$as_me: failed program was:" >&5
21492 sed 's/^/| /' conftest.$ac_ext >&5
21494 eval "$as_ac_var=no"
21497 rm -rf conftest.dSYM
21498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21499 conftest$ac_exeext conftest.$ac_ext
21501 ac_res=`eval 'as_val=${'$as_ac_var'}
21502 $as_echo "$as_val"'`
21503 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21504 $as_echo "$ac_res" >&6; }
21505 as_val=`eval 'as_val=${'$as_ac_var'}
21506 $as_echo "$as_val"'`
21507 if test "x$as_val" = x""yes; then
21508 cat >>confdefs.h <<_ACEOF
21509 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21516 # Do test here with the proper thread flags
21517 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
21518 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
21519 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
21520 $as_echo_n "(cached) " >&6
21522 cat >conftest.$ac_ext <<_ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h. */
21528 #include <sys/types.h>
21534 struct passwd *space;
21537 struct passwd **result;
21538 getpwuid_r(uid, space, buf, bufsize, result);
21543 rm -f conftest.$ac_objext
21544 if { (ac_try="$ac_compile"
21545 case "(($ac_try" in
21546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21547 *) ac_try_echo=$ac_try;;
21549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21550 $as_echo "$ac_try_echo") >&5
21551 (eval "$ac_compile") 2>conftest.er1
21553 grep -v '^ *+' conftest.er1 >conftest.err
21555 cat conftest.err >&5
21556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557 (exit $ac_status); } && {
21558 test -z "$ac_c_werror_flag" ||
21559 test ! -s conftest.err
21560 } && test -s conftest.$ac_objext; then
21561 pgac_cv_func_getpwuid_r_5arg=yes
21563 $as_echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.$ac_ext >&5
21566 pgac_cv_func_getpwuid_r_5arg=no
21569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21571 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
21572 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
21573 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
21575 cat >>confdefs.h <<\_ACEOF
21576 #define GETPWUID_R_5ARG /**/
21581 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
21582 $as_echo_n "checking whether strerror_r returns int... " >&6; }
21583 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
21584 $as_echo_n "(cached) " >&6
21586 cat >conftest.$ac_ext <<_ACEOF
21589 cat confdefs.h >>conftest.$ac_ext
21590 cat >>conftest.$ac_ext <<_ACEOF
21591 /* end confdefs.h. */
21592 #include <string.h>
21597 int strerror_r(int, char *, size_t);
21599 /* Older AIX has 'int' for the third argument so we don't test the args. */
21606 rm -f conftest.$ac_objext
21607 if { (ac_try="$ac_compile"
21608 case "(($ac_try" in
21609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21610 *) ac_try_echo=$ac_try;;
21612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21613 $as_echo "$ac_try_echo") >&5
21614 (eval "$ac_compile") 2>conftest.er1
21616 grep -v '^ *+' conftest.er1 >conftest.err
21618 cat conftest.err >&5
21619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); } && {
21621 test -z "$ac_c_werror_flag" ||
21622 test ! -s conftest.err
21623 } && test -s conftest.$ac_objext; then
21624 pgac_cv_func_strerror_r_int=yes
21626 $as_echo "$as_me: failed program was:" >&5
21627 sed 's/^/| /' conftest.$ac_ext >&5
21629 pgac_cv_func_strerror_r_int=no
21632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21634 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
21635 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
21636 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
21638 cat >>confdefs.h <<\_ACEOF
21639 #define STRERROR_R_INT /**/
21649 # do not use values from template file
21658 # We can test for libldap_r only after we know PTHREAD_LIBS
21659 if test "$with_ldap" = yes ; then
21661 if test "$PORTNAME" != "win32"; then
21663 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
21664 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
21665 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
21666 $as_echo_n "(cached) " >&6
21668 ac_check_lib_save_LIBS=$LIBS
21669 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
21670 cat >conftest.$ac_ext <<_ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h. */
21677 /* Override any GCC internal prototype to avoid an error.
21678 Use char because int might match the return type of a GCC
21679 builtin and then its argument prototype would still apply. */
21687 return ldap_bind ();
21692 rm -f conftest.$ac_objext conftest$ac_exeext
21693 if { (ac_try="$ac_link"
21694 case "(($ac_try" in
21695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21696 *) ac_try_echo=$ac_try;;
21698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21699 $as_echo "$ac_try_echo") >&5
21700 (eval "$ac_link") 2>conftest.er1
21702 grep -v '^ *+' conftest.er1 >conftest.err
21704 cat conftest.err >&5
21705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); } && {
21707 test -z "$ac_c_werror_flag" ||
21708 test ! -s conftest.err
21709 } && test -s conftest$ac_exeext && {
21710 test "$cross_compiling" = yes ||
21711 $as_test_x conftest$ac_exeext
21713 ac_cv_lib_ldap_ldap_bind=yes
21715 $as_echo "$as_me: failed program was:" >&5
21716 sed 's/^/| /' conftest.$ac_ext >&5
21718 ac_cv_lib_ldap_ldap_bind=no
21721 rm -rf conftest.dSYM
21722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21723 conftest$ac_exeext conftest.$ac_ext
21724 LIBS=$ac_check_lib_save_LIBS
21726 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
21727 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
21728 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
21729 cat >>confdefs.h <<_ACEOF
21730 #define HAVE_LIBLDAP 1
21733 LIBS="-lldap $LIBS"
21736 { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
21737 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
21738 { (exit 1); exit 1; }; }
21741 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
21742 if test "$enable_thread_safety" = yes; then
21743 # on some platforms ldap_r fails to link without PTHREAD_LIBS
21745 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
21746 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
21747 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
21748 $as_echo_n "(cached) " >&6
21750 ac_check_lib_save_LIBS=$LIBS
21751 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
21752 cat >conftest.$ac_ext <<_ACEOF
21755 cat confdefs.h >>conftest.$ac_ext
21756 cat >>conftest.$ac_ext <<_ACEOF
21757 /* end confdefs.h. */
21759 /* Override any GCC internal prototype to avoid an error.
21760 Use char because int might match the return type of a GCC
21761 builtin and then its argument prototype would still apply. */
21765 char ldap_simple_bind ();
21769 return ldap_simple_bind ();
21774 rm -f conftest.$ac_objext conftest$ac_exeext
21775 if { (ac_try="$ac_link"
21776 case "(($ac_try" in
21777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21778 *) ac_try_echo=$ac_try;;
21780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21781 $as_echo "$ac_try_echo") >&5
21782 (eval "$ac_link") 2>conftest.er1
21784 grep -v '^ *+' conftest.er1 >conftest.err
21786 cat conftest.err >&5
21787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788 (exit $ac_status); } && {
21789 test -z "$ac_c_werror_flag" ||
21790 test ! -s conftest.err
21791 } && test -s conftest$ac_exeext && {
21792 test "$cross_compiling" = yes ||
21793 $as_test_x conftest$ac_exeext
21795 ac_cv_lib_ldap_r_ldap_simple_bind=yes
21797 $as_echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21800 ac_cv_lib_ldap_r_ldap_simple_bind=no
21803 rm -rf conftest.dSYM
21804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21805 conftest$ac_exeext conftest.$ac_ext
21806 LIBS=$ac_check_lib_save_LIBS
21808 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
21809 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
21810 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
21811 cat >>confdefs.h <<_ACEOF
21812 #define HAVE_LIBLDAP_R 1
21815 LIBS="-lldap_r $LIBS"
21818 { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
21819 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
21820 { (exit 1); exit 1; }; }
21823 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
21825 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
21829 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
21830 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
21831 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
21832 $as_echo_n "(cached) " >&6
21834 ac_check_lib_save_LIBS=$LIBS
21835 LIBS="-lwldap32 $LIBS"
21836 cat >conftest.$ac_ext <<_ACEOF
21839 cat confdefs.h >>conftest.$ac_ext
21840 cat >>conftest.$ac_ext <<_ACEOF
21841 /* end confdefs.h. */
21843 /* Override any GCC internal prototype to avoid an error.
21844 Use char because int might match the return type of a GCC
21845 builtin and then its argument prototype would still apply. */
21853 return ldap_bind ();
21858 rm -f conftest.$ac_objext conftest$ac_exeext
21859 if { (ac_try="$ac_link"
21860 case "(($ac_try" in
21861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21862 *) ac_try_echo=$ac_try;;
21864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21865 $as_echo "$ac_try_echo") >&5
21866 (eval "$ac_link") 2>conftest.er1
21868 grep -v '^ *+' conftest.er1 >conftest.err
21870 cat conftest.err >&5
21871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); } && {
21873 test -z "$ac_c_werror_flag" ||
21874 test ! -s conftest.err
21875 } && test -s conftest$ac_exeext && {
21876 test "$cross_compiling" = yes ||
21877 $as_test_x conftest$ac_exeext
21879 ac_cv_lib_wldap32_ldap_bind=yes
21881 $as_echo "$as_me: failed program was:" >&5
21882 sed 's/^/| /' conftest.$ac_ext >&5
21884 ac_cv_lib_wldap32_ldap_bind=no
21887 rm -rf conftest.dSYM
21888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21889 conftest$ac_exeext conftest.$ac_ext
21890 LIBS=$ac_check_lib_save_LIBS
21892 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
21893 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
21894 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
21895 cat >>confdefs.h <<_ACEOF
21896 #define HAVE_LIBWLDAP32 1
21899 LIBS="-lwldap32 $LIBS"
21902 { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
21903 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
21904 { (exit 1); exit 1; }; }
21907 LDAP_LIBS_FE="-lwldap32"
21908 LDAP_LIBS_BE="-lwldap32"
21916 # This test makes sure that run tests work at all. Sometimes a shared
21917 # library is found by the linker, but the runtime linker can't find it.
21918 # This check should come after all modifications of compiler or linker
21919 # variables, and before any other run tests.
21920 { $as_echo "$as_me:$LINENO: checking test program" >&5
21921 $as_echo_n "checking test program... " >&6; }
21922 if test "$cross_compiling" = yes; then
21923 { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
21924 $as_echo "cross-compiling" >&6; }
21926 cat >conftest.$ac_ext <<_ACEOF
21929 cat confdefs.h >>conftest.$ac_ext
21930 cat >>conftest.$ac_ext <<_ACEOF
21931 /* end confdefs.h. */
21932 int main() { return 0; }
21934 rm -f conftest$ac_exeext
21935 if { (ac_try="$ac_link"
21936 case "(($ac_try" in
21937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21938 *) ac_try_echo=$ac_try;;
21940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21941 $as_echo "$ac_try_echo") >&5
21942 (eval "$ac_link") 2>&5
21944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21946 { (case "(($ac_try" in
21947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21948 *) ac_try_echo=$ac_try;;
21950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21951 $as_echo "$ac_try_echo") >&5
21952 (eval "$ac_try") 2>&5
21954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955 (exit $ac_status); }; }; then
21956 { $as_echo "$as_me:$LINENO: result: ok" >&5
21957 $as_echo "ok" >&6; }
21959 $as_echo "$as_me: program exited with status $ac_status" >&5
21960 $as_echo "$as_me: failed program was:" >&5
21961 sed 's/^/| /' conftest.$ac_ext >&5
21963 ( exit $ac_status )
21964 { $as_echo "$as_me:$LINENO: result: failed" >&5
21965 $as_echo "failed" >&6; }
21966 { { $as_echo "$as_me:$LINENO: error:
21967 Could not execute a simple test program. This may be a problem
21968 related to locating shared libraries. Check the file 'config.log'
21969 for the exact reason." >&5
21970 $as_echo "$as_me: error:
21971 Could not execute a simple test program. This may be a problem
21972 related to locating shared libraries. Check the file 'config.log'
21973 for the exact reason." >&2;}
21974 { (exit 1); exit 1; }; }
21976 rm -rf conftest.dSYM
21977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21982 # --------------------
21983 # Run tests below here
21984 # --------------------
21986 # Force use of our snprintf if system's doesn't do arg control
21987 # See comment above at snprintf test for details.
21988 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
21989 { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
21990 $as_echo_n "checking whether printf supports argument control... " >&6; }
21991 if test "${pgac_cv_printf_arg_control+set}" = set; then
21992 $as_echo_n "(cached) " >&6
21994 if test "$cross_compiling" = yes; then
21995 pgac_cv_printf_arg_control=cross
21997 cat >conftest.$ac_ext <<_ACEOF
22000 cat confdefs.h >>conftest.$ac_ext
22001 cat >>conftest.$ac_ext <<_ACEOF
22002 /* end confdefs.h. */
22004 #include <string.h>
22010 /* can it swap arguments? */
22011 snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
22012 if (strcmp(buf, "4 3") != 0)
22017 rm -f conftest$ac_exeext
22018 if { (ac_try="$ac_link"
22019 case "(($ac_try" in
22020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22021 *) ac_try_echo=$ac_try;;
22023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22024 $as_echo "$ac_try_echo") >&5
22025 (eval "$ac_link") 2>&5
22027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22029 { (case "(($ac_try" in
22030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22031 *) ac_try_echo=$ac_try;;
22033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22034 $as_echo "$ac_try_echo") >&5
22035 (eval "$ac_try") 2>&5
22037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038 (exit $ac_status); }; }; then
22039 pgac_cv_printf_arg_control=yes
22041 $as_echo "$as_me: program exited with status $ac_status" >&5
22042 $as_echo "$as_me: failed program was:" >&5
22043 sed 's/^/| /' conftest.$ac_ext >&5
22045 ( exit $ac_status )
22046 pgac_cv_printf_arg_control=no
22048 rm -rf conftest.dSYM
22049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22055 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
22056 $as_echo "$pgac_cv_printf_arg_control" >&6; }
22058 if test $pgac_cv_printf_arg_control != yes ; then
22059 pgac_need_repl_snprintf=yes
22065 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
22066 $as_echo_n "checking whether long int is 64 bits... " >&6; }
22067 if test "${pgac_cv_type_long_int_64+set}" = set; then
22068 $as_echo_n "(cached) " >&6
22070 if test "$cross_compiling" = yes; then
22071 # If cross-compiling, check the size reported by the compiler and
22072 # trust that the arithmetic works.
22073 cat >conftest.$ac_ext <<_ACEOF
22076 cat confdefs.h >>conftest.$ac_ext
22077 cat >>conftest.$ac_ext <<_ACEOF
22078 /* end confdefs.h. */
22083 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
22090 rm -f conftest.$ac_objext
22091 if { (ac_try="$ac_compile"
22092 case "(($ac_try" in
22093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22094 *) ac_try_echo=$ac_try;;
22096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22097 $as_echo "$ac_try_echo") >&5
22098 (eval "$ac_compile") 2>conftest.er1
22100 grep -v '^ *+' conftest.er1 >conftest.err
22102 cat conftest.err >&5
22103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); } && {
22105 test -z "$ac_c_werror_flag" ||
22106 test ! -s conftest.err
22107 } && test -s conftest.$ac_objext; then
22108 pgac_cv_type_long_int_64=yes
22110 $as_echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.$ac_ext >&5
22113 pgac_cv_type_long_int_64=no
22116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22118 cat >conftest.$ac_ext <<_ACEOF
22121 cat confdefs.h >>conftest.$ac_ext
22122 cat >>conftest.$ac_ext <<_ACEOF
22123 /* end confdefs.h. */
22124 typedef long int ac_int64;
22127 * These are globals to discourage the compiler from folding all the
22128 * arithmetic tests down to compile-time constants.
22130 ac_int64 a = 20000001;
22131 ac_int64 b = 40000005;
22133 int does_int64_work()
22137 if (sizeof(ac_int64) != 8)
22138 return 0; /* definitely not the right size */
22140 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
22148 exit(! does_int64_work());
22151 rm -f conftest$ac_exeext
22152 if { (ac_try="$ac_link"
22153 case "(($ac_try" in
22154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22155 *) ac_try_echo=$ac_try;;
22157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22158 $as_echo "$ac_try_echo") >&5
22159 (eval "$ac_link") 2>&5
22161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22163 { (case "(($ac_try" in
22164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22165 *) ac_try_echo=$ac_try;;
22167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22168 $as_echo "$ac_try_echo") >&5
22169 (eval "$ac_try") 2>&5
22171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); }; }; then
22173 pgac_cv_type_long_int_64=yes
22175 $as_echo "$as_me: program exited with status $ac_status" >&5
22176 $as_echo "$as_me: failed program was:" >&5
22177 sed 's/^/| /' conftest.$ac_ext >&5
22179 ( exit $ac_status )
22180 pgac_cv_type_long_int_64=no
22182 rm -rf conftest.dSYM
22183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22188 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
22189 $as_echo "$pgac_cv_type_long_int_64" >&6; }
22191 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
22192 if test x"$pgac_cv_type_long_int_64" = xyes ; then
22194 cat >>confdefs.h <<\_ACEOF
22195 #define HAVE_LONG_INT_64 1
22201 if test x"$HAVE_LONG_INT_64" = x"no" ; then
22202 { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
22203 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
22204 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
22205 $as_echo_n "(cached) " >&6
22207 if test "$cross_compiling" = yes; then
22208 # If cross-compiling, check the size reported by the compiler and
22209 # trust that the arithmetic works.
22210 cat >conftest.$ac_ext <<_ACEOF
22213 cat confdefs.h >>conftest.$ac_ext
22214 cat >>conftest.$ac_ext <<_ACEOF
22215 /* end confdefs.h. */
22220 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
22227 rm -f conftest.$ac_objext
22228 if { (ac_try="$ac_compile"
22229 case "(($ac_try" in
22230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22231 *) ac_try_echo=$ac_try;;
22233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22234 $as_echo "$ac_try_echo") >&5
22235 (eval "$ac_compile") 2>conftest.er1
22237 grep -v '^ *+' conftest.er1 >conftest.err
22239 cat conftest.err >&5
22240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241 (exit $ac_status); } && {
22242 test -z "$ac_c_werror_flag" ||
22243 test ! -s conftest.err
22244 } && test -s conftest.$ac_objext; then
22245 pgac_cv_type_long_long_int_64=yes
22247 $as_echo "$as_me: failed program was:" >&5
22248 sed 's/^/| /' conftest.$ac_ext >&5
22250 pgac_cv_type_long_long_int_64=no
22253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22255 cat >conftest.$ac_ext <<_ACEOF
22258 cat confdefs.h >>conftest.$ac_ext
22259 cat >>conftest.$ac_ext <<_ACEOF
22260 /* end confdefs.h. */
22261 typedef long long int ac_int64;
22264 * These are globals to discourage the compiler from folding all the
22265 * arithmetic tests down to compile-time constants.
22267 ac_int64 a = 20000001;
22268 ac_int64 b = 40000005;
22270 int does_int64_work()
22274 if (sizeof(ac_int64) != 8)
22275 return 0; /* definitely not the right size */
22277 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
22285 exit(! does_int64_work());
22288 rm -f conftest$ac_exeext
22289 if { (ac_try="$ac_link"
22290 case "(($ac_try" in
22291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292 *) ac_try_echo=$ac_try;;
22294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22295 $as_echo "$ac_try_echo") >&5
22296 (eval "$ac_link") 2>&5
22298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22300 { (case "(($ac_try" in
22301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22302 *) ac_try_echo=$ac_try;;
22304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22305 $as_echo "$ac_try_echo") >&5
22306 (eval "$ac_try") 2>&5
22308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); }; }; then
22310 pgac_cv_type_long_long_int_64=yes
22312 $as_echo "$as_me: program exited with status $ac_status" >&5
22313 $as_echo "$as_me: failed program was:" >&5
22314 sed 's/^/| /' conftest.$ac_ext >&5
22316 ( exit $ac_status )
22317 pgac_cv_type_long_long_int_64=no
22319 rm -rf conftest.dSYM
22320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22325 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
22326 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
22328 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
22329 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
22331 cat >>confdefs.h <<\_ACEOF
22332 #define HAVE_LONG_LONG_INT_64 1
22341 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
22342 cat >conftest.$ac_ext <<_ACEOF
22345 cat confdefs.h >>conftest.$ac_ext
22346 cat >>conftest.$ac_ext <<_ACEOF
22347 /* end confdefs.h. */
22349 #define INT64CONST(x) x##LL
22350 long long int foo = INT64CONST(0x1234567890123456);
22360 rm -f conftest.$ac_objext
22361 if { (ac_try="$ac_compile"
22362 case "(($ac_try" in
22363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22364 *) ac_try_echo=$ac_try;;
22366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22367 $as_echo "$ac_try_echo") >&5
22368 (eval "$ac_compile") 2>conftest.er1
22370 grep -v '^ *+' conftest.er1 >conftest.err
22372 cat conftest.err >&5
22373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374 (exit $ac_status); } && {
22375 test -z "$ac_c_werror_flag" ||
22376 test ! -s conftest.err
22377 } && test -s conftest.$ac_objext; then
22379 cat >>confdefs.h <<\_ACEOF
22380 #define HAVE_LL_CONSTANTS 1
22384 $as_echo "$as_me: failed program was:" >&5
22385 sed 's/^/| /' conftest.$ac_ext >&5
22390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22394 # If we found "long int" is 64 bits, assume snprintf handles it. If
22395 # we found we need to use "long long int", better check. We cope with
22396 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
22397 # work, fall back to our own snprintf emulation (which we know uses %lld).
22399 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
22400 if test $pgac_need_repl_snprintf = no; then
22401 { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
22402 $as_echo_n "checking snprintf format for long long int... " >&6; }
22403 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
22404 $as_echo_n "(cached) " >&6
22406 for pgac_format in '%lld' '%qd' '%I64d'; do
22407 if test "$cross_compiling" = yes; then
22408 pgac_cv_snprintf_long_long_int_format=cross; break
22410 cat >conftest.$ac_ext <<_ACEOF
22413 cat confdefs.h >>conftest.$ac_ext
22414 cat >>conftest.$ac_ext <<_ACEOF
22415 /* end confdefs.h. */
22417 typedef long long int ac_int64;
22418 #define INT64_FORMAT "$pgac_format"
22420 ac_int64 a = 20000001;
22421 ac_int64 b = 40000005;
22423 int does_int64_snprintf_work()
22428 if (sizeof(ac_int64) != 8)
22429 return 0; /* doesn't look like the right size */
22432 snprintf(buf, 100, INT64_FORMAT, c);
22433 if (strcmp(buf, "800000140000005") != 0)
22434 return 0; /* either multiply or snprintf is busted */
22438 exit(! does_int64_snprintf_work());
22441 rm -f conftest$ac_exeext
22442 if { (ac_try="$ac_link"
22443 case "(($ac_try" in
22444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22445 *) ac_try_echo=$ac_try;;
22447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22448 $as_echo "$ac_try_echo") >&5
22449 (eval "$ac_link") 2>&5
22451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22453 { (case "(($ac_try" in
22454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22455 *) ac_try_echo=$ac_try;;
22457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22458 $as_echo "$ac_try_echo") >&5
22459 (eval "$ac_try") 2>&5
22461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); }; }; then
22463 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
22465 $as_echo "$as_me: program exited with status $ac_status" >&5
22466 $as_echo "$as_me: failed program was:" >&5
22467 sed 's/^/| /' conftest.$ac_ext >&5
22470 rm -rf conftest.dSYM
22471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22478 LONG_LONG_INT_FORMAT=''
22480 case $pgac_cv_snprintf_long_long_int_format in
22481 cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
22482 $as_echo "cannot test (not on host machine)" >&6; };;
22483 ?*) { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
22484 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
22485 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
22486 *) { $as_echo "$as_me:$LINENO: result: none" >&5
22487 $as_echo "none" >&6; };;
22489 if test "$LONG_LONG_INT_FORMAT" = ""; then
22490 # Force usage of our own snprintf, since system snprintf is broken
22491 pgac_need_repl_snprintf=yes
22492 LONG_LONG_INT_FORMAT='%lld'
22495 # Here if we previously decided we needed to use our own snprintf
22496 LONG_LONG_INT_FORMAT='%lld'
22498 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
22499 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
22500 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
22502 # Here if we are not using 'long long int' at all
22503 INT64_FORMAT='"%ld"'
22504 UINT64_FORMAT='"%lu"'
22508 cat >>confdefs.h <<_ACEOF
22509 #define INT64_FORMAT $INT64_FORMAT
22514 cat >>confdefs.h <<_ACEOF
22515 #define UINT64_FORMAT $UINT64_FORMAT
22519 # Now we have checked all the reasons to replace snprintf
22520 if test $pgac_need_repl_snprintf = yes; then
22522 cat >>confdefs.h <<\_ACEOF
22523 #define USE_REPL_SNPRINTF 1
22526 case " $LIBOBJS " in
22527 *" snprintf.$ac_objext "* ) ;;
22528 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
22534 # Need a #define for the size of Datum (unsigned long)
22535 # The cast to long int works around a bug in the HP C Compiler
22536 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22537 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22538 # This bug is HP SR number 8606223364.
22539 { $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5
22540 $as_echo_n "checking size of unsigned long... " >&6; }
22541 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
22542 $as_echo_n "(cached) " >&6
22544 if test "$cross_compiling" = yes; then
22545 # Depending upon the size, compute the lo and hi bounds.
22546 cat >conftest.$ac_ext <<_ACEOF
22549 cat confdefs.h >>conftest.$ac_ext
22550 cat >>conftest.$ac_ext <<_ACEOF
22551 /* end confdefs.h. */
22552 $ac_includes_default
22556 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)];
22563 rm -f conftest.$ac_objext
22564 if { (ac_try="$ac_compile"
22565 case "(($ac_try" in
22566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22567 *) ac_try_echo=$ac_try;;
22569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22570 $as_echo "$ac_try_echo") >&5
22571 (eval "$ac_compile") 2>conftest.er1
22573 grep -v '^ *+' conftest.er1 >conftest.err
22575 cat conftest.err >&5
22576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); } && {
22578 test -z "$ac_c_werror_flag" ||
22579 test ! -s conftest.err
22580 } && test -s conftest.$ac_objext; then
22583 cat >conftest.$ac_ext <<_ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h. */
22589 $ac_includes_default
22593 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
22600 rm -f conftest.$ac_objext
22601 if { (ac_try="$ac_compile"
22602 case "(($ac_try" in
22603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22604 *) ac_try_echo=$ac_try;;
22606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22607 $as_echo "$ac_try_echo") >&5
22608 (eval "$ac_compile") 2>conftest.er1
22610 grep -v '^ *+' conftest.er1 >conftest.err
22612 cat conftest.err >&5
22613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614 (exit $ac_status); } && {
22615 test -z "$ac_c_werror_flag" ||
22616 test ! -s conftest.err
22617 } && test -s conftest.$ac_objext; then
22618 ac_hi=$ac_mid; break
22620 $as_echo "$as_me: failed program was:" >&5
22621 sed 's/^/| /' conftest.$ac_ext >&5
22623 ac_lo=`expr $ac_mid + 1`
22624 if test $ac_lo -le $ac_mid; then
22628 ac_mid=`expr 2 '*' $ac_mid + 1`
22631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22634 $as_echo "$as_me: failed program was:" >&5
22635 sed 's/^/| /' conftest.$ac_ext >&5
22637 cat >conftest.$ac_ext <<_ACEOF
22640 cat confdefs.h >>conftest.$ac_ext
22641 cat >>conftest.$ac_ext <<_ACEOF
22642 /* end confdefs.h. */
22643 $ac_includes_default
22647 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) < 0)];
22654 rm -f conftest.$ac_objext
22655 if { (ac_try="$ac_compile"
22656 case "(($ac_try" in
22657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22658 *) ac_try_echo=$ac_try;;
22660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22661 $as_echo "$ac_try_echo") >&5
22662 (eval "$ac_compile") 2>conftest.er1
22664 grep -v '^ *+' conftest.er1 >conftest.err
22666 cat conftest.err >&5
22667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668 (exit $ac_status); } && {
22669 test -z "$ac_c_werror_flag" ||
22670 test ! -s conftest.err
22671 } && test -s conftest.$ac_objext; then
22674 cat >conftest.$ac_ext <<_ACEOF
22677 cat confdefs.h >>conftest.$ac_ext
22678 cat >>conftest.$ac_ext <<_ACEOF
22679 /* end confdefs.h. */
22680 $ac_includes_default
22684 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)];
22691 rm -f conftest.$ac_objext
22692 if { (ac_try="$ac_compile"
22693 case "(($ac_try" in
22694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22695 *) ac_try_echo=$ac_try;;
22697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22698 $as_echo "$ac_try_echo") >&5
22699 (eval "$ac_compile") 2>conftest.er1
22701 grep -v '^ *+' conftest.er1 >conftest.err
22703 cat conftest.err >&5
22704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705 (exit $ac_status); } && {
22706 test -z "$ac_c_werror_flag" ||
22707 test ! -s conftest.err
22708 } && test -s conftest.$ac_objext; then
22709 ac_lo=$ac_mid; break
22711 $as_echo "$as_me: failed program was:" >&5
22712 sed 's/^/| /' conftest.$ac_ext >&5
22714 ac_hi=`expr '(' $ac_mid ')' - 1`
22715 if test $ac_mid -le $ac_hi; then
22719 ac_mid=`expr 2 '*' $ac_mid`
22722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22725 $as_echo "$as_me: failed program was:" >&5
22726 sed 's/^/| /' conftest.$ac_ext >&5
22731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22735 # Binary search between lo and hi bounds.
22736 while test "x$ac_lo" != "x$ac_hi"; do
22737 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22738 cat >conftest.$ac_ext <<_ACEOF
22741 cat confdefs.h >>conftest.$ac_ext
22742 cat >>conftest.$ac_ext <<_ACEOF
22743 /* end confdefs.h. */
22744 $ac_includes_default
22748 static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
22755 rm -f conftest.$ac_objext
22756 if { (ac_try="$ac_compile"
22757 case "(($ac_try" in
22758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22759 *) ac_try_echo=$ac_try;;
22761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22762 $as_echo "$ac_try_echo") >&5
22763 (eval "$ac_compile") 2>conftest.er1
22765 grep -v '^ *+' conftest.er1 >conftest.err
22767 cat conftest.err >&5
22768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769 (exit $ac_status); } && {
22770 test -z "$ac_c_werror_flag" ||
22771 test ! -s conftest.err
22772 } && test -s conftest.$ac_objext; then
22775 $as_echo "$as_me: failed program was:" >&5
22776 sed 's/^/| /' conftest.$ac_ext >&5
22778 ac_lo=`expr '(' $ac_mid ')' + 1`
22781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22784 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
22785 '') if test "$ac_cv_type_unsigned_long" = yes; then
22786 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22788 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
22789 See \`config.log' for more details." >&5
22790 $as_echo "$as_me: error: cannot compute sizeof (unsigned long)
22791 See \`config.log' for more details." >&2;}
22792 { (exit 77); exit 77; }; }; }
22794 ac_cv_sizeof_unsigned_long=0
22798 cat >conftest.$ac_ext <<_ACEOF
22801 cat confdefs.h >>conftest.$ac_ext
22802 cat >>conftest.$ac_ext <<_ACEOF
22803 /* end confdefs.h. */
22804 $ac_includes_default
22805 static long int longval () { return (long int) (sizeof (unsigned long)); }
22806 static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); }
22808 #include <stdlib.h>
22813 FILE *f = fopen ("conftest.val", "w");
22816 if (((long int) (sizeof (unsigned long))) < 0)
22818 long int i = longval ();
22819 if (i != ((long int) (sizeof (unsigned long))))
22821 fprintf (f, "%ld", i);
22825 unsigned long int i = ulongval ();
22826 if (i != ((long int) (sizeof (unsigned long))))
22828 fprintf (f, "%lu", i);
22830 /* Do not output a trailing newline, as this causes \r\n confusion
22831 on some platforms. */
22832 return ferror (f) || fclose (f) != 0;
22838 rm -f conftest$ac_exeext
22839 if { (ac_try="$ac_link"
22840 case "(($ac_try" in
22841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22842 *) ac_try_echo=$ac_try;;
22844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22845 $as_echo "$ac_try_echo") >&5
22846 (eval "$ac_link") 2>&5
22848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22850 { (case "(($ac_try" in
22851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22852 *) ac_try_echo=$ac_try;;
22854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22855 $as_echo "$ac_try_echo") >&5
22856 (eval "$ac_try") 2>&5
22858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859 (exit $ac_status); }; }; then
22860 ac_cv_sizeof_unsigned_long=`cat conftest.val`
22862 $as_echo "$as_me: program exited with status $ac_status" >&5
22863 $as_echo "$as_me: failed program was:" >&5
22864 sed 's/^/| /' conftest.$ac_ext >&5
22866 ( exit $ac_status )
22867 if test "$ac_cv_type_unsigned_long" = yes; then
22868 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22870 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
22871 See \`config.log' for more details." >&5
22872 $as_echo "$as_me: error: cannot compute sizeof (unsigned long)
22873 See \`config.log' for more details." >&2;}
22874 { (exit 77); exit 77; }; }; }
22876 ac_cv_sizeof_unsigned_long=0
22879 rm -rf conftest.dSYM
22880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22884 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
22885 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
22889 cat >>confdefs.h <<_ACEOF
22890 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
22895 # And check size of void *, size_t (enables tweaks for > 32bit address space)
22896 # The cast to long int works around a bug in the HP C Compiler
22897 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22898 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22899 # This bug is HP SR number 8606223364.
22900 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
22901 $as_echo_n "checking size of void *... " >&6; }
22902 if test "${ac_cv_sizeof_void_p+set}" = set; then
22903 $as_echo_n "(cached) " >&6
22905 if test "$cross_compiling" = yes; then
22906 # Depending upon the size, compute the lo and hi bounds.
22907 cat >conftest.$ac_ext <<_ACEOF
22910 cat confdefs.h >>conftest.$ac_ext
22911 cat >>conftest.$ac_ext <<_ACEOF
22912 /* end confdefs.h. */
22913 $ac_includes_default
22917 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
22924 rm -f conftest.$ac_objext
22925 if { (ac_try="$ac_compile"
22926 case "(($ac_try" in
22927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22928 *) ac_try_echo=$ac_try;;
22930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22931 $as_echo "$ac_try_echo") >&5
22932 (eval "$ac_compile") 2>conftest.er1
22934 grep -v '^ *+' conftest.er1 >conftest.err
22936 cat conftest.err >&5
22937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938 (exit $ac_status); } && {
22939 test -z "$ac_c_werror_flag" ||
22940 test ! -s conftest.err
22941 } && test -s conftest.$ac_objext; then
22944 cat >conftest.$ac_ext <<_ACEOF
22947 cat confdefs.h >>conftest.$ac_ext
22948 cat >>conftest.$ac_ext <<_ACEOF
22949 /* end confdefs.h. */
22950 $ac_includes_default
22954 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
22961 rm -f conftest.$ac_objext
22962 if { (ac_try="$ac_compile"
22963 case "(($ac_try" in
22964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22965 *) ac_try_echo=$ac_try;;
22967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22968 $as_echo "$ac_try_echo") >&5
22969 (eval "$ac_compile") 2>conftest.er1
22971 grep -v '^ *+' conftest.er1 >conftest.err
22973 cat conftest.err >&5
22974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975 (exit $ac_status); } && {
22976 test -z "$ac_c_werror_flag" ||
22977 test ! -s conftest.err
22978 } && test -s conftest.$ac_objext; then
22979 ac_hi=$ac_mid; break
22981 $as_echo "$as_me: failed program was:" >&5
22982 sed 's/^/| /' conftest.$ac_ext >&5
22984 ac_lo=`expr $ac_mid + 1`
22985 if test $ac_lo -le $ac_mid; then
22989 ac_mid=`expr 2 '*' $ac_mid + 1`
22992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22995 $as_echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22998 cat >conftest.$ac_ext <<_ACEOF
23001 cat confdefs.h >>conftest.$ac_ext
23002 cat >>conftest.$ac_ext <<_ACEOF
23003 /* end confdefs.h. */
23004 $ac_includes_default
23008 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
23015 rm -f conftest.$ac_objext
23016 if { (ac_try="$ac_compile"
23017 case "(($ac_try" in
23018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23019 *) ac_try_echo=$ac_try;;
23021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23022 $as_echo "$ac_try_echo") >&5
23023 (eval "$ac_compile") 2>conftest.er1
23025 grep -v '^ *+' conftest.er1 >conftest.err
23027 cat conftest.err >&5
23028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029 (exit $ac_status); } && {
23030 test -z "$ac_c_werror_flag" ||
23031 test ! -s conftest.err
23032 } && test -s conftest.$ac_objext; then
23035 cat >conftest.$ac_ext <<_ACEOF
23038 cat confdefs.h >>conftest.$ac_ext
23039 cat >>conftest.$ac_ext <<_ACEOF
23040 /* end confdefs.h. */
23041 $ac_includes_default
23045 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
23052 rm -f conftest.$ac_objext
23053 if { (ac_try="$ac_compile"
23054 case "(($ac_try" in
23055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23056 *) ac_try_echo=$ac_try;;
23058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23059 $as_echo "$ac_try_echo") >&5
23060 (eval "$ac_compile") 2>conftest.er1
23062 grep -v '^ *+' conftest.er1 >conftest.err
23064 cat conftest.err >&5
23065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066 (exit $ac_status); } && {
23067 test -z "$ac_c_werror_flag" ||
23068 test ! -s conftest.err
23069 } && test -s conftest.$ac_objext; then
23070 ac_lo=$ac_mid; break
23072 $as_echo "$as_me: failed program was:" >&5
23073 sed 's/^/| /' conftest.$ac_ext >&5
23075 ac_hi=`expr '(' $ac_mid ')' - 1`
23076 if test $ac_mid -le $ac_hi; then
23080 ac_mid=`expr 2 '*' $ac_mid`
23083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23086 $as_echo "$as_me: failed program was:" >&5
23087 sed 's/^/| /' conftest.$ac_ext >&5
23092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23096 # Binary search between lo and hi bounds.
23097 while test "x$ac_lo" != "x$ac_hi"; do
23098 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23099 cat >conftest.$ac_ext <<_ACEOF
23102 cat confdefs.h >>conftest.$ac_ext
23103 cat >>conftest.$ac_ext <<_ACEOF
23104 /* end confdefs.h. */
23105 $ac_includes_default
23109 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
23116 rm -f conftest.$ac_objext
23117 if { (ac_try="$ac_compile"
23118 case "(($ac_try" in
23119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23120 *) ac_try_echo=$ac_try;;
23122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23123 $as_echo "$ac_try_echo") >&5
23124 (eval "$ac_compile") 2>conftest.er1
23126 grep -v '^ *+' conftest.er1 >conftest.err
23128 cat conftest.err >&5
23129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130 (exit $ac_status); } && {
23131 test -z "$ac_c_werror_flag" ||
23132 test ! -s conftest.err
23133 } && test -s conftest.$ac_objext; then
23136 $as_echo "$as_me: failed program was:" >&5
23137 sed 's/^/| /' conftest.$ac_ext >&5
23139 ac_lo=`expr '(' $ac_mid ')' + 1`
23142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23145 ?*) ac_cv_sizeof_void_p=$ac_lo;;
23146 '') if test "$ac_cv_type_void_p" = yes; then
23147 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23149 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
23150 See \`config.log' for more details." >&5
23151 $as_echo "$as_me: error: cannot compute sizeof (void *)
23152 See \`config.log' for more details." >&2;}
23153 { (exit 77); exit 77; }; }; }
23155 ac_cv_sizeof_void_p=0
23159 cat >conftest.$ac_ext <<_ACEOF
23162 cat confdefs.h >>conftest.$ac_ext
23163 cat >>conftest.$ac_ext <<_ACEOF
23164 /* end confdefs.h. */
23165 $ac_includes_default
23166 static long int longval () { return (long int) (sizeof (void *)); }
23167 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
23169 #include <stdlib.h>
23174 FILE *f = fopen ("conftest.val", "w");
23177 if (((long int) (sizeof (void *))) < 0)
23179 long int i = longval ();
23180 if (i != ((long int) (sizeof (void *))))
23182 fprintf (f, "%ld", i);
23186 unsigned long int i = ulongval ();
23187 if (i != ((long int) (sizeof (void *))))
23189 fprintf (f, "%lu", i);
23191 /* Do not output a trailing newline, as this causes \r\n confusion
23192 on some platforms. */
23193 return ferror (f) || fclose (f) != 0;
23199 rm -f conftest$ac_exeext
23200 if { (ac_try="$ac_link"
23201 case "(($ac_try" in
23202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23203 *) ac_try_echo=$ac_try;;
23205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23206 $as_echo "$ac_try_echo") >&5
23207 (eval "$ac_link") 2>&5
23209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23211 { (case "(($ac_try" in
23212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23213 *) ac_try_echo=$ac_try;;
23215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23216 $as_echo "$ac_try_echo") >&5
23217 (eval "$ac_try") 2>&5
23219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); }; }; then
23221 ac_cv_sizeof_void_p=`cat conftest.val`
23223 $as_echo "$as_me: program exited with status $ac_status" >&5
23224 $as_echo "$as_me: failed program was:" >&5
23225 sed 's/^/| /' conftest.$ac_ext >&5
23227 ( exit $ac_status )
23228 if test "$ac_cv_type_void_p" = yes; then
23229 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23231 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
23232 See \`config.log' for more details." >&5
23233 $as_echo "$as_me: error: cannot compute sizeof (void *)
23234 See \`config.log' for more details." >&2;}
23235 { (exit 77); exit 77; }; }; }
23237 ac_cv_sizeof_void_p=0
23240 rm -rf conftest.dSYM
23241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23245 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23246 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23250 cat >>confdefs.h <<_ACEOF
23251 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23255 # The cast to long int works around a bug in the HP C Compiler
23256 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23257 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23258 # This bug is HP SR number 8606223364.
23259 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
23260 $as_echo_n "checking size of size_t... " >&6; }
23261 if test "${ac_cv_sizeof_size_t+set}" = set; then
23262 $as_echo_n "(cached) " >&6
23264 if test "$cross_compiling" = yes; then
23265 # Depending upon the size, compute the lo and hi bounds.
23266 cat >conftest.$ac_ext <<_ACEOF
23269 cat confdefs.h >>conftest.$ac_ext
23270 cat >>conftest.$ac_ext <<_ACEOF
23271 /* end confdefs.h. */
23272 $ac_includes_default
23276 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
23283 rm -f conftest.$ac_objext
23284 if { (ac_try="$ac_compile"
23285 case "(($ac_try" in
23286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23287 *) ac_try_echo=$ac_try;;
23289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23290 $as_echo "$ac_try_echo") >&5
23291 (eval "$ac_compile") 2>conftest.er1
23293 grep -v '^ *+' conftest.er1 >conftest.err
23295 cat conftest.err >&5
23296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297 (exit $ac_status); } && {
23298 test -z "$ac_c_werror_flag" ||
23299 test ! -s conftest.err
23300 } && test -s conftest.$ac_objext; then
23303 cat >conftest.$ac_ext <<_ACEOF
23306 cat confdefs.h >>conftest.$ac_ext
23307 cat >>conftest.$ac_ext <<_ACEOF
23308 /* end confdefs.h. */
23309 $ac_includes_default
23313 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
23320 rm -f conftest.$ac_objext
23321 if { (ac_try="$ac_compile"
23322 case "(($ac_try" in
23323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23324 *) ac_try_echo=$ac_try;;
23326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23327 $as_echo "$ac_try_echo") >&5
23328 (eval "$ac_compile") 2>conftest.er1
23330 grep -v '^ *+' conftest.er1 >conftest.err
23332 cat conftest.err >&5
23333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334 (exit $ac_status); } && {
23335 test -z "$ac_c_werror_flag" ||
23336 test ! -s conftest.err
23337 } && test -s conftest.$ac_objext; then
23338 ac_hi=$ac_mid; break
23340 $as_echo "$as_me: failed program was:" >&5
23341 sed 's/^/| /' conftest.$ac_ext >&5
23343 ac_lo=`expr $ac_mid + 1`
23344 if test $ac_lo -le $ac_mid; then
23348 ac_mid=`expr 2 '*' $ac_mid + 1`
23351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23354 $as_echo "$as_me: failed program was:" >&5
23355 sed 's/^/| /' conftest.$ac_ext >&5
23357 cat >conftest.$ac_ext <<_ACEOF
23360 cat confdefs.h >>conftest.$ac_ext
23361 cat >>conftest.$ac_ext <<_ACEOF
23362 /* end confdefs.h. */
23363 $ac_includes_default
23367 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
23374 rm -f conftest.$ac_objext
23375 if { (ac_try="$ac_compile"
23376 case "(($ac_try" in
23377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23378 *) ac_try_echo=$ac_try;;
23380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23381 $as_echo "$ac_try_echo") >&5
23382 (eval "$ac_compile") 2>conftest.er1
23384 grep -v '^ *+' conftest.er1 >conftest.err
23386 cat conftest.err >&5
23387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388 (exit $ac_status); } && {
23389 test -z "$ac_c_werror_flag" ||
23390 test ! -s conftest.err
23391 } && test -s conftest.$ac_objext; then
23394 cat >conftest.$ac_ext <<_ACEOF
23397 cat confdefs.h >>conftest.$ac_ext
23398 cat >>conftest.$ac_ext <<_ACEOF
23399 /* end confdefs.h. */
23400 $ac_includes_default
23404 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
23411 rm -f conftest.$ac_objext
23412 if { (ac_try="$ac_compile"
23413 case "(($ac_try" in
23414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23415 *) ac_try_echo=$ac_try;;
23417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23418 $as_echo "$ac_try_echo") >&5
23419 (eval "$ac_compile") 2>conftest.er1
23421 grep -v '^ *+' conftest.er1 >conftest.err
23423 cat conftest.err >&5
23424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23425 (exit $ac_status); } && {
23426 test -z "$ac_c_werror_flag" ||
23427 test ! -s conftest.err
23428 } && test -s conftest.$ac_objext; then
23429 ac_lo=$ac_mid; break
23431 $as_echo "$as_me: failed program was:" >&5
23432 sed 's/^/| /' conftest.$ac_ext >&5
23434 ac_hi=`expr '(' $ac_mid ')' - 1`
23435 if test $ac_mid -le $ac_hi; then
23439 ac_mid=`expr 2 '*' $ac_mid`
23442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23445 $as_echo "$as_me: failed program was:" >&5
23446 sed 's/^/| /' conftest.$ac_ext >&5
23451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23455 # Binary search between lo and hi bounds.
23456 while test "x$ac_lo" != "x$ac_hi"; do
23457 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23458 cat >conftest.$ac_ext <<_ACEOF
23461 cat confdefs.h >>conftest.$ac_ext
23462 cat >>conftest.$ac_ext <<_ACEOF
23463 /* end confdefs.h. */
23464 $ac_includes_default
23468 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
23475 rm -f conftest.$ac_objext
23476 if { (ac_try="$ac_compile"
23477 case "(($ac_try" in
23478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23479 *) ac_try_echo=$ac_try;;
23481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23482 $as_echo "$ac_try_echo") >&5
23483 (eval "$ac_compile") 2>conftest.er1
23485 grep -v '^ *+' conftest.er1 >conftest.err
23487 cat conftest.err >&5
23488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489 (exit $ac_status); } && {
23490 test -z "$ac_c_werror_flag" ||
23491 test ! -s conftest.err
23492 } && test -s conftest.$ac_objext; then
23495 $as_echo "$as_me: failed program was:" >&5
23496 sed 's/^/| /' conftest.$ac_ext >&5
23498 ac_lo=`expr '(' $ac_mid ')' + 1`
23501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23504 ?*) ac_cv_sizeof_size_t=$ac_lo;;
23505 '') if test "$ac_cv_type_size_t" = yes; then
23506 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23508 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23509 See \`config.log' for more details." >&5
23510 $as_echo "$as_me: error: cannot compute sizeof (size_t)
23511 See \`config.log' for more details." >&2;}
23512 { (exit 77); exit 77; }; }; }
23514 ac_cv_sizeof_size_t=0
23518 cat >conftest.$ac_ext <<_ACEOF
23521 cat confdefs.h >>conftest.$ac_ext
23522 cat >>conftest.$ac_ext <<_ACEOF
23523 /* end confdefs.h. */
23524 $ac_includes_default
23525 static long int longval () { return (long int) (sizeof (size_t)); }
23526 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
23528 #include <stdlib.h>
23533 FILE *f = fopen ("conftest.val", "w");
23536 if (((long int) (sizeof (size_t))) < 0)
23538 long int i = longval ();
23539 if (i != ((long int) (sizeof (size_t))))
23541 fprintf (f, "%ld", i);
23545 unsigned long int i = ulongval ();
23546 if (i != ((long int) (sizeof (size_t))))
23548 fprintf (f, "%lu", i);
23550 /* Do not output a trailing newline, as this causes \r\n confusion
23551 on some platforms. */
23552 return ferror (f) || fclose (f) != 0;
23558 rm -f conftest$ac_exeext
23559 if { (ac_try="$ac_link"
23560 case "(($ac_try" in
23561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23562 *) ac_try_echo=$ac_try;;
23564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23565 $as_echo "$ac_try_echo") >&5
23566 (eval "$ac_link") 2>&5
23568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23570 { (case "(($ac_try" in
23571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23572 *) ac_try_echo=$ac_try;;
23574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23575 $as_echo "$ac_try_echo") >&5
23576 (eval "$ac_try") 2>&5
23578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); }; }; then
23580 ac_cv_sizeof_size_t=`cat conftest.val`
23582 $as_echo "$as_me: program exited with status $ac_status" >&5
23583 $as_echo "$as_me: failed program was:" >&5
23584 sed 's/^/| /' conftest.$ac_ext >&5
23586 ( exit $ac_status )
23587 if test "$ac_cv_type_size_t" = yes; then
23588 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
23589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23590 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23591 See \`config.log' for more details." >&5
23592 $as_echo "$as_me: error: cannot compute sizeof (size_t)
23593 See \`config.log' for more details." >&2;}
23594 { (exit 77); exit 77; }; }; }
23596 ac_cv_sizeof_size_t=0
23599 rm -rf conftest.dSYM
23600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23604 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
23605 $as_echo "$ac_cv_sizeof_size_t" >&6; }
23609 cat >>confdefs.h <<_ACEOF
23610 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23615 # Decide whether float4 is passed by value: user-selectable, enabled by default
23616 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
23617 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
23620 # Check whether --enable-float4-byval was given.
23621 if test "${enable_float4_byval+set}" = set; then
23622 enableval=$enable_float4_byval;
23626 cat >>confdefs.h <<\_ACEOF
23627 #define USE_FLOAT4_BYVAL 1
23630 float4passbyval=true
23633 float4passbyval=false
23636 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
23637 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
23638 { (exit 1); exit 1; }; }
23643 enable_float4_byval=yes
23645 cat >>confdefs.h <<\_ACEOF
23646 #define USE_FLOAT4_BYVAL 1
23649 float4passbyval=true
23653 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
23654 $as_echo "$enable_float4_byval" >&6; }
23656 cat >>confdefs.h <<_ACEOF
23657 #define FLOAT4PASSBYVAL $float4passbyval
23661 # Decide whether float8 is passed by value.
23662 # Note: this setting also controls int8 and related types such as timestamp.
23663 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
23664 # If not, trying to select it is an error.
23665 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
23666 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
23667 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
23670 # Check whether --enable-float8-byval was given.
23671 if test "${enable_float8_byval+set}" = set; then
23672 enableval=$enable_float8_byval;
23681 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
23682 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
23683 { (exit 1); exit 1; }; }
23688 enable_float8_byval=yes
23696 # Check whether --enable-float8-byval was given.
23697 if test "${enable_float8_byval+set}" = set; then
23698 enableval=$enable_float8_byval;
23707 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
23708 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
23709 { (exit 1); exit 1; }; }
23714 enable_float8_byval=no
23719 if test "$enable_float8_byval" = yes ; then
23720 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
23721 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
23722 { (exit 1); exit 1; }; }
23725 if test "$enable_float8_byval" = yes ; then
23727 cat >>confdefs.h <<\_ACEOF
23728 #define USE_FLOAT8_BYVAL 1
23731 float8passbyval=true
23733 float8passbyval=false
23735 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
23736 $as_echo "$enable_float8_byval" >&6; }
23738 cat >>confdefs.h <<_ACEOF
23739 #define FLOAT8PASSBYVAL $float8passbyval
23743 # Determine memory alignment requirements for the basic C data types.
23745 # The cast to long int works around a bug in the HP C Compiler,
23746 # see AC_CHECK_SIZEOF for more information.
23747 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
23748 $as_echo_n "checking alignment of short... " >&6; }
23749 if test "${ac_cv_alignof_short+set}" = set; then
23750 $as_echo_n "(cached) " >&6
23752 if test "$cross_compiling" = yes; then
23753 # Depending upon the size, compute the lo and hi bounds.
23754 cat >conftest.$ac_ext <<_ACEOF
23757 cat confdefs.h >>conftest.$ac_ext
23758 cat >>conftest.$ac_ext <<_ACEOF
23759 /* end confdefs.h. */
23760 $ac_includes_default
23762 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23764 typedef struct { char x; short y; } ac__type_alignof_;
23768 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23775 rm -f conftest.$ac_objext
23776 if { (ac_try="$ac_compile"
23777 case "(($ac_try" in
23778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23779 *) ac_try_echo=$ac_try;;
23781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23782 $as_echo "$ac_try_echo") >&5
23783 (eval "$ac_compile") 2>conftest.er1
23785 grep -v '^ *+' conftest.er1 >conftest.err
23787 cat conftest.err >&5
23788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789 (exit $ac_status); } && {
23790 test -z "$ac_c_werror_flag" ||
23791 test ! -s conftest.err
23792 } && test -s conftest.$ac_objext; then
23795 cat >conftest.$ac_ext <<_ACEOF
23798 cat confdefs.h >>conftest.$ac_ext
23799 cat >>conftest.$ac_ext <<_ACEOF
23800 /* end confdefs.h. */
23801 $ac_includes_default
23803 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23805 typedef struct { char x; short y; } ac__type_alignof_;
23809 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23816 rm -f conftest.$ac_objext
23817 if { (ac_try="$ac_compile"
23818 case "(($ac_try" in
23819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23820 *) ac_try_echo=$ac_try;;
23822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23823 $as_echo "$ac_try_echo") >&5
23824 (eval "$ac_compile") 2>conftest.er1
23826 grep -v '^ *+' conftest.er1 >conftest.err
23828 cat conftest.err >&5
23829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830 (exit $ac_status); } && {
23831 test -z "$ac_c_werror_flag" ||
23832 test ! -s conftest.err
23833 } && test -s conftest.$ac_objext; then
23834 ac_hi=$ac_mid; break
23836 $as_echo "$as_me: failed program was:" >&5
23837 sed 's/^/| /' conftest.$ac_ext >&5
23839 ac_lo=`expr $ac_mid + 1`
23840 if test $ac_lo -le $ac_mid; then
23844 ac_mid=`expr 2 '*' $ac_mid + 1`
23847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23850 $as_echo "$as_me: failed program was:" >&5
23851 sed 's/^/| /' conftest.$ac_ext >&5
23853 cat >conftest.$ac_ext <<_ACEOF
23856 cat confdefs.h >>conftest.$ac_ext
23857 cat >>conftest.$ac_ext <<_ACEOF
23858 /* end confdefs.h. */
23859 $ac_includes_default
23861 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23863 typedef struct { char x; short y; } ac__type_alignof_;
23867 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23874 rm -f conftest.$ac_objext
23875 if { (ac_try="$ac_compile"
23876 case "(($ac_try" in
23877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23878 *) ac_try_echo=$ac_try;;
23880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23881 $as_echo "$ac_try_echo") >&5
23882 (eval "$ac_compile") 2>conftest.er1
23884 grep -v '^ *+' conftest.er1 >conftest.err
23886 cat conftest.err >&5
23887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23888 (exit $ac_status); } && {
23889 test -z "$ac_c_werror_flag" ||
23890 test ! -s conftest.err
23891 } && test -s conftest.$ac_objext; then
23894 cat >conftest.$ac_ext <<_ACEOF
23897 cat confdefs.h >>conftest.$ac_ext
23898 cat >>conftest.$ac_ext <<_ACEOF
23899 /* end confdefs.h. */
23900 $ac_includes_default
23902 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23904 typedef struct { char x; short y; } ac__type_alignof_;
23908 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23915 rm -f conftest.$ac_objext
23916 if { (ac_try="$ac_compile"
23917 case "(($ac_try" in
23918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23919 *) ac_try_echo=$ac_try;;
23921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23922 $as_echo "$ac_try_echo") >&5
23923 (eval "$ac_compile") 2>conftest.er1
23925 grep -v '^ *+' conftest.er1 >conftest.err
23927 cat conftest.err >&5
23928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929 (exit $ac_status); } && {
23930 test -z "$ac_c_werror_flag" ||
23931 test ! -s conftest.err
23932 } && test -s conftest.$ac_objext; then
23933 ac_lo=$ac_mid; break
23935 $as_echo "$as_me: failed program was:" >&5
23936 sed 's/^/| /' conftest.$ac_ext >&5
23938 ac_hi=`expr '(' $ac_mid ')' - 1`
23939 if test $ac_mid -le $ac_hi; then
23943 ac_mid=`expr 2 '*' $ac_mid`
23946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23949 $as_echo "$as_me: failed program was:" >&5
23950 sed 's/^/| /' conftest.$ac_ext >&5
23955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23959 # Binary search between lo and hi bounds.
23960 while test "x$ac_lo" != "x$ac_hi"; do
23961 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23962 cat >conftest.$ac_ext <<_ACEOF
23965 cat confdefs.h >>conftest.$ac_ext
23966 cat >>conftest.$ac_ext <<_ACEOF
23967 /* end confdefs.h. */
23968 $ac_includes_default
23970 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23972 typedef struct { char x; short y; } ac__type_alignof_;
23976 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23983 rm -f conftest.$ac_objext
23984 if { (ac_try="$ac_compile"
23985 case "(($ac_try" in
23986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23987 *) ac_try_echo=$ac_try;;
23989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23990 $as_echo "$ac_try_echo") >&5
23991 (eval "$ac_compile") 2>conftest.er1
23993 grep -v '^ *+' conftest.er1 >conftest.err
23995 cat conftest.err >&5
23996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997 (exit $ac_status); } && {
23998 test -z "$ac_c_werror_flag" ||
23999 test ! -s conftest.err
24000 } && test -s conftest.$ac_objext; then
24003 $as_echo "$as_me: failed program was:" >&5
24004 sed 's/^/| /' conftest.$ac_ext >&5
24006 ac_lo=`expr '(' $ac_mid ')' + 1`
24009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24012 ?*) ac_cv_alignof_short=$ac_lo;;
24013 '') if test "$ac_cv_type_short" = yes; then
24014 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24016 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
24017 See \`config.log' for more details." >&5
24018 $as_echo "$as_me: error: cannot compute alignment of short
24019 See \`config.log' for more details." >&2;}
24020 { (exit 77); exit 77; }; }; }
24022 ac_cv_alignof_short=0
24026 cat >conftest.$ac_ext <<_ACEOF
24029 cat confdefs.h >>conftest.$ac_ext
24030 cat >>conftest.$ac_ext <<_ACEOF
24031 /* end confdefs.h. */
24032 $ac_includes_default
24034 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24036 typedef struct { char x; short y; } ac__type_alignof_;
24037 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24038 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24040 #include <stdlib.h>
24045 FILE *f = fopen ("conftest.val", "w");
24048 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24050 long int i = longval ();
24051 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24053 fprintf (f, "%ld", i);
24057 unsigned long int i = ulongval ();
24058 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24060 fprintf (f, "%lu", i);
24062 /* Do not output a trailing newline, as this causes \r\n confusion
24063 on some platforms. */
24064 return ferror (f) || fclose (f) != 0;
24070 rm -f conftest$ac_exeext
24071 if { (ac_try="$ac_link"
24072 case "(($ac_try" in
24073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24074 *) ac_try_echo=$ac_try;;
24076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24077 $as_echo "$ac_try_echo") >&5
24078 (eval "$ac_link") 2>&5
24080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24082 { (case "(($ac_try" in
24083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24084 *) ac_try_echo=$ac_try;;
24086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24087 $as_echo "$ac_try_echo") >&5
24088 (eval "$ac_try") 2>&5
24090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091 (exit $ac_status); }; }; then
24092 ac_cv_alignof_short=`cat conftest.val`
24094 $as_echo "$as_me: program exited with status $ac_status" >&5
24095 $as_echo "$as_me: failed program was:" >&5
24096 sed 's/^/| /' conftest.$ac_ext >&5
24098 ( exit $ac_status )
24099 if test "$ac_cv_type_short" = yes; then
24100 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24102 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
24103 See \`config.log' for more details." >&5
24104 $as_echo "$as_me: error: cannot compute alignment of short
24105 See \`config.log' for more details." >&2;}
24106 { (exit 77); exit 77; }; }; }
24108 ac_cv_alignof_short=0
24111 rm -rf conftest.dSYM
24112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24116 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
24117 $as_echo "$ac_cv_alignof_short" >&6; }
24121 cat >>confdefs.h <<_ACEOF
24122 #define ALIGNOF_SHORT $ac_cv_alignof_short
24126 # The cast to long int works around a bug in the HP C Compiler,
24127 # see AC_CHECK_SIZEOF for more information.
24128 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
24129 $as_echo_n "checking alignment of int... " >&6; }
24130 if test "${ac_cv_alignof_int+set}" = set; then
24131 $as_echo_n "(cached) " >&6
24133 if test "$cross_compiling" = yes; then
24134 # Depending upon the size, compute the lo and hi bounds.
24135 cat >conftest.$ac_ext <<_ACEOF
24138 cat confdefs.h >>conftest.$ac_ext
24139 cat >>conftest.$ac_ext <<_ACEOF
24140 /* end confdefs.h. */
24141 $ac_includes_default
24143 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24145 typedef struct { char x; int y; } ac__type_alignof_;
24149 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24156 rm -f conftest.$ac_objext
24157 if { (ac_try="$ac_compile"
24158 case "(($ac_try" in
24159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24160 *) ac_try_echo=$ac_try;;
24162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24163 $as_echo "$ac_try_echo") >&5
24164 (eval "$ac_compile") 2>conftest.er1
24166 grep -v '^ *+' conftest.er1 >conftest.err
24168 cat conftest.err >&5
24169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170 (exit $ac_status); } && {
24171 test -z "$ac_c_werror_flag" ||
24172 test ! -s conftest.err
24173 } && test -s conftest.$ac_objext; then
24176 cat >conftest.$ac_ext <<_ACEOF
24179 cat confdefs.h >>conftest.$ac_ext
24180 cat >>conftest.$ac_ext <<_ACEOF
24181 /* end confdefs.h. */
24182 $ac_includes_default
24184 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24186 typedef struct { char x; int y; } ac__type_alignof_;
24190 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24197 rm -f conftest.$ac_objext
24198 if { (ac_try="$ac_compile"
24199 case "(($ac_try" in
24200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24201 *) ac_try_echo=$ac_try;;
24203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24204 $as_echo "$ac_try_echo") >&5
24205 (eval "$ac_compile") 2>conftest.er1
24207 grep -v '^ *+' conftest.er1 >conftest.err
24209 cat conftest.err >&5
24210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211 (exit $ac_status); } && {
24212 test -z "$ac_c_werror_flag" ||
24213 test ! -s conftest.err
24214 } && test -s conftest.$ac_objext; then
24215 ac_hi=$ac_mid; break
24217 $as_echo "$as_me: failed program was:" >&5
24218 sed 's/^/| /' conftest.$ac_ext >&5
24220 ac_lo=`expr $ac_mid + 1`
24221 if test $ac_lo -le $ac_mid; then
24225 ac_mid=`expr 2 '*' $ac_mid + 1`
24228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24231 $as_echo "$as_me: failed program was:" >&5
24232 sed 's/^/| /' conftest.$ac_ext >&5
24234 cat >conftest.$ac_ext <<_ACEOF
24237 cat confdefs.h >>conftest.$ac_ext
24238 cat >>conftest.$ac_ext <<_ACEOF
24239 /* end confdefs.h. */
24240 $ac_includes_default
24242 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24244 typedef struct { char x; int y; } ac__type_alignof_;
24248 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24255 rm -f conftest.$ac_objext
24256 if { (ac_try="$ac_compile"
24257 case "(($ac_try" in
24258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24259 *) ac_try_echo=$ac_try;;
24261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24262 $as_echo "$ac_try_echo") >&5
24263 (eval "$ac_compile") 2>conftest.er1
24265 grep -v '^ *+' conftest.er1 >conftest.err
24267 cat conftest.err >&5
24268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24269 (exit $ac_status); } && {
24270 test -z "$ac_c_werror_flag" ||
24271 test ! -s conftest.err
24272 } && test -s conftest.$ac_objext; then
24275 cat >conftest.$ac_ext <<_ACEOF
24278 cat confdefs.h >>conftest.$ac_ext
24279 cat >>conftest.$ac_ext <<_ACEOF
24280 /* end confdefs.h. */
24281 $ac_includes_default
24283 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24285 typedef struct { char x; int y; } ac__type_alignof_;
24289 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24296 rm -f conftest.$ac_objext
24297 if { (ac_try="$ac_compile"
24298 case "(($ac_try" in
24299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24300 *) ac_try_echo=$ac_try;;
24302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24303 $as_echo "$ac_try_echo") >&5
24304 (eval "$ac_compile") 2>conftest.er1
24306 grep -v '^ *+' conftest.er1 >conftest.err
24308 cat conftest.err >&5
24309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310 (exit $ac_status); } && {
24311 test -z "$ac_c_werror_flag" ||
24312 test ! -s conftest.err
24313 } && test -s conftest.$ac_objext; then
24314 ac_lo=$ac_mid; break
24316 $as_echo "$as_me: failed program was:" >&5
24317 sed 's/^/| /' conftest.$ac_ext >&5
24319 ac_hi=`expr '(' $ac_mid ')' - 1`
24320 if test $ac_mid -le $ac_hi; then
24324 ac_mid=`expr 2 '*' $ac_mid`
24327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24330 $as_echo "$as_me: failed program was:" >&5
24331 sed 's/^/| /' conftest.$ac_ext >&5
24336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24340 # Binary search between lo and hi bounds.
24341 while test "x$ac_lo" != "x$ac_hi"; do
24342 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24343 cat >conftest.$ac_ext <<_ACEOF
24346 cat confdefs.h >>conftest.$ac_ext
24347 cat >>conftest.$ac_ext <<_ACEOF
24348 /* end confdefs.h. */
24349 $ac_includes_default
24351 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24353 typedef struct { char x; int y; } ac__type_alignof_;
24357 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24364 rm -f conftest.$ac_objext
24365 if { (ac_try="$ac_compile"
24366 case "(($ac_try" in
24367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24368 *) ac_try_echo=$ac_try;;
24370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24371 $as_echo "$ac_try_echo") >&5
24372 (eval "$ac_compile") 2>conftest.er1
24374 grep -v '^ *+' conftest.er1 >conftest.err
24376 cat conftest.err >&5
24377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378 (exit $ac_status); } && {
24379 test -z "$ac_c_werror_flag" ||
24380 test ! -s conftest.err
24381 } && test -s conftest.$ac_objext; then
24384 $as_echo "$as_me: failed program was:" >&5
24385 sed 's/^/| /' conftest.$ac_ext >&5
24387 ac_lo=`expr '(' $ac_mid ')' + 1`
24390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24393 ?*) ac_cv_alignof_int=$ac_lo;;
24394 '') if test "$ac_cv_type_int" = yes; then
24395 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24397 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
24398 See \`config.log' for more details." >&5
24399 $as_echo "$as_me: error: cannot compute alignment of int
24400 See \`config.log' for more details." >&2;}
24401 { (exit 77); exit 77; }; }; }
24403 ac_cv_alignof_int=0
24407 cat >conftest.$ac_ext <<_ACEOF
24410 cat confdefs.h >>conftest.$ac_ext
24411 cat >>conftest.$ac_ext <<_ACEOF
24412 /* end confdefs.h. */
24413 $ac_includes_default
24415 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24417 typedef struct { char x; int y; } ac__type_alignof_;
24418 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24419 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24421 #include <stdlib.h>
24426 FILE *f = fopen ("conftest.val", "w");
24429 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24431 long int i = longval ();
24432 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24434 fprintf (f, "%ld", i);
24438 unsigned long int i = ulongval ();
24439 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24441 fprintf (f, "%lu", i);
24443 /* Do not output a trailing newline, as this causes \r\n confusion
24444 on some platforms. */
24445 return ferror (f) || fclose (f) != 0;
24451 rm -f conftest$ac_exeext
24452 if { (ac_try="$ac_link"
24453 case "(($ac_try" in
24454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24455 *) ac_try_echo=$ac_try;;
24457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24458 $as_echo "$ac_try_echo") >&5
24459 (eval "$ac_link") 2>&5
24461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24463 { (case "(($ac_try" in
24464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24465 *) ac_try_echo=$ac_try;;
24467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24468 $as_echo "$ac_try_echo") >&5
24469 (eval "$ac_try") 2>&5
24471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24472 (exit $ac_status); }; }; then
24473 ac_cv_alignof_int=`cat conftest.val`
24475 $as_echo "$as_me: program exited with status $ac_status" >&5
24476 $as_echo "$as_me: failed program was:" >&5
24477 sed 's/^/| /' conftest.$ac_ext >&5
24479 ( exit $ac_status )
24480 if test "$ac_cv_type_int" = yes; then
24481 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24483 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
24484 See \`config.log' for more details." >&5
24485 $as_echo "$as_me: error: cannot compute alignment of int
24486 See \`config.log' for more details." >&2;}
24487 { (exit 77); exit 77; }; }; }
24489 ac_cv_alignof_int=0
24492 rm -rf conftest.dSYM
24493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24497 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
24498 $as_echo "$ac_cv_alignof_int" >&6; }
24502 cat >>confdefs.h <<_ACEOF
24503 #define ALIGNOF_INT $ac_cv_alignof_int
24507 # The cast to long int works around a bug in the HP C Compiler,
24508 # see AC_CHECK_SIZEOF for more information.
24509 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
24510 $as_echo_n "checking alignment of long... " >&6; }
24511 if test "${ac_cv_alignof_long+set}" = set; then
24512 $as_echo_n "(cached) " >&6
24514 if test "$cross_compiling" = yes; then
24515 # Depending upon the size, compute the lo and hi bounds.
24516 cat >conftest.$ac_ext <<_ACEOF
24519 cat confdefs.h >>conftest.$ac_ext
24520 cat >>conftest.$ac_ext <<_ACEOF
24521 /* end confdefs.h. */
24522 $ac_includes_default
24524 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24526 typedef struct { char x; long y; } ac__type_alignof_;
24530 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24537 rm -f conftest.$ac_objext
24538 if { (ac_try="$ac_compile"
24539 case "(($ac_try" in
24540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24541 *) ac_try_echo=$ac_try;;
24543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24544 $as_echo "$ac_try_echo") >&5
24545 (eval "$ac_compile") 2>conftest.er1
24547 grep -v '^ *+' conftest.er1 >conftest.err
24549 cat conftest.err >&5
24550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551 (exit $ac_status); } && {
24552 test -z "$ac_c_werror_flag" ||
24553 test ! -s conftest.err
24554 } && test -s conftest.$ac_objext; then
24557 cat >conftest.$ac_ext <<_ACEOF
24560 cat confdefs.h >>conftest.$ac_ext
24561 cat >>conftest.$ac_ext <<_ACEOF
24562 /* end confdefs.h. */
24563 $ac_includes_default
24565 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24567 typedef struct { char x; long y; } ac__type_alignof_;
24571 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24578 rm -f conftest.$ac_objext
24579 if { (ac_try="$ac_compile"
24580 case "(($ac_try" in
24581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24582 *) ac_try_echo=$ac_try;;
24584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24585 $as_echo "$ac_try_echo") >&5
24586 (eval "$ac_compile") 2>conftest.er1
24588 grep -v '^ *+' conftest.er1 >conftest.err
24590 cat conftest.err >&5
24591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24592 (exit $ac_status); } && {
24593 test -z "$ac_c_werror_flag" ||
24594 test ! -s conftest.err
24595 } && test -s conftest.$ac_objext; then
24596 ac_hi=$ac_mid; break
24598 $as_echo "$as_me: failed program was:" >&5
24599 sed 's/^/| /' conftest.$ac_ext >&5
24601 ac_lo=`expr $ac_mid + 1`
24602 if test $ac_lo -le $ac_mid; then
24606 ac_mid=`expr 2 '*' $ac_mid + 1`
24609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24612 $as_echo "$as_me: failed program was:" >&5
24613 sed 's/^/| /' conftest.$ac_ext >&5
24615 cat >conftest.$ac_ext <<_ACEOF
24618 cat confdefs.h >>conftest.$ac_ext
24619 cat >>conftest.$ac_ext <<_ACEOF
24620 /* end confdefs.h. */
24621 $ac_includes_default
24623 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24625 typedef struct { char x; long y; } ac__type_alignof_;
24629 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24636 rm -f conftest.$ac_objext
24637 if { (ac_try="$ac_compile"
24638 case "(($ac_try" in
24639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24640 *) ac_try_echo=$ac_try;;
24642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24643 $as_echo "$ac_try_echo") >&5
24644 (eval "$ac_compile") 2>conftest.er1
24646 grep -v '^ *+' conftest.er1 >conftest.err
24648 cat conftest.err >&5
24649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650 (exit $ac_status); } && {
24651 test -z "$ac_c_werror_flag" ||
24652 test ! -s conftest.err
24653 } && test -s conftest.$ac_objext; then
24656 cat >conftest.$ac_ext <<_ACEOF
24659 cat confdefs.h >>conftest.$ac_ext
24660 cat >>conftest.$ac_ext <<_ACEOF
24661 /* end confdefs.h. */
24662 $ac_includes_default
24664 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24666 typedef struct { char x; long y; } ac__type_alignof_;
24670 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24677 rm -f conftest.$ac_objext
24678 if { (ac_try="$ac_compile"
24679 case "(($ac_try" in
24680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24681 *) ac_try_echo=$ac_try;;
24683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24684 $as_echo "$ac_try_echo") >&5
24685 (eval "$ac_compile") 2>conftest.er1
24687 grep -v '^ *+' conftest.er1 >conftest.err
24689 cat conftest.err >&5
24690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691 (exit $ac_status); } && {
24692 test -z "$ac_c_werror_flag" ||
24693 test ! -s conftest.err
24694 } && test -s conftest.$ac_objext; then
24695 ac_lo=$ac_mid; break
24697 $as_echo "$as_me: failed program was:" >&5
24698 sed 's/^/| /' conftest.$ac_ext >&5
24700 ac_hi=`expr '(' $ac_mid ')' - 1`
24701 if test $ac_mid -le $ac_hi; then
24705 ac_mid=`expr 2 '*' $ac_mid`
24708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24711 $as_echo "$as_me: failed program was:" >&5
24712 sed 's/^/| /' conftest.$ac_ext >&5
24717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24721 # Binary search between lo and hi bounds.
24722 while test "x$ac_lo" != "x$ac_hi"; do
24723 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24724 cat >conftest.$ac_ext <<_ACEOF
24727 cat confdefs.h >>conftest.$ac_ext
24728 cat >>conftest.$ac_ext <<_ACEOF
24729 /* end confdefs.h. */
24730 $ac_includes_default
24732 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24734 typedef struct { char x; long y; } ac__type_alignof_;
24738 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24745 rm -f conftest.$ac_objext
24746 if { (ac_try="$ac_compile"
24747 case "(($ac_try" in
24748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24749 *) ac_try_echo=$ac_try;;
24751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24752 $as_echo "$ac_try_echo") >&5
24753 (eval "$ac_compile") 2>conftest.er1
24755 grep -v '^ *+' conftest.er1 >conftest.err
24757 cat conftest.err >&5
24758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759 (exit $ac_status); } && {
24760 test -z "$ac_c_werror_flag" ||
24761 test ! -s conftest.err
24762 } && test -s conftest.$ac_objext; then
24765 $as_echo "$as_me: failed program was:" >&5
24766 sed 's/^/| /' conftest.$ac_ext >&5
24768 ac_lo=`expr '(' $ac_mid ')' + 1`
24771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24774 ?*) ac_cv_alignof_long=$ac_lo;;
24775 '') if test "$ac_cv_type_long" = yes; then
24776 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24778 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
24779 See \`config.log' for more details." >&5
24780 $as_echo "$as_me: error: cannot compute alignment of long
24781 See \`config.log' for more details." >&2;}
24782 { (exit 77); exit 77; }; }; }
24784 ac_cv_alignof_long=0
24788 cat >conftest.$ac_ext <<_ACEOF
24791 cat confdefs.h >>conftest.$ac_ext
24792 cat >>conftest.$ac_ext <<_ACEOF
24793 /* end confdefs.h. */
24794 $ac_includes_default
24796 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24798 typedef struct { char x; long y; } ac__type_alignof_;
24799 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24800 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24802 #include <stdlib.h>
24807 FILE *f = fopen ("conftest.val", "w");
24810 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24812 long int i = longval ();
24813 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24815 fprintf (f, "%ld", i);
24819 unsigned long int i = ulongval ();
24820 if (i != ((long int) offsetof (ac__type_alignof_, y)))
24822 fprintf (f, "%lu", i);
24824 /* Do not output a trailing newline, as this causes \r\n confusion
24825 on some platforms. */
24826 return ferror (f) || fclose (f) != 0;
24832 rm -f conftest$ac_exeext
24833 if { (ac_try="$ac_link"
24834 case "(($ac_try" in
24835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24836 *) ac_try_echo=$ac_try;;
24838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24839 $as_echo "$ac_try_echo") >&5
24840 (eval "$ac_link") 2>&5
24842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24844 { (case "(($ac_try" in
24845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24846 *) ac_try_echo=$ac_try;;
24848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24849 $as_echo "$ac_try_echo") >&5
24850 (eval "$ac_try") 2>&5
24852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853 (exit $ac_status); }; }; then
24854 ac_cv_alignof_long=`cat conftest.val`
24856 $as_echo "$as_me: program exited with status $ac_status" >&5
24857 $as_echo "$as_me: failed program was:" >&5
24858 sed 's/^/| /' conftest.$ac_ext >&5
24860 ( exit $ac_status )
24861 if test "$ac_cv_type_long" = yes; then
24862 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24864 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
24865 See \`config.log' for more details." >&5
24866 $as_echo "$as_me: error: cannot compute alignment of long
24867 See \`config.log' for more details." >&2;}
24868 { (exit 77); exit 77; }; }; }
24870 ac_cv_alignof_long=0
24873 rm -rf conftest.dSYM
24874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24878 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
24879 $as_echo "$ac_cv_alignof_long" >&6; }
24883 cat >>confdefs.h <<_ACEOF
24884 #define ALIGNOF_LONG $ac_cv_alignof_long
24888 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
24889 # The cast to long int works around a bug in the HP C Compiler,
24890 # see AC_CHECK_SIZEOF for more information.
24891 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
24892 $as_echo_n "checking alignment of long long int... " >&6; }
24893 if test "${ac_cv_alignof_long_long_int+set}" = set; then
24894 $as_echo_n "(cached) " >&6
24896 if test "$cross_compiling" = yes; then
24897 # Depending upon the size, compute the lo and hi bounds.
24898 cat >conftest.$ac_ext <<_ACEOF
24901 cat confdefs.h >>conftest.$ac_ext
24902 cat >>conftest.$ac_ext <<_ACEOF
24903 /* end confdefs.h. */
24904 $ac_includes_default
24906 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24908 typedef struct { char x; long long int y; } ac__type_alignof_;
24912 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24919 rm -f conftest.$ac_objext
24920 if { (ac_try="$ac_compile"
24921 case "(($ac_try" in
24922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24923 *) ac_try_echo=$ac_try;;
24925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24926 $as_echo "$ac_try_echo") >&5
24927 (eval "$ac_compile") 2>conftest.er1
24929 grep -v '^ *+' conftest.er1 >conftest.err
24931 cat conftest.err >&5
24932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); } && {
24934 test -z "$ac_c_werror_flag" ||
24935 test ! -s conftest.err
24936 } && test -s conftest.$ac_objext; then
24939 cat >conftest.$ac_ext <<_ACEOF
24942 cat confdefs.h >>conftest.$ac_ext
24943 cat >>conftest.$ac_ext <<_ACEOF
24944 /* end confdefs.h. */
24945 $ac_includes_default
24947 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24949 typedef struct { char x; long long int y; } ac__type_alignof_;
24953 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24960 rm -f conftest.$ac_objext
24961 if { (ac_try="$ac_compile"
24962 case "(($ac_try" in
24963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24964 *) ac_try_echo=$ac_try;;
24966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24967 $as_echo "$ac_try_echo") >&5
24968 (eval "$ac_compile") 2>conftest.er1
24970 grep -v '^ *+' conftest.er1 >conftest.err
24972 cat conftest.err >&5
24973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974 (exit $ac_status); } && {
24975 test -z "$ac_c_werror_flag" ||
24976 test ! -s conftest.err
24977 } && test -s conftest.$ac_objext; then
24978 ac_hi=$ac_mid; break
24980 $as_echo "$as_me: failed program was:" >&5
24981 sed 's/^/| /' conftest.$ac_ext >&5
24983 ac_lo=`expr $ac_mid + 1`
24984 if test $ac_lo -le $ac_mid; then
24988 ac_mid=`expr 2 '*' $ac_mid + 1`
24991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24994 $as_echo "$as_me: failed program was:" >&5
24995 sed 's/^/| /' conftest.$ac_ext >&5
24997 cat >conftest.$ac_ext <<_ACEOF
25000 cat confdefs.h >>conftest.$ac_ext
25001 cat >>conftest.$ac_ext <<_ACEOF
25002 /* end confdefs.h. */
25003 $ac_includes_default
25005 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25007 typedef struct { char x; long long int y; } ac__type_alignof_;
25011 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 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
25046 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25048 typedef struct { char x; long long int y; } ac__type_alignof_;
25052 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25059 rm -f conftest.$ac_objext
25060 if { (ac_try="$ac_compile"
25061 case "(($ac_try" in
25062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25063 *) ac_try_echo=$ac_try;;
25065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25066 $as_echo "$ac_try_echo") >&5
25067 (eval "$ac_compile") 2>conftest.er1
25069 grep -v '^ *+' conftest.er1 >conftest.err
25071 cat conftest.err >&5
25072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073 (exit $ac_status); } && {
25074 test -z "$ac_c_werror_flag" ||
25075 test ! -s conftest.err
25076 } && test -s conftest.$ac_objext; then
25077 ac_lo=$ac_mid; break
25079 $as_echo "$as_me: failed program was:" >&5
25080 sed 's/^/| /' conftest.$ac_ext >&5
25082 ac_hi=`expr '(' $ac_mid ')' - 1`
25083 if test $ac_mid -le $ac_hi; then
25087 ac_mid=`expr 2 '*' $ac_mid`
25090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25093 $as_echo "$as_me: failed program was:" >&5
25094 sed 's/^/| /' conftest.$ac_ext >&5
25099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25103 # Binary search between lo and hi bounds.
25104 while test "x$ac_lo" != "x$ac_hi"; do
25105 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25106 cat >conftest.$ac_ext <<_ACEOF
25109 cat confdefs.h >>conftest.$ac_ext
25110 cat >>conftest.$ac_ext <<_ACEOF
25111 /* end confdefs.h. */
25112 $ac_includes_default
25114 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25116 typedef struct { char x; long long int y; } ac__type_alignof_;
25120 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25127 rm -f conftest.$ac_objext
25128 if { (ac_try="$ac_compile"
25129 case "(($ac_try" in
25130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25131 *) ac_try_echo=$ac_try;;
25133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25134 $as_echo "$ac_try_echo") >&5
25135 (eval "$ac_compile") 2>conftest.er1
25137 grep -v '^ *+' conftest.er1 >conftest.err
25139 cat conftest.err >&5
25140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141 (exit $ac_status); } && {
25142 test -z "$ac_c_werror_flag" ||
25143 test ! -s conftest.err
25144 } && test -s conftest.$ac_objext; then
25147 $as_echo "$as_me: failed program was:" >&5
25148 sed 's/^/| /' conftest.$ac_ext >&5
25150 ac_lo=`expr '(' $ac_mid ')' + 1`
25153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25156 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
25157 '') if test "$ac_cv_type_long_long_int" = yes; then
25158 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25160 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
25161 See \`config.log' for more details." >&5
25162 $as_echo "$as_me: error: cannot compute alignment of long long int
25163 See \`config.log' for more details." >&2;}
25164 { (exit 77); exit 77; }; }; }
25166 ac_cv_alignof_long_long_int=0
25170 cat >conftest.$ac_ext <<_ACEOF
25173 cat confdefs.h >>conftest.$ac_ext
25174 cat >>conftest.$ac_ext <<_ACEOF
25175 /* end confdefs.h. */
25176 $ac_includes_default
25178 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25180 typedef struct { char x; long long int y; } ac__type_alignof_;
25181 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25182 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25184 #include <stdlib.h>
25189 FILE *f = fopen ("conftest.val", "w");
25192 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25194 long int i = longval ();
25195 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25197 fprintf (f, "%ld", i);
25201 unsigned long int i = ulongval ();
25202 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25204 fprintf (f, "%lu", i);
25206 /* Do not output a trailing newline, as this causes \r\n confusion
25207 on some platforms. */
25208 return ferror (f) || fclose (f) != 0;
25214 rm -f conftest$ac_exeext
25215 if { (ac_try="$ac_link"
25216 case "(($ac_try" in
25217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25218 *) ac_try_echo=$ac_try;;
25220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25221 $as_echo "$ac_try_echo") >&5
25222 (eval "$ac_link") 2>&5
25224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25226 { (case "(($ac_try" in
25227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25228 *) ac_try_echo=$ac_try;;
25230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25231 $as_echo "$ac_try_echo") >&5
25232 (eval "$ac_try") 2>&5
25234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25235 (exit $ac_status); }; }; then
25236 ac_cv_alignof_long_long_int=`cat conftest.val`
25238 $as_echo "$as_me: program exited with status $ac_status" >&5
25239 $as_echo "$as_me: failed program was:" >&5
25240 sed 's/^/| /' conftest.$ac_ext >&5
25242 ( exit $ac_status )
25243 if test "$ac_cv_type_long_long_int" = yes; then
25244 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25246 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
25247 See \`config.log' for more details." >&5
25248 $as_echo "$as_me: error: cannot compute alignment of long long int
25249 See \`config.log' for more details." >&2;}
25250 { (exit 77); exit 77; }; }; }
25252 ac_cv_alignof_long_long_int=0
25255 rm -rf conftest.dSYM
25256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25260 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
25261 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
25265 cat >>confdefs.h <<_ACEOF
25266 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
25271 # The cast to long int works around a bug in the HP C Compiler,
25272 # see AC_CHECK_SIZEOF for more information.
25273 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
25274 $as_echo_n "checking alignment of double... " >&6; }
25275 if test "${ac_cv_alignof_double+set}" = set; then
25276 $as_echo_n "(cached) " >&6
25278 if test "$cross_compiling" = yes; then
25279 # Depending upon the size, compute the lo and hi bounds.
25280 cat >conftest.$ac_ext <<_ACEOF
25283 cat confdefs.h >>conftest.$ac_ext
25284 cat >>conftest.$ac_ext <<_ACEOF
25285 /* end confdefs.h. */
25286 $ac_includes_default
25288 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25290 typedef struct { char x; double y; } ac__type_alignof_;
25294 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25301 rm -f conftest.$ac_objext
25302 if { (ac_try="$ac_compile"
25303 case "(($ac_try" in
25304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25305 *) ac_try_echo=$ac_try;;
25307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25308 $as_echo "$ac_try_echo") >&5
25309 (eval "$ac_compile") 2>conftest.er1
25311 grep -v '^ *+' conftest.er1 >conftest.err
25313 cat conftest.err >&5
25314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25315 (exit $ac_status); } && {
25316 test -z "$ac_c_werror_flag" ||
25317 test ! -s conftest.err
25318 } && test -s conftest.$ac_objext; then
25321 cat >conftest.$ac_ext <<_ACEOF
25324 cat confdefs.h >>conftest.$ac_ext
25325 cat >>conftest.$ac_ext <<_ACEOF
25326 /* end confdefs.h. */
25327 $ac_includes_default
25329 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25331 typedef struct { char x; double y; } ac__type_alignof_;
25335 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25342 rm -f conftest.$ac_objext
25343 if { (ac_try="$ac_compile"
25344 case "(($ac_try" in
25345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25346 *) ac_try_echo=$ac_try;;
25348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25349 $as_echo "$ac_try_echo") >&5
25350 (eval "$ac_compile") 2>conftest.er1
25352 grep -v '^ *+' conftest.er1 >conftest.err
25354 cat conftest.err >&5
25355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); } && {
25357 test -z "$ac_c_werror_flag" ||
25358 test ! -s conftest.err
25359 } && test -s conftest.$ac_objext; then
25360 ac_hi=$ac_mid; break
25362 $as_echo "$as_me: failed program was:" >&5
25363 sed 's/^/| /' conftest.$ac_ext >&5
25365 ac_lo=`expr $ac_mid + 1`
25366 if test $ac_lo -le $ac_mid; then
25370 ac_mid=`expr 2 '*' $ac_mid + 1`
25373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25376 $as_echo "$as_me: failed program was:" >&5
25377 sed 's/^/| /' conftest.$ac_ext >&5
25379 cat >conftest.$ac_ext <<_ACEOF
25382 cat confdefs.h >>conftest.$ac_ext
25383 cat >>conftest.$ac_ext <<_ACEOF
25384 /* end confdefs.h. */
25385 $ac_includes_default
25387 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25389 typedef struct { char x; double y; } ac__type_alignof_;
25393 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25400 rm -f conftest.$ac_objext
25401 if { (ac_try="$ac_compile"
25402 case "(($ac_try" in
25403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25404 *) ac_try_echo=$ac_try;;
25406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25407 $as_echo "$ac_try_echo") >&5
25408 (eval "$ac_compile") 2>conftest.er1
25410 grep -v '^ *+' conftest.er1 >conftest.err
25412 cat conftest.err >&5
25413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414 (exit $ac_status); } && {
25415 test -z "$ac_c_werror_flag" ||
25416 test ! -s conftest.err
25417 } && test -s conftest.$ac_objext; then
25420 cat >conftest.$ac_ext <<_ACEOF
25423 cat confdefs.h >>conftest.$ac_ext
25424 cat >>conftest.$ac_ext <<_ACEOF
25425 /* end confdefs.h. */
25426 $ac_includes_default
25428 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25430 typedef struct { char x; double y; } ac__type_alignof_;
25434 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25441 rm -f conftest.$ac_objext
25442 if { (ac_try="$ac_compile"
25443 case "(($ac_try" in
25444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25445 *) ac_try_echo=$ac_try;;
25447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25448 $as_echo "$ac_try_echo") >&5
25449 (eval "$ac_compile") 2>conftest.er1
25451 grep -v '^ *+' conftest.er1 >conftest.err
25453 cat conftest.err >&5
25454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455 (exit $ac_status); } && {
25456 test -z "$ac_c_werror_flag" ||
25457 test ! -s conftest.err
25458 } && test -s conftest.$ac_objext; then
25459 ac_lo=$ac_mid; break
25461 $as_echo "$as_me: failed program was:" >&5
25462 sed 's/^/| /' conftest.$ac_ext >&5
25464 ac_hi=`expr '(' $ac_mid ')' - 1`
25465 if test $ac_mid -le $ac_hi; then
25469 ac_mid=`expr 2 '*' $ac_mid`
25472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25475 $as_echo "$as_me: failed program was:" >&5
25476 sed 's/^/| /' conftest.$ac_ext >&5
25481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25485 # Binary search between lo and hi bounds.
25486 while test "x$ac_lo" != "x$ac_hi"; do
25487 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25488 cat >conftest.$ac_ext <<_ACEOF
25491 cat confdefs.h >>conftest.$ac_ext
25492 cat >>conftest.$ac_ext <<_ACEOF
25493 /* end confdefs.h. */
25494 $ac_includes_default
25496 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25498 typedef struct { char x; double y; } ac__type_alignof_;
25502 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25509 rm -f conftest.$ac_objext
25510 if { (ac_try="$ac_compile"
25511 case "(($ac_try" in
25512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25513 *) ac_try_echo=$ac_try;;
25515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25516 $as_echo "$ac_try_echo") >&5
25517 (eval "$ac_compile") 2>conftest.er1
25519 grep -v '^ *+' conftest.er1 >conftest.err
25521 cat conftest.err >&5
25522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523 (exit $ac_status); } && {
25524 test -z "$ac_c_werror_flag" ||
25525 test ! -s conftest.err
25526 } && test -s conftest.$ac_objext; then
25529 $as_echo "$as_me: failed program was:" >&5
25530 sed 's/^/| /' conftest.$ac_ext >&5
25532 ac_lo=`expr '(' $ac_mid ')' + 1`
25535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25538 ?*) ac_cv_alignof_double=$ac_lo;;
25539 '') if test "$ac_cv_type_double" = yes; then
25540 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25542 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
25543 See \`config.log' for more details." >&5
25544 $as_echo "$as_me: error: cannot compute alignment of double
25545 See \`config.log' for more details." >&2;}
25546 { (exit 77); exit 77; }; }; }
25548 ac_cv_alignof_double=0
25552 cat >conftest.$ac_ext <<_ACEOF
25555 cat confdefs.h >>conftest.$ac_ext
25556 cat >>conftest.$ac_ext <<_ACEOF
25557 /* end confdefs.h. */
25558 $ac_includes_default
25560 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25562 typedef struct { char x; double y; } ac__type_alignof_;
25563 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25564 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25566 #include <stdlib.h>
25571 FILE *f = fopen ("conftest.val", "w");
25574 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25576 long int i = longval ();
25577 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25579 fprintf (f, "%ld", i);
25583 unsigned long int i = ulongval ();
25584 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25586 fprintf (f, "%lu", i);
25588 /* Do not output a trailing newline, as this causes \r\n confusion
25589 on some platforms. */
25590 return ferror (f) || fclose (f) != 0;
25596 rm -f conftest$ac_exeext
25597 if { (ac_try="$ac_link"
25598 case "(($ac_try" in
25599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25600 *) ac_try_echo=$ac_try;;
25602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25603 $as_echo "$ac_try_echo") >&5
25604 (eval "$ac_link") 2>&5
25606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25608 { (case "(($ac_try" in
25609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25610 *) ac_try_echo=$ac_try;;
25612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25613 $as_echo "$ac_try_echo") >&5
25614 (eval "$ac_try") 2>&5
25616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617 (exit $ac_status); }; }; then
25618 ac_cv_alignof_double=`cat conftest.val`
25620 $as_echo "$as_me: program exited with status $ac_status" >&5
25621 $as_echo "$as_me: failed program was:" >&5
25622 sed 's/^/| /' conftest.$ac_ext >&5
25624 ( exit $ac_status )
25625 if test "$ac_cv_type_double" = yes; then
25626 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25628 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
25629 See \`config.log' for more details." >&5
25630 $as_echo "$as_me: error: cannot compute alignment of double
25631 See \`config.log' for more details." >&2;}
25632 { (exit 77); exit 77; }; }; }
25634 ac_cv_alignof_double=0
25637 rm -rf conftest.dSYM
25638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25642 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
25643 $as_echo "$ac_cv_alignof_double" >&6; }
25647 cat >>confdefs.h <<_ACEOF
25648 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
25653 # Compute maximum alignment of any basic type.
25654 # We assume long's alignment is at least as strong as char, short, or int;
25655 # but we must check long long (if it exists) and double.
25657 MAX_ALIGNOF=$ac_cv_alignof_long
25658 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
25659 MAX_ALIGNOF=$ac_cv_alignof_double
25661 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
25662 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
25665 cat >>confdefs.h <<_ACEOF
25666 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
25671 # Some platforms predefine the types int8, int16, etc. Only check
25672 # a (hopefully) representative subset.
25673 { $as_echo "$as_me:$LINENO: checking for int8" >&5
25674 $as_echo_n "checking for int8... " >&6; }
25675 if test "${ac_cv_type_int8+set}" = set; then
25676 $as_echo_n "(cached) " >&6
25679 cat >conftest.$ac_ext <<_ACEOF
25682 cat confdefs.h >>conftest.$ac_ext
25683 cat >>conftest.$ac_ext <<_ACEOF
25684 /* end confdefs.h. */
25686 #ifdef HAVE_SUPPORTDEFS_H
25687 #include <SupportDefs.h>
25699 rm -f conftest.$ac_objext
25700 if { (ac_try="$ac_compile"
25701 case "(($ac_try" in
25702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25703 *) ac_try_echo=$ac_try;;
25705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25706 $as_echo "$ac_try_echo") >&5
25707 (eval "$ac_compile") 2>conftest.er1
25709 grep -v '^ *+' conftest.er1 >conftest.err
25711 cat conftest.err >&5
25712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713 (exit $ac_status); } && {
25714 test -z "$ac_c_werror_flag" ||
25715 test ! -s conftest.err
25716 } && test -s conftest.$ac_objext; then
25717 cat >conftest.$ac_ext <<_ACEOF
25720 cat confdefs.h >>conftest.$ac_ext
25721 cat >>conftest.$ac_ext <<_ACEOF
25722 /* end confdefs.h. */
25724 #ifdef HAVE_SUPPORTDEFS_H
25725 #include <SupportDefs.h>
25731 if (sizeof ((int8)))
25737 rm -f conftest.$ac_objext
25738 if { (ac_try="$ac_compile"
25739 case "(($ac_try" in
25740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25741 *) ac_try_echo=$ac_try;;
25743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25744 $as_echo "$ac_try_echo") >&5
25745 (eval "$ac_compile") 2>conftest.er1
25747 grep -v '^ *+' conftest.er1 >conftest.err
25749 cat conftest.err >&5
25750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751 (exit $ac_status); } && {
25752 test -z "$ac_c_werror_flag" ||
25753 test ! -s conftest.err
25754 } && test -s conftest.$ac_objext; then
25757 $as_echo "$as_me: failed program was:" >&5
25758 sed 's/^/| /' conftest.$ac_ext >&5
25760 ac_cv_type_int8=yes
25763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25765 $as_echo "$as_me: failed program was:" >&5
25766 sed 's/^/| /' conftest.$ac_ext >&5
25771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25773 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
25774 $as_echo "$ac_cv_type_int8" >&6; }
25775 if test "x$ac_cv_type_int8" = x""yes; then
25777 cat >>confdefs.h <<_ACEOF
25778 #define HAVE_INT8 1
25783 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
25784 $as_echo_n "checking for uint8... " >&6; }
25785 if test "${ac_cv_type_uint8+set}" = set; then
25786 $as_echo_n "(cached) " >&6
25788 ac_cv_type_uint8=no
25789 cat >conftest.$ac_ext <<_ACEOF
25792 cat confdefs.h >>conftest.$ac_ext
25793 cat >>conftest.$ac_ext <<_ACEOF
25794 /* end confdefs.h. */
25796 #ifdef HAVE_SUPPORTDEFS_H
25797 #include <SupportDefs.h>
25803 if (sizeof (uint8))
25809 rm -f conftest.$ac_objext
25810 if { (ac_try="$ac_compile"
25811 case "(($ac_try" in
25812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25813 *) ac_try_echo=$ac_try;;
25815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25816 $as_echo "$ac_try_echo") >&5
25817 (eval "$ac_compile") 2>conftest.er1
25819 grep -v '^ *+' conftest.er1 >conftest.err
25821 cat conftest.err >&5
25822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823 (exit $ac_status); } && {
25824 test -z "$ac_c_werror_flag" ||
25825 test ! -s conftest.err
25826 } && test -s conftest.$ac_objext; then
25827 cat >conftest.$ac_ext <<_ACEOF
25830 cat confdefs.h >>conftest.$ac_ext
25831 cat >>conftest.$ac_ext <<_ACEOF
25832 /* end confdefs.h. */
25834 #ifdef HAVE_SUPPORTDEFS_H
25835 #include <SupportDefs.h>
25841 if (sizeof ((uint8)))
25847 rm -f conftest.$ac_objext
25848 if { (ac_try="$ac_compile"
25849 case "(($ac_try" in
25850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25851 *) ac_try_echo=$ac_try;;
25853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25854 $as_echo "$ac_try_echo") >&5
25855 (eval "$ac_compile") 2>conftest.er1
25857 grep -v '^ *+' conftest.er1 >conftest.err
25859 cat conftest.err >&5
25860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861 (exit $ac_status); } && {
25862 test -z "$ac_c_werror_flag" ||
25863 test ! -s conftest.err
25864 } && test -s conftest.$ac_objext; then
25867 $as_echo "$as_me: failed program was:" >&5
25868 sed 's/^/| /' conftest.$ac_ext >&5
25870 ac_cv_type_uint8=yes
25873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25875 $as_echo "$as_me: failed program was:" >&5
25876 sed 's/^/| /' conftest.$ac_ext >&5
25881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25883 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
25884 $as_echo "$ac_cv_type_uint8" >&6; }
25885 if test "x$ac_cv_type_uint8" = x""yes; then
25887 cat >>confdefs.h <<_ACEOF
25888 #define HAVE_UINT8 1
25893 { $as_echo "$as_me:$LINENO: checking for int64" >&5
25894 $as_echo_n "checking for int64... " >&6; }
25895 if test "${ac_cv_type_int64+set}" = set; then
25896 $as_echo_n "(cached) " >&6
25898 ac_cv_type_int64=no
25899 cat >conftest.$ac_ext <<_ACEOF
25902 cat confdefs.h >>conftest.$ac_ext
25903 cat >>conftest.$ac_ext <<_ACEOF
25904 /* end confdefs.h. */
25906 #ifdef HAVE_SUPPORTDEFS_H
25907 #include <SupportDefs.h>
25913 if (sizeof (int64))
25919 rm -f conftest.$ac_objext
25920 if { (ac_try="$ac_compile"
25921 case "(($ac_try" in
25922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25923 *) ac_try_echo=$ac_try;;
25925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25926 $as_echo "$ac_try_echo") >&5
25927 (eval "$ac_compile") 2>conftest.er1
25929 grep -v '^ *+' conftest.er1 >conftest.err
25931 cat conftest.err >&5
25932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25933 (exit $ac_status); } && {
25934 test -z "$ac_c_werror_flag" ||
25935 test ! -s conftest.err
25936 } && test -s conftest.$ac_objext; then
25937 cat >conftest.$ac_ext <<_ACEOF
25940 cat confdefs.h >>conftest.$ac_ext
25941 cat >>conftest.$ac_ext <<_ACEOF
25942 /* end confdefs.h. */
25944 #ifdef HAVE_SUPPORTDEFS_H
25945 #include <SupportDefs.h>
25951 if (sizeof ((int64)))
25957 rm -f conftest.$ac_objext
25958 if { (ac_try="$ac_compile"
25959 case "(($ac_try" in
25960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25961 *) ac_try_echo=$ac_try;;
25963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25964 $as_echo "$ac_try_echo") >&5
25965 (eval "$ac_compile") 2>conftest.er1
25967 grep -v '^ *+' conftest.er1 >conftest.err
25969 cat conftest.err >&5
25970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); } && {
25972 test -z "$ac_c_werror_flag" ||
25973 test ! -s conftest.err
25974 } && test -s conftest.$ac_objext; then
25977 $as_echo "$as_me: failed program was:" >&5
25978 sed 's/^/| /' conftest.$ac_ext >&5
25980 ac_cv_type_int64=yes
25983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25985 $as_echo "$as_me: failed program was:" >&5
25986 sed 's/^/| /' conftest.$ac_ext >&5
25991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25993 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
25994 $as_echo "$ac_cv_type_int64" >&6; }
25995 if test "x$ac_cv_type_int64" = x""yes; then
25997 cat >>confdefs.h <<_ACEOF
25998 #define HAVE_INT64 1
26003 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
26004 $as_echo_n "checking for uint64... " >&6; }
26005 if test "${ac_cv_type_uint64+set}" = set; then
26006 $as_echo_n "(cached) " >&6
26008 ac_cv_type_uint64=no
26009 cat >conftest.$ac_ext <<_ACEOF
26012 cat confdefs.h >>conftest.$ac_ext
26013 cat >>conftest.$ac_ext <<_ACEOF
26014 /* end confdefs.h. */
26016 #ifdef HAVE_SUPPORTDEFS_H
26017 #include <SupportDefs.h>
26023 if (sizeof (uint64))
26029 rm -f conftest.$ac_objext
26030 if { (ac_try="$ac_compile"
26031 case "(($ac_try" in
26032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26033 *) ac_try_echo=$ac_try;;
26035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26036 $as_echo "$ac_try_echo") >&5
26037 (eval "$ac_compile") 2>conftest.er1
26039 grep -v '^ *+' conftest.er1 >conftest.err
26041 cat conftest.err >&5
26042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043 (exit $ac_status); } && {
26044 test -z "$ac_c_werror_flag" ||
26045 test ! -s conftest.err
26046 } && test -s conftest.$ac_objext; then
26047 cat >conftest.$ac_ext <<_ACEOF
26050 cat confdefs.h >>conftest.$ac_ext
26051 cat >>conftest.$ac_ext <<_ACEOF
26052 /* end confdefs.h. */
26054 #ifdef HAVE_SUPPORTDEFS_H
26055 #include <SupportDefs.h>
26061 if (sizeof ((uint64)))
26067 rm -f conftest.$ac_objext
26068 if { (ac_try="$ac_compile"
26069 case "(($ac_try" in
26070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26071 *) ac_try_echo=$ac_try;;
26073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26074 $as_echo "$ac_try_echo") >&5
26075 (eval "$ac_compile") 2>conftest.er1
26077 grep -v '^ *+' conftest.er1 >conftest.err
26079 cat conftest.err >&5
26080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26081 (exit $ac_status); } && {
26082 test -z "$ac_c_werror_flag" ||
26083 test ! -s conftest.err
26084 } && test -s conftest.$ac_objext; then
26087 $as_echo "$as_me: failed program was:" >&5
26088 sed 's/^/| /' conftest.$ac_ext >&5
26090 ac_cv_type_uint64=yes
26093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26095 $as_echo "$as_me: failed program was:" >&5
26096 sed 's/^/| /' conftest.$ac_ext >&5
26101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26103 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
26104 $as_echo "$ac_cv_type_uint64" >&6; }
26105 if test "x$ac_cv_type_uint64" = x""yes; then
26107 cat >>confdefs.h <<_ACEOF
26108 #define HAVE_UINT64 1
26115 # We also check for sig_atomic_t, which *should* be defined per ANSI
26116 # C, but is missing on some old platforms.
26117 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
26118 $as_echo_n "checking for sig_atomic_t... " >&6; }
26119 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
26120 $as_echo_n "(cached) " >&6
26122 ac_cv_type_sig_atomic_t=no
26123 cat >conftest.$ac_ext <<_ACEOF
26126 cat confdefs.h >>conftest.$ac_ext
26127 cat >>conftest.$ac_ext <<_ACEOF
26128 /* end confdefs.h. */
26129 #include <signal.h>
26134 if (sizeof (sig_atomic_t))
26140 rm -f conftest.$ac_objext
26141 if { (ac_try="$ac_compile"
26142 case "(($ac_try" in
26143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26144 *) ac_try_echo=$ac_try;;
26146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26147 $as_echo "$ac_try_echo") >&5
26148 (eval "$ac_compile") 2>conftest.er1
26150 grep -v '^ *+' conftest.er1 >conftest.err
26152 cat conftest.err >&5
26153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154 (exit $ac_status); } && {
26155 test -z "$ac_c_werror_flag" ||
26156 test ! -s conftest.err
26157 } && test -s conftest.$ac_objext; then
26158 cat >conftest.$ac_ext <<_ACEOF
26161 cat confdefs.h >>conftest.$ac_ext
26162 cat >>conftest.$ac_ext <<_ACEOF
26163 /* end confdefs.h. */
26164 #include <signal.h>
26169 if (sizeof ((sig_atomic_t)))
26175 rm -f conftest.$ac_objext
26176 if { (ac_try="$ac_compile"
26177 case "(($ac_try" in
26178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26179 *) ac_try_echo=$ac_try;;
26181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26182 $as_echo "$ac_try_echo") >&5
26183 (eval "$ac_compile") 2>conftest.er1
26185 grep -v '^ *+' conftest.er1 >conftest.err
26187 cat conftest.err >&5
26188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189 (exit $ac_status); } && {
26190 test -z "$ac_c_werror_flag" ||
26191 test ! -s conftest.err
26192 } && test -s conftest.$ac_objext; then
26195 $as_echo "$as_me: failed program was:" >&5
26196 sed 's/^/| /' conftest.$ac_ext >&5
26198 ac_cv_type_sig_atomic_t=yes
26201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26203 $as_echo "$as_me: failed program was:" >&5
26204 sed 's/^/| /' conftest.$ac_ext >&5
26209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26211 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
26212 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
26213 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
26215 cat >>confdefs.h <<_ACEOF
26216 #define HAVE_SIG_ATOMIC_T 1
26224 # If the user did not disable integer datetimes, check that
26225 # there is a working 64-bit integral type to use.
26226 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
26227 test x"$HAVE_LONG_INT_64" = x"no" &&
26228 test x"$HAVE_LONG_LONG_INT_64" = x"no" &&
26229 test x"$HAVE_INT64" = x"no" ; then
26230 { { $as_echo "$as_me:$LINENO: error:
26231 Integer-based datetime support requires a 64-bit integer type,
26232 but no such type could be found. The --disable-integer-datetimes
26233 configure option can be used to disable integer-based storage
26234 of datetime values." >&5
26235 $as_echo "$as_me: error:
26236 Integer-based datetime support requires a 64-bit integer type,
26237 but no such type could be found. The --disable-integer-datetimes
26238 configure option can be used to disable integer-based storage
26239 of datetime values." >&2;}
26240 { (exit 1); exit 1; }; }
26244 if test "$PORTNAME" != "win32"
26246 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
26247 $as_echo_n "checking for POSIX signal interface... " >&6; }
26248 if test "${pgac_cv_func_posix_signals+set}" = set; then
26249 $as_echo_n "(cached) " >&6
26251 cat >conftest.$ac_ext <<_ACEOF
26254 cat confdefs.h >>conftest.$ac_ext
26255 cat >>conftest.$ac_ext <<_ACEOF
26256 /* end confdefs.h. */
26257 #include <signal.h>
26262 struct sigaction act, oact;
26263 sigemptyset(&act.sa_mask);
26264 act.sa_flags = SA_RESTART;
26265 sigaction(0, &act, &oact);
26270 rm -f conftest.$ac_objext conftest$ac_exeext
26271 if { (ac_try="$ac_link"
26272 case "(($ac_try" in
26273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26274 *) ac_try_echo=$ac_try;;
26276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26277 $as_echo "$ac_try_echo") >&5
26278 (eval "$ac_link") 2>conftest.er1
26280 grep -v '^ *+' conftest.er1 >conftest.err
26282 cat conftest.err >&5
26283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284 (exit $ac_status); } && {
26285 test -z "$ac_c_werror_flag" ||
26286 test ! -s conftest.err
26287 } && test -s conftest$ac_exeext && {
26288 test "$cross_compiling" = yes ||
26289 $as_test_x conftest$ac_exeext
26291 pgac_cv_func_posix_signals=yes
26293 $as_echo "$as_me: failed program was:" >&5
26294 sed 's/^/| /' conftest.$ac_ext >&5
26296 pgac_cv_func_posix_signals=no
26299 rm -rf conftest.dSYM
26300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26301 conftest$ac_exeext conftest.$ac_ext
26303 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
26304 $as_echo "$pgac_cv_func_posix_signals" >&6; }
26305 if test x"$pgac_cv_func_posix_signals" = xyes ; then
26307 cat >>confdefs.h <<\_ACEOF
26308 #define HAVE_POSIX_SIGNALS /**/
26312 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
26314 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
26315 { { $as_echo "$as_me:$LINENO: error:
26316 Thread-safety requires POSIX signals, which are not supported by this
26317 operating system." >&5
26318 $as_echo "$as_me: error:
26319 Thread-safety requires POSIX signals, which are not supported by this
26320 operating system." >&2;}
26321 { (exit 1); exit 1; }; }
26325 if test $ac_cv_func_fseeko = yes; then
26326 # Check whether --enable-largefile was given.
26327 if test "${enable_largefile+set}" = set; then
26328 enableval=$enable_largefile;
26331 if test "$enable_largefile" != no; then
26333 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
26334 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
26335 if test "${ac_cv_sys_largefile_CC+set}" = set; then
26336 $as_echo_n "(cached) " >&6
26338 ac_cv_sys_largefile_CC=no
26339 if test "$GCC" != yes; then
26342 # IRIX 6.2 and later do not support large files by default,
26343 # so use the C compiler's -n32 option if that helps.
26344 cat >conftest.$ac_ext <<_ACEOF
26347 cat confdefs.h >>conftest.$ac_ext
26348 cat >>conftest.$ac_ext <<_ACEOF
26349 /* end confdefs.h. */
26350 #include <sys/types.h>
26351 /* Check that off_t can represent 2**63 - 1 correctly.
26352 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26353 since some C++ compilers masquerading as C compilers
26354 incorrectly reject 9223372036854775807. */
26355 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26356 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26357 && LARGE_OFF_T % 2147483647 == 1)
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
26393 rm -f core conftest.err conftest.$ac_objext
26395 rm -f conftest.$ac_objext
26396 if { (ac_try="$ac_compile"
26397 case "(($ac_try" in
26398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26399 *) ac_try_echo=$ac_try;;
26401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26402 $as_echo "$ac_try_echo") >&5
26403 (eval "$ac_compile") 2>conftest.er1
26405 grep -v '^ *+' conftest.er1 >conftest.err
26407 cat conftest.err >&5
26408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409 (exit $ac_status); } && {
26410 test -z "$ac_c_werror_flag" ||
26411 test ! -s conftest.err
26412 } && test -s conftest.$ac_objext; then
26413 ac_cv_sys_largefile_CC=' -n32'; break
26415 $as_echo "$as_me: failed program was:" >&5
26416 sed 's/^/| /' conftest.$ac_ext >&5
26421 rm -f core conftest.err conftest.$ac_objext
26425 rm -f conftest.$ac_ext
26428 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
26429 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
26430 if test "$ac_cv_sys_largefile_CC" != no; then
26431 CC=$CC$ac_cv_sys_largefile_CC
26434 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
26435 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
26436 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
26437 $as_echo_n "(cached) " >&6
26440 cat >conftest.$ac_ext <<_ACEOF
26443 cat confdefs.h >>conftest.$ac_ext
26444 cat >>conftest.$ac_ext <<_ACEOF
26445 /* end confdefs.h. */
26446 #include <sys/types.h>
26447 /* Check that off_t can represent 2**63 - 1 correctly.
26448 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26449 since some C++ compilers masquerading as C compilers
26450 incorrectly reject 9223372036854775807. */
26451 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26452 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26453 && LARGE_OFF_T % 2147483647 == 1)
26463 rm -f conftest.$ac_objext
26464 if { (ac_try="$ac_compile"
26465 case "(($ac_try" in
26466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26467 *) ac_try_echo=$ac_try;;
26469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26470 $as_echo "$ac_try_echo") >&5
26471 (eval "$ac_compile") 2>conftest.er1
26473 grep -v '^ *+' conftest.er1 >conftest.err
26475 cat conftest.err >&5
26476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26477 (exit $ac_status); } && {
26478 test -z "$ac_c_werror_flag" ||
26479 test ! -s conftest.err
26480 } && test -s conftest.$ac_objext; then
26481 ac_cv_sys_file_offset_bits=no; break
26483 $as_echo "$as_me: failed program was:" >&5
26484 sed 's/^/| /' conftest.$ac_ext >&5
26489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26490 cat >conftest.$ac_ext <<_ACEOF
26493 cat confdefs.h >>conftest.$ac_ext
26494 cat >>conftest.$ac_ext <<_ACEOF
26495 /* end confdefs.h. */
26496 #define _FILE_OFFSET_BITS 64
26497 #include <sys/types.h>
26498 /* Check that off_t can represent 2**63 - 1 correctly.
26499 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26500 since some C++ compilers masquerading as C compilers
26501 incorrectly reject 9223372036854775807. */
26502 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26503 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26504 && LARGE_OFF_T % 2147483647 == 1)
26514 rm -f conftest.$ac_objext
26515 if { (ac_try="$ac_compile"
26516 case "(($ac_try" in
26517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26518 *) ac_try_echo=$ac_try;;
26520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26521 $as_echo "$ac_try_echo") >&5
26522 (eval "$ac_compile") 2>conftest.er1
26524 grep -v '^ *+' conftest.er1 >conftest.err
26526 cat conftest.err >&5
26527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26528 (exit $ac_status); } && {
26529 test -z "$ac_c_werror_flag" ||
26530 test ! -s conftest.err
26531 } && test -s conftest.$ac_objext; then
26532 ac_cv_sys_file_offset_bits=64; break
26534 $as_echo "$as_me: failed program was:" >&5
26535 sed 's/^/| /' conftest.$ac_ext >&5
26540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26541 ac_cv_sys_file_offset_bits=unknown
26545 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
26546 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
26547 case $ac_cv_sys_file_offset_bits in #(
26550 cat >>confdefs.h <<_ACEOF
26551 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
26556 if test $ac_cv_sys_file_offset_bits = unknown; then
26557 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
26558 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
26559 if test "${ac_cv_sys_large_files+set}" = set; then
26560 $as_echo_n "(cached) " >&6
26563 cat >conftest.$ac_ext <<_ACEOF
26566 cat confdefs.h >>conftest.$ac_ext
26567 cat >>conftest.$ac_ext <<_ACEOF
26568 /* end confdefs.h. */
26569 #include <sys/types.h>
26570 /* Check that off_t can represent 2**63 - 1 correctly.
26571 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26572 since some C++ compilers masquerading as C compilers
26573 incorrectly reject 9223372036854775807. */
26574 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26575 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26576 && LARGE_OFF_T % 2147483647 == 1)
26586 rm -f conftest.$ac_objext
26587 if { (ac_try="$ac_compile"
26588 case "(($ac_try" in
26589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26590 *) ac_try_echo=$ac_try;;
26592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26593 $as_echo "$ac_try_echo") >&5
26594 (eval "$ac_compile") 2>conftest.er1
26596 grep -v '^ *+' conftest.er1 >conftest.err
26598 cat conftest.err >&5
26599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600 (exit $ac_status); } && {
26601 test -z "$ac_c_werror_flag" ||
26602 test ! -s conftest.err
26603 } && test -s conftest.$ac_objext; then
26604 ac_cv_sys_large_files=no; break
26606 $as_echo "$as_me: failed program was:" >&5
26607 sed 's/^/| /' conftest.$ac_ext >&5
26612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26613 cat >conftest.$ac_ext <<_ACEOF
26616 cat confdefs.h >>conftest.$ac_ext
26617 cat >>conftest.$ac_ext <<_ACEOF
26618 /* end confdefs.h. */
26619 #define _LARGE_FILES 1
26620 #include <sys/types.h>
26621 /* Check that off_t can represent 2**63 - 1 correctly.
26622 We can't simply define LARGE_OFF_T to be 9223372036854775807,
26623 since some C++ compilers masquerading as C compilers
26624 incorrectly reject 9223372036854775807. */
26625 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
26626 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
26627 && LARGE_OFF_T % 2147483647 == 1)
26637 rm -f conftest.$ac_objext
26638 if { (ac_try="$ac_compile"
26639 case "(($ac_try" in
26640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26641 *) ac_try_echo=$ac_try;;
26643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26644 $as_echo "$ac_try_echo") >&5
26645 (eval "$ac_compile") 2>conftest.er1
26647 grep -v '^ *+' conftest.er1 >conftest.err
26649 cat conftest.err >&5
26650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651 (exit $ac_status); } && {
26652 test -z "$ac_c_werror_flag" ||
26653 test ! -s conftest.err
26654 } && test -s conftest.$ac_objext; then
26655 ac_cv_sys_large_files=1; break
26657 $as_echo "$as_me: failed program was:" >&5
26658 sed 's/^/| /' conftest.$ac_ext >&5
26663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26664 ac_cv_sys_large_files=unknown
26668 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
26669 $as_echo "$ac_cv_sys_large_files" >&6; }
26670 case $ac_cv_sys_large_files in #(
26673 cat >>confdefs.h <<_ACEOF
26674 #define _LARGE_FILES $ac_cv_sys_large_files
26684 # Check for largefile support (must be after AC_SYS_LARGEFILE)
26685 # The cast to long int works around a bug in the HP C Compiler
26686 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26687 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26688 # This bug is HP SR number 8606223364.
26689 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
26690 $as_echo_n "checking size of off_t... " >&6; }
26691 if test "${ac_cv_sizeof_off_t+set}" = set; then
26692 $as_echo_n "(cached) " >&6
26694 if test "$cross_compiling" = yes; then
26695 # Depending upon the size, compute the lo and hi bounds.
26696 cat >conftest.$ac_ext <<_ACEOF
26699 cat confdefs.h >>conftest.$ac_ext
26700 cat >>conftest.$ac_ext <<_ACEOF
26701 /* end confdefs.h. */
26702 $ac_includes_default
26706 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
26713 rm -f conftest.$ac_objext
26714 if { (ac_try="$ac_compile"
26715 case "(($ac_try" in
26716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26717 *) ac_try_echo=$ac_try;;
26719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26720 $as_echo "$ac_try_echo") >&5
26721 (eval "$ac_compile") 2>conftest.er1
26723 grep -v '^ *+' conftest.er1 >conftest.err
26725 cat conftest.err >&5
26726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26727 (exit $ac_status); } && {
26728 test -z "$ac_c_werror_flag" ||
26729 test ! -s conftest.err
26730 } && test -s conftest.$ac_objext; then
26733 cat >conftest.$ac_ext <<_ACEOF
26736 cat confdefs.h >>conftest.$ac_ext
26737 cat >>conftest.$ac_ext <<_ACEOF
26738 /* end confdefs.h. */
26739 $ac_includes_default
26743 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
26750 rm -f conftest.$ac_objext
26751 if { (ac_try="$ac_compile"
26752 case "(($ac_try" in
26753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26754 *) ac_try_echo=$ac_try;;
26756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26757 $as_echo "$ac_try_echo") >&5
26758 (eval "$ac_compile") 2>conftest.er1
26760 grep -v '^ *+' conftest.er1 >conftest.err
26762 cat conftest.err >&5
26763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26764 (exit $ac_status); } && {
26765 test -z "$ac_c_werror_flag" ||
26766 test ! -s conftest.err
26767 } && test -s conftest.$ac_objext; then
26768 ac_hi=$ac_mid; break
26770 $as_echo "$as_me: failed program was:" >&5
26771 sed 's/^/| /' conftest.$ac_ext >&5
26773 ac_lo=`expr $ac_mid + 1`
26774 if test $ac_lo -le $ac_mid; then
26778 ac_mid=`expr 2 '*' $ac_mid + 1`
26781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26784 $as_echo "$as_me: failed program was:" >&5
26785 sed 's/^/| /' conftest.$ac_ext >&5
26787 cat >conftest.$ac_ext <<_ACEOF
26790 cat confdefs.h >>conftest.$ac_ext
26791 cat >>conftest.$ac_ext <<_ACEOF
26792 /* end confdefs.h. */
26793 $ac_includes_default
26797 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
26804 rm -f conftest.$ac_objext
26805 if { (ac_try="$ac_compile"
26806 case "(($ac_try" in
26807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26808 *) ac_try_echo=$ac_try;;
26810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26811 $as_echo "$ac_try_echo") >&5
26812 (eval "$ac_compile") 2>conftest.er1
26814 grep -v '^ *+' conftest.er1 >conftest.err
26816 cat conftest.err >&5
26817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26818 (exit $ac_status); } && {
26819 test -z "$ac_c_werror_flag" ||
26820 test ! -s conftest.err
26821 } && test -s conftest.$ac_objext; then
26824 cat >conftest.$ac_ext <<_ACEOF
26827 cat confdefs.h >>conftest.$ac_ext
26828 cat >>conftest.$ac_ext <<_ACEOF
26829 /* end confdefs.h. */
26830 $ac_includes_default
26834 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
26841 rm -f conftest.$ac_objext
26842 if { (ac_try="$ac_compile"
26843 case "(($ac_try" in
26844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26845 *) ac_try_echo=$ac_try;;
26847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26848 $as_echo "$ac_try_echo") >&5
26849 (eval "$ac_compile") 2>conftest.er1
26851 grep -v '^ *+' conftest.er1 >conftest.err
26853 cat conftest.err >&5
26854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855 (exit $ac_status); } && {
26856 test -z "$ac_c_werror_flag" ||
26857 test ! -s conftest.err
26858 } && test -s conftest.$ac_objext; then
26859 ac_lo=$ac_mid; break
26861 $as_echo "$as_me: failed program was:" >&5
26862 sed 's/^/| /' conftest.$ac_ext >&5
26864 ac_hi=`expr '(' $ac_mid ')' - 1`
26865 if test $ac_mid -le $ac_hi; then
26869 ac_mid=`expr 2 '*' $ac_mid`
26872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26875 $as_echo "$as_me: failed program was:" >&5
26876 sed 's/^/| /' conftest.$ac_ext >&5
26881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26885 # Binary search between lo and hi bounds.
26886 while test "x$ac_lo" != "x$ac_hi"; do
26887 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26888 cat >conftest.$ac_ext <<_ACEOF
26891 cat confdefs.h >>conftest.$ac_ext
26892 cat >>conftest.$ac_ext <<_ACEOF
26893 /* end confdefs.h. */
26894 $ac_includes_default
26898 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
26905 rm -f conftest.$ac_objext
26906 if { (ac_try="$ac_compile"
26907 case "(($ac_try" in
26908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26909 *) ac_try_echo=$ac_try;;
26911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26912 $as_echo "$ac_try_echo") >&5
26913 (eval "$ac_compile") 2>conftest.er1
26915 grep -v '^ *+' conftest.er1 >conftest.err
26917 cat conftest.err >&5
26918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919 (exit $ac_status); } && {
26920 test -z "$ac_c_werror_flag" ||
26921 test ! -s conftest.err
26922 } && test -s conftest.$ac_objext; then
26925 $as_echo "$as_me: failed program was:" >&5
26926 sed 's/^/| /' conftest.$ac_ext >&5
26928 ac_lo=`expr '(' $ac_mid ')' + 1`
26931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26934 ?*) ac_cv_sizeof_off_t=$ac_lo;;
26935 '') if test "$ac_cv_type_off_t" = yes; then
26936 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26938 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
26939 See \`config.log' for more details." >&5
26940 $as_echo "$as_me: error: cannot compute sizeof (off_t)
26941 See \`config.log' for more details." >&2;}
26942 { (exit 77); exit 77; }; }; }
26944 ac_cv_sizeof_off_t=0
26948 cat >conftest.$ac_ext <<_ACEOF
26951 cat confdefs.h >>conftest.$ac_ext
26952 cat >>conftest.$ac_ext <<_ACEOF
26953 /* end confdefs.h. */
26954 $ac_includes_default
26955 static long int longval () { return (long int) (sizeof (off_t)); }
26956 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
26958 #include <stdlib.h>
26963 FILE *f = fopen ("conftest.val", "w");
26966 if (((long int) (sizeof (off_t))) < 0)
26968 long int i = longval ();
26969 if (i != ((long int) (sizeof (off_t))))
26971 fprintf (f, "%ld", i);
26975 unsigned long int i = ulongval ();
26976 if (i != ((long int) (sizeof (off_t))))
26978 fprintf (f, "%lu", i);
26980 /* Do not output a trailing newline, as this causes \r\n confusion
26981 on some platforms. */
26982 return ferror (f) || fclose (f) != 0;
26988 rm -f conftest$ac_exeext
26989 if { (ac_try="$ac_link"
26990 case "(($ac_try" in
26991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26992 *) ac_try_echo=$ac_try;;
26994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26995 $as_echo "$ac_try_echo") >&5
26996 (eval "$ac_link") 2>&5
26998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27000 { (case "(($ac_try" in
27001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27002 *) ac_try_echo=$ac_try;;
27004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27005 $as_echo "$ac_try_echo") >&5
27006 (eval "$ac_try") 2>&5
27008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009 (exit $ac_status); }; }; then
27010 ac_cv_sizeof_off_t=`cat conftest.val`
27012 $as_echo "$as_me: program exited with status $ac_status" >&5
27013 $as_echo "$as_me: failed program was:" >&5
27014 sed 's/^/| /' conftest.$ac_ext >&5
27016 ( exit $ac_status )
27017 if test "$ac_cv_type_off_t" = yes; then
27018 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27020 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
27021 See \`config.log' for more details." >&5
27022 $as_echo "$as_me: error: cannot compute sizeof (off_t)
27023 See \`config.log' for more details." >&2;}
27024 { (exit 77); exit 77; }; }; }
27026 ac_cv_sizeof_off_t=0
27029 rm -rf conftest.dSYM
27030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27034 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
27035 $as_echo "$ac_cv_sizeof_off_t" >&6; }
27039 cat >>confdefs.h <<_ACEOF
27040 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
27045 # If we don't have largefile support, can't handle segsize >= 2GB.
27046 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
27047 { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
27048 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
27049 { (exit 1); exit 1; }; }
27052 # SunOS doesn't handle negative byte comparisons properly with +/- return
27053 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
27054 $as_echo_n "checking for working memcmp... " >&6; }
27055 if test "${ac_cv_func_memcmp_working+set}" = set; then
27056 $as_echo_n "(cached) " >&6
27058 if test "$cross_compiling" = yes; then
27059 ac_cv_func_memcmp_working=no
27061 cat >conftest.$ac_ext <<_ACEOF
27064 cat confdefs.h >>conftest.$ac_ext
27065 cat >>conftest.$ac_ext <<_ACEOF
27066 /* end confdefs.h. */
27067 $ac_includes_default
27072 /* Some versions of memcmp are not 8-bit clean. */
27073 char c0 = '\100', c1 = '\200', c2 = '\201';
27074 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27077 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27078 or more and with at least one buffer not starting on a 4-byte boundary.
27079 William Lewis provided this test program. */
27084 for (i = 0; i < 4; i++)
27088 strcpy (a, "--------01111111");
27089 strcpy (b, "--------10000000");
27090 if (memcmp (a, b, 16) >= 0)
27100 rm -f conftest$ac_exeext
27101 if { (ac_try="$ac_link"
27102 case "(($ac_try" in
27103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27104 *) ac_try_echo=$ac_try;;
27106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27107 $as_echo "$ac_try_echo") >&5
27108 (eval "$ac_link") 2>&5
27110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27112 { (case "(($ac_try" in
27113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27114 *) ac_try_echo=$ac_try;;
27116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27117 $as_echo "$ac_try_echo") >&5
27118 (eval "$ac_try") 2>&5
27120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27121 (exit $ac_status); }; }; then
27122 ac_cv_func_memcmp_working=yes
27124 $as_echo "$as_me: program exited with status $ac_status" >&5
27125 $as_echo "$as_me: failed program was:" >&5
27126 sed 's/^/| /' conftest.$ac_ext >&5
27128 ( exit $ac_status )
27129 ac_cv_func_memcmp_working=no
27131 rm -rf conftest.dSYM
27132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27137 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27138 $as_echo "$ac_cv_func_memcmp_working" >&6; }
27139 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27140 *" memcmp.$ac_objext "* ) ;;
27141 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27148 # Select semaphore implementation type.
27149 if test "$PORTNAME" != "win32"; then
27150 if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
27152 cat >>confdefs.h <<\_ACEOF
27153 #define USE_NAMED_POSIX_SEMAPHORES 1
27156 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27158 if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
27160 cat >>confdefs.h <<\_ACEOF
27161 #define USE_UNNAMED_POSIX_SEMAPHORES 1
27164 SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
27167 cat >>confdefs.h <<\_ACEOF
27168 #define USE_SYSV_SEMAPHORES 1
27171 SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
27176 cat >>confdefs.h <<\_ACEOF
27177 #define USE_WIN32_SEMAPHORES 1
27180 SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
27184 # Select shared-memory implementation type.
27185 if test "$PORTNAME" != "win32"; then
27187 cat >>confdefs.h <<\_ACEOF
27188 #define USE_SYSV_SHARED_MEMORY 1
27191 SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
27194 cat >>confdefs.h <<\_ACEOF
27195 #define USE_WIN32_SHARED_MEMORY 1
27198 SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
27201 # If not set in template file, set bytes to use libc memset()
27202 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
27203 MEMSET_LOOP_LIMIT=1024
27206 cat >>confdefs.h <<_ACEOF
27207 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
27212 if test "$enable_nls" = yes ; then
27214 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
27215 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
27216 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27217 $as_echo_n "(cached) " >&6
27219 ac_func_search_save_LIBS=$LIBS
27220 cat >conftest.$ac_ext <<_ACEOF
27223 cat confdefs.h >>conftest.$ac_ext
27224 cat >>conftest.$ac_ext <<_ACEOF
27225 /* end confdefs.h. */
27227 /* Override any GCC internal prototype to avoid an error.
27228 Use char because int might match the return type of a GCC
27229 builtin and then its argument prototype would still apply. */
27233 char bind_textdomain_codeset ();
27237 return bind_textdomain_codeset ();
27242 for ac_lib in '' intl; do
27243 if test -z "$ac_lib"; then
27244 ac_res="none required"
27247 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27249 rm -f conftest.$ac_objext conftest$ac_exeext
27250 if { (ac_try="$ac_link"
27251 case "(($ac_try" in
27252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27253 *) ac_try_echo=$ac_try;;
27255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27256 $as_echo "$ac_try_echo") >&5
27257 (eval "$ac_link") 2>conftest.er1
27259 grep -v '^ *+' conftest.er1 >conftest.err
27261 cat conftest.err >&5
27262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263 (exit $ac_status); } && {
27264 test -z "$ac_c_werror_flag" ||
27265 test ! -s conftest.err
27266 } && test -s conftest$ac_exeext && {
27267 test "$cross_compiling" = yes ||
27268 $as_test_x conftest$ac_exeext
27270 ac_cv_search_bind_textdomain_codeset=$ac_res
27272 $as_echo "$as_me: failed program was:" >&5
27273 sed 's/^/| /' conftest.$ac_ext >&5
27278 rm -rf conftest.dSYM
27279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27281 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27285 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27288 ac_cv_search_bind_textdomain_codeset=no
27290 rm conftest.$ac_ext
27291 LIBS=$ac_func_search_save_LIBS
27293 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
27294 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
27295 ac_res=$ac_cv_search_bind_textdomain_codeset
27296 if test "$ac_res" != no; then
27297 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27300 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
27301 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
27302 { (exit 1); exit 1; }; }
27305 if test "${ac_cv_header_libintl_h+set}" = set; then
27306 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27307 $as_echo_n "checking for libintl.h... " >&6; }
27308 if test "${ac_cv_header_libintl_h+set}" = set; then
27309 $as_echo_n "(cached) " >&6
27311 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27312 $as_echo "$ac_cv_header_libintl_h" >&6; }
27314 # Is the header compilable?
27315 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
27316 $as_echo_n "checking libintl.h usability... " >&6; }
27317 cat >conftest.$ac_ext <<_ACEOF
27320 cat confdefs.h >>conftest.$ac_ext
27321 cat >>conftest.$ac_ext <<_ACEOF
27322 /* end confdefs.h. */
27323 $ac_includes_default
27324 #include <libintl.h>
27326 rm -f conftest.$ac_objext
27327 if { (ac_try="$ac_compile"
27328 case "(($ac_try" in
27329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27330 *) ac_try_echo=$ac_try;;
27332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27333 $as_echo "$ac_try_echo") >&5
27334 (eval "$ac_compile") 2>conftest.er1
27336 grep -v '^ *+' conftest.er1 >conftest.err
27338 cat conftest.err >&5
27339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340 (exit $ac_status); } && {
27341 test -z "$ac_c_werror_flag" ||
27342 test ! -s conftest.err
27343 } && test -s conftest.$ac_objext; then
27344 ac_header_compiler=yes
27346 $as_echo "$as_me: failed program was:" >&5
27347 sed 's/^/| /' conftest.$ac_ext >&5
27349 ac_header_compiler=no
27352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27353 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27354 $as_echo "$ac_header_compiler" >&6; }
27356 # Is the header present?
27357 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
27358 $as_echo_n "checking libintl.h presence... " >&6; }
27359 cat >conftest.$ac_ext <<_ACEOF
27362 cat confdefs.h >>conftest.$ac_ext
27363 cat >>conftest.$ac_ext <<_ACEOF
27364 /* end confdefs.h. */
27365 #include <libintl.h>
27367 if { (ac_try="$ac_cpp conftest.$ac_ext"
27368 case "(($ac_try" in
27369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27370 *) ac_try_echo=$ac_try;;
27372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27373 $as_echo "$ac_try_echo") >&5
27374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27376 grep -v '^ *+' conftest.er1 >conftest.err
27378 cat conftest.err >&5
27379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380 (exit $ac_status); } >/dev/null && {
27381 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27382 test ! -s conftest.err
27384 ac_header_preproc=yes
27386 $as_echo "$as_me: failed program was:" >&5
27387 sed 's/^/| /' conftest.$ac_ext >&5
27389 ac_header_preproc=no
27392 rm -f conftest.err conftest.$ac_ext
27393 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27394 $as_echo "$ac_header_preproc" >&6; }
27396 # So? What about this header?
27397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27399 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27400 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27401 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
27402 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
27403 ac_header_preproc=yes
27406 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
27407 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
27408 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
27409 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
27410 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
27411 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
27412 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
27413 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
27414 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
27415 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
27416 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
27417 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
27419 ## ---------------------------------------- ##
27420 ## Report this to pgsql-bugs@postgresql.org ##
27421 ## ---------------------------------------- ##
27423 ) | sed "s/^/$as_me: WARNING: /" >&2
27426 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27427 $as_echo_n "checking for libintl.h... " >&6; }
27428 if test "${ac_cv_header_libintl_h+set}" = set; then
27429 $as_echo_n "(cached) " >&6
27431 ac_cv_header_libintl_h=$ac_header_preproc
27433 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27434 $as_echo "$ac_cv_header_libintl_h" >&6; }
27437 if test "x$ac_cv_header_libintl_h" = x""yes; then
27440 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
27441 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
27442 { (exit 1); exit 1; }; }
27446 for ac_prog in msgfmt
27448 # Extract the first word of "$ac_prog", so it can be a program name with args.
27449 set dummy $ac_prog; ac_word=$2
27450 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27451 $as_echo_n "checking for $ac_word... " >&6; }
27452 if test "${ac_cv_prog_MSGFMT+set}" = set; then
27453 $as_echo_n "(cached) " >&6
27455 if test -n "$MSGFMT"; then
27456 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
27458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27459 for as_dir in $PATH
27462 test -z "$as_dir" && as_dir=.
27463 for ac_exec_ext in '' $ac_executable_extensions; do
27464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27465 ac_cv_prog_MSGFMT="$ac_prog"
27466 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27475 MSGFMT=$ac_cv_prog_MSGFMT
27476 if test -n "$MSGFMT"; then
27477 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
27478 $as_echo "$MSGFMT" >&6; }
27480 { $as_echo "$as_me:$LINENO: result: no" >&5
27481 $as_echo "no" >&6; }
27485 test -n "$MSGFMT" && break
27488 if test -z "$MSGFMT"; then
27489 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
27490 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
27491 { (exit 1); exit 1; }; }
27493 for ac_prog in msgmerge
27495 # Extract the first word of "$ac_prog", so it can be a program name with args.
27496 set dummy $ac_prog; ac_word=$2
27497 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27498 $as_echo_n "checking for $ac_word... " >&6; }
27499 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
27500 $as_echo_n "(cached) " >&6
27502 if test -n "$MSGMERGE"; then
27503 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
27505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27506 for as_dir in $PATH
27509 test -z "$as_dir" && as_dir=.
27510 for ac_exec_ext in '' $ac_executable_extensions; do
27511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27512 ac_cv_prog_MSGMERGE="$ac_prog"
27513 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27522 MSGMERGE=$ac_cv_prog_MSGMERGE
27523 if test -n "$MSGMERGE"; then
27524 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
27525 $as_echo "$MSGMERGE" >&6; }
27527 { $as_echo "$as_me:$LINENO: result: no" >&5
27528 $as_echo "no" >&6; }
27532 test -n "$MSGMERGE" && break
27535 for ac_prog in xgettext
27537 # Extract the first word of "$ac_prog", so it can be a program name with args.
27538 set dummy $ac_prog; ac_word=$2
27539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27540 $as_echo_n "checking for $ac_word... " >&6; }
27541 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
27542 $as_echo_n "(cached) " >&6
27544 if test -n "$XGETTEXT"; then
27545 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
27547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27548 for as_dir in $PATH
27551 test -z "$as_dir" && as_dir=.
27552 for ac_exec_ext in '' $ac_executable_extensions; do
27553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27554 ac_cv_prog_XGETTEXT="$ac_prog"
27555 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27564 XGETTEXT=$ac_cv_prog_XGETTEXT
27565 if test -n "$XGETTEXT"; then
27566 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
27567 $as_echo "$XGETTEXT" >&6; }
27569 { $as_echo "$as_me:$LINENO: result: no" >&5
27570 $as_echo "no" >&6; }
27574 test -n "$XGETTEXT" && break
27580 # Check for Tcl configuration script tclConfig.sh
27581 if test "$with_tcl" = yes; then
27582 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
27584 # Extract the first word of "$ac_prog", so it can be a program name with args.
27585 set dummy $ac_prog; ac_word=$2
27586 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27587 $as_echo_n "checking for $ac_word... " >&6; }
27588 if test "${ac_cv_path_TCLSH+set}" = set; then
27589 $as_echo_n "(cached) " >&6
27593 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
27596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27597 for as_dir in $PATH
27600 test -z "$as_dir" && as_dir=.
27601 for ac_exec_ext in '' $ac_executable_extensions; do
27602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27603 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
27604 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27614 TCLSH=$ac_cv_path_TCLSH
27615 if test -n "$TCLSH"; then
27616 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
27617 $as_echo "$TCLSH" >&6; }
27619 { $as_echo "$as_me:$LINENO: result: no" >&5
27620 $as_echo "no" >&6; }
27624 test -n "$TCLSH" && break
27627 if test x"$TCLSH" = x""; then
27628 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
27629 $as_echo "$as_me: error: Tcl shell not found" >&2;}
27630 { (exit 1); exit 1; }; }
27633 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
27634 $as_echo_n "checking for tclConfig.sh... " >&6; }
27635 # Let user override test
27636 if test -z "$TCL_CONFIG_SH"; then
27637 pgac_test_dirs="$with_tclconfig"
27639 set X $pgac_test_dirs; shift
27640 if test $# -eq 0; then
27641 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
27642 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
27643 { (exit 1); exit 1; }; }
27644 set X `echo 'puts $auto_path' | $TCLSH`; shift
27648 if test -r "$pgac_dir/tclConfig.sh"; then
27649 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
27655 if test -z "$TCL_CONFIG_SH"; then
27656 { $as_echo "$as_me:$LINENO: result: no" >&5
27657 $as_echo "no" >&6; }
27658 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
27659 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
27660 { (exit 1); exit 1; }; }
27662 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
27663 $as_echo "$TCL_CONFIG_SH" >&6; }
27669 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
27670 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
27671 eval TCL_LIBS=\"$TCL_LIBS\"
27672 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
27673 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
27675 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
27676 ac_save_CPPFLAGS=$CPPFLAGS
27677 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
27678 if test "${ac_cv_header_tcl_h+set}" = set; then
27679 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
27680 $as_echo_n "checking for tcl.h... " >&6; }
27681 if test "${ac_cv_header_tcl_h+set}" = set; then
27682 $as_echo_n "(cached) " >&6
27684 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
27685 $as_echo "$ac_cv_header_tcl_h" >&6; }
27687 # Is the header compilable?
27688 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
27689 $as_echo_n "checking tcl.h usability... " >&6; }
27690 cat >conftest.$ac_ext <<_ACEOF
27693 cat confdefs.h >>conftest.$ac_ext
27694 cat >>conftest.$ac_ext <<_ACEOF
27695 /* end confdefs.h. */
27696 $ac_includes_default
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 ac_header_compiler=yes
27719 $as_echo "$as_me: failed program was:" >&5
27720 sed 's/^/| /' conftest.$ac_ext >&5
27722 ac_header_compiler=no
27725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27726 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27727 $as_echo "$ac_header_compiler" >&6; }
27729 # Is the header present?
27730 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
27731 $as_echo_n "checking tcl.h presence... " >&6; }
27732 cat >conftest.$ac_ext <<_ACEOF
27735 cat confdefs.h >>conftest.$ac_ext
27736 cat >>conftest.$ac_ext <<_ACEOF
27737 /* end confdefs.h. */
27740 if { (ac_try="$ac_cpp conftest.$ac_ext"
27741 case "(($ac_try" in
27742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27743 *) ac_try_echo=$ac_try;;
27745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27746 $as_echo "$ac_try_echo") >&5
27747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27749 grep -v '^ *+' conftest.er1 >conftest.err
27751 cat conftest.err >&5
27752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753 (exit $ac_status); } >/dev/null && {
27754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27755 test ! -s conftest.err
27757 ac_header_preproc=yes
27759 $as_echo "$as_me: failed program was:" >&5
27760 sed 's/^/| /' conftest.$ac_ext >&5
27762 ac_header_preproc=no
27765 rm -f conftest.err conftest.$ac_ext
27766 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27767 $as_echo "$ac_header_preproc" >&6; }
27769 # So? What about this header?
27770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27772 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27773 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27774 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
27775 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
27776 ac_header_preproc=yes
27779 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
27780 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
27781 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
27782 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
27783 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
27784 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
27785 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
27786 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
27787 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
27788 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
27789 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
27790 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
27792 ## ---------------------------------------- ##
27793 ## Report this to pgsql-bugs@postgresql.org ##
27794 ## ---------------------------------------- ##
27796 ) | sed "s/^/$as_me: WARNING: /" >&2
27799 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
27800 $as_echo_n "checking for tcl.h... " >&6; }
27801 if test "${ac_cv_header_tcl_h+set}" = set; then
27802 $as_echo_n "(cached) " >&6
27804 ac_cv_header_tcl_h=$ac_header_preproc
27806 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
27807 $as_echo "$ac_cv_header_tcl_h" >&6; }
27810 if test "x$ac_cv_header_tcl_h" = x""yes; then
27813 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
27814 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
27815 { (exit 1); exit 1; }; }
27819 CPPFLAGS=$ac_save_CPPFLAGS
27823 # Check for DocBook and tools
27825 for ac_prog in onsgmls nsgmls
27827 # Extract the first word of "$ac_prog", so it can be a program name with args.
27828 set dummy $ac_prog; ac_word=$2
27829 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27830 $as_echo_n "checking for $ac_word... " >&6; }
27831 if test "${ac_cv_prog_NSGMLS+set}" = set; then
27832 $as_echo_n "(cached) " >&6
27834 if test -n "$NSGMLS"; then
27835 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
27837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27838 for as_dir in $PATH
27841 test -z "$as_dir" && as_dir=.
27842 for ac_exec_ext in '' $ac_executable_extensions; do
27843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27844 ac_cv_prog_NSGMLS="$ac_prog"
27845 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27854 NSGMLS=$ac_cv_prog_NSGMLS
27855 if test -n "$NSGMLS"; then
27856 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
27857 $as_echo "$NSGMLS" >&6; }
27859 { $as_echo "$as_me:$LINENO: result: no" >&5
27860 $as_echo "no" >&6; }
27864 test -n "$NSGMLS" && break
27867 for ac_prog in openjade jade
27869 # Extract the first word of "$ac_prog", so it can be a program name with args.
27870 set dummy $ac_prog; ac_word=$2
27871 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27872 $as_echo_n "checking for $ac_word... " >&6; }
27873 if test "${ac_cv_prog_JADE+set}" = set; then
27874 $as_echo_n "(cached) " >&6
27876 if test -n "$JADE"; then
27877 ac_cv_prog_JADE="$JADE" # Let the user override the test.
27879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27880 for as_dir in $PATH
27883 test -z "$as_dir" && as_dir=.
27884 for ac_exec_ext in '' $ac_executable_extensions; do
27885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27886 ac_cv_prog_JADE="$ac_prog"
27887 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27896 JADE=$ac_cv_prog_JADE
27897 if test -n "$JADE"; then
27898 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
27899 $as_echo "$JADE" >&6; }
27901 { $as_echo "$as_me:$LINENO: result: no" >&5
27902 $as_echo "no" >&6; }
27906 test -n "$JADE" && break
27910 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
27911 $as_echo_n "checking for DocBook V4.2... " >&6; }
27912 if test "${pgac_cv_check_docbook+set}" = set; then
27913 $as_echo_n "(cached) " >&6
27915 cat >conftest.sgml <<EOF
27916 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
27918 <title>test</title>
27920 <title>random</title>
27922 <title>testsect</title>
27929 pgac_cv_check_docbook=no
27931 if test -n "$NSGMLS"; then
27932 $NSGMLS -s conftest.sgml 1>&5 2>&1
27933 if test $? -eq 0; then
27934 pgac_cv_check_docbook=yes
27937 rm -f conftest.sgml
27939 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
27940 $as_echo "$pgac_cv_check_docbook" >&6; }
27942 have_docbook=$pgac_cv_check_docbook
27945 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
27946 $as_echo_n "checking for DocBook stylesheets... " >&6; }
27947 if test "${pgac_cv_path_stylesheets+set}" = set; then
27948 $as_echo_n "(cached) " >&6
27950 if test -n "$DOCBOOKSTYLE"; then
27951 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
27953 for pgac_prefix in /usr /usr/local /opt /sw; do
27954 for pgac_infix in share lib; do
27955 for pgac_postfix in \
27956 sgml/stylesheets/nwalsh-modular \
27957 sgml/stylesheets/docbook \
27958 sgml/stylesheets/dsssl/docbook \
27959 sgml/docbook-dsssl \
27960 sgml/docbook/dsssl/modular \
27961 sgml/docbook/stylesheet/dsssl/modular \
27962 sgml/docbook/dsssl-stylesheets \
27963 sgml/dsssl/docbook-dsssl-nwalsh
27965 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
27966 if test -r "$pgac_candidate/html/docbook.dsl" \
27967 && test -r "$pgac_candidate/print/docbook.dsl"
27969 pgac_cv_path_stylesheets=$pgac_candidate
27978 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
27980 if test -n "$DOCBOOKSTYLE"; then
27981 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
27982 $as_echo "$DOCBOOKSTYLE" >&6; }
27984 { $as_echo "$as_me:$LINENO: result: no" >&5
27985 $as_echo "no" >&6; }
27987 if test -n "$DOCBOOKSTYLE"; then
27988 for ac_prog in collateindex.pl
27990 # Extract the first word of "$ac_prog", so it can be a program name with args.
27991 set dummy $ac_prog; ac_word=$2
27992 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27993 $as_echo_n "checking for $ac_word... " >&6; }
27994 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
27995 $as_echo_n "(cached) " >&6
27997 case $COLLATEINDEX in
27999 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28003 for as_dir in $DOCBOOKSTYLE/bin $PATH
28006 test -z "$as_dir" && as_dir=.
28007 for ac_exec_ext in '' $ac_executable_extensions; do
28008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28009 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28010 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28020 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28021 if test -n "$COLLATEINDEX"; then
28022 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28023 $as_echo "$COLLATEINDEX" >&6; }
28025 { $as_echo "$as_me:$LINENO: result: no" >&5
28026 $as_echo "no" >&6; }
28030 test -n "$COLLATEINDEX" && break
28034 for ac_prog in collateindex.pl
28036 # Extract the first word of "$ac_prog", so it can be a program name with args.
28037 set dummy $ac_prog; ac_word=$2
28038 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28039 $as_echo_n "checking for $ac_word... " >&6; }
28040 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28041 $as_echo_n "(cached) " >&6
28043 case $COLLATEINDEX in
28045 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28049 for as_dir in $PATH
28052 test -z "$as_dir" && as_dir=.
28053 for ac_exec_ext in '' $ac_executable_extensions; do
28054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28055 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28056 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28066 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28067 if test -n "$COLLATEINDEX"; then
28068 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28069 $as_echo "$COLLATEINDEX" >&6; }
28071 { $as_echo "$as_me:$LINENO: result: no" >&5
28072 $as_echo "no" >&6; }
28076 test -n "$COLLATEINDEX" && break
28080 for ac_prog in xsltproc
28082 # Extract the first word of "$ac_prog", so it can be a program name with args.
28083 set dummy $ac_prog; ac_word=$2
28084 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28085 $as_echo_n "checking for $ac_word... " >&6; }
28086 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
28087 $as_echo_n "(cached) " >&6
28089 if test -n "$XSLTPROC"; then
28090 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
28092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28093 for as_dir in $PATH
28096 test -z "$as_dir" && as_dir=.
28097 for ac_exec_ext in '' $ac_executable_extensions; do
28098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28099 ac_cv_prog_XSLTPROC="$ac_prog"
28100 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28109 XSLTPROC=$ac_cv_prog_XSLTPROC
28110 if test -n "$XSLTPROC"; then
28111 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
28112 $as_echo "$XSLTPROC" >&6; }
28114 { $as_echo "$as_me:$LINENO: result: no" >&5
28115 $as_echo "no" >&6; }
28119 test -n "$XSLTPROC" && break
28122 for ac_prog in osx sgml2xml sx
28124 # Extract the first word of "$ac_prog", so it can be a program name with args.
28125 set dummy $ac_prog; ac_word=$2
28126 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28127 $as_echo_n "checking for $ac_word... " >&6; }
28128 if test "${ac_cv_prog_OSX+set}" = set; then
28129 $as_echo_n "(cached) " >&6
28131 if test -n "$OSX"; then
28132 ac_cv_prog_OSX="$OSX" # Let the user override the test.
28134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28135 for as_dir in $PATH
28138 test -z "$as_dir" && as_dir=.
28139 for ac_exec_ext in '' $ac_executable_extensions; do
28140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28141 ac_cv_prog_OSX="$ac_prog"
28142 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28151 OSX=$ac_cv_prog_OSX
28152 if test -n "$OSX"; then
28153 { $as_echo "$as_me:$LINENO: result: $OSX" >&5
28154 $as_echo "$OSX" >&6; }
28156 { $as_echo "$as_me:$LINENO: result: no" >&5
28157 $as_echo "no" >&6; }
28161 test -n "$OSX" && break
28167 # We have to run the thread test near the end so we have all our symbols
28168 # defined. Cross compiling throws a warning.
28170 if test "$enable_thread_safety_force" = yes; then
28171 if test "$PORTNAME" != "win32"
28173 { $as_echo "$as_me:$LINENO: WARNING:
28174 *** Skipping thread test program. --enable-thread-safety-force was used.
28175 *** Run the program in src/test/thread on the your machine and add proper
28176 *** locking function calls to your applications to guarantee thread safety.
28178 $as_echo "$as_me: WARNING:
28179 *** Skipping thread test program. --enable-thread-safety-force was used.
28180 *** Run the program in src/test/thread on the your machine and add proper
28181 *** locking function calls to your applications to guarantee thread safety.
28184 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
28185 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
28187 elif test "$enable_thread_safety" = yes; then
28188 if test "$PORTNAME" != "win32"
28190 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
28191 $as_echo_n "checking thread safety of required library functions... " >&6; }
28195 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
28196 LIBS="$LIBS $PTHREAD_LIBS"
28197 if test "$cross_compiling" = yes; then
28198 { $as_echo "$as_me:$LINENO: result: maybe" >&5
28199 $as_echo "maybe" >&6; }
28200 { $as_echo "$as_me:$LINENO: WARNING:
28201 *** Skipping thread test program because of cross-compile build.
28202 *** Run the program in src/test/thread on the target machine.
28204 $as_echo "$as_me: WARNING:
28205 *** Skipping thread test program because of cross-compile build.
28206 *** Run the program in src/test/thread on the target machine.
28209 cat >conftest.$ac_ext <<_ACEOF
28212 cat confdefs.h >>conftest.$ac_ext
28213 cat >>conftest.$ac_ext <<_ACEOF
28214 /* end confdefs.h. */
28215 #include "$srcdir/src/test/thread/thread_test.c"
28217 rm -f conftest$ac_exeext
28218 if { (ac_try="$ac_link"
28219 case "(($ac_try" in
28220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28221 *) ac_try_echo=$ac_try;;
28223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28224 $as_echo "$ac_try_echo") >&5
28225 (eval "$ac_link") 2>&5
28227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28229 { (case "(($ac_try" in
28230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28231 *) ac_try_echo=$ac_try;;
28233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28234 $as_echo "$ac_try_echo") >&5
28235 (eval "$ac_try") 2>&5
28237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238 (exit $ac_status); }; }; then
28239 { $as_echo "$as_me:$LINENO: result: yes" >&5
28240 $as_echo "yes" >&6; }
28242 $as_echo "$as_me: program exited with status $ac_status" >&5
28243 $as_echo "$as_me: failed program was:" >&5
28244 sed 's/^/| /' conftest.$ac_ext >&5
28246 ( exit $ac_status )
28247 { $as_echo "$as_me:$LINENO: result: no" >&5
28248 $as_echo "no" >&6; }
28249 { { $as_echo "$as_me:$LINENO: error: thread test program failed
28250 This platform is not thread-safe. Check the file 'config.log' for the
28253 You can use the configure option --enable-thread-safety-force to force
28254 threads to be enabled. But you must then run the program in
28255 src/test/thread and add locking function calls to your applications to
28256 guarantee thread safety." >&5
28257 $as_echo "$as_me: error: thread test program failed
28258 This platform is not thread-safe. Check the file 'config.log' for the
28261 You can use the configure option --enable-thread-safety-force to force
28262 threads to be enabled. But you must then run the program in
28263 src/test/thread and add locking function calls to your applications to
28264 guarantee thread safety." >&2;}
28265 { (exit 1); exit 1; }; }
28267 rm -rf conftest.dSYM
28268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28275 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
28276 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
28280 # If compiler will take -Wl,--as-needed (or various platform-specific
28281 # spellings thereof) then add that to LDFLAGS. This is much easier than
28282 # trying to filter LIBS to the minimum for each executable.
28283 # (Note that shared library links won't use this switch, though.)
28284 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
28285 # libreadline; therefore we postpone testing it until we know what library
28286 # dependencies readline has. The test code will try to link with $LIBS.
28287 if test "$with_readline" = yes; then
28288 link_test_func=readline
28290 link_test_func=exit
28293 if test "$PORTNAME" = "darwin"; then
28294 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
28295 $as_echo_n "checking if $CC supports -Wl,-dead_strip_dylibs... " >&6; }
28296 pgac_save_LDFLAGS=$LDFLAGS
28297 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
28298 if test "$cross_compiling" = yes; then
28299 LDFLAGS="$pgac_save_LDFLAGS"
28300 { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28301 $as_echo "assuming no" >&6; }
28303 cat >conftest.$ac_ext <<_ACEOF
28306 cat confdefs.h >>conftest.$ac_ext
28307 cat >>conftest.$ac_ext <<_ACEOF
28308 /* end confdefs.h. */
28309 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28318 rm -f conftest$ac_exeext
28319 if { (ac_try="$ac_link"
28320 case "(($ac_try" in
28321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28322 *) ac_try_echo=$ac_try;;
28324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28325 $as_echo "$ac_try_echo") >&5
28326 (eval "$ac_link") 2>&5
28328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28330 { (case "(($ac_try" in
28331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28332 *) ac_try_echo=$ac_try;;
28334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28335 $as_echo "$ac_try_echo") >&5
28336 (eval "$ac_try") 2>&5
28338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28339 (exit $ac_status); }; }; then
28340 { $as_echo "$as_me:$LINENO: result: yes" >&5
28341 $as_echo "yes" >&6; }
28343 $as_echo "$as_me: program exited with status $ac_status" >&5
28344 $as_echo "$as_me: failed program was:" >&5
28345 sed 's/^/| /' conftest.$ac_ext >&5
28347 ( exit $ac_status )
28348 LDFLAGS="$pgac_save_LDFLAGS"
28349 { $as_echo "$as_me:$LINENO: result: no" >&5
28350 $as_echo "no" >&6; }
28352 rm -rf conftest.dSYM
28353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28358 elif test "$PORTNAME" = "openbsd"; then
28359 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-Bdynamic" >&5
28360 $as_echo_n "checking if $CC supports -Wl,-Bdynamic... " >&6; }
28361 pgac_save_LDFLAGS=$LDFLAGS
28362 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
28363 if test "$cross_compiling" = yes; then
28364 LDFLAGS="$pgac_save_LDFLAGS"
28365 { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28366 $as_echo "assuming no" >&6; }
28368 cat >conftest.$ac_ext <<_ACEOF
28371 cat confdefs.h >>conftest.$ac_ext
28372 cat >>conftest.$ac_ext <<_ACEOF
28373 /* end confdefs.h. */
28374 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28383 rm -f conftest$ac_exeext
28384 if { (ac_try="$ac_link"
28385 case "(($ac_try" in
28386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28387 *) ac_try_echo=$ac_try;;
28389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28390 $as_echo "$ac_try_echo") >&5
28391 (eval "$ac_link") 2>&5
28393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28395 { (case "(($ac_try" in
28396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28397 *) ac_try_echo=$ac_try;;
28399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28400 $as_echo "$ac_try_echo") >&5
28401 (eval "$ac_try") 2>&5
28403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404 (exit $ac_status); }; }; then
28405 { $as_echo "$as_me:$LINENO: result: yes" >&5
28406 $as_echo "yes" >&6; }
28408 $as_echo "$as_me: program exited with status $ac_status" >&5
28409 $as_echo "$as_me: failed program was:" >&5
28410 sed 's/^/| /' conftest.$ac_ext >&5
28412 ( exit $ac_status )
28413 LDFLAGS="$pgac_save_LDFLAGS"
28414 { $as_echo "$as_me:$LINENO: result: no" >&5
28415 $as_echo "no" >&6; }
28417 rm -rf conftest.dSYM
28418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28424 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
28425 $as_echo_n "checking if $CC supports -Wl,--as-needed... " >&6; }
28426 pgac_save_LDFLAGS=$LDFLAGS
28427 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
28428 if test "$cross_compiling" = yes; then
28429 LDFLAGS="$pgac_save_LDFLAGS"
28430 { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28431 $as_echo "assuming no" >&6; }
28433 cat >conftest.$ac_ext <<_ACEOF
28436 cat confdefs.h >>conftest.$ac_ext
28437 cat >>conftest.$ac_ext <<_ACEOF
28438 /* end confdefs.h. */
28439 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28448 rm -f conftest$ac_exeext
28449 if { (ac_try="$ac_link"
28450 case "(($ac_try" in
28451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28452 *) ac_try_echo=$ac_try;;
28454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28455 $as_echo "$ac_try_echo") >&5
28456 (eval "$ac_link") 2>&5
28458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28460 { (case "(($ac_try" in
28461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28462 *) ac_try_echo=$ac_try;;
28464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28465 $as_echo "$ac_try_echo") >&5
28466 (eval "$ac_try") 2>&5
28468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28469 (exit $ac_status); }; }; then
28470 { $as_echo "$as_me:$LINENO: result: yes" >&5
28471 $as_echo "yes" >&6; }
28473 $as_echo "$as_me: program exited with status $ac_status" >&5
28474 $as_echo "$as_me: failed program was:" >&5
28475 sed 's/^/| /' conftest.$ac_ext >&5
28477 ( exit $ac_status )
28478 LDFLAGS="$pgac_save_LDFLAGS"
28479 { $as_echo "$as_me:$LINENO: result: no" >&5
28480 $as_echo "no" >&6; }
28482 rm -rf conftest.dSYM
28483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28491 # Begin output steps
28493 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
28494 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
28495 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
28496 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
28497 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
28498 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
28500 # Create compiler version string
28501 if test x"$GCC" = x"yes" ; then
28502 cc_string="GCC `${CC} --version | sed q`"
28503 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
28504 cc_string=`${CC} -V 2>&1 | sed q`
28510 cat >>confdefs.h <<_ACEOF
28511 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
28515 # Supply a numeric version string for use by 3rd party add-ons
28516 # awk -F is a regex on some platforms, and not on others, so make "." a tab
28517 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
28519 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
28521 cat >>confdefs.h <<_ACEOF
28522 #define PG_VERSION_NUM $PG_VERSION_NUM
28527 # prepare build tree if outside source tree
28528 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
28529 # Note 2: /bin/pwd might be better than shell's built-in at getting
28530 # a symlink-free name.
28531 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
28535 if test "$no_create" != yes; then
28536 $as_echo_n "preparing build tree... " >&6
28537 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
28538 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
28539 || { { $as_echo "$as_me:$LINENO: error: failed" >&5
28540 $as_echo "$as_me: error: failed" >&2;}
28541 { (exit 1); exit 1; }; }
28542 { $as_echo "$as_me:$LINENO: result: done" >&5
28543 $as_echo "done" >&6; }
28549 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
28552 ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
28555 if test "$PORTNAME" = "win32"; then
28556 ac_config_commands="$ac_config_commands check_win32_symlinks"
28560 ac_config_headers="$ac_config_headers src/include/pg_config.h"
28563 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
28566 cat >confcache <<\_ACEOF
28567 # This file is a shell script that caches the results of configure
28568 # tests run on this system so they can be shared between configure
28569 # scripts and configure runs, see configure's option --config-cache.
28570 # It is not useful on other systems. If it contains results you don't
28571 # want to keep, you may remove or edit it.
28573 # config.status only pays attention to the cache file if you give it
28574 # the --recheck option to rerun configure.
28576 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28577 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28578 # following values.
28582 # The following way of writing the cache mishandles newlines in values,
28583 # but we know of no workaround that is simple, portable, and efficient.
28584 # So, we kill variables containing newlines.
28585 # Ultrix sh set writes to stderr and can't be redirected directly,
28586 # and sets the high bit in the cache file unless we assign to the vars.
28588 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28589 eval ac_val=\$$ac_var
28593 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
28594 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28597 _ | IFS | as_nl) ;; #(
28598 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28599 *) $as_unset $ac_var ;;
28605 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28606 *${as_nl}ac_space=\ *)
28607 # `set' does not quote correctly, so add quotes (double-quote
28608 # substitution turns \\\\ into \\, and sed turns \\ into \).
28611 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28614 # `set' quotes correctly as required by POSIX, so do not add quotes.
28615 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28624 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28626 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28628 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28629 if test -w "$cache_file"; then
28630 test "x$cache_file" != "x/dev/null" &&
28631 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
28632 $as_echo "$as_me: updating cache $cache_file" >&6;}
28633 cat confcache >$cache_file
28635 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28636 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28641 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28642 # Let make expand exec_prefix.
28643 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28645 DEFS=-DHAVE_CONFIG_H
28649 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28650 # 1. Remove the extension, and $U if already installed.
28651 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28652 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28653 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28654 # will be set to the directory where LIBOBJS objects are built.
28655 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28656 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28658 LIBOBJS=$ac_libobjs
28660 LTLIBOBJS=$ac_ltlibobjs
28665 : ${CONFIG_STATUS=./config.status}
28667 ac_clean_files_save=$ac_clean_files
28668 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28669 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28670 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28671 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28673 # Generated by $as_me.
28674 # Run this file to recreate the current configuration.
28675 # Compiler output produced by configure, useful for debugging
28676 # configure, is in config.log if it exists.
28679 ac_cs_recheck=false
28681 SHELL=\${CONFIG_SHELL-$SHELL}
28684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28685 ## --------------------- ##
28686 ## M4sh Initialization. ##
28687 ## --------------------- ##
28689 # Be more Bourne compatible
28690 DUALCASE=1; export DUALCASE # for MKS sh
28691 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28694 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28695 # is contrary to our usage. Disable this feature.
28696 alias -g '${1+"$@"}'='"$@"'
28697 setopt NO_GLOB_SUBST
28699 case `(set -o) 2>/dev/null` in
28700 *posix*) set -o posix ;;
28709 # Avoid depending upon Character Ranges.
28710 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28711 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28712 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28713 as_cr_digits='0123456789'
28714 as_cr_alnum=$as_cr_Letters$as_cr_digits
28719 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28720 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28721 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28722 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28723 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28724 as_echo='printf %s\n'
28725 as_echo_n='printf %s'
28727 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28728 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28729 as_echo_n='/usr/ucb/echo -n'
28731 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28732 as_echo_n_body='eval
28736 expr "X$arg" : "X\\(.*\\)$as_nl";
28737 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28739 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28741 export as_echo_n_body
28742 as_echo_n='sh -c $as_echo_n_body as_echo'
28744 export as_echo_body
28745 as_echo='sh -c $as_echo_body as_echo'
28748 # The user is always right.
28749 if test "${PATH_SEPARATOR+set}" != set; then
28751 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28752 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28757 # Support unset when possible.
28758 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28766 # We need space, tab and new line, in precisely that order. Quoting is
28767 # there to prevent editors from complaining about space-tab.
28768 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28769 # splitting by setting IFS to empty value.)
28772 # Find who we are. Look in the path if we contain no directory separator.
28774 *[\\/]* ) as_myself=$0 ;;
28775 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28776 for as_dir in $PATH
28779 test -z "$as_dir" && as_dir=.
28780 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28786 # We did not find ourselves, most probably we were run as `sh COMMAND'
28787 # in which case we are not to be found in the path.
28788 if test "x$as_myself" = x; then
28791 if test ! -f "$as_myself"; then
28792 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28793 { (exit 1); exit 1; }
28796 # Work around bugs in pre-3.0 UWIN ksh.
28797 for as_var in ENV MAIL MAILPATH
28798 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28810 # Required to use basename.
28811 if expr a : '\(a\)' >/dev/null 2>&1 &&
28812 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28818 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28819 as_basename=basename
28825 # Name of the executable.
28826 as_me=`$as_basename -- "$0" ||
28827 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28828 X"$0" : 'X\(//\)$' \| \
28829 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28831 sed '/^.*\/\([^/][^/]*\)\/*$/{
28850 as_lineno_1=$LINENO
28851 as_lineno_2=$LINENO
28852 test "x$as_lineno_1" != "x$as_lineno_2" &&
28853 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28855 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28856 # uniformly replaced by the line number. The first 'sed' inserts a
28857 # line-number line after each line using $LINENO; the second 'sed'
28858 # does the real work. The second script uses 'N' to pair each
28859 # line-number line with the line containing $LINENO, and appends
28860 # trailing '-' during substitution so that $LINENO is not a special
28861 # case at line end.
28862 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28863 # scripts with optimization help from Paolo Bonzini. Blame Lee
28864 # E. McMahon (1931-1989) for sed's syntax. :-)
28876 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28879 ' >$as_me.lineno &&
28880 chmod +x "$as_me.lineno" ||
28881 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28882 { (exit 1); exit 1; }; }
28884 # Don't try to exec as it changes $[0], causing all sort of problems
28885 # (the dirname of $[0] is not the place where we might find the
28886 # original and so on. Autoconf is especially sensitive to this).
28887 . "./$as_me.lineno"
28888 # Exit status is that of the last command.
28893 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28899 ECHO_C= ECHO_N= ECHO_T=
28900 case `echo -n x` in
28902 case `echo 'x\c'` in
28903 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28909 if expr a : '\(a\)' >/dev/null 2>&1 &&
28910 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28916 rm -f conf$$ conf$$.exe conf$$.file
28917 if test -d conf$$.dir; then
28918 rm -f conf$$.dir/conf$$.file
28921 mkdir conf$$.dir 2>/dev/null
28923 if (echo >conf$$.file) 2>/dev/null; then
28924 if ln -s conf$$.file conf$$ 2>/dev/null; then
28926 # ... but there are two gotchas:
28927 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28928 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28929 # In both cases, we have to default to `cp -p'.
28930 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28932 elif ln conf$$.file conf$$ 2>/dev/null; then
28940 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28941 rmdir conf$$.dir 2>/dev/null
28943 if mkdir -p . 2>/dev/null; then
28946 test -d ./-p && rmdir ./-p
28950 if test -x / >/dev/null 2>&1; then
28951 as_test_x='test -x'
28953 if ls -dL / >/dev/null 2>&1; then
28960 if test -d "$1"; then
28966 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28967 ???[sx]*):;;*)false;;esac;fi
28971 as_executable_p=$as_test_x
28973 # Sed expression to map a string onto a valid CPP name.
28974 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28976 # Sed expression to map a string onto a valid variable name.
28977 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28982 # Save the log message, to keep $[0] and so on meaningful, and to
28983 # report actual input values of CONFIG_FILES etc. instead of their
28984 # values after options handling.
28986 This file was extended by PostgreSQL $as_me 8.5devel, which was
28987 generated by GNU Autoconf 2.63. Invocation command line was
28989 CONFIG_FILES = $CONFIG_FILES
28990 CONFIG_HEADERS = $CONFIG_HEADERS
28991 CONFIG_LINKS = $CONFIG_LINKS
28992 CONFIG_COMMANDS = $CONFIG_COMMANDS
28995 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29000 case $ac_config_files in *"
29001 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29004 case $ac_config_headers in *"
29005 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29010 # Files that config.status was made for.
29011 config_files="$ac_config_files"
29012 config_headers="$ac_config_headers"
29013 config_links="$ac_config_links"
29014 config_commands="$ac_config_commands"
29018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29020 \`$as_me' instantiates files from templates according to the
29021 current configuration.
29023 Usage: $0 [OPTION]... [FILE]...
29025 -h, --help print this help, then exit
29026 -V, --version print version number and configuration settings, then exit
29027 -q, --quiet, --silent
29028 do not print progress messages
29029 -d, --debug don't remove temporary files
29030 --recheck update $as_me by reconfiguring in the same conditions
29031 --file=FILE[:TEMPLATE]
29032 instantiate the configuration file FILE
29033 --header=FILE[:TEMPLATE]
29034 instantiate the configuration header FILE
29036 Configuration files:
29039 Configuration headers:
29042 Configuration links:
29045 Configuration commands:
29048 Report bugs to <bug-autoconf@gnu.org>."
29051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29053 PostgreSQL config.status 8.5devel
29054 configured by $0, generated by GNU Autoconf 2.63,
29055 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29057 Copyright (C) 2008 Free Software Foundation, Inc.
29058 This config.status script is free software; the Free Software Foundation
29059 gives unlimited permission to copy, distribute and modify it."
29065 test -n "\$AWK" || AWK=awk
29068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29069 # The default lists apply if the user does not specify any file.
29075 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29076 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29087 # Handling of the options.
29088 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29090 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29091 $as_echo "$ac_cs_version"; exit ;;
29092 --debug | --debu | --deb | --de | --d | -d )
29094 --file | --fil | --fi | --f )
29097 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29099 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
29100 ac_need_defaults=false;;
29101 --header | --heade | --head | --hea )
29104 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29106 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
29107 ac_need_defaults=false;;
29109 # Conflict between --help and --header
29110 { $as_echo "$as_me: error: ambiguous option: $1
29111 Try \`$0 --help' for more information." >&2
29112 { (exit 1); exit 1; }; };;
29113 --help | --hel | -h )
29114 $as_echo "$ac_cs_usage"; exit ;;
29115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29116 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29119 # This is an error.
29120 -*) { $as_echo "$as_me: error: unrecognized option: $1
29121 Try \`$0 --help' for more information." >&2
29122 { (exit 1); exit 1; }; } ;;
29124 *) ac_config_targets="$ac_config_targets $1"
29125 ac_need_defaults=false ;;
29131 ac_configure_extra_args=
29133 if $ac_cs_silent; then
29135 ac_configure_extra_args="$ac_configure_extra_args --silent"
29139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29140 if \$ac_cs_recheck; then
29141 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29143 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29144 CONFIG_SHELL='$SHELL'
29145 export CONFIG_SHELL
29150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29154 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29155 ## Running $as_me. ##
29161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29166 # Handling of arguments.
29167 for ac_config_target in $ac_config_targets
29169 case $ac_config_target in
29170 "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
29171 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
29172 "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
29173 "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
29174 "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
29175 "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
29176 "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
29177 "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
29178 "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
29179 "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
29180 "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
29181 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
29183 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29184 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29185 { (exit 1); exit 1; }; };;
29190 # If the user did not use the arguments to specify the items to instantiate,
29191 # then the envvar interface is used. Set only those that are not.
29192 # We use the long form for the default assignment because of an extremely
29193 # bizarre bug on SunOS 4.1.3.
29194 if $ac_need_defaults; then
29195 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29196 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29197 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29198 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29201 # Have a temporary directory for convenience. Make it in the build tree
29202 # simply because there is no reason against having it here, and in addition,
29203 # creating and moving files from /tmp can sometimes cause problems.
29204 # Hook for its removal unless debugging.
29205 # Note that there is a small window in which the directory will not be cleaned:
29206 # after its creation but before its name has been assigned to `$tmp'.
29210 trap 'exit_status=$?
29211 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29213 trap '{ (exit 1); exit 1; }' 1 2 13 15
29215 # Create a (secure) tmp directory for tmp files.
29218 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29219 test -n "$tmp" && test -d "$tmp"
29222 tmp=./conf$$-$RANDOM
29223 (umask 077 && mkdir "$tmp")
29226 $as_echo "$as_me: cannot create a temporary directory in ." >&2
29227 { (exit 1); exit 1; }
29230 # Set up the scripts for CONFIG_FILES section.
29231 # No need to generate them if there are no CONFIG_FILES.
29232 # This happens for instance with `./config.status config.h'.
29233 if test -n "$CONFIG_FILES"; then
29237 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29238 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29241 ac_cs_awk_cr=$ac_cr
29244 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29249 echo "cat >conf$$subs.awk <<_ACEOF" &&
29250 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29252 } >conf$$subs.sh ||
29253 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29254 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29255 { (exit 1); exit 1; }; }
29256 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29258 for ac_last_try in false false false false false :; do
29259 . ./conf$$subs.sh ||
29260 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29261 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29262 { (exit 1); exit 1; }; }
29264 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29265 if test $ac_delim_n = $ac_delim_num; then
29267 elif $ac_last_try; then
29268 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29269 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29270 { (exit 1); exit 1; }; }
29272 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29275 rm -f conf$$subs.sh
29277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29278 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29282 s/^/S["/; s/!.*/"]=/
29292 s/\(.\{148\}\).*/\1/
29294 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29299 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29306 s/\(.\{148\}\).*/\1/
29308 s/["\\]/\\&/g; s/^/"/; s/$/"/
29312 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29317 ' <conf$$subs.awk | sed '
29322 ' >>$CONFIG_STATUS || ac_write_fail=1
29323 rm -f conf$$subs.awk
29324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29326 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29327 for (key in S) S_is_set[key] = 1
29333 nfields = split(line, field, "@")
29335 len = length(field[1])
29336 for (i = 2; i < nfields; i++) {
29338 keylen = length(key)
29339 if (S_is_set[key]) {
29341 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29342 len += length(value) + length(field[++i])
29353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29354 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29355 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29358 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29359 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
29360 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
29361 { (exit 1); exit 1; }; }
29364 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29365 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29366 # trailing colons and then remove the whole line if VPATH becomes empty
29367 # (actually we leave an empty line to preserve line numbers).
29368 if test "x$srcdir" = x.; then
29369 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29370 s/:*\$(srcdir):*/:/
29371 s/:*\${srcdir}:*/:/
29373 s/^\([^=]*=[ ]*\):*/\1/
29379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29380 fi # test -n "$CONFIG_FILES"
29382 # Set up the scripts for CONFIG_HEADERS section.
29383 # No need to generate them if there are no CONFIG_HEADERS.
29384 # This happens for instance with `./config.status Makefile'.
29385 if test -n "$CONFIG_HEADERS"; then
29386 cat >"$tmp/defines.awk" <<\_ACAWK ||
29390 # Transform confdefs.h into an awk script `defines.awk', embedded as
29391 # here-document in config.status, that substitutes the proper values into
29392 # config.h.in to produce config.h.
29394 # Create a delimiter string that does not exist in confdefs.h, to ease
29395 # handling of long lines.
29397 for ac_last_try in false false :; do
29398 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29399 if test -z "$ac_t"; then
29401 elif $ac_last_try; then
29402 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
29403 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
29404 { (exit 1); exit 1; }; }
29406 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29410 # For the awk script, D is an array of macro values keyed by name,
29411 # likewise P contains macro parameters if any. Preserve backslash
29412 # newline sequences.
29414 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29416 s/.\{148\}/&'"$ac_delim"'/g
29419 s/^[ ]*#[ ]*define[ ][ ]*/ /
29426 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29428 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29432 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29433 D["\1"]=" \3\\\\\\n"\\/p
29435 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29440 s/.\{148\}/&'"$ac_delim"'/g
29445 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29448 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29450 ' <confdefs.h | sed '
29451 s/'"$ac_delim"'/"\\\
29452 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29455 for (key in D) D_is_set[key] = 1
29458 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29460 split(line, arg, " ")
29461 if (arg[1] == "#") {
29465 defundef = substr(arg[1], 2)
29468 split(mac1, mac2, "(") #)
29470 prefix = substr(line, 1, index(line, defundef) - 1)
29471 if (D_is_set[macro]) {
29472 # Preserve the white space surrounding the "#".
29473 print prefix "define", macro P[macro] D[macro]
29476 # Replace #undef with comments. This is necessary, for example,
29477 # in the case of _POSIX_SOURCE, which is predefined and required
29478 # on some systems where configure will not decide to define it.
29479 if (defundef == "undef") {
29480 print "/*", prefix defundef, macro, "*/"
29488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29489 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
29490 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
29491 { (exit 1); exit 1; }; }
29492 fi # test -n "$CONFIG_HEADERS"
29495 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29500 :[FHLC]) ac_mode=$ac_tag; continue;;
29502 case $ac_mode$ac_tag in
29504 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
29505 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
29506 { (exit 1); exit 1; }; };;
29507 :[FH]-) ac_tag=-:-;;
29508 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29525 -) ac_f="$tmp/stdin";;
29526 *) # Look for the file first in the build tree, then in the source tree
29527 # (if the path is not absolute). The absolute path cannot be DOS-style,
29528 # because $ac_f cannot contain `:'.
29532 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29534 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29535 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29536 { (exit 1); exit 1; }; };;
29538 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29539 ac_file_inputs="$ac_file_inputs '$ac_f'"
29542 # Let's still pretend it is `configure' which instantiates (i.e., don't
29543 # use $as_me), people would be surprised to read:
29544 # /* config.h. Generated by config.status. */
29545 configure_input='Generated from '`
29546 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29548 if test x"$ac_file" != x-; then
29549 configure_input="$ac_file. $configure_input"
29550 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
29551 $as_echo "$as_me: creating $ac_file" >&6;}
29553 # Neutralize special characters interpreted by sed in replacement strings.
29554 case $configure_input in #(
29555 *\&* | *\|* | *\\* )
29556 ac_sed_conf_input=`$as_echo "$configure_input" |
29557 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29558 *) ac_sed_conf_input=$configure_input;;
29562 *:-:* | *:-) cat >"$tmp/stdin" \
29563 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29564 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29565 { (exit 1); exit 1; }; } ;;
29570 ac_dir=`$as_dirname -- "$ac_file" ||
29571 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29572 X"$ac_file" : 'X\(//\)[^/]' \| \
29573 X"$ac_file" : 'X\(//\)$' \| \
29574 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29575 $as_echo X"$ac_file" |
29576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29580 /^X\(\/\/\)[^/].*/{
29595 -*) as_dir=./$as_dir;;
29597 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29601 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29602 *) as_qdir=$as_dir;;
29604 as_dirs="'$as_qdir' $as_dirs"
29605 as_dir=`$as_dirname -- "$as_dir" ||
29606 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29607 X"$as_dir" : 'X\(//\)[^/]' \| \
29608 X"$as_dir" : 'X\(//\)$' \| \
29609 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29610 $as_echo X"$as_dir" |
29611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29615 /^X\(\/\/\)[^/].*/{
29628 test -d "$as_dir" && break
29630 test -z "$as_dirs" || eval "mkdir $as_dirs"
29631 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29632 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
29633 { (exit 1); exit 1; }; }; }
29637 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29639 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29640 # A ".." for each directory in $ac_dir_suffix.
29641 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29642 case $ac_top_builddir_sub in
29643 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29644 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29647 ac_abs_top_builddir=$ac_pwd
29648 ac_abs_builddir=$ac_pwd$ac_dir_suffix
29649 # for backward compatibility:
29650 ac_top_builddir=$ac_top_build_prefix
29653 .) # We are building in place.
29655 ac_top_srcdir=$ac_top_builddir_sub
29656 ac_abs_top_srcdir=$ac_pwd ;;
29657 [\\/]* | ?:[\\/]* ) # Absolute name.
29658 ac_srcdir=$srcdir$ac_dir_suffix;
29659 ac_top_srcdir=$srcdir
29660 ac_abs_top_srcdir=$srcdir ;;
29661 *) # Relative name.
29662 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29663 ac_top_srcdir=$ac_top_build_prefix$srcdir
29664 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29666 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29675 ac_MKDIR_P=$MKDIR_P
29677 [\\/$]* | ?:[\\/]* ) ;;
29678 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
29682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29683 # If the template does not know about datarootdir, expand it.
29684 # FIXME: This hack should be removed a few years after 2.60.
29685 ac_datarootdir_hack=; ac_datarootdir_seen=
29698 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29699 *datarootdir*) ac_datarootdir_seen=yes;;
29700 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29701 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29702 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29705 ac_datarootdir_hack='
29706 s&@datadir@&$datadir&g
29707 s&@docdir@&$docdir&g
29708 s&@infodir@&$infodir&g
29709 s&@localedir@&$localedir&g
29710 s&@mandir@&$mandir&g
29711 s&\\\${datarootdir}&$datarootdir&g' ;;
29715 # Neutralize VPATH when `$srcdir' = `.'.
29716 # Shell code in configure.ac might set extrasub.
29717 # FIXME: do we really want to maintain this feature?
29718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29719 ac_sed_extra="$ac_vpsub
29722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29724 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29725 s|@configure_input@|$ac_sed_conf_input|;t t
29726 s&@top_builddir@&$ac_top_builddir_sub&;t t
29727 s&@top_build_prefix@&$ac_top_build_prefix&;t t
29728 s&@srcdir@&$ac_srcdir&;t t
29729 s&@abs_srcdir@&$ac_abs_srcdir&;t t
29730 s&@top_srcdir@&$ac_top_srcdir&;t t
29731 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29732 s&@builddir@&$ac_builddir&;t t
29733 s&@abs_builddir@&$ac_abs_builddir&;t t
29734 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29735 s&@MKDIR_P@&$ac_MKDIR_P&;t t
29736 $ac_datarootdir_hack
29738 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
29739 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29740 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29741 { (exit 1); exit 1; }; }
29743 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29744 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29745 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29746 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29747 which seems to be undefined. Please make sure it is defined." >&5
29748 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29749 which seems to be undefined. Please make sure it is defined." >&2;}
29753 -) cat "$tmp/out" && rm -f "$tmp/out";;
29754 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29756 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29757 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29758 { (exit 1); exit 1; }; }
29764 if test x"$ac_file" != x-; then
29766 $as_echo "/* $configure_input */" \
29767 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29768 } >"$tmp/config.h" \
29769 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29770 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29771 { (exit 1); exit 1; }; }
29772 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29773 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29774 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29777 mv "$tmp/config.h" "$ac_file" \
29778 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
29779 $as_echo "$as_me: error: could not create $ac_file" >&2;}
29780 { (exit 1); exit 1; }; }
29783 $as_echo "/* $configure_input */" \
29784 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29785 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
29786 $as_echo "$as_me: error: could not create -" >&2;}
29787 { (exit 1); exit 1; }; }
29795 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
29798 # Prefer the file from the source tree if names are identical.
29799 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29800 ac_source=$srcdir/$ac_source
29803 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
29804 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29806 if test ! -r "$ac_source"; then
29807 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
29808 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
29809 { (exit 1); exit 1; }; }
29813 # Try a relative symlink, then a hard link, then a copy.
29815 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29816 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29818 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29819 ln "$ac_source" "$ac_file" 2>/dev/null ||
29820 cp -p "$ac_source" "$ac_file" ||
29821 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
29822 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
29823 { (exit 1); exit 1; }; }
29826 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
29827 $as_echo "$as_me: executing $ac_file commands" >&6;}
29832 case $ac_file$ac_mode in
29833 "check_win32_symlinks":C)
29834 # Links sometimes fail undetected on Mingw -
29835 # so here we detect it and warn the user
29836 for FILE in $CONFIG_LINKS
29838 # test -e works for symlinks in the MinGW console
29839 test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
29840 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
29843 "src/include/pg_config.h":H)
29844 # Update timestamp for pg_config.h (see Makefile.global)
29845 echo >src/include/stamp-h
29847 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
29853 { (exit 0); exit 0; }
29855 chmod +x $CONFIG_STATUS
29856 ac_clean_files=$ac_clean_files_save
29858 test $ac_write_fail = 0 ||
29859 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
29860 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
29861 { (exit 1); exit 1; }; }
29864 # configure is writing to config.log, and then calls config.status.
29865 # config.status does its own redirection, appending to config.log.
29866 # Unfortunately, on DOS this fails, as config.log is still kept open
29867 # by configure, so config.status won't be able to write to it; its
29868 # output is simply discarded. So we exec the FD to /dev/null,
29869 # effectively closing config.log, so it can be properly (re)opened and
29870 # appended to by config.status. When coming back to configure, we
29871 # need to make the FD available again.
29872 if test "$no_create" != yes; then
29874 ac_config_status_args=
29875 test "$silent" = yes &&
29876 ac_config_status_args="$ac_config_status_args --quiet"
29878 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29880 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29881 # would make configure fail if this is the last instruction.
29882 $ac_cs_success || { (exit 1); exit 1; }
29884 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29885 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29886 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}