2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 9.1devel.
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-2010, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in
28 *posix
*) set -o posix
;;
37 # Avoid depending upon Character Ranges.
38 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits
='0123456789'
42 as_cr_alnum
=$as_cr_Letters$as_cr_digits
47 # Printing a long string crashes Solaris 7 /usr/bin/printf.
48 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
57 as_echo_n='/usr
/ucb
/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
70 as_echo_n='sh
-c $as_echo_n_body as_echo
'
73 as_echo='sh
-c $as_echo_body as_echo
'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # Support unset when possible.
86 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
94 # We need space, tab and new line, in precisely that order. Quoting is
95 # there to prevent editors from complaining about space-tab.
96 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
97 # splitting by setting IFS to empty value.)
100 # Find who we are. Look in the path if we contain no directory separator.
102 *[\\/]* ) as_myself=$0 ;;
103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107 test -z "$as_dir" && as_dir=.
108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114 # We did not find ourselves, most probably we were run as `sh COMMAND'
115 # in which case we are not to be found in the path.
116 if test "x$as_myself" = x
; then
119 if test ! -f "$as_myself"; then
120 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121 { (exit 1); exit 1; }
124 # Work around bugs in pre-3.0 UWIN ksh.
125 for as_var
in ENV MAIL MAILPATH
126 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
138 # Required to use basename.
139 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
140 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
146 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
153 # Name of the executable.
154 as_me
=`$as_basename -- "$0" ||
155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
156 X"$0" : 'X\(//\)$' \| \
157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
159 sed '/^.*\/\([^/][^/]*\)\/*$/{
177 if test "x$CONFIG_SHELL" = x
; then
178 if (eval ":") 2>/dev
/null
; then
184 if test $as_have_required = yes && (eval ":
194 as_func_ret_success () {
197 as_func_ret_failure () {
202 if as_func_success; then
206 echo as_func_success failed.
209 if as_func_failure; then
211 echo as_func_failure succeeded.
214 if as_func_ret_success; then
218 echo as_func_ret_success failed.
221 if as_func_ret_failure; then
223 echo as_func_ret_failure succeeded.
226 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
230 echo positional parameters were not saved.
233 test \$exitcode = 0) || { (exit 1); exit 1; }
238 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
239 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
240 ") 2> /dev
/null
; then
244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
245 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
248 test -z "$as_dir" && as_dir
=.
251 for as_base
in sh bash ksh sh5
; do
252 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
259 for as_shell
in $as_candidate_shells $SHELL; do
260 # Try only shells that exist, to save several forks.
261 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
262 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
266 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix
*) set -o posix
;;
281 CONFIG_SHELL
=$as_shell
283 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
284 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
287 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
288 # is contrary to our usage. Disable this feature.
289 alias -g '${1+"$@"}'='"$@"'
292 case `(set -o) 2>/dev/null` in
293 *posix
*) set -o posix
;;
309 as_func_ret_success
() {
312 as_func_ret_failure
() {
317 if as_func_success
; then
321 echo as_func_success failed.
324 if as_func_failure
; then
326 echo as_func_failure succeeded.
329 if as_func_ret_success
; then
333 echo as_func_ret_success failed.
336 if as_func_ret_failure
; then
338 echo as_func_ret_failure succeeded.
341 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
345 echo positional parameters were not saved.
348 test $exitcode = 0) ||
{ (exit 1); exit 1; }
353 test "x$as_lineno_1" != "x$as_lineno_2" &&
354 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
365 if test "x$CONFIG_SHELL" != x
; then
366 for as_var
in BASH_ENV ENV
367 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
370 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
374 if test $as_have_required = no
; then
375 echo This
script requires a shell
more modern than all the
376 echo shells that I found on your system. Please
install a
377 echo modern shell
, or manually run the
script under such a
378 echo shell
if you
do have one.
379 { (exit 1); exit 1; }
389 (eval "as_func_return () {
398 as_func_ret_success () {
401 as_func_ret_failure () {
406 if as_func_success; then
410 echo as_func_success failed.
413 if as_func_failure; then
415 echo as_func_failure succeeded.
418 if as_func_ret_success; then
422 echo as_func_ret_success failed.
425 if as_func_ret_failure; then
427 echo as_func_ret_failure succeeded.
430 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
434 echo positional parameters were not saved.
437 test \$exitcode = 0") ||
{
438 echo No shell found that supports shell functions.
439 echo Please tell bug-autoconf@gnu.org about your system
,
440 echo including any error possibly output before this message.
441 echo This can
help us improve future autoconf versions.
442 echo Configuration will now proceed without shell functions.
449 test "x$as_lineno_1" != "x$as_lineno_2" &&
450 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
452 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
453 # uniformly replaced by the line number. The first 'sed' inserts a
454 # line-number line after each line using $LINENO; the second 'sed'
455 # does the real work. The second script uses 'N' to pair each
456 # line-number line with the line containing $LINENO, and appends
457 # trailing '-' during substitution so that $LINENO is not a special
459 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
460 # scripts with optimization help from Paolo Bonzini. Blame Lee
461 # E. McMahon (1931-1989) for sed's syntax. :-)
473 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
477 chmod +x
"$as_me.lineno" ||
478 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
479 { (exit 1); exit 1; }; }
481 # Don't try to exec as it changes $[0], causing all sort of problems
482 # (the dirname of $[0] is not the place where we might find the
483 # original and so on. Autoconf is especially sensitive to this).
485 # Exit status is that of the last command.
490 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
496 ECHO_C
= ECHO_N
= ECHO_T
=
500 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
507 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -p'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
543 test -d .
/-p && rmdir .
/-p
547 if test -x / >/dev
/null
2>&1; then
550 if ls -dL / >/dev
/null
2>&1; then
557 if test -d "$1"; then
563 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
564 ???[sx]*):;;*)false;;esac;fi
568 as_executable_p
=$as_test_x
570 # Sed expression to map a string onto a valid CPP name.
571 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
573 # Sed expression to map a string onto a valid variable name.
574 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
578 exec 7<&0 </dev
/null
6>&1
581 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
582 # so uname gets run too.
583 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
588 ac_default_prefix
=/usr
/local
590 ac_config_libobj_dir
=.
596 SHELL
=${CONFIG_SHELL-/bin/sh}
598 # Identity of this package.
599 PACKAGE_NAME
='PostgreSQL'
600 PACKAGE_TARNAME
='postgresql'
601 PACKAGE_VERSION
='9.1devel'
602 PACKAGE_STRING
='PostgreSQL 9.1devel'
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
793 program_transform_name
805 enable_option_checking
810 enable_integer_datetimes
840 with_libedit_preferred
851 ac_precious_vars
='build_alias
865 # Initialize some variables set by options.
867 ac_init_version
=false
868 ac_unrecognized_opts
=
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
879 program_transform_name
=s
,x
,x
,
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir
='${exec_prefix}/bin'
894 sbindir
='${exec_prefix}/sbin'
895 libexecdir
='${exec_prefix}/libexec'
896 datarootdir
='${prefix}/share'
897 datadir
='${datarootdir}'
898 sysconfdir
='${prefix}/etc'
899 sharedstatedir
='${prefix}/com'
900 localstatedir
='${prefix}/var'
901 includedir
='${prefix}/include'
902 oldincludedir
='/usr/include'
903 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
904 infodir
='${datarootdir}/info'
909 libdir
='${exec_prefix}/lib'
910 localedir
='${datarootdir}/locale'
911 mandir
='${datarootdir}/man'
917 # If the previous option needs an argument, assign it.
918 if test -n "$ac_prev"; then
919 eval $ac_prev=\
$ac_option
925 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
929 # Accept the important Cygnus configure options, so we can diagnose typos.
931 case $ac_dashdash$ac_option in
935 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
937 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
940 -build |
--build |
--buil |
--bui |
--bu)
941 ac_prev
=build_alias
;;
942 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
943 build_alias
=$ac_optarg ;;
945 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
946 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
947 ac_prev
=cache_file
;;
948 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
949 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
950 cache_file
=$ac_optarg ;;
953 cache_file
=config.cache
;;
955 -datadir |
--datadir |
--datadi |
--datad)
957 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
958 datadir
=$ac_optarg ;;
960 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
961 |
--dataroo |
--dataro |
--datar)
962 ac_prev
=datarootdir
;;
963 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
964 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
965 datarootdir
=$ac_optarg ;;
967 -disable-* |
--disable-*)
968 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
971 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
972 { (exit 1); exit 1; }; }
973 ac_useropt_orig
=$ac_useropt
974 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
979 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
980 ac_unrecognized_sep
=', ';;
982 eval enable_
$ac_useropt=no
;;
984 -docdir |
--docdir |
--docdi |
--doc |
--do)
986 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
989 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
991 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
994 -enable-* |
--enable-*)
995 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
998 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
999 { (exit 1); exit 1; }; }
1000 ac_useropt_orig
=$ac_useropt
1001 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1004 "enable_
$ac_useropt"
1006 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007 ac_unrecognized_sep
=', ';;
1009 eval enable_
$ac_useropt=\
$ac_optarg ;;
1011 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1012 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1013 |
--exec |
--exe |
--ex)
1014 ac_prev
=exec_prefix
;;
1015 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1016 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1017 |
--exec=* |
--exe=* |
--ex=*)
1018 exec_prefix
=$ac_optarg ;;
1020 -gas |
--gas |
--ga |
--g)
1021 # Obsolete; use --with-gas.
1024 -help |
--help |
--hel |
--he |
-h)
1025 ac_init_help
=long
;;
1026 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1027 ac_init_help
=recursive
;;
1028 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1029 ac_init_help
=short
;;
1031 -host |
--host |
--hos |
--ho)
1032 ac_prev
=host_alias
;;
1033 -host=* |
--host=* |
--hos=* |
--ho=*)
1034 host_alias
=$ac_optarg ;;
1036 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1038 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1040 htmldir
=$ac_optarg ;;
1042 -includedir |
--includedir |
--includedi |
--included |
--include \
1043 |
--includ |
--inclu |
--incl |
--inc)
1044 ac_prev
=includedir
;;
1045 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1046 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1047 includedir
=$ac_optarg ;;
1049 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1051 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1052 infodir
=$ac_optarg ;;
1054 -libdir |
--libdir |
--libdi |
--libd)
1056 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1057 libdir
=$ac_optarg ;;
1059 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1060 |
--libexe |
--libex |
--libe)
1061 ac_prev
=libexecdir
;;
1062 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1063 |
--libexe=* |
--libex=* |
--libe=*)
1064 libexecdir
=$ac_optarg ;;
1066 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1067 ac_prev
=localedir
;;
1068 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1069 localedir
=$ac_optarg ;;
1071 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1072 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1073 ac_prev
=localstatedir
;;
1074 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1075 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1076 localstatedir
=$ac_optarg ;;
1078 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1080 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1081 mandir
=$ac_optarg ;;
1083 -nfp |
--nfp |
--nf)
1084 # Obsolete; use --without-fp.
1087 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1088 |
--no-cr |
--no-c |
-n)
1091 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1092 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1095 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1096 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1097 |
--oldin |
--oldi |
--old |
--ol |
--o)
1098 ac_prev
=oldincludedir
;;
1099 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1100 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1101 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1102 oldincludedir
=$ac_optarg ;;
1104 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1106 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1107 prefix
=$ac_optarg ;;
1109 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1110 |
--program-pre |
--program-pr |
--program-p)
1111 ac_prev
=program_prefix
;;
1112 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1113 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1114 program_prefix
=$ac_optarg ;;
1116 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1117 |
--program-suf |
--program-su |
--program-s)
1118 ac_prev
=program_suffix
;;
1119 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1120 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1121 program_suffix
=$ac_optarg ;;
1123 -program-transform-name |
--program-transform-name \
1124 |
--program-transform-nam |
--program-transform-na \
1125 |
--program-transform-n |
--program-transform- \
1126 |
--program-transform |
--program-transfor \
1127 |
--program-transfo |
--program-transf \
1128 |
--program-trans |
--program-tran \
1129 |
--progr-tra |
--program-tr |
--program-t)
1130 ac_prev
=program_transform_name
;;
1131 -program-transform-name=* |
--program-transform-name=* \
1132 |
--program-transform-nam=* |
--program-transform-na=* \
1133 |
--program-transform-n=* |
--program-transform-=* \
1134 |
--program-transform=* |
--program-transfor=* \
1135 |
--program-transfo=* |
--program-transf=* \
1136 |
--program-trans=* |
--program-tran=* \
1137 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1138 program_transform_name
=$ac_optarg ;;
1140 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1142 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1143 pdfdir
=$ac_optarg ;;
1145 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1147 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1150 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1151 |
-silent |
--silent |
--silen |
--sile |
--sil)
1154 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1156 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1158 sbindir
=$ac_optarg ;;
1160 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1161 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1162 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1164 ac_prev
=sharedstatedir
;;
1165 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1166 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1167 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1169 sharedstatedir
=$ac_optarg ;;
1171 -site |
--site |
--sit)
1173 -site=* |
--site=* |
--sit=*)
1176 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1178 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1179 srcdir
=$ac_optarg ;;
1181 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1182 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1183 ac_prev
=sysconfdir
;;
1184 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1185 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1186 sysconfdir
=$ac_optarg ;;
1188 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1189 ac_prev
=target_alias
;;
1190 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1191 target_alias
=$ac_optarg ;;
1193 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1196 -version |
--version |
--versio |
--versi |
--vers |
-V)
1197 ac_init_version
=: ;;
1200 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1203 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1204 { (exit 1); exit 1; }; }
1205 ac_useropt_orig
=$ac_useropt
1206 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1211 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212 ac_unrecognized_sep
=', ';;
1214 eval with_
$ac_useropt=\
$ac_optarg ;;
1216 -without-* |
--without-*)
1217 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1220 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1221 { (exit 1); exit 1; }; }
1222 ac_useropt_orig
=$ac_useropt
1223 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224 case $ac_user_opts in
1228 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1229 ac_unrecognized_sep
=', ';;
1231 eval with_
$ac_useropt=no
;;
1234 # Obsolete; use --with-x.
1237 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1238 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1239 ac_prev
=x_includes
;;
1240 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1241 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1242 x_includes
=$ac_optarg ;;
1244 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1245 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1246 ac_prev
=x_libraries
;;
1247 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1248 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1249 x_libraries
=$ac_optarg ;;
1251 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1252 Try \`$0 --help' for more information." >&2
1253 { (exit 1); exit 1; }; }
1257 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1260 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1261 { (exit 1); exit 1; }; }
1262 eval $ac_envvar=\
$ac_optarg
1263 export $ac_envvar ;;
1266 # FIXME: should be removed in autoconf 3.0.
1267 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1269 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1276 if test -n "$ac_prev"; then
1277 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1278 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1279 { (exit 1); exit 1; }; }
1282 if test -n "$ac_unrecognized_opts"; then
1283 case $enable_option_checking in
1285 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1286 { (exit 1); exit 1; }; } ;;
1287 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291 # Check all directory arguments for consistency.
1292 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293 datadir sysconfdir sharedstatedir localstatedir includedir \
1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295 libdir localedir mandir
1297 eval ac_val
=\$
$ac_var
1298 # Remove trailing slashes.
1301 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302 eval $ac_var=\
$ac_val;;
1304 # Be sure to have absolute directory names.
1306 [\\/$
]* | ?
:[\\/]* ) continue;;
1307 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1309 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1310 { (exit 1); exit 1; }; }
1313 # There might be people who depend on the old broken behavior: `$host'
1314 # used to hold the argument of --host etc.
1315 # FIXME: To remove some day.
1318 target
=$target_alias
1320 # FIXME: To remove some day.
1321 if test "x$host_alias" != x
; then
1322 if test "x$build_alias" = x
; then
1323 cross_compiling
=maybe
1324 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1325 If a cross compiler is detected then cross compile mode will be used." >&2
1326 elif test "x$build_alias" != "x$host_alias"; then
1332 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1334 test "$silent" = yes && exec 6>/dev
/null
1337 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di
=`ls -di .` &&
1339 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1340 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1341 { (exit 1); exit 1; }; }
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1344 { (exit 1); exit 1; }; }
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349 ac_srcdir_defaulted
=yes
1350 # Try the directory containing this script, then the parent directory.
1351 ac_confdir
=`$as_dirname -- "$as_myself" ||
1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$as_myself" : 'X\(//\)[^/]' \| \
1354 X"$as_myself" : 'X\(//\)$' \| \
1355 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356 $as_echo X"$as_myself" |
1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1379 ac_srcdir_defaulted
=no
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1383 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1384 { (exit 1); exit 1; }; }
1386 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1389 { (exit 1); exit 1; }; }
1391 # When building in place, set srcdir=.
1392 if test "$ac_abs_confdir" = "$ac_pwd"; then
1395 # Remove unnecessary trailing slashes from srcdir.
1396 # Double slashes in file names in object file debugging info
1397 # mess up M-x gdb in Emacs.
1399 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 for ac_var
in $ac_precious_vars; do
1402 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1403 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1404 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1405 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1409 # Report the --help message.
1411 if test "$ac_init_help" = "long"; then
1412 # Omit some internal or obsolete options to make the list less imposing.
1413 # This message is too long to be a string in the A/UX 3.1 sh.
1415 \`configure' configures PostgreSQL 9.1devel to adapt to many kinds of systems.
1417 Usage: $0 [OPTION]... [VAR=VALUE]...
1419 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420 VAR=VALUE. See below for descriptions of some of the useful variables.
1422 Defaults for the options are specified in brackets.
1425 -h, --help display this help and exit
1426 --help=short display options specific to this package
1427 --help=recursive display the short help of all the included packages
1428 -V, --version display version information and exit
1429 -q, --quiet, --silent do not print \`checking...' messages
1430 --cache-file=FILE cache test results in FILE [disabled]
1431 -C, --config-cache alias for \`--cache-file=config.cache'
1432 -n, --no-create do not create output files
1433 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1435 Installation directories:
1436 --prefix=PREFIX install architecture-independent files in PREFIX
1437 [$ac_default_prefix]
1438 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1441 By default, \`make install' will install all the files in
1442 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1443 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444 for instance \`--prefix=\$HOME'.
1446 For better control, use the options below.
1448 Fine tuning of the installation directories:
1449 --bindir=DIR user executables [EPREFIX/bin]
1450 --sbindir=DIR system admin executables [EPREFIX/sbin]
1451 --libexecdir=DIR program executables [EPREFIX/libexec]
1452 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1453 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1454 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root [DATAROOTDIR/doc/postgresql]
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1473 --build=BUILD configure
for building on BUILD
[guessed
]
1474 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1478 if test -n "$ac_init_help"; then
1479 case $ac_init_help in
1480 short | recursive
) echo "Configuration of PostgreSQL 9.1devel:";;
1485 --disable-option-checking ignore unrecognized
--enable/--with options
1486 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1487 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1488 --disable-integer-datetimes
1489 disable
64-bit integer date
/time support
1490 --enable-nls[=LANGUAGES
]
1491 enable Native Language Support
1492 --disable-shared do not build shared libraries
1493 --disable-rpath do not embed shared library search path
in
1495 --disable-spinlocks do not use spinlocks
1496 --enable-debug build with debugging symbols
(-g)
1497 --enable-profiling build with profiling enabled
1498 --enable-coverage build with coverage testing instrumentation
1499 --enable-dtrace build with DTrace support
1500 --enable-depend turn on automatic dependency tracking
1501 --enable-cassert enable assertion checks
(for debugging
)
1502 --disable-thread-safety disable thread-safety
in client libraries
1503 --disable-largefile omit support
for large files
1504 --disable-float4-byval disable float4 passed by value
1505 --disable-float8-byval disable float8 passed by value
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_EX extra linker flags
for linking executables only
1557 LDFLAGS_SL extra linker flags
for linking shared libraries only
1559 location of DocBook stylesheets
1561 Use these variables to override the choices made by
`configure' or to help
1562 it to find libraries and programs with nonstandard names/locations.
1564 Report bugs to <pgsql-bugs@postgresql.org>.
1569 if test "$ac_init_help" = "recursive"; then
1570 # If there are subdirs, report their specific --help.
1571 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1572 test -d "$ac_dir" ||
1573 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1578 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1581 # A ".." for each directory in $ac_dir_suffix.
1582 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1583 case $ac_top_builddir_sub in
1584 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1588 ac_abs_top_builddir=$ac_pwd
1589 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1590 # for backward compatibility:
1591 ac_top_builddir=$ac_top_build_prefix
1594 .) # We are building in place.
1596 ac_top_srcdir=$ac_top_builddir_sub
1597 ac_abs_top_srcdir=$ac_pwd ;;
1598 [\\/]* | ?:[\\/]* ) # Absolute name.
1599 ac_srcdir=$srcdir$ac_dir_suffix;
1600 ac_top_srcdir=$srcdir
1601 ac_abs_top_srcdir=$srcdir ;;
1603 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604 ac_top_srcdir=$ac_top_build_prefix$srcdir
1605 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1607 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1609 cd "$ac_dir" || { ac_status=$?; continue; }
1610 # Check for guested configure.
1611 if test -f "$ac_srcdir/configure.gnu"; then
1613 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614 elif test -f "$ac_srcdir/configure"; then
1616 $SHELL "$ac_srcdir/configure" --help=recursive
1618 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1620 cd "$ac_pwd" || { ac_status=$?; break; }
1624 test -n "$ac_init_help" && exit $ac_status
1625 if $ac_init_version; then
1627 PostgreSQL configure 9.1devel
1628 generated by GNU Autoconf 2.63
1630 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1631 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1632 This configure script is free software; the Free Software Foundation
1633 gives unlimited permission to copy, distribute and modify it.
1635 Copyright (c) 1996-2010, PostgreSQL Global Development Group
1639 cat >config.log <<_ACEOF
1640 This file contains any messages produced by compilers while
1641 running configure, to aid debugging if configure makes a mistake.
1643 It was created by PostgreSQL $as_me 9.1devel, which was
1644 generated by GNU Autoconf 2.63. Invocation command line was
1656 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1657 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1658 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1659 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1660 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1662 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1663 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1665 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1666 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1667 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1668 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1669 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1670 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1671 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 test -z "$as_dir" && as_dir=.
1680 $as_echo "PATH: $as_dir"
1696 # Keep a trace of the command line.
1697 # Strip out --no-create and --no-recursion so they do not pile up.
1698 # Strip out --silent because we don't want to record it for future runs.
1699 # Also quote any args containing shell meta-characters.
1700 # Make two passes to allow for proper duplicate-argument suppression.
1704 ac_must_keep_next=false
1710 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1711 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1712 | -silent | --silent | --silen | --sile | --sil)
1715 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1718 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1720 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1721 if test $ac_must_keep_next = true; then
1722 ac_must_keep_next=false # Got value, back to normal.
1725 *=* | --config-cache | -C | -disable-* | --disable-* \
1726 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1727 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1728 | -with-* | --with-* | -without-* | --without-* | --x)
1729 case "$ac_configure_args0 " in
1730 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1733 -* ) ac_must_keep_next=true ;;
1736 ac_configure_args="$ac_configure_args '$ac_arg'"
1741 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1742 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1744 # When interrupted or exit'd, cleanup temporary files, and complete
1745 # config.log. We remove comments because anyway the quotes in there
1746 # would cause problems or look ugly.
1747 # WARNING: Use '\'' to represent an apostrophe within the trap.
1748 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1749 trap 'exit_status=$?
1750 # Save into config.log some information that might help in debugging.
1755 ## ---------------- ##
1756 ## Cache variables. ##
1757 ## ---------------- ##
1760 # The following way of writing the cache mishandles newlines in values,
1762 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1763 eval ac_val=\$$ac_var
1767 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1768 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1771 _ | IFS | as_nl) ;; #(
1772 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1773 *) $as_unset $ac_var ;;
1778 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1779 *${as_nl}ac_space=\ *)
1781 "s/'\''/'\''\\\\'\'''\''/g;
1782 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1785 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1793 ## ----------------- ##
1794 ## Output variables. ##
1795 ## ----------------- ##
1798 for ac_var in $ac_subst_vars
1800 eval ac_val=\$$ac_var
1802 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1804 $as_echo "$ac_var='\''$ac_val'\''"
1808 if test -n "$ac_subst_files"; then
1810 ## ------------------- ##
1811 ## File substitutions. ##
1812 ## ------------------- ##
1815 for ac_var in $ac_subst_files
1817 eval ac_val=\$$ac_var
1819 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1821 $as_echo "$ac_var='\''$ac_val'\''"
1826 if test -s confdefs.h; then
1836 test "$ac_signal" != 0 &&
1837 $as_echo "$as_me: caught signal $ac_signal"
1838 $as_echo "$as_me: exit $exit_status"
1840 rm -f core *.core core.conftest.* &&
1841 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1844 for ac_signal in 1 2 13 15; do
1845 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1849 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1850 rm -f -r conftest* confdefs.h
1852 # Predefined preprocessor variables.
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_NAME "$PACKAGE_NAME"
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1869 cat >>confdefs.h <<_ACEOF
1870 #define PACKAGE_STRING "$PACKAGE_STRING"
1874 cat >>confdefs.h <<_ACEOF
1875 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1879 # Let the site file select an alternate cache file if it wants to.
1880 # Prefer an explicitly selected file to automatically selected ones.
1883 if test -n "$CONFIG_SITE"; then
1884 ac_site_file1=$CONFIG_SITE
1885 elif test "x$prefix" != xNONE; then
1886 ac_site_file1=$prefix/share/config.site
1887 ac_site_file2=$prefix/etc/config.site
1889 ac_site_file1=$ac_default_prefix/share/config.site
1890 ac_site_file2=$ac_default_prefix/etc/config.site
1892 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1894 test "x$ac_site_file" = xNONE && continue
1895 if test -r "$ac_site_file"; then
1896 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1897 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1898 sed 's/^/| /' "$ac_site_file" >&5
1903 if test -r "$cache_file"; then
1904 # Some versions of bash will fail to source /dev/null (special
1905 # files actually), so we avoid doing that.
1906 if test -f "$cache_file"; then
1907 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1908 $as_echo "$as_me: loading cache $cache_file" >&6;}
1910 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1911 *) . "./$cache_file";;
1915 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1916 $as_echo "$as_me: creating cache $cache_file" >&6;}
1920 # Check that the precious variables saved in the cache have kept the same
1922 ac_cache_corrupted=false
1923 for ac_var in $ac_precious_vars; do
1924 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1925 eval ac_new_set=\$ac_env_${ac_var}_set
1926 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1927 eval ac_new_val=\$ac_env_${ac_var}_value
1928 case $ac_old_set,$ac_new_set in
1930 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1931 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1932 ac_cache_corrupted=: ;;
1934 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1935 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1936 ac_cache_corrupted=: ;;
1939 if test "x$ac_old_val" != "x$ac_new_val"; then
1940 # differences in whitespace do not lead to failure.
1941 ac_old_val_w=`echo x
$ac_old_val`
1942 ac_new_val_w=`echo x
$ac_new_val`
1943 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1944 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1945 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1946 ac_cache_corrupted=:
1948 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1949 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1950 eval $ac_var=\$ac_old_val
1952 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1953 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1954 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1955 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1958 # Pass precious variables to config.status.
1959 if test "$ac_new_set" = set; then
1961 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1962 *) ac_arg=$ac_var=$ac_new_val ;;
1964 case " $ac_configure_args " in
1965 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1966 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1970 if $ac_cache_corrupted; then
1971 { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
1972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1973 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1974 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1975 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&5
1976 $as_echo "$as_me: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&2;}
1977 { (exit 1); exit 1; }; }
2005 ac_cpp='$CPP $CPPFLAGS'
2006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2016 for ac_dir in config "$srcdir"/config; do
2017 if test -f "$ac_dir/install-sh
"; then
2019 ac_install_sh="$ac_aux_dir/install-sh
-c"
2021 elif test -f "$ac_dir/install.sh
"; then
2023 ac_install_sh="$ac_aux_dir/install.sh
-c"
2025 elif test -f "$ac_dir/shtool
"; then
2027 ac_install_sh="$ac_aux_dir/shtool
install -c"
2031 if test -z "$ac_aux_dir"; then
2032 { { $as_echo "$as_me:$LINENO: error
: cannot
find install-sh or
install.sh
in config
\"$srcdir\"/config
" >&5
2033 $as_echo "$as_me: error
: cannot
find install-sh or
install.sh
in config
\"$srcdir\"/config
" >&2;}
2034 { (exit 1); exit 1; }; }
2037 # These three variables are undocumented and unsupported,
2038 # and are intended to be withdrawn in a future Autoconf release.
2039 # They can cause serious problems if a builder's source tree is in a directory
2040 # whose full name contains unusual characters.
2041 ac_config_guess="$SHELL $ac_aux_dir/config.guess
" # Please don't use this var.
2042 ac_config_sub="$SHELL $ac_aux_dir/config.sub
" # Please don't use this var.
2043 ac_configure="$SHELL $ac_aux_dir/configure
" # Please don't use this var.
2047 configure_args=$ac_configure_args
2051 cat >>confdefs.h <<_ACEOF
2052 #define PG_VERSION "$PACKAGE_VERSION"
2055 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2058 cat >>confdefs.h <<_ACEOF
2059 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2063 # Make sure we can run config.sub.
2064 $SHELL "$ac_aux_dir/config.sub
" sun4 >/dev/null 2>&1 ||
2065 { { $as_echo "$as_me:$LINENO: error
: cannot run
$SHELL $ac_aux_dir/config.sub
" >&5
2066 $as_echo "$as_me: error
: cannot run
$SHELL $ac_aux_dir/config.sub
" >&2;}
2067 { (exit 1); exit 1; }; }
2069 { $as_echo "$as_me:$LINENO: checking build system
type" >&5
2070 $as_echo_n "checking build system
type...
" >&6; }
2071 if test "${ac_cv_build+set}" = set; then
2072 $as_echo_n "(cached
) " >&6
2074 ac_build_alias=$build_alias
2075 test "x
$ac_build_alias" = x &&
2076 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess
"`
2077 test "x
$ac_build_alias" = x &&
2078 { { $as_echo "$as_me:$LINENO: error
: cannot guess build
type; you must specify one
" >&5
2079 $as_echo "$as_me: error
: cannot guess build
type; you must specify one
" >&2;}
2080 { (exit 1); exit 1; }; }
2081 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub
" $ac_build_alias` ||
2082 { { $as_echo "$as_me:$LINENO: error
: $SHELL $ac_aux_dir/config.sub
$ac_build_alias failed
" >&5
2083 $as_echo "$as_me: error
: $SHELL $ac_aux_dir/config.sub
$ac_build_alias failed
" >&2;}
2084 { (exit 1); exit 1; }; }
2087 { $as_echo "$as_me:$LINENO: result
: $ac_cv_build" >&5
2088 $as_echo "$ac_cv_build" >&6; }
2089 case $ac_cv_build in
2091 *) { { $as_echo "$as_me:$LINENO: error
: invalid value of canonical build
" >&5
2092 $as_echo "$as_me: error
: invalid value of canonical build
" >&2;}
2093 { (exit 1); exit 1; }; };;
2096 ac_save_IFS=$IFS; IFS='-'
2102 # Remember, the first character of IFS is used to create $*,
2103 # except with old shells:
2106 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2109 { $as_echo "$as_me:$LINENO: checking
host system
type" >&5
2110 $as_echo_n "checking
host system
type...
" >&6; }
2111 if test "${ac_cv_host+set}" = set; then
2112 $as_echo_n "(cached
) " >&6
2114 if test "x
$host_alias" = x; then
2115 ac_cv_host=$ac_cv_build
2117 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub
" $host_alias` ||
2118 { { $as_echo "$as_me:$LINENO: error
: $SHELL $ac_aux_dir/config.sub
$host_alias failed
" >&5
2119 $as_echo "$as_me: error
: $SHELL $ac_aux_dir/config.sub
$host_alias failed
" >&2;}
2120 { (exit 1); exit 1; }; }
2124 { $as_echo "$as_me:$LINENO: result
: $ac_cv_host" >&5
2125 $as_echo "$ac_cv_host" >&6; }
2128 *) { { $as_echo "$as_me:$LINENO: error
: invalid value of canonical
host" >&5
2129 $as_echo "$as_me: error
: invalid value of canonical
host" >&2;}
2130 { (exit 1); exit 1; }; };;
2133 ac_save_IFS=$IFS; IFS='-'
2139 # Remember, the first character of IFS is used to create $*,
2140 # except with old shells:
2143 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2148 { $as_echo "$as_me:$LINENO: checking
which template to use
" >&5
2149 $as_echo_n "checking
which template to use...
" >&6; }
2154 # Check whether --with-template was given.
2155 if test "${with_template+set}" = set; then
2156 withval=$with_template;
2159 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-template option
" >&5
2160 $as_echo "$as_me: error
: argument required
for --with-template option
" >&2;}
2161 { (exit 1); exit 1; }; }
2164 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-template option
" >&5
2165 $as_echo "$as_me: error
: argument required
for --with-template option
" >&2;}
2166 { (exit 1); exit 1; }; }
2171 list) echo; ls "$srcdir/src
/template
"; exit;;
2172 *) if test -f "$srcdir/src
/template
/$with_template" ; then
2175 { { $as_echo "$as_me:$LINENO: error
: '$withval' is not a valid template name. Use
'list' for a list.
" >&5
2176 $as_echo "$as_me: error
: '$withval' is not a valid template name. Use
'list' for a list.
" >&2;}
2177 { (exit 1); exit 1; }; }
2186 # --with-template not given
2189 aix*) template=aix ;;
2190 bsdi*) template=bsdi ;;
2191 cygwin*) template=cygwin ;;
2192 darwin*) template=darwin ;;
2193 dgux*) template=dgux ;;
2194 freebsd*) template=freebsd ;;
2195 hpux*) template=hpux ;;
2196 irix*) template=irix ;;
2197 linux*|gnu*|k*bsd*-gnu)
2199 mingw*) template=win32 ;;
2200 netbsd*) template=netbsd ;;
2201 nextstep*) template=nextstep ;;
2202 openbsd*) template=openbsd ;;
2203 osf*) template=osf ;;
2204 sco*) template=sco ;;
2205 solaris*) template=solaris ;;
2206 sunos*) template=sunos4 ;;
2208 case $host_vendor in
2209 univel) template=univel ;;
2211 sysv4*) template=svr4 ;;
2212 sysv5*) template=unixware ;;
2213 ultrix*) template=ultrix4 ;;
2216 if test x"$template" = x"" ; then
2217 { { $as_echo "$as_me:$LINENO: error
:
2218 *******************************************************************
2219 PostgreSQL has apparently not been ported to your platform yet.
2220 To try a manual configuration
, look into the src
/template directory
2221 for a similar platform and use the
'--with-template=' option.
2223 Please also contact
<pgsql-bugs@postgresql.org
> to see about
2224 rectifying this. Include the above
'checking host system type...'
2226 *******************************************************************
2228 $as_echo "$as_me: error
:
2229 *******************************************************************
2230 PostgreSQL has apparently not been ported to your platform yet.
2231 To try a manual configuration
, look into the src
/template directory
2232 for a similar platform and use the
'--with-template=' option.
2234 Please also contact
<pgsql-bugs@postgresql.org
> to see about
2235 rectifying this. Include the above
'checking host system type...'
2237 *******************************************************************
2239 { (exit 1); exit 1; }; }
2247 { $as_echo "$as_me:$LINENO: result
: $template" >&5
2248 $as_echo "$template" >&6; }
2253 # Initialize default assumption that we do not need separate assembly code
2254 # for TAS (test-and-set). This can be overridden by the template file
2255 # when it's executed.
2262 ## Command line options
2266 # Add non-standard directories to the include path
2271 # Check whether --with-includes was given.
2272 if test "${with_includes+set}" = set; then
2273 withval=$with_includes;
2276 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-includes option
" >&5
2277 $as_echo "$as_me: error
: argument required
for --with-includes option
" >&2;}
2278 { (exit 1); exit 1; }; }
2281 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-includes option
" >&5
2282 $as_echo "$as_me: error
: argument required
for --with-includes option
" >&2;}
2283 { (exit 1); exit 1; }; }
2296 # Add non-standard directories to the library search path
2301 # Check whether --with-libraries was given.
2302 if test "${with_libraries+set}" = set; then
2303 withval=$with_libraries;
2306 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-libraries option
" >&5
2307 $as_echo "$as_me: error
: argument required
for --with-libraries option
" >&2;}
2308 { (exit 1); exit 1; }; }
2311 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-libraries option
" >&5
2312 $as_echo "$as_me: error
: argument required
for --with-libraries option
" >&2;}
2313 { (exit 1); exit 1; }; }
2316 LIBRARY_DIRS=$withval
2327 # Check whether --with-libs was given.
2328 if test "${with_libs+set}" = set; then
2332 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-libs option
" >&5
2333 $as_echo "$as_me: error
: argument required
for --with-libs option
" >&2;}
2334 { (exit 1); exit 1; }; }
2337 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-libs option
" >&5
2338 $as_echo "$as_me: error
: argument required
for --with-libs option
" >&2;}
2339 { (exit 1); exit 1; }; }
2342 LIBRARY_DIRS=$withval
2352 # 64-bit integer date/time storage: enabled by default.
2354 { $as_echo "$as_me:$LINENO: checking whether to build with
64-bit integer date
/time support
" >&5
2355 $as_echo_n "checking whether to build with
64-bit integer date
/time support...
" >&6; }
2358 # Check whether --enable-integer-datetimes was given.
2359 if test "${enable_integer_datetimes+set}" = set; then
2360 enableval=$enable_integer_datetimes;
2364 cat >>confdefs.h <<\_ACEOF
2365 #define USE_INTEGER_DATETIMES 1
2373 { { $as_echo "$as_me:$LINENO: error
: no argument expected
for --enable-integer-datetimes option
" >&5
2374 $as_echo "$as_me: error
: no argument expected
for --enable-integer-datetimes option
" >&2;}
2375 { (exit 1); exit 1; }; }
2380 enable_integer_datetimes=yes
2382 cat >>confdefs.h <<\_ACEOF
2383 #define USE_INTEGER_DATETIMES 1
2389 { $as_echo "$as_me:$LINENO: result
: $enable_integer_datetimes" >&5
2390 $as_echo "$enable_integer_datetimes" >&6; }
2396 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted
" >&5
2397 $as_echo_n "checking whether NLS is wanted...
" >&6; }
2400 # Check whether --enable-nls was given.
2401 if test "${enable_nls+set}" = set; then
2402 enableval=$enable_nls;
2412 WANTED_LANGUAGES=$enableval
2422 if test "$enable_nls" = yes; then
2424 cat >>confdefs.h <<\_ACEOF
2425 #define ENABLE_NLS 1
2430 { $as_echo "$as_me:$LINENO: result
: $enable_nls" >&5
2431 $as_echo "$enable_nls" >&6; }
2436 # Default port number (--with-pgport), default 5432
2438 { $as_echo "$as_me:$LINENO: checking
for default port number
" >&5
2439 $as_echo_n "checking
for default port number...
" >&6; }
2443 # Check whether --with-pgport was given.
2444 if test "${with_pgport+set}" = set; then
2445 withval=$with_pgport;
2448 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-pgport option
" >&5
2449 $as_echo "$as_me: error
: argument required
for --with-pgport option
" >&2;}
2450 { (exit 1); exit 1; }; }
2453 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-pgport option
" >&5
2454 $as_echo "$as_me: error
: argument required
for --with-pgport option
" >&2;}
2455 { (exit 1); exit 1; }; }
2458 default_port=$withval
2467 { $as_echo "$as_me:$LINENO: result
: $default_port" >&5
2468 $as_echo "$default_port" >&6; }
2469 # Need both of these because some places want an integer and some a string
2471 cat >>confdefs.h <<_ACEOF
2472 #define DEF_PGPORT ${default_port}
2476 cat >>confdefs.h <<_ACEOF
2477 #define DEF_PGPORT_STR "${default_port}"
2483 # Option to disable shared libraries
2487 # Check whether --enable-shared was given.
2488 if test "${enable_shared+set}" = set; then
2489 enableval=$enable_shared;
2498 { { $as_echo "$as_me:$LINENO: error
: no argument expected
for --enable-shared option
" >&5
2499 $as_echo "$as_me: error
: no argument expected
for --enable-shared option
" >&2;}
2500 { (exit 1); exit 1; }; }
2513 # '-rpath'-like feature can be disabled
2517 # Check whether --enable-rpath was given.
2518 if test "${enable_rpath+set}" = set; then
2519 enableval=$enable_rpath;
2528 { { $as_echo "$as_me:$LINENO: error
: no argument expected
for --enable-rpath option
" >&5
2529 $as_echo "$as_me: error
: no argument expected
for --enable-rpath option
" >&2;}
2530 { (exit 1); exit 1; }; }
2547 # Check whether --enable-spinlocks was given.
2548 if test "${enable_spinlocks+set}" = set; then
2549 enableval=$enable_spinlocks;
2558 { { $as_echo "$as_me:$LINENO: error
: no argument expected
for --enable-spinlocks option
" >&5
2559 $as_echo "$as_me: error
: no argument expected
for --enable-spinlocks option
" >&2;}
2560 { (exit 1); exit 1; }; }
2565 enable_spinlocks=yes
2572 # --enable-debug adds -g to compiler flags
2576 # Check whether --enable-debug was given.
2577 if test "${enable_debug+set}" = set; then
2578 enableval=$enable_debug;
2587 { { $as_echo "$as_me:$LINENO: error
: no argument expected
for --enable-debug option
" >&5
2588 $as_echo "$as_me: error
: no argument expected
for --enable-debug option
" >&2;}
2589 { (exit 1); exit 1; }; }
2602 # --enable-profiling enables gcc profiling
2606 # Check whether --enable-profiling was given.
2607 if test "${enable_profiling+set}" = set; then
2608 enableval=$enable_profiling;
2617 { { $as_echo "$as_me:$LINENO: error
: no argument expected
for --enable-profiling option
" >&5
2618 $as_echo "$as_me: error
: no argument expected
for --enable-profiling option
" >&2;}
2619 { (exit 1); exit 1; }; }
2632 # --enable-coverage enables generation of code coverage metrics with gcov
2636 # Check whether --enable-coverage was given.
2637 if test "${enable_coverage+set}" = set; then
2638 enableval=$enable_coverage;
2643 # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2646 $as_echo_n "checking
for $ac_word...
" >&6; }
2647 if test "${ac_cv_prog_GCOV+set}" = set; then
2648 $as_echo_n "(cached
) " >&6
2650 if test -n "$GCOV"; then
2651 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660 ac_cv_prog_GCOV="$ac_prog"
2661 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2670 GCOV=$ac_cv_prog_GCOV
2671 if test -n "$GCOV"; then
2672 { $as_echo "$as_me:$LINENO: result
: $GCOV" >&5
2673 $as_echo "$GCOV" >&6; }
2675 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2676 $as_echo "no
" >&6; }
2680 test -n "$GCOV" && break
2683 if test -z "$GCOV"; then
2684 { { $as_echo "$as_me:$LINENO: error
: gcov not found
" >&5
2685 $as_echo "$as_me: error
: gcov not found
" >&2;}
2686 { (exit 1); exit 1; }; }
2690 # Extract the first word of "$ac_prog", so it can be a program name with args.
2691 set dummy $ac_prog; ac_word=$2
2692 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2693 $as_echo_n "checking
for $ac_word...
" >&6; }
2694 if test "${ac_cv_prog_LCOV+set}" = set; then
2695 $as_echo_n "(cached
) " >&6
2697 if test -n "$LCOV"; then
2698 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707 ac_cv_prog_LCOV="$ac_prog"
2708 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2717 LCOV=$ac_cv_prog_LCOV
2718 if test -n "$LCOV"; then
2719 { $as_echo "$as_me:$LINENO: result
: $LCOV" >&5
2720 $as_echo "$LCOV" >&6; }
2722 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2723 $as_echo "no
" >&6; }
2727 test -n "$LCOV" && break
2730 if test -z "$LCOV"; then
2731 { { $as_echo "$as_me:$LINENO: error
: lcov not found
" >&5
2732 $as_echo "$as_me: error
: lcov not found
" >&2;}
2733 { (exit 1); exit 1; }; }
2735 for ac_prog in genhtml
2737 # Extract the first word of "$ac_prog", so it can be a program name with args.
2738 set dummy $ac_prog; ac_word=$2
2739 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2740 $as_echo_n "checking
for $ac_word...
" >&6; }
2741 if test "${ac_cv_prog_GENHTML+set}" = set; then
2742 $as_echo_n "(cached
) " >&6
2744 if test -n "$GENHTML"; then
2745 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 test -z "$as_dir" && as_dir=.
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754 ac_cv_prog_GENHTML="$ac_prog"
2755 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2764 GENHTML=$ac_cv_prog_GENHTML
2765 if test -n "$GENHTML"; then
2766 { $as_echo "$as_me:$LINENO: result
: $GENHTML" >&5
2767 $as_echo "$GENHTML" >&6; }
2769 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2770 $as_echo "no
" >&6; }
2774 test -n "$GENHTML" && break
2777 if test -z "$GENHTML"; then
2778 { { $as_echo "$as_me:$LINENO: error
: genhtml not found
" >&5
2779 $as_echo "$as_me: error
: genhtml not found
" >&2;}
2780 { (exit 1); exit 1; }; }
2787 { { $as_echo "$as_me:$LINENO: error
: no argument expected
for --enable-coverage option
" >&5
2788 $as_echo "$as_me: error
: no argument expected
for --enable-coverage option
" >&2;}
2789 { (exit 1); exit 1; }; }
2806 # Check whether --enable-dtrace was given.
2807 if test "${enable_dtrace+set}" = set; then
2808 enableval=$enable_dtrace;
2812 cat >>confdefs.h <<\_ACEOF
2813 #define ENABLE_DTRACE 1
2816 for ac_prog in dtrace
2818 # Extract the first word of "$ac_prog", so it can be a program name with args.
2819 set dummy $ac_prog; ac_word=$2
2820 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2821 $as_echo_n "checking
for $ac_word...
" >&6; }
2822 if test "${ac_cv_prog_DTRACE+set}" = set; then
2823 $as_echo_n "(cached
) " >&6
2825 if test -n "$DTRACE"; then
2826 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835 ac_cv_prog_DTRACE="$ac_prog"
2836 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2845 DTRACE=$ac_cv_prog_DTRACE
2846 if test -n "$DTRACE"; then
2847 { $as_echo "$as_me:$LINENO: result
: $DTRACE" >&5
2848 $as_echo "$DTRACE" >&6; }
2850 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2851 $as_echo "no
" >&6; }
2855 test -n "$DTRACE" && break
2858 if test -z "$DTRACE"; then
2859 { { $as_echo "$as_me:$LINENO: error
: dtrace not found
" >&5
2860 $as_echo "$as_me: error
: dtrace not found
" >&2;}
2861 { (exit 1); exit 1; }; }
2869 { { $as_echo "$as_me:$LINENO: error
: no argument expected
for --enable-dtrace option
" >&5
2870 $as_echo "$as_me: error
: no argument expected
for --enable-dtrace option
" >&2;}
2871 { (exit 1); exit 1; }; }
2886 { $as_echo "$as_me:$LINENO: checking
for block size
" >&5
2887 $as_echo_n "checking
for block size...
" >&6; }
2891 # Check whether --with-blocksize was given.
2892 if test "${with_blocksize+set}" = set; then
2893 withval=$with_blocksize;
2896 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-blocksize option
" >&5
2897 $as_echo "$as_me: error
: argument required
for --with-blocksize option
" >&2;}
2898 { (exit 1); exit 1; }; }
2901 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-blocksize option
" >&5
2902 $as_echo "$as_me: error
: argument required
for --with-blocksize option
" >&2;}
2903 { (exit 1); exit 1; }; }
2915 case ${blocksize} in
2922 *) { { $as_echo "$as_me:$LINENO: error
: Invalid block size. Allowed values are
1,2,4,8,16,32.
" >&5
2923 $as_echo "$as_me: error
: Invalid block size. Allowed values are
1,2,4,8,16,32.
" >&2;}
2924 { (exit 1); exit 1; }; }
2926 { $as_echo "$as_me:$LINENO: result
: ${blocksize}kB
" >&5
2927 $as_echo "${blocksize}kB
" >&6; }
2930 cat >>confdefs.h <<_ACEOF
2931 #define BLCKSZ ${BLCKSZ}
2936 # Relation segment size
2938 { $as_echo "$as_me:$LINENO: checking
for segment size
" >&5
2939 $as_echo_n "checking
for segment size...
" >&6; }
2943 # Check whether --with-segsize was given.
2944 if test "${with_segsize+set}" = set; then
2945 withval=$with_segsize;
2948 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-segsize option
" >&5
2949 $as_echo "$as_me: error
: argument required
for --with-segsize option
" >&2;}
2950 { (exit 1); exit 1; }; }
2953 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-segsize option
" >&5
2954 $as_echo "$as_me: error
: argument required
for --with-segsize option
" >&2;}
2955 { (exit 1); exit 1; }; }
2967 # this expression is set up to avoid unnecessary integer overflow
2968 # blocksize is already guaranteed to be a factor of 1024
2969 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2970 test $? -eq 0 || exit 1
2971 { $as_echo "$as_me:$LINENO: result
: ${segsize}GB
" >&5
2972 $as_echo "${segsize}GB
" >&6; }
2975 cat >>confdefs.h <<_ACEOF
2976 #define RELSEG_SIZE ${RELSEG_SIZE}
2983 { $as_echo "$as_me:$LINENO: checking
for WAL block size
" >&5
2984 $as_echo_n "checking
for WAL block size...
" >&6; }
2988 # Check whether --with-wal-blocksize was given.
2989 if test "${with_wal_blocksize+set}" = set; then
2990 withval=$with_wal_blocksize;
2993 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-wal-blocksize option
" >&5
2994 $as_echo "$as_me: error
: argument required
for --with-wal-blocksize option
" >&2;}
2995 { (exit 1); exit 1; }; }
2998 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-wal-blocksize option
" >&5
2999 $as_echo "$as_me: error
: argument required
for --with-wal-blocksize option
" >&2;}
3000 { (exit 1); exit 1; }; }
3003 wal_blocksize=$withval
3012 case ${wal_blocksize} in
3013 1) XLOG_BLCKSZ=1024;;
3014 2) XLOG_BLCKSZ=2048;;
3015 4) XLOG_BLCKSZ=4096;;
3016 8) XLOG_BLCKSZ=8192;;
3017 16) XLOG_BLCKSZ=16384;;
3018 32) XLOG_BLCKSZ=32768;;
3019 64) XLOG_BLCKSZ=65536;;
3020 *) { { $as_echo "$as_me:$LINENO: error
: Invalid WAL block size. Allowed values are
1,2,4,8,16,32,64.
" >&5
3021 $as_echo "$as_me: error
: Invalid WAL block size. Allowed values are
1,2,4,8,16,32,64.
" >&2;}
3022 { (exit 1); exit 1; }; }
3024 { $as_echo "$as_me:$LINENO: result
: ${wal_blocksize}kB
" >&5
3025 $as_echo "${wal_blocksize}kB
" >&6; }
3028 cat >>confdefs.h <<_ACEOF
3029 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
3036 { $as_echo "$as_me:$LINENO: checking
for WAL segment size
" >&5
3037 $as_echo_n "checking
for WAL segment size...
" >&6; }
3041 # Check whether --with-wal-segsize was given.
3042 if test "${with_wal_segsize+set}" = set; then
3043 withval=$with_wal_segsize;
3046 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-wal-segsize option
" >&5
3047 $as_echo "$as_me: error
: argument required
for --with-wal-segsize option
" >&2;}
3048 { (exit 1); exit 1; }; }
3051 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-wal-segsize option
" >&5
3052 $as_echo "$as_me: error
: argument required
for --with-wal-segsize option
" >&2;}
3053 { (exit 1); exit 1; }; }
3056 wal_segsize=$withval
3065 case ${wal_segsize} in
3073 *) { { $as_echo "$as_me:$LINENO: error
: Invalid WAL segment size. Allowed values are
1,2,4,8,16,32,64.
" >&5
3074 $as_echo "$as_me: error
: Invalid WAL segment size. Allowed values are
1,2,4,8,16,32,64.
" >&2;}
3075 { (exit 1); exit 1; }; }
3077 { $as_echo "$as_me:$LINENO: result
: ${wal_segsize}MB
" >&5
3078 $as_echo "${wal_segsize}MB
" >&6; }
3081 cat >>confdefs.h <<_ACEOF
3082 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3090 # For historical reasons you can also use --with-CC to specify the C compiler
3091 # to use, although the standard way to do this is to set the CC environment
3096 # Check whether --with-CC was given.
3097 if test "${with_CC+set}" = set; then
3101 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-CC option
" >&5
3102 $as_echo "$as_me: error
: argument required
for --with-CC option
" >&2;}
3103 { (exit 1); exit 1; }; }
3106 { { $as_echo "$as_me:$LINENO: error
: argument required
for --with-CC option
" >&5
3107 $as_echo "$as_me: error
: argument required
for --with-CC option
" >&2;}
3108 { (exit 1); exit 1; }; }
3120 aix) pgac_cc_list="gcc xlc
";;
3121 irix) pgac_cc_list="cc
";; # no gcc
3122 *) pgac_cc_list="gcc cc
";;
3126 ac_cpp='$CPP $CPPFLAGS'
3127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3130 if test -n "$ac_tool_prefix"; then
3131 for ac_prog in $pgac_cc_list
3133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3135 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
3136 $as_echo_n "checking
for $ac_word...
" >&6; }
3137 if test "${ac_cv_prog_CC+set}" = set; then
3138 $as_echo_n "(cached
) " >&6
3140 if test -n "$CC"; then
3141 ac_cv_prog_CC="$CC" # Let the user override the test.
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3150 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3151 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
3161 if test -n "$CC"; then
3162 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
3163 $as_echo "$CC" >&6; }
3165 { $as_echo "$as_me:$LINENO: result
: no
" >&5
3166 $as_echo "no
" >&6; }
3170 test -n "$CC" && break
3173 if test -z "$CC"; then
3175 for ac_prog in $pgac_cc_list
3177 # Extract the first word of "$ac_prog", so it can be a program name with args.
3178 set dummy $ac_prog; ac_word=$2
3179 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
3180 $as_echo_n "checking
for $ac_word...
" >&6; }
3181 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3182 $as_echo_n "(cached
) " >&6
3184 if test -n "$ac_ct_CC"; then
3185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3194 ac_cv_prog_ac_ct_CC="$ac_prog"
3195 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
3204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3205 if test -n "$ac_ct_CC"; then
3206 { $as_echo "$as_me:$LINENO: result
: $ac_ct_CC" >&5
3207 $as_echo "$ac_ct_CC" >&6; }
3209 { $as_echo "$as_me:$LINENO: result
: no
" >&5
3210 $as_echo "no
" >&6; }
3214 test -n "$ac_ct_CC" && break
3217 if test "x
$ac_ct_CC" = x; then
3220 case $cross_compiling:$ac_tool_warned in
3222 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3223 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3224 ac_tool_warned=yes ;;
3231 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
3232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3234 See \`config.log' for more details.
" >&5
3235 $as_echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
3236 See \
`config.log' for more details." >&2;}
3237 { (exit 1); exit 1; }; }; }
3239 # Provide some information about the compiler.
3240 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3243 { (ac_try="$ac_compiler --version >&5"
3245 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3246 *) ac_try_echo
=$ac_try;;
3248 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3249 $as_echo "$ac_try_echo") >&5
3250 (eval "$ac_compiler --version >&5") 2>&5
3252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }
3254 { (ac_try
="$ac_compiler -v >&5"
3256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3260 $as_echo "$ac_try_echo") >&5
3261 (eval "$ac_compiler -v >&5") 2>&5
3263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }
3265 { (ac_try="$ac_compiler -V >&5"
3267 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3268 *) ac_try_echo
=$ac_try;;
3270 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3271 $as_echo "$ac_try_echo") >&5
3272 (eval "$ac_compiler -V >&5") 2>&5
3274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }
3277 cat >conftest.
$ac_ext <<_ACEOF
3280 cat confdefs.h
>>conftest.
$ac_ext
3281 cat >>conftest.
$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3292 ac_clean_files_save
=$ac_clean_files
3293 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3294 # Try to create an executable without -o first, disregard a.out.
3295 # It will help us diagnose broken compilers, and finding out an intuition
3297 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3298 $as_echo_n "checking for C compiler default output file name... " >&6; }
3299 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3301 # The possible output files:
3302 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3305 for ac_file
in $ac_files
3308 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3309 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3314 if { (ac_try
="$ac_link_default"
3316 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3320 $as_echo "$ac_try_echo") >&5
3321 (eval "$ac_link_default") 2>&5
3323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; then
3325 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3326 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3327 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3328 # so that the user can short-circuit this test for compilers unknown to
3330 for ac_file in $ac_files ''
3332 test -f "$ac_file" || continue
3334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3337 # We found the default executable, but exeext='' is most
3341 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3343 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3345 # We set ac_cv_exeext here because the later test for it is not
3346 # safe: cross compilers may not add the suffix if given an `-o'
3347 # argument, so we may need to know it at that point already.
3348 # Even if this section looks crufty: it has the advantage of
3355 test "$ac_cv_exeext" = no && ac_cv_exeext=
3361 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3362 $as_echo "$ac_file" >&6; }
3363 if test -z "$ac_file"; then
3364 $as_echo "$as_me: failed program was:" >&5
3365 sed 's
/^
/|
/' conftest.$ac_ext >&5
3367 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3368 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3369 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3370 See \`config.log
' for more details." >&5
3371 $as_echo "$as_me: error: C compiler cannot create executables
3372 See \`config.log' for more details.
" >&2;}
3373 { (exit 77); exit 77; }; }; }
3376 ac_exeext=$ac_cv_exeext
3378 # Check that the compiler produces executables we can run. If not, either
3379 # the compiler is broken, or we cross compile.
3380 { $as_echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
3381 $as_echo_n "checking whether the C compiler works...
" >&6; }
3382 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3383 # If not cross compiling, check that we can run a simple program.
3384 if test "$cross_compiling" != yes; then
3385 if { ac_try='./$ac_file'
3386 { (case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3390 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3391 $as_echo "$ac_try_echo") >&5
3392 (eval "$ac_try") 2>&5
3394 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3395 (exit $ac_status); }; }; then
3398 if test "$cross_compiling" = maybe; then
3401 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
3402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3404 If you meant to cross compile, use \`--host'.
3405 See \
`config.log' for more details." >&5
3406 $as_echo "$as_me: error: cannot run C compiled programs.
3407 If you meant to cross compile, use \`--host'.
3408 See \`config.log' for more details.
" >&2;}
3409 { (exit 1); exit 1; }; }; }
3413 { $as_echo "$as_me:$LINENO: result
: yes" >&5
3414 $as_echo "yes" >&6; }
3416 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3417 ac_clean_files=$ac_clean_files_save
3418 # Check that the compiler produces executables we can run. If not, either
3419 # the compiler is broken, or we cross compile.
3420 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
3421 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3422 { $as_echo "$as_me:$LINENO: result
: $cross_compiling" >&5
3423 $as_echo "$cross_compiling" >&6; }
3425 { $as_echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
3426 $as_echo_n "checking
for suffix of executables...
" >&6; }
3427 if { (ac_try="$ac_link"
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3432 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
3433 $as_echo "$ac_try_echo") >&5
3434 (eval "$ac_link") 2>&5
3436 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3437 (exit $ac_status); }; then
3438 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3439 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3440 # work properly (i.e., refer to `conftest.exe'), while it won't with
3442 for ac_file in conftest.exe conftest conftest.*; do
3443 test -f "$ac_file" || continue
3445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3446 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3452 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3455 See \`config.log' for more details.
" >&5
3456 $as_echo "$as_me: error
: cannot compute suffix of executables
: cannot compile and link
3457 See \
`config.log' for more details." >&2;}
3458 { (exit 1); exit 1; }; }; }
3461 rm -f conftest$ac_cv_exeext
3462 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3463 $as_echo "$ac_cv_exeext" >&6; }
3465 rm -f conftest.$ac_ext
3466 EXEEXT=$ac_cv_exeext
3468 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3469 $as_echo_n "checking for suffix of object files... " >&6; }
3470 if test "${ac_cv_objext+set}" = set; then
3471 $as_echo_n "(cached) " >&6
3473 cat >conftest.$ac_ext <<_ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h. */
3488 rm -f conftest.o conftest.obj
3489 if { (ac_try="$ac_compile"
3491 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3492 *) ac_try_echo
=$ac_try;;
3494 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3495 $as_echo "$ac_try_echo") >&5
3496 (eval "$ac_compile") 2>&5
3498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; then
3500 for ac_file
in conftest.o conftest.obj conftest.
*; do
3501 test -f "$ac_file" ||
continue;
3503 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM
) ;;
3504 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3509 $as_echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.
$ac_ext >&5
3512 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3515 See \`config.log' for more details." >&5
3516 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3517 See \`config.log' for more details." >&2;}
3518 { (exit 1); exit 1; }; }; }
3521 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3523 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3524 $as_echo "$ac_cv_objext" >&6; }
3525 OBJEXT
=$ac_cv_objext
3527 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3528 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3529 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3530 $as_echo_n "(cached) " >&6
3532 cat >conftest.
$ac_ext <<_ACEOF
3535 cat confdefs.h
>>conftest.
$ac_ext
3536 cat >>conftest.
$ac_ext <<_ACEOF
3537 /* end confdefs.h. */
3550 rm -f conftest.
$ac_objext
3551 if { (ac_try
="$ac_compile"
3553 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3557 $as_echo "$ac_try_echo") >&5
3558 (eval "$ac_compile") 2>conftest.er1
3560 grep -v '^ *+' conftest.er1 >conftest.err
3562 cat conftest.err >&5
3563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } && {
3565 test -z "$ac_c_werror_flag" ||
3566 test ! -s conftest.err
3567 } && test -s conftest.$ac_objext; then
3570 $as_echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3580 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3581 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3582 if test $ac_compiler_gnu = yes; then
3587 ac_test_CFLAGS=${CFLAGS+set}
3588 ac_save_CFLAGS=$CFLAGS
3589 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3590 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3591 if test "${ac_cv_prog_cc_g+set}" = set; then
3592 $as_echo_n "(cached) " >&6
3594 ac_save_c_werror_flag=$ac_c_werror_flag
3595 ac_c_werror_flag=yes
3598 cat >conftest.$ac_ext <<_ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3613 rm -f conftest.$ac_objext
3614 if { (ac_try="$ac_compile"
3616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3617 *) ac_try_echo
=$ac_try;;
3619 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3620 $as_echo "$ac_try_echo") >&5
3621 (eval "$ac_compile") 2>conftest.er1
3623 grep -v '^ *+' conftest.er1
>conftest.err
3625 cat conftest.err
>&5
3626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } && {
3628 test -z "$ac_c_werror_flag" ||
3629 test ! -s conftest.err
3630 } && test -s conftest.
$ac_objext; then
3633 $as_echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.
$ac_ext >&5
3637 cat >conftest.
$ac_ext <<_ACEOF
3640 cat confdefs.h
>>conftest.
$ac_ext
3641 cat >>conftest.
$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3652 rm -f conftest.
$ac_objext
3653 if { (ac_try
="$ac_compile"
3655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3659 $as_echo "$ac_try_echo") >&5
3660 (eval "$ac_compile") 2>conftest.er1
3662 grep -v '^ *+' conftest.er1 >conftest.err
3664 cat conftest.err >&5
3665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } && {
3667 test -z "$ac_c_werror_flag" ||
3668 test ! -s conftest.err
3669 } && test -s conftest.$ac_objext; then
3672 $as_echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3675 ac_c_werror_flag=$ac_save_c_werror_flag
3677 cat >conftest.$ac_ext <<_ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3692 rm -f conftest.$ac_objext
3693 if { (ac_try="$ac_compile"
3695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3696 *) ac_try_echo
=$ac_try;;
3698 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3699 $as_echo "$ac_try_echo") >&5
3700 (eval "$ac_compile") 2>conftest.er1
3702 grep -v '^ *+' conftest.er1
>conftest.err
3704 cat conftest.err
>&5
3705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } && {
3707 test -z "$ac_c_werror_flag" ||
3708 test ! -s conftest.err
3709 } && test -s conftest.
$ac_objext; then
3712 $as_echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.
$ac_ext >&5
3718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3725 ac_c_werror_flag
=$ac_save_c_werror_flag
3727 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3728 $as_echo "$ac_cv_prog_cc_g" >&6; }
3729 if test "$ac_test_CFLAGS" = set; then
3730 CFLAGS
=$ac_save_CFLAGS
3731 elif test $ac_cv_prog_cc_g = yes; then
3732 if test "$GCC" = yes; then
3738 if test "$GCC" = yes; then
3744 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3745 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3746 if test "${ac_cv_prog_cc_c89+set}" = set; then
3747 $as_echo_n "(cached) " >&6
3749 ac_cv_prog_cc_c89
=no
3751 cat >conftest.
$ac_ext <<_ACEOF
3754 cat confdefs.h
>>conftest.
$ac_ext
3755 cat >>conftest.
$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3759 #include <sys/types.h>
3760 #include <sys/stat.h>
3761 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3762 struct buf { int x; };
3763 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3764 static char *e (p, i)
3770 static char *f (char * (*g) (char **, int), char **p, ...)
3775 s = g (p, va_arg (v,int));
3780 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3781 function prototypes and stuff, but not '\xHH' hex character constants.
3782 These don't provoke an error unfortunately, instead are silently treated
3783 as 'x'. The following induces an error, until -std is added to get
3784 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3785 array size at least. It's necessary to write '\x00'==0 to get something
3786 that's true only with -std. */
3787 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3789 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3790 inside strings and character constants. */
3792 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3794 int test (int i, double x);
3795 struct s1 {int (*f) (int a);};
3796 struct s2 {int (*f) (double a);};
3797 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3803 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3808 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
3809 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3811 CC
="$ac_save_CC $ac_arg"
3812 rm -f conftest.
$ac_objext
3813 if { (ac_try
="$ac_compile"
3815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3819 $as_echo "$ac_try_echo") >&5
3820 (eval "$ac_compile") 2>conftest.er1
3822 grep -v '^ *+' conftest.er1 >conftest.err
3824 cat conftest.err >&5
3825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } && {
3827 test -z "$ac_c_werror_flag" ||
3828 test ! -s conftest.err
3829 } && test -s conftest.$ac_objext; then
3830 ac_cv_prog_cc_c89=$ac_arg
3832 $as_echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3838 rm -f core conftest.err conftest.$ac_objext
3839 test "x$ac_cv_prog_cc_c89" != "xno" && break
3841 rm -f conftest.$ac_ext
3846 case "x$ac_cv_prog_cc_c89" in
3848 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3849 $as_echo "none needed" >&6; } ;;
3851 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3852 $as_echo "unsupported" >&6; } ;;
3854 CC="$CC $ac_cv_prog_cc_c89"
3855 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3856 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3861 ac_cpp='$CPP $CPPFLAGS'
3862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3868 # but has idiosyncrasies of its own. We assume icc will define
3869 # __INTEL_COMPILER regardless of CFLAGS.
3871 cat >conftest.$ac_ext <<_ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3881 #ifndef __INTEL_COMPILER
3888 rm -f conftest.$ac_objext
3889 if { (ac_try="$ac_compile"
3891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3892 *) ac_try_echo
=$ac_try;;
3894 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3895 $as_echo "$ac_try_echo") >&5
3896 (eval "$ac_compile") 2>conftest.er1
3898 grep -v '^ *+' conftest.er1
>conftest.err
3900 cat conftest.err
>&5
3901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } && {
3903 test -z "$ac_c_werror_flag" ||
3904 test ! -s conftest.err
3905 } && test -s conftest.
$ac_objext; then
3908 $as_echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.
$ac_ext >&5
3914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3916 # Check if it's Sun Studio compiler. We assume that
3917 # __SUNPRO_C will be defined for Sun Studio compilers
3918 cat >conftest.
$ac_ext <<_ACEOF
3921 cat confdefs.h
>>conftest.
$ac_ext
3922 cat >>conftest.
$ac_ext <<_ACEOF
3923 /* end confdefs.h. */
3935 rm -f conftest.
$ac_objext
3936 if { (ac_try
="$ac_compile"
3938 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3939 *) ac_try_echo=$ac_try;;
3941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3942 $as_echo "$ac_try_echo") >&5
3943 (eval "$ac_compile") 2>conftest.er1
3945 grep -v '^ *+' conftest.er1 >conftest.err
3947 cat conftest.err >&5
3948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } && {
3950 test -z "$ac_c_werror_flag" ||
3951 test ! -s conftest.err
3952 } && test -s conftest.$ac_objext; then
3955 $as_echo "$as_me: failed program was:" >&5
3956 sed 's/^/| /' conftest.$ac_ext >&5
3961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 . "$srcdir/src/template/$template" || exit
3972 # CFLAGS are selected so:
3973 # If the user specifies something in the environment, that is used.
3974 # else: If the template file set something, that is used.
3975 # else: If coverage was enabled, don't set anything.
3976 # else: If the compiler is GCC, then we use -O2.
3977 # else: If the compiler is something else, then we use -O, unless debugging.
3979 if test "$ac_env_CFLAGS_set" = set; then
3980 CFLAGS=$ac_env_CFLAGS_value
3981 elif test "${CFLAGS+set}" = set; then
3982 : # (keep what template set)
3983 elif test "$enable_coverage" = yes; then
3984 : # no optimization by default
3985 elif test "$GCC" = yes; then
3988 # if the user selected debug mode, don't use -O
3989 if test "$enable_debug" != yes; then
3994 # Some versions of GCC support some additional useful warning flags.
3995 # Check whether they are supported, and add them to CFLAGS if so.
3996 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3997 # but has its own. Also check other compiler-specific flags here.
3999 if test "$GCC" = yes -a "$ICC" = no; then
4000 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
4001 # These work in some but not all gcc versions
4002 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
4003 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
4004 pgac_save_CFLAGS=$CFLAGS
4005 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
4006 cat >conftest.$ac_ext <<_ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4021 rm -f conftest.$ac_objext
4022 if { (ac_try="$ac_compile"
4024 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4025 *) ac_try_echo
=$ac_try;;
4027 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4028 $as_echo "$ac_try_echo") >&5
4029 (eval "$ac_compile") 2>conftest.er1
4031 grep -v '^ *+' conftest.er1
>conftest.err
4033 cat conftest.err
>&5
4034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } && {
4036 test -z "$ac_c_werror_flag" ||
4037 test ! -s conftest.err
4038 } && test -s conftest.
$ac_objext; then
4039 { $as_echo "$as_me:$LINENO: result: yes" >&5
4040 $as_echo "yes" >&6; }
4042 $as_echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.
$ac_ext >&5
4045 CFLAGS
="$pgac_save_CFLAGS"
4046 { $as_echo "$as_me:$LINENO: result: no" >&5
4047 $as_echo "no" >&6; }
4050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4052 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
4053 $as_echo_n "checking if $CC supports -Wendif-labels... " >&6; }
4054 pgac_save_CFLAGS
=$CFLAGS
4055 CFLAGS
="$pgac_save_CFLAGS -Wendif-labels"
4056 cat >conftest.
$ac_ext <<_ACEOF
4059 cat confdefs.h
>>conftest.
$ac_ext
4060 cat >>conftest.
$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4071 rm -f conftest.
$ac_objext
4072 if { (ac_try
="$ac_compile"
4074 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4078 $as_echo "$ac_try_echo") >&5
4079 (eval "$ac_compile") 2>conftest.er1
4081 grep -v '^ *+' conftest.er1 >conftest.err
4083 cat conftest.err >&5
4084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } && {
4086 test -z "$ac_c_werror_flag" ||
4087 test ! -s conftest.err
4088 } && test -s conftest.$ac_objext; then
4089 { $as_echo "$as_me:$LINENO: result: yes" >&5
4090 $as_echo "yes" >&6; }
4092 $as_echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4095 CFLAGS="$pgac_save_CFLAGS"
4096 { $as_echo "$as_me:$LINENO: result: no" >&5
4097 $as_echo "no" >&6; }
4100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102 # Disable strict-aliasing rules; needed for gcc 3.3+
4103 { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4104 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4105 pgac_save_CFLAGS=$CFLAGS
4106 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4107 cat >conftest.$ac_ext <<_ACEOF
4110 cat confdefs.h >>conftest.$ac_ext
4111 cat >>conftest.$ac_ext <<_ACEOF
4112 /* end confdefs.h. */
4122 rm -f conftest.$ac_objext
4123 if { (ac_try="$ac_compile"
4125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4126 *) ac_try_echo
=$ac_try;;
4128 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4129 $as_echo "$ac_try_echo") >&5
4130 (eval "$ac_compile") 2>conftest.er1
4132 grep -v '^ *+' conftest.er1
>conftest.err
4134 cat conftest.err
>&5
4135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); } && {
4137 test -z "$ac_c_werror_flag" ||
4138 test ! -s conftest.err
4139 } && test -s conftest.
$ac_objext; then
4140 { $as_echo "$as_me:$LINENO: result: yes" >&5
4141 $as_echo "yes" >&6; }
4143 $as_echo "$as_me: failed program was:" >&5
4144 sed 's/^/| /' conftest.
$ac_ext >&5
4146 CFLAGS
="$pgac_save_CFLAGS"
4147 { $as_echo "$as_me:$LINENO: result: no" >&5
4148 $as_echo "no" >&6; }
4151 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4153 # Disable optimizations that assume no overflow; needed for gcc 4.3+
4154 { $as_echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
4155 $as_echo_n "checking if $CC supports -fwrapv... " >&6; }
4156 pgac_save_CFLAGS
=$CFLAGS
4157 CFLAGS
="$pgac_save_CFLAGS -fwrapv"
4158 cat >conftest.
$ac_ext <<_ACEOF
4161 cat confdefs.h
>>conftest.
$ac_ext
4162 cat >>conftest.
$ac_ext <<_ACEOF
4163 /* end confdefs.h. */
4173 rm -f conftest.
$ac_objext
4174 if { (ac_try
="$ac_compile"
4176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4180 $as_echo "$ac_try_echo") >&5
4181 (eval "$ac_compile") 2>conftest.er1
4183 grep -v '^ *+' conftest.er1 >conftest.err
4185 cat conftest.err >&5
4186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } && {
4188 test -z "$ac_c_werror_flag" ||
4189 test ! -s conftest.err
4190 } && test -s conftest.$ac_objext; then
4191 { $as_echo "$as_me:$LINENO: result: yes" >&5
4192 $as_echo "yes" >&6; }
4194 $as_echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4197 CFLAGS="$pgac_save_CFLAGS"
4198 { $as_echo "$as_me:$LINENO: result: no" >&5
4199 $as_echo "no" >&6; }
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 elif test "$ICC" = yes; then
4205 # Intel's compiler has a bug/misoptimization in checking for
4206 # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4207 { $as_echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4208 $as_echo_n "checking if $CC supports -mp1... " >&6; }
4209 pgac_save_CFLAGS=$CFLAGS
4210 CFLAGS="$pgac_save_CFLAGS -mp1"
4211 cat >conftest.$ac_ext <<_ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4226 rm -f conftest.$ac_objext
4227 if { (ac_try="$ac_compile"
4229 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4230 *) ac_try_echo
=$ac_try;;
4232 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4233 $as_echo "$ac_try_echo") >&5
4234 (eval "$ac_compile") 2>conftest.er1
4236 grep -v '^ *+' conftest.er1
>conftest.err
4238 cat conftest.err
>&5
4239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } && {
4241 test -z "$ac_c_werror_flag" ||
4242 test ! -s conftest.err
4243 } && test -s conftest.
$ac_objext; then
4244 { $as_echo "$as_me:$LINENO: result: yes" >&5
4245 $as_echo "yes" >&6; }
4247 $as_echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.
$ac_ext >&5
4250 CFLAGS
="$pgac_save_CFLAGS"
4251 { $as_echo "$as_me:$LINENO: result: no" >&5
4252 $as_echo "no" >&6; }
4255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4257 # Make sure strict aliasing is off (though this is said to be the default)
4258 { $as_echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4259 $as_echo_n "checking if $CC supports -fno-strict-aliasing... " >&6; }
4260 pgac_save_CFLAGS
=$CFLAGS
4261 CFLAGS
="$pgac_save_CFLAGS -fno-strict-aliasing"
4262 cat >conftest.
$ac_ext <<_ACEOF
4265 cat confdefs.h
>>conftest.
$ac_ext
4266 cat >>conftest.
$ac_ext <<_ACEOF
4267 /* end confdefs.h. */
4277 rm -f conftest.
$ac_objext
4278 if { (ac_try
="$ac_compile"
4280 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4284 $as_echo "$ac_try_echo") >&5
4285 (eval "$ac_compile") 2>conftest.er1
4287 grep -v '^ *+' conftest.er1 >conftest.err
4289 cat conftest.err >&5
4290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } && {
4292 test -z "$ac_c_werror_flag" ||
4293 test ! -s conftest.err
4294 } && test -s conftest.$ac_objext; then
4295 { $as_echo "$as_me:$LINENO: result: yes" >&5
4296 $as_echo "yes" >&6; }
4298 $as_echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4301 CFLAGS="$pgac_save_CFLAGS"
4302 { $as_echo "$as_me:$LINENO: result: no" >&5
4303 $as_echo "no" >&6; }
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308 elif test "$PORTNAME" = "aix"; then
4309 # AIX's xlc has to have strict aliasing turned off too
4310 { $as_echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4311 $as_echo_n "checking if $CC supports -qnoansialias... " >&6; }
4312 pgac_save_CFLAGS=$CFLAGS
4313 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4314 cat >conftest.$ac_ext <<_ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4329 rm -f conftest.$ac_objext
4330 if { (ac_try="$ac_compile"
4332 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4333 *) ac_try_echo
=$ac_try;;
4335 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4336 $as_echo "$ac_try_echo") >&5
4337 (eval "$ac_compile") 2>conftest.er1
4339 grep -v '^ *+' conftest.er1
>conftest.err
4341 cat conftest.err
>&5
4342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } && {
4344 test -z "$ac_c_werror_flag" ||
4345 test ! -s conftest.err
4346 } && test -s conftest.
$ac_objext; then
4347 { $as_echo "$as_me:$LINENO: result: yes" >&5
4348 $as_echo "yes" >&6; }
4350 $as_echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.
$ac_ext >&5
4353 CFLAGS
="$pgac_save_CFLAGS"
4354 { $as_echo "$as_me:$LINENO: result: no" >&5
4355 $as_echo "no" >&6; }
4358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4362 # supply -g if --enable-debug
4363 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4367 # enable code coverage if --enable-coverage
4368 if test "$enable_coverage" = yes; then
4369 if test "$GCC" = yes; then
4370 CFLAGS
="$CFLAGS -fprofile-arcs -ftest-coverage"
4372 { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4373 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4374 { (exit 1); exit 1; }; }
4378 # enable profiling if --enable-profiling
4379 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4380 if test "$GCC" = yes; then
4382 cat >>confdefs.h
<<\_ACEOF
4383 #define PROFILE_PID_DIR 1
4386 CFLAGS
="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4388 { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4389 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4390 { (exit 1); exit 1; }; }
4394 # We already have this in Makefile.win32, but configure needs it too
4395 if test "$PORTNAME" = "win32"; then
4396 CPPFLAGS
="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4399 # Check if the compiler still works with the template settings
4400 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4401 $as_echo_n "checking whether the C compiler still works... " >&6; }
4402 cat >conftest.
$ac_ext <<_ACEOF
4405 cat confdefs.h
>>conftest.
$ac_ext
4406 cat >>conftest.
$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4417 rm -f conftest.
$ac_objext conftest
$ac_exeext
4418 if { (ac_try
="$ac_link"
4420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4424 $as_echo "$ac_try_echo") >&5
4425 (eval "$ac_link") 2>conftest.er1
4427 grep -v '^ *+' conftest.er1 >conftest.err
4429 cat conftest.err >&5
4430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); } && {
4432 test -z "$ac_c_werror_flag" ||
4433 test ! -s conftest.err
4434 } && test -s conftest$ac_exeext && {
4435 test "$cross_compiling" = yes ||
4436 $as_test_x conftest$ac_exeext
4438 { $as_echo "$as_me:$LINENO: result: yes" >&5
4439 $as_echo "yes" >&6; }
4441 $as_echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4444 { $as_echo "$as_me:$LINENO: result: no" >&5
4445 $as_echo "no" >&6; }
4446 { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4447 $as_echo "$as_me: error: cannot proceed" >&2;}
4448 { (exit 1); exit 1; }; }
4451 rm -rf conftest.dSYM
4452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4453 conftest$ac_exeext conftest.$ac_ext
4455 # Defend against gcc -ffast-math
4456 if test "$GCC" = yes; then
4457 cat >conftest.$ac_ext <<_ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h. */
4467 #ifdef __FAST_MATH__
4474 rm -f conftest.$ac_objext
4475 if { (ac_try="$ac_compile"
4477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4478 *) ac_try_echo
=$ac_try;;
4480 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4481 $as_echo "$ac_try_echo") >&5
4482 (eval "$ac_compile") 2>conftest.er1
4484 grep -v '^ *+' conftest.er1
>conftest.err
4486 cat conftest.err
>&5
4487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } && {
4489 test -z "$ac_c_werror_flag" ||
4490 test ! -s conftest.err
4491 } && test -s conftest.
$ac_objext; then
4494 $as_echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.
$ac_ext >&5
4497 { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4498 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4499 { (exit 1); exit 1; }; }
4502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4506 ac_cpp
='$CPP $CPPFLAGS'
4507 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4508 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4509 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4510 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4511 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4512 # On Suns, sometimes $CPP names a directory.
4513 if test -n "$CPP" && test -d "$CPP"; then
4516 if test -z "$CPP"; then
4517 if test "${ac_cv_prog_CPP+set}" = set; then
4518 $as_echo_n "(cached) " >&6
4520 # Double quotes because CPP needs to be expanded
4521 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4524 for ac_c_preproc_warn_flag
in '' yes
4526 # Use a header file that comes with gcc, so configuring glibc
4527 # with a fresh cross-compiler works.
4528 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4529 # <limits.h> exists even on freestanding compilers.
4530 # On the NeXT, cc -E runs the code through the compiler's parser,
4531 # not just through cpp. "Syntax error" is here to catch this case.
4532 cat >conftest.
$ac_ext <<_ACEOF
4535 cat confdefs.h
>>conftest.
$ac_ext
4536 cat >>conftest.
$ac_ext <<_ACEOF
4537 /* end confdefs.h. */
4539 # include <limits.h>
4541 # include <assert.h>
4545 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4551 $as_echo "$ac_try_echo") >&5
4552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4554 grep -v '^ *+' conftest.er1 >conftest.err
4556 cat conftest.err >&5
4557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } >/dev/null && {
4559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4560 test ! -s conftest.err
4564 $as_echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4567 # Broken: fails on valid input.
4571 rm -f conftest.err conftest.$ac_ext
4573 # OK, works on sane cases. Now check whether nonexistent headers
4574 # can be detected and how.
4575 cat >conftest.$ac_ext <<_ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h. */
4581 #include <ac_nonexistent.h>
4583 if { (ac_try="$ac_cpp conftest.$ac_ext"
4585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4586 *) ac_try_echo
=$ac_try;;
4588 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4589 $as_echo "$ac_try_echo") >&5
4590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4592 grep -v '^ *+' conftest.er1
>conftest.err
4594 cat conftest.err
>&5
4595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } >/dev
/null
&& {
4597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4598 test ! -s conftest.err
4600 # Broken: success on invalid input.
4603 $as_echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.
$ac_ext >&5
4606 # Passes both tests.
4611 rm -f conftest.err conftest.
$ac_ext
4614 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4615 rm -f conftest.err conftest.
$ac_ext
4616 if $ac_preproc_ok; then
4628 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4629 $as_echo "$CPP" >&6; }
4631 for ac_c_preproc_warn_flag
in '' yes
4633 # Use a header file that comes with gcc, so configuring glibc
4634 # with a fresh cross-compiler works.
4635 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4636 # <limits.h> exists even on freestanding compilers.
4637 # On the NeXT, cc -E runs the code through the compiler's parser,
4638 # not just through cpp. "Syntax error" is here to catch this case.
4639 cat >conftest.
$ac_ext <<_ACEOF
4642 cat confdefs.h
>>conftest.
$ac_ext
4643 cat >>conftest.
$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4646 # include <limits.h>
4648 # include <assert.h>
4652 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4654 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4655 *) ac_try_echo=$ac_try;;
4657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4658 $as_echo "$ac_try_echo") >&5
4659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4661 grep -v '^ *+' conftest.er1 >conftest.err
4663 cat conftest.err >&5
4664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } >/dev/null && {
4666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4667 test ! -s conftest.err
4671 $as_echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.$ac_ext >&5
4674 # Broken: fails on valid input.
4678 rm -f conftest.err conftest.$ac_ext
4680 # OK, works on sane cases. Now check whether nonexistent headers
4681 # can be detected and how.
4682 cat >conftest.$ac_ext <<_ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4688 #include <ac_nonexistent.h>
4690 if { (ac_try="$ac_cpp conftest.$ac_ext"
4692 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4693 *) ac_try_echo
=$ac_try;;
4695 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4696 $as_echo "$ac_try_echo") >&5
4697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4699 grep -v '^ *+' conftest.er1
>conftest.err
4701 cat conftest.err
>&5
4702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } >/dev
/null
&& {
4704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4705 test ! -s conftest.err
4707 # Broken: success on invalid input.
4710 $as_echo "$as_me: failed program was:" >&5
4711 sed 's/^/| /' conftest.
$ac_ext >&5
4713 # Passes both tests.
4718 rm -f conftest.err conftest.
$ac_ext
4721 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4722 rm -f conftest.err conftest.
$ac_ext
4723 if $ac_preproc_ok; then
4726 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4728 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4729 See \`config.log' for more details." >&5
4730 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4731 See \`config.log' for more details." >&2;}
4732 { (exit 1); exit 1; }; }; }
4736 ac_cpp
='$CPP $CPPFLAGS'
4737 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4745 # Set up TAS assembly code if needed; the template file has now had its
4746 # chance to request this.
4748 ac_config_links
="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4751 if test "$need_tas" = yes ; then
4760 # Automatic dependency tracking
4764 # Check whether --enable-depend was given.
4765 if test "${enable_depend+set}" = set; then
4766 enableval
=$enable_depend;
4775 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4776 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4777 { (exit 1); exit 1; }; }
4791 # Enable assert checks
4795 # Check whether --enable-cassert was given.
4796 if test "${enable_cassert+set}" = set; then
4797 enableval
=$enable_cassert;
4801 cat >>confdefs.h
<<\_ACEOF
4802 #define USE_ASSERT_CHECKING 1
4810 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4811 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4812 { (exit 1); exit 1; }; }
4825 # Include directories
4828 IFS
="${IFS}${PATH_SEPARATOR}"
4829 # SRCH_INC comes from the template file
4830 for dir
in $with_includes $SRCH_INC; do
4831 if test -d "$dir"; then
4832 INCLUDES
="$INCLUDES -I$dir"
4834 { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4835 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4843 # Library directories
4846 IFS
="${IFS}${PATH_SEPARATOR}"
4847 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4848 for dir
in $LIBRARY_DIRS $SRCH_LIB; do
4849 if test -d "$dir"; then
4850 LIBDIRS
="$LIBDIRS -L$dir"
4852 { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4853 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4859 # Enable thread-safe client libraries
4861 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4862 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
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
=yes
4888 if test "$enable_thread_safety" = yes; then
4890 cat >>confdefs.h
<<\_ACEOF
4891 #define ENABLE_THREAD_SAFETY 1
4895 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4896 $as_echo "$enable_thread_safety" >&6; }
4900 # Optionally build Tcl modules (PL/Tcl)
4902 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4903 $as_echo_n "checking whether to build with Tcl... " >&6; }
4907 # Check whether --with-tcl was given.
4908 if test "${with_tcl+set}" = set; then
4918 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4919 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4920 { (exit 1); exit 1; }; }
4930 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
4931 $as_echo "$with_tcl" >&6; }
4934 # We see if the path to the Tcl/Tk configuration scripts is specified.
4935 # This will override the use of tclsh to find the paths to search.
4940 # Check whether --with-tclconfig was given.
4941 if test "${with_tclconfig+set}" = set; then
4942 withval
=$with_tclconfig;
4945 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4946 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4947 { (exit 1); exit 1; }; }
4950 { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4951 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4952 { (exit 1); exit 1; }; }
4964 # Optionally build Perl modules (PL/Perl)
4966 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4967 $as_echo_n "checking whether to build Perl modules... " >&6; }
4971 # Check whether --with-perl was given.
4972 if test "${with_perl+set}" = set; then
4982 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4983 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4984 { (exit 1); exit 1; }; }
4994 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
4995 $as_echo "$with_perl" >&6; }
4999 # Optionally build Python modules (PL/Python)
5001 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5002 $as_echo_n "checking whether to build Python modules... " >&6; }
5006 # Check whether --with-python was given.
5007 if test "${with_python+set}" = set; then
5008 withval
=$with_python;
5017 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5018 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5019 { (exit 1); exit 1; }; }
5029 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5030 $as_echo "$with_python" >&6; }
5036 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5037 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5041 # Check whether --with-gssapi was given.
5042 if test "${with_gssapi+set}" = set; then
5043 withval
=$with_gssapi;
5048 cat >>confdefs.h
<<\_ACEOF
5049 #define ENABLE_GSS 1
5052 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
5059 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5060 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5061 { (exit 1); exit 1; }; }
5071 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5072 $as_echo "$with_gssapi" >&6; }
5078 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5079 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5083 # Check whether --with-krb5 was given.
5084 if test "${with_krb5+set}" = set; then
5090 cat >>confdefs.h
<<\_ACEOF
5094 krb_srvtab
="FILE:\$(sysconfdir)/krb5.keytab"
5101 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5102 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5103 { (exit 1); exit 1; }; }
5113 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5114 $as_echo "$with_krb5" >&6; }
5122 # Kerberos configuration parameters
5127 # Check whether --with-krb-srvnam was given.
5128 if test "${with_krb_srvnam+set}" = set; then
5129 withval
=$with_krb_srvnam;
5132 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5133 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5134 { (exit 1); exit 1; }; }
5137 { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5138 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5139 { (exit 1); exit 1; }; }
5147 with_krb_srvnam
="postgres"
5152 cat >>confdefs.h
<<_ACEOF
5153 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5161 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5162 $as_echo_n "checking whether to build with PAM support... " >&6; }
5166 # Check whether --with-pam was given.
5167 if test "${with_pam+set}" = set; then
5172 cat >>confdefs.h
<<\_ACEOF
5181 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5182 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5183 { (exit 1); exit 1; }; }
5193 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5194 $as_echo "$with_pam" >&6; }
5201 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5202 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5206 # Check whether --with-ldap was given.
5207 if test "${with_ldap+set}" = set; then
5212 cat >>confdefs.h
<<\_ACEOF
5221 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5222 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5223 { (exit 1); exit 1; }; }
5233 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5234 $as_echo "$with_ldap" >&6; }
5241 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5242 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5246 # Check whether --with-bonjour was given.
5247 if test "${with_bonjour+set}" = set; then
5248 withval
=$with_bonjour;
5252 cat >>confdefs.h
<<\_ACEOF
5253 #define USE_BONJOUR 1
5261 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5262 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5263 { (exit 1); exit 1; }; }
5273 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5274 $as_echo "$with_bonjour" >&6; }
5281 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5282 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5286 # Check whether --with-openssl was given.
5287 if test "${with_openssl+set}" = set; then
5288 withval
=$with_openssl;
5292 cat >>confdefs.h
<<\_ACEOF
5301 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5302 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5303 { (exit 1); exit 1; }; }
5313 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5314 $as_echo "$with_openssl" >&6; }
5324 # Check whether --with-readline was given.
5325 if test "${with_readline+set}" = set; then
5326 withval
=$with_readline;
5335 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5336 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5337 { (exit 1); exit 1; }; }
5347 # readline on MinGW has problems with backslashes in psql and other bugs.
5348 # This is particularly a problem with non-US code pages.
5349 # Therefore disable its use until we understand the cause. 2004-07-20
5350 if test "$PORTNAME" = "win32"; then
5351 if test "$with_readline" = yes; then
5352 { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5353 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5365 # Check whether --with-libedit-preferred was given.
5366 if test "${with_libedit_preferred+set}" = set; then
5367 withval
=$with_libedit_preferred;
5376 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5377 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5378 { (exit 1); exit 1; }; }
5383 with_libedit_preferred
=no
5396 # Check whether --with-ossp-uuid was given.
5397 if test "${with_ossp_uuid+set}" = set; then
5398 withval
=$with_ossp_uuid;
5407 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5408 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5409 { (exit 1); exit 1; }; }
5428 # Check whether --with-libxml was given.
5429 if test "${with_libxml+set}" = set; then
5430 withval
=$with_libxml;
5434 cat >>confdefs.h
<<\_ACEOF
5435 #define USE_LIBXML 1
5443 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5444 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5445 { (exit 1); exit 1; }; }
5456 if test "$with_libxml" = yes ; then
5457 for ac_prog
in xml2-config
5459 # Extract the first word of "$ac_prog", so it can be a program name with args.
5460 set dummy
$ac_prog; ac_word
=$2
5461 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5462 $as_echo_n "checking for $ac_word... " >&6; }
5463 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5464 $as_echo_n "(cached) " >&6
5466 if test -n "$XML2_CONFIG"; then
5467 ac_cv_prog_XML2_CONFIG
="$XML2_CONFIG" # Let the user override the test.
5469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5473 test -z "$as_dir" && as_dir
=.
5474 for ac_exec_ext
in '' $ac_executable_extensions; do
5475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5476 ac_cv_prog_XML2_CONFIG
="$ac_prog"
5477 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5486 XML2_CONFIG
=$ac_cv_prog_XML2_CONFIG
5487 if test -n "$XML2_CONFIG"; then
5488 { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5489 $as_echo "$XML2_CONFIG" >&6; }
5491 { $as_echo "$as_me:$LINENO: result: no" >&5
5492 $as_echo "no" >&6; }
5496 test -n "$XML2_CONFIG" && break
5499 if test -n "$XML2_CONFIG"; then
5500 for pgac_option
in `$XML2_CONFIG --cflags`; do
5501 case $pgac_option in
5502 -I*|
-D*) CPPFLAGS
="$CPPFLAGS $pgac_option";;
5505 for pgac_option
in `$XML2_CONFIG --libs`; do
5506 case $pgac_option in
5507 -L*) LDFLAGS
="$LDFLAGS $pgac_option";;
5521 # Check whether --with-libxslt was given.
5522 if test "${with_libxslt+set}" = set; then
5523 withval
=$with_libxslt;
5527 cat >>confdefs.h
<<\_ACEOF
5528 #define USE_LIBXSLT 1
5536 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5537 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5538 { (exit 1); exit 1; }; }
5558 # Check whether --with-system-tzdata was given.
5559 if test "${with_system_tzdata+set}" = set; then
5560 withval
=$with_system_tzdata;
5563 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5564 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5565 { (exit 1); exit 1; }; }
5568 { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5569 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5570 { (exit 1); exit 1; }; }
5588 # Check whether --with-zlib was given.
5589 if test "${with_zlib+set}" = set; then
5599 { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5600 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5601 { (exit 1); exit 1; }; }
5617 # Assume system is ELF if it predefines __ELF__ as 1,
5618 # otherwise believe host_os based default.
5620 freebsd1
*|freebsd2
*) elf
=no
;;
5621 freebsd3
*|freebsd4
*) elf
=yes;;
5625 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5626 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5627 if test "${ac_cv_path_GREP+set}" = set; then
5628 $as_echo_n "(cached) " >&6
5630 if test -z "$GREP"; then
5631 ac_path_GREP_found
=false
5632 # Loop through the user's path and test for each of PROGNAME-LIST
5633 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5634 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5637 test -z "$as_dir" && as_dir
=.
5638 for ac_prog
in grep ggrep
; do
5639 for ac_exec_ext
in '' $ac_executable_extensions; do
5640 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5641 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5642 # Check for GNU ac_path_GREP and select it if it is found.
5643 # Check for GNU $ac_path_GREP
5644 case `"$ac_path_GREP" --version 2>&1` in
5646 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5649 $as_echo_n 0123456789 >"conftest.in"
5652 cat "conftest.in" "conftest.in" >"conftest.tmp"
5653 mv "conftest.tmp" "conftest.in"
5654 cp "conftest.in" "conftest.nl"
5655 $as_echo 'GREP' >> "conftest.nl"
5656 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5657 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5658 ac_count
=`expr $ac_count + 1`
5659 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5660 # Best one so far, save it but keep looking for a better one
5661 ac_cv_path_GREP
="$ac_path_GREP"
5662 ac_path_GREP_max
=$ac_count
5664 # 10*(2^10) chars as input seems more than enough
5665 test $ac_count -gt 10 && break
5667 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5670 $ac_path_GREP_found && break 3
5675 if test -z "$ac_cv_path_GREP"; then
5676 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5677 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5678 { (exit 1); exit 1; }; }
5681 ac_cv_path_GREP
=$GREP
5685 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5686 $as_echo "$ac_cv_path_GREP" >&6; }
5687 GREP
="$ac_cv_path_GREP"
5690 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5691 $as_echo_n "checking for egrep... " >&6; }
5692 if test "${ac_cv_path_EGREP+set}" = set; then
5693 $as_echo_n "(cached) " >&6
5695 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5696 then ac_cv_path_EGREP
="$GREP -E"
5698 if test -z "$EGREP"; then
5699 ac_path_EGREP_found
=false
5700 # Loop through the user's path and test for each of PROGNAME-LIST
5701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5702 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5705 test -z "$as_dir" && as_dir
=.
5706 for ac_prog
in egrep; do
5707 for ac_exec_ext
in '' $ac_executable_extensions; do
5708 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5709 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5710 # Check for GNU ac_path_EGREP and select it if it is found.
5711 # Check for GNU $ac_path_EGREP
5712 case `"$ac_path_EGREP" --version 2>&1` in
5714 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5717 $as_echo_n 0123456789 >"conftest.in"
5720 cat "conftest.in" "conftest.in" >"conftest.tmp"
5721 mv "conftest.tmp" "conftest.in"
5722 cp "conftest.in" "conftest.nl"
5723 $as_echo 'EGREP' >> "conftest.nl"
5724 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5725 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5726 ac_count
=`expr $ac_count + 1`
5727 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5728 # Best one so far, save it but keep looking for a better one
5729 ac_cv_path_EGREP
="$ac_path_EGREP"
5730 ac_path_EGREP_max
=$ac_count
5732 # 10*(2^10) chars as input seems more than enough
5733 test $ac_count -gt 10 && break
5735 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5738 $ac_path_EGREP_found && break 3
5743 if test -z "$ac_cv_path_EGREP"; then
5744 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5745 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5746 { (exit 1); exit 1; }; }
5749 ac_cv_path_EGREP
=$EGREP
5754 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5755 $as_echo "$ac_cv_path_EGREP" >&6; }
5756 EGREP
="$ac_cv_path_EGREP"
5759 cat >conftest.
$ac_ext <<_ACEOF
5762 cat confdefs.h
>>conftest.
$ac_ext
5763 cat >>conftest.
$ac_ext <<_ACEOF
5764 /* end confdefs.h. */
5770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5771 $EGREP "yes" >/dev
/null
2>&1; then
5774 if test "X$elf" = "Xyes" ; then
5788 CPPFLAGS
="$CPPFLAGS $INCLUDES"
5789 LDFLAGS
="$LDFLAGS $LIBDIRS"
5795 # Check whether --with-gnu-ld was given.
5796 if test "${with_gnu_ld+set}" = set; then
5797 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5803 if test "$GCC" = yes; then
5804 # Check if gcc -print-prog-name=ld gives a path.
5805 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5806 $as_echo_n "checking for ld used by GCC... " >&6; }
5809 # gcc leaves a trailing carriage return which upsets mingw
5810 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5812 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5815 # Accept absolute paths.
5816 [\\/]* |
[A-Za-z
]:[\\/]*)
5817 re_direlt
='/[^/][^/]*/\.\./'
5818 # Canonicalize the path of ld
5819 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
5820 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
5821 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
5823 test -z "$LD" && LD
="$ac_prog"
5826 # If it fails, then pretend we aren't using GCC.
5830 # If it is relative, then search for the first ld in PATH.
5834 elif test "$with_gnu_ld" = yes; then
5835 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5836 $as_echo_n "checking for GNU ld... " >&6; }
5838 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5839 $as_echo_n "checking for non-GNU ld... " >&6; }
5841 if test "${ac_cv_path_LD+set}" = set; then
5842 $as_echo_n "(cached) " >&6
5844 if test -z "$LD"; then
5845 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5846 for ac_dir
in $PATH; do
5847 test -z "$ac_dir" && ac_dir
=.
5848 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5849 ac_cv_path_LD
="$ac_dir/$ac_prog"
5850 # Check to see if the program is GNU ld. I'd rather use --version,
5851 # but apparently some GNU ld's only accept -v.
5852 # Break only if it was the GNU/non-GNU ld that we prefer.
5853 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
5854 test "$with_gnu_ld" != no
&& break
5856 test "$with_gnu_ld" != yes && break
5862 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
5867 if test -n "$LD"; then
5868 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5869 $as_echo "$LD" >&6; }
5871 { $as_echo "$as_me:$LINENO: result: no" >&5
5872 $as_echo "no" >&6; }
5874 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5875 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5876 { (exit 1); exit 1; }; }
5877 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5878 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5879 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5880 $as_echo_n "(cached) " >&6
5882 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5883 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
5884 ac_cv_prog_gnu_ld
=yes
5886 ac_cv_prog_gnu_ld
=no
5889 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5890 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
5891 with_gnu_ld
=$ac_cv_prog_gnu_ld
5896 case $host_os in sysv5
*)
5897 { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
5898 $as_echo_n "checking whether ld -R works... " >&6; }
5899 if test "${pgac_cv_prog_ld_R+set}" = set; then
5900 $as_echo_n "(cached) " >&6
5903 pgac_save_LDFLAGS
=$LDFLAGS; LDFLAGS
="$LDFLAGS -Wl,-R/usr/lib"
5904 cat >conftest.
$ac_ext <<_ACEOF
5907 cat confdefs.h
>>conftest.
$ac_ext
5908 cat >>conftest.
$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5919 rm -f conftest.
$ac_objext conftest
$ac_exeext
5920 if { (ac_try
="$ac_link"
5922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5926 $as_echo "$ac_try_echo") >&5
5927 (eval "$ac_link") 2>conftest.er1
5929 grep -v '^ *+' conftest.er1 >conftest.err
5931 cat conftest.err >&5
5932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } && {
5934 test -z "$ac_c_werror_flag" ||
5935 test ! -s conftest.err
5936 } && test -s conftest$ac_exeext && {
5937 test "$cross_compiling" = yes ||
5938 $as_test_x conftest$ac_exeext
5940 pgac_cv_prog_ld_R=yes
5942 $as_echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5945 pgac_cv_prog_ld_R=no
5948 rm -rf conftest.dSYM
5949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5950 conftest$ac_exeext conftest.$ac_ext
5951 LDFLAGS=$pgac_save_LDFLAGS
5954 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5955 $as_echo "$pgac_cv_prog_ld_R" >&6; }
5956 ld_R_works=$pgac_cv_prog_ld_R
5959 if test -n "$ac_tool_prefix"; then
5960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5961 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5962 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5963 $as_echo_n "checking for $ac_word... " >&6; }
5964 if test "${ac_cv_prog_RANLIB+set}" = set; then
5965 $as_echo_n "(cached) " >&6
5967 if test -n "$RANLIB"; then
5968 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974 test -z "$as_dir" && as_dir=.
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5977 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5978 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5987 RANLIB=$ac_cv_prog_RANLIB
5988 if test -n "$RANLIB"; then
5989 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5990 $as_echo "$RANLIB" >&6; }
5992 { $as_echo "$as_me:$LINENO: result: no" >&5
5993 $as_echo "no" >&6; }
5998 if test -z "$ac_cv_prog_RANLIB"; then
5999 ac_ct_RANLIB=$RANLIB
6000 # Extract the first word of "ranlib", so it can be a program name with args.
6001 set dummy ranlib; ac_word=$2
6002 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6003 $as_echo_n "checking for $ac_word... " >&6; }
6004 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6005 $as_echo_n "(cached) " >&6
6007 if test -n "$ac_ct_RANLIB"; then
6008 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6017 ac_cv_prog_ac_ct_RANLIB="ranlib"
6018 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6027 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6028 if test -n "$ac_ct_RANLIB"; then
6029 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6030 $as_echo "$ac_ct_RANLIB" >&6; }
6032 { $as_echo "$as_me:$LINENO: result: no" >&5
6033 $as_echo "no" >&6; }
6036 if test "x$ac_ct_RANLIB" = x; then
6039 case $cross_compiling:$ac_tool_warned in
6041 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6043 ac_tool_warned=yes ;;
6045 RANLIB=$ac_ct_RANLIB
6048 RANLIB="$ac_cv_prog_RANLIB"
6052 if test -n "$ac_tool_prefix"; then
6053 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6054 set dummy ${ac_tool_prefix}strip; ac_word=$2
6055 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6056 $as_echo_n "checking for $ac_word... " >&6; }
6057 if test "${ac_cv_prog_STRIP+set}" = set; then
6058 $as_echo_n "(cached) " >&6
6060 if test -n "$STRIP"; then
6061 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6070 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6071 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 STRIP=$ac_cv_prog_STRIP
6081 if test -n "$STRIP"; then
6082 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6083 $as_echo "$STRIP" >&6; }
6085 { $as_echo "$as_me:$LINENO: result: no" >&5
6086 $as_echo "no" >&6; }
6091 if test -z "$ac_cv_prog_STRIP"; then
6093 # Extract the first word of "strip", so it can be a program name with args.
6094 set dummy strip; ac_word=$2
6095 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6096 $as_echo_n "checking for $ac_word... " >&6; }
6097 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6098 $as_echo_n "(cached) " >&6
6100 if test -n "$ac_ct_STRIP"; then
6101 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 test -z "$as_dir" && as_dir=.
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6110 ac_cv_prog_ac_ct_STRIP="strip"
6111 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6120 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6121 if test -n "$ac_ct_STRIP"; then
6122 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6123 $as_echo "$ac_ct_STRIP" >&6; }
6125 { $as_echo "$as_me:$LINENO: result: no" >&5
6126 $as_echo "no" >&6; }
6129 if test "x$ac_ct_STRIP" = x; then
6132 case $cross_compiling:$ac_tool_warned in
6134 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6136 ac_tool_warned=yes ;;
6141 STRIP="$ac_cv_prog_STRIP"
6145 { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6146 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6147 if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6148 STRIP_STATIC_LIB="$STRIP -x"
6149 STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6150 { $as_echo "$as_me:$LINENO: result: yes" >&5
6151 $as_echo "yes" >&6; }
6155 { $as_echo "$as_me:$LINENO: result: no" >&5
6156 $as_echo "no" >&6; }
6161 if test -n "$ac_tool_prefix"; then
6162 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6163 set dummy ${ac_tool_prefix}ar; ac_word=$2
6164 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6165 $as_echo_n "checking for $ac_word... " >&6; }
6166 if test "${ac_cv_prog_AR+set}" = set; then
6167 $as_echo_n "(cached) " >&6
6169 if test -n "$AR"; then
6170 ac_cv_prog_AR="$AR" # Let the user override the test.
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 test -z "$as_dir" && as_dir=.
6177 for ac_exec_ext in '' $ac_executable_extensions; do
6178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6179 ac_cv_prog_AR="${ac_tool_prefix}ar"
6180 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6190 if test -n "$AR"; then
6191 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6192 $as_echo "$AR" >&6; }
6194 { $as_echo "$as_me:$LINENO: result: no" >&5
6195 $as_echo "no" >&6; }
6200 if test -z "$ac_cv_prog_AR"; then
6202 # Extract the first word of "ar", so it can be a program name with args.
6203 set dummy ar; ac_word=$2
6204 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6205 $as_echo_n "checking for $ac_word... " >&6; }
6206 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6207 $as_echo_n "(cached) " >&6
6209 if test -n "$ac_ct_AR"; then
6210 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216 test -z "$as_dir" && as_dir=.
6217 for ac_exec_ext in '' $ac_executable_extensions; do
6218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6219 ac_cv_prog_ac_ct_AR="ar"
6220 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6230 if test -n "$ac_ct_AR"; then
6231 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6232 $as_echo "$ac_ct_AR" >&6; }
6234 { $as_echo "$as_me:$LINENO: result: no" >&5
6235 $as_echo "no" >&6; }
6238 if test "x$ac_ct_AR" = x; then
6241 case $cross_compiling:$ac_tool_warned in
6243 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6245 ac_tool_warned=yes ;;
6253 if test "$PORTNAME" = "win32"; then
6254 if test -n "$ac_tool_prefix"; then
6255 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6256 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6257 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6258 $as_echo_n "checking for $ac_word... " >&6; }
6259 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6260 $as_echo_n "(cached) " >&6
6262 if test -n "$DLLTOOL"; then
6263 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 test -z "$as_dir" && as_dir=.
6270 for ac_exec_ext in '' $ac_executable_extensions; do
6271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6272 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6282 DLLTOOL=$ac_cv_prog_DLLTOOL
6283 if test -n "$DLLTOOL"; then
6284 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6285 $as_echo "$DLLTOOL" >&6; }
6287 { $as_echo "$as_me:$LINENO: result: no" >&5
6288 $as_echo "no" >&6; }
6293 if test -z "$ac_cv_prog_DLLTOOL"; then
6294 ac_ct_DLLTOOL=$DLLTOOL
6295 # Extract the first word of "dlltool", so it can be a program name with args.
6296 set dummy dlltool; ac_word=$2
6297 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6298 $as_echo_n "checking for $ac_word... " >&6; }
6299 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6300 $as_echo_n "(cached) " >&6
6302 if test -n "$ac_ct_DLLTOOL"; then
6303 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 test -z "$as_dir" && as_dir=.
6310 for ac_exec_ext in '' $ac_executable_extensions; do
6311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6312 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6313 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6323 if test -n "$ac_ct_DLLTOOL"; then
6324 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6325 $as_echo "$ac_ct_DLLTOOL" >&6; }
6327 { $as_echo "$as_me:$LINENO: result: no" >&5
6328 $as_echo "no" >&6; }
6331 if test "x$ac_ct_DLLTOOL" = x; then
6334 case $cross_compiling:$ac_tool_warned in
6336 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6338 ac_tool_warned=yes ;;
6340 DLLTOOL=$ac_ct_DLLTOOL
6343 DLLTOOL="$ac_cv_prog_DLLTOOL"
6346 if test -n "$ac_tool_prefix"; then
6347 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6348 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6349 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6350 $as_echo_n "checking for $ac_word... " >&6; }
6351 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6352 $as_echo_n "(cached) " >&6
6354 if test -n "$DLLWRAP"; then
6355 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6364 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6365 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 DLLWRAP=$ac_cv_prog_DLLWRAP
6375 if test -n "$DLLWRAP"; then
6376 { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6377 $as_echo "$DLLWRAP" >&6; }
6379 { $as_echo "$as_me:$LINENO: result: no" >&5
6380 $as_echo "no" >&6; }
6385 if test -z "$ac_cv_prog_DLLWRAP"; then
6386 ac_ct_DLLWRAP=$DLLWRAP
6387 # Extract the first word of "dllwrap", so it can be a program name with args.
6388 set dummy dllwrap; ac_word=$2
6389 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6390 $as_echo_n "checking for $ac_word... " >&6; }
6391 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6392 $as_echo_n "(cached) " >&6
6394 if test -n "$ac_ct_DLLWRAP"; then
6395 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 test -z "$as_dir" && as_dir=.
6402 for ac_exec_ext in '' $ac_executable_extensions; do
6403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6404 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6405 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6415 if test -n "$ac_ct_DLLWRAP"; then
6416 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6417 $as_echo "$ac_ct_DLLWRAP" >&6; }
6419 { $as_echo "$as_me:$LINENO: result: no" >&5
6420 $as_echo "no" >&6; }
6423 if test "x$ac_ct_DLLWRAP" = x; then
6426 case $cross_compiling:$ac_tool_warned in
6428 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6430 ac_tool_warned=yes ;;
6432 DLLWRAP=$ac_ct_DLLWRAP
6435 DLLWRAP="$ac_cv_prog_DLLWRAP"
6438 if test -n "$ac_tool_prefix"; then
6439 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6440 set dummy ${ac_tool_prefix}windres; ac_word=$2
6441 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if test "${ac_cv_prog_WINDRES+set}" = set; then
6444 $as_echo_n "(cached) " >&6
6446 if test -n "$WINDRES"; then
6447 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6456 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6457 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 WINDRES=$ac_cv_prog_WINDRES
6467 if test -n "$WINDRES"; then
6468 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6469 $as_echo "$WINDRES" >&6; }
6471 { $as_echo "$as_me:$LINENO: result: no" >&5
6472 $as_echo "no" >&6; }
6477 if test -z "$ac_cv_prog_WINDRES"; then
6478 ac_ct_WINDRES=$WINDRES
6479 # Extract the first word of "windres", so it can be a program name with args.
6480 set dummy windres; ac_word=$2
6481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6482 $as_echo_n "checking for $ac_word... " >&6; }
6483 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6484 $as_echo_n "(cached) " >&6
6486 if test -n "$ac_ct_WINDRES"; then
6487 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 test -z "$as_dir" && as_dir=.
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6496 ac_cv_prog_ac_ct_WINDRES="windres"
6497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6507 if test -n "$ac_ct_WINDRES"; then
6508 { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6509 $as_echo "$ac_ct_WINDRES" >&6; }
6511 { $as_echo "$as_me:$LINENO: result: no" >&5
6512 $as_echo "no" >&6; }
6515 if test "x$ac_ct_WINDRES" = x; then
6518 case $cross_compiling:$ac_tool_warned in
6520 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6522 ac_tool_warned=yes ;;
6524 WINDRES=$ac_ct_WINDRES
6527 WINDRES="$ac_cv_prog_WINDRES"
6532 # Extract the first word of "tar", so it can be a program name with args.
6533 set dummy tar; ac_word=$2
6534 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6535 $as_echo_n "checking for $ac_word... " >&6; }
6536 if test "${ac_cv_path_TAR+set}" = set; then
6537 $as_echo_n "(cached) " >&6
6541 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
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_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6552 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 if test -n "$TAR"; then
6564 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
6565 $as_echo "$TAR" >&6; }
6567 { $as_echo "$as_me:$LINENO: result: no" >&5
6568 $as_echo "no" >&6; }
6572 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6573 $as_echo_n "checking whether ln -s works... " >&6; }
6575 if test "$LN_S" = "ln -s"; then
6576 { $as_echo "$as_me:$LINENO: result: yes" >&5
6577 $as_echo "yes" >&6; }
6579 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6580 $as_echo "no, using $LN_S" >&6; }
6583 for ac_prog in gawk mawk nawk awk
6585 # Extract the first word of "$ac_prog", so it can be a program name with args.
6586 set dummy $ac_prog; ac_word=$2
6587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6588 $as_echo_n "checking for $ac_word... " >&6; }
6589 if test "${ac_cv_prog_AWK+set}" = set; then
6590 $as_echo_n "(cached) " >&6
6592 if test -n "$AWK"; then
6593 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602 ac_cv_prog_AWK="$ac_prog"
6603 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 if test -n "$AWK"; then
6614 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6615 $as_echo "$AWK" >&6; }
6617 { $as_echo "$as_me:$LINENO: result: no" >&5
6618 $as_echo "no" >&6; }
6622 test -n "$AWK" && break
6625 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6626 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6627 if test -z "$MKDIR_P"; then
6628 if test "${ac_cv_path_mkdir+set}" = set; then
6629 $as_echo_n "(cached) " >&6
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6635 test -z "$as_dir" && as_dir=.
6636 for ac_prog in mkdir gmkdir; do
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6639 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6640 'mkdir (GNU coreutils) '* | \
6641 'mkdir (coreutils) '* | \
6642 'mkdir (fileutils) '4.1*)
6643 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6653 if test "${ac_cv_path_mkdir+set}" = set; then
6654 MKDIR_P="$ac_cv_path_mkdir -p"
6656 # As a last resort, use the slow shell script. Don't cache a
6657 # value for MKDIR_P within a source directory, because that will
6658 # break other packages using the cache if that directory is
6659 # removed, or if the value is a relative name.
6660 test -d ./--version && rmdir ./--version
6661 MKDIR_P="$ac_install_sh -d"
6664 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
6665 $as_echo "$MKDIR_P" >&6; }
6667 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
6668 # a relative path to it in each makefile where it subsitutes it. This clashes
6669 # with our Makefile.global concept. This workaround helps.
6671 *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
6674 # Let the user override the search
6675 if test -z "$BISON"; then
6676 for ac_prog in bison
6678 # Extract the first word of "$ac_prog", so it can be a program name with args.
6679 set dummy $ac_prog; ac_word=$2
6680 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6681 $as_echo_n "checking for $ac_word... " >&6; }
6682 if test "${ac_cv_path_BISON+set}" = set; then
6683 $as_echo_n "(cached) " >&6
6687 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6698 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 BISON=$ac_cv_path_BISON
6709 if test -n "$BISON"; then
6710 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6711 $as_echo "$BISON" >&6; }
6713 { $as_echo "$as_me:$LINENO: result: no" >&5
6714 $as_echo "no" >&6; }
6718 test -n "$BISON" && break
6723 if test "$BISON"; then
6724 pgac_bison_version=`$BISON --version 2>/dev
/null |
sed q
`
6725 { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6726 $as_echo "$as_me: using $pgac_bison_version" >&6;}
6727 if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6729 { $as_echo "$as_me:$LINENO: WARNING:
6730 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6731 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
6732 $as_echo "$as_me: WARNING:
6733 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
6734 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
6739 if test -z "$BISON"; then
6740 { $as_echo "$as_me:$LINENO: WARNING:
6741 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6742 *** change any of the parser definition files. You can obtain Bison from
6743 *** a GNU mirror site. (If you are using the official distribution of
6744 *** PostgreSQL then you do not need to worry about this, because the Bison
6745 *** output is pre-generated.)" >&5
6746 $as_echo "$as_me: WARNING:
6747 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6748 *** change any of the parser definition files. You can obtain Bison from
6749 *** a GNU mirror site. (If you are using the official distribution of
6750 *** PostgreSQL then you do not need to worry about this, because the Bison
6751 *** output is pre-generated.)" >&2;}
6753 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6756 { $as_echo "$as_me:$LINENO: checking for flex" >&5
6757 $as_echo_n "checking for flex... " >&6; }
6758 if test "${pgac_cv_path_flex+set}" = set; then
6759 $as_echo_n "(cached) " >&6
6761 # Let the user override the test
6762 if test -n "$FLEX"; then
6763 pgac_cv_path_flex=$FLEX
6767 for pgac_dir in $PATH; do
6769 if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6772 for pgac_prog in flex lex; do
6773 pgac_candidate="$pgac_dir/$pgac_prog"
6774 if test -f "$pgac_candidate" \
6775 && $pgac_candidate --version </dev/null >/dev/null 2>&1
6777 echo '%%' > conftest.l
6778 if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6779 pgac_flex_version=`$pgac_candidate --version 2>/dev
/null
`
6780 if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
6782 pgac_cv_path_flex=$pgac_candidate
6785 { $as_echo "$as_me:$LINENO: WARNING:
6786 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6787 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
6788 $as_echo "$as_me: WARNING:
6789 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
6790 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
6796 rm -f conftest.l lex.yy.c
6797 : ${pgac_cv_path_flex=no}
6801 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6802 $as_echo "$pgac_cv_path_flex" >&6; }
6803 if test x"$pgac_cv_path_flex" = x"no"; then
6804 { $as_echo "$as_me:$LINENO: WARNING:
6805 *** Without Flex you will not be able to build PostgreSQL from CVS nor
6806 *** change any of the scanner definition files. You can obtain Flex from
6807 *** a GNU mirror site. (If you are using the official distribution of
6808 *** PostgreSQL then you do not need to worry about this because the Flex
6809 *** output is pre-generated.)" >&5
6810 $as_echo "$as_me: WARNING:
6811 *** Without Flex you will not be able to build PostgreSQL from CVS nor
6812 *** change any of the scanner definition files. You can obtain Flex from
6813 *** a GNU mirror site. (If you are using the official distribution of
6814 *** PostgreSQL then you do not need to worry about this because the Flex
6815 *** output is pre-generated.)" >&2;}
6819 FLEX=$pgac_cv_path_flex
6820 pgac_flex_version=`$FLEX --version 2>/dev
/null
`
6821 { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6822 $as_echo "$as_me: using $pgac_flex_version" >&6;}
6829 # Let the user override the search
6830 if test -z "$PERL"; then
6831 # Extract the first word of "perl", so it can be a program name with args.
6832 set dummy perl; ac_word=$2
6833 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if test "${ac_cv_path_PERL+set}" = set; then
6836 $as_echo_n "(cached) " >&6
6840 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6850 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6851 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6861 PERL=$ac_cv_path_PERL
6862 if test -n "$PERL"; then
6863 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
6864 $as_echo "$PERL" >&6; }
6866 { $as_echo "$as_me:$LINENO: result: no" >&5
6867 $as_echo "no" >&6; }
6873 if test "$PERL"; then
6874 pgac_perl_version=`$PERL -v 2>/dev
/null |
sed -n 's/This is perl.*v[a-z ]*\([0-9]\.[0-9][0-9.]*\).*$/\1/p'`
6875 { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
6876 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
6877 if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
6878 $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
6880 { $as_echo "$as_me:$LINENO: WARNING:
6881 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
6882 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
6883 $as_echo "$as_me: WARNING:
6884 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
6885 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
6890 if test -z "$PERL"; then
6891 { $as_echo "$as_me:$LINENO: WARNING:
6892 *** Without Perl you will not be able to build PostgreSQL from CVS.
6893 *** You can obtain Perl from any CPAN mirror site.
6894 *** (If you are using the official distribution of PostgreSQL then you do not
6895 *** need to worry about this, because the Perl output is pre-generated.)" >&5
6896 $as_echo "$as_me: WARNING:
6897 *** Without Perl you will not be able to build PostgreSQL from CVS.
6898 *** You can obtain Perl from any CPAN mirror site.
6899 *** (If you are using the official distribution of PostgreSQL then you do not
6900 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
6903 if test "$with_perl" = yes; then
6904 if test -z "$PERL"; then
6905 { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
6906 $as_echo "$as_me: error: Perl not found" >&2;}
6907 { (exit 1); exit 1; }; }
6910 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6911 $as_echo_n "checking for Perl archlibexp... " >&6; }
6912 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6913 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6914 $as_echo "$perl_archlibexp" >&6; }
6915 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6916 $as_echo_n "checking for Perl privlibexp... " >&6; }
6917 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6918 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6919 $as_echo "$perl_privlibexp" >&6; }
6920 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6921 $as_echo_n "checking for Perl useshrplib... " >&6; }
6922 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6923 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6924 $as_echo "$perl_useshrplib" >&6; }
6926 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6927 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
6928 pgac_tmp1=`$PERL -MExtUtils::Embed
-e ldopts
`
6929 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6930 perl_embed_ldflags=`echo X
"$pgac_tmp1" |
sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
6931 if test -z "$perl_embed_ldflags" ; then
6932 { $as_echo "$as_me:$LINENO: result: no" >&5
6933 $as_echo "no" >&6; }
6934 { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6935 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6937 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
6938 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6940 { (exit 1); exit 1; }; }
6942 { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6943 $as_echo "$perl_embed_ldflags" >&6; }
6948 if test "$with_python" = yes; then
6949 # Extract the first word of "python", so it can be a program name with args.
6950 set dummy python; ac_word=$2
6951 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if test "${ac_cv_path_PYTHON+set}" = set; then
6954 $as_echo_n "(cached) " >&6
6958 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6969 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 PYTHON=$ac_cv_path_PYTHON
6980 if test -n "$PYTHON"; then
6981 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
6982 $as_echo "$PYTHON" >&6; }
6984 { $as_echo "$as_me:$LINENO: result: no" >&5
6985 $as_echo "no" >&6; }
6989 if test x"$PYTHON" = x""; then
6990 { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
6991 $as_echo "$as_me: error: Python not found" >&2;}
6992 { (exit 1); exit 1; }; }
6996 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
6997 $as_echo_n "checking for Python distutils module... " >&6; }
6998 if "${PYTHON}" -c 'import distutils' 2>&5
7000 { $as_echo "$as_me:$LINENO: result: yes" >&5
7001 $as_echo "yes" >&6; }
7003 { $as_echo "$as_me:$LINENO: result: no" >&5
7004 $as_echo "no" >&6; }
7005 { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7006 $as_echo "$as_me: error: distutils module not found" >&2;}
7007 { (exit 1); exit 1; }; }
7009 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7010 $as_echo_n "checking Python configuration directory... " >&6; }
7011 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7012 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7013 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'))"`
7014 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7016 # This should be enough of a message.
7017 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7018 $as_echo "$python_configdir" >&6; }
7021 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7022 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7024 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7025 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7026 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7027 ldlibrary=`echo "${python_ldlibrary}" |
sed "s/${python_so}$//"`
7029 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7031 # New way: use the official shared library
7032 ldlibrary=`echo "${ldlibrary}" |
sed "s/^lib//"`
7033 python_libspec="-L${python_libdir} -l${ldlibrary}"
7035 # Old way: use libpython from python_configdir
7036 python_libdir="${python_configdir}"
7037 python_libspec="-L${python_libdir} -lpython${python_version}"
7040 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7042 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7043 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7046 # threaded python is not supported on bsd's
7047 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7048 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7049 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7050 if test "$pythreads" = "1"; then
7051 { $as_echo "$as_me:$LINENO: result: yes" >&5
7052 $as_echo "yes" >&6; }
7055 { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7056 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7057 { (exit 1); exit 1; }; }
7061 { $as_echo "$as_me:$LINENO: result: no" >&5
7062 $as_echo "no" >&6; }
7068 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7069 # Extract the first word of "zic", so it can be a program name with args.
7070 set dummy zic; ac_word=$2
7071 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7072 $as_echo_n "checking for $ac_word... " >&6; }
7073 if test "${ac_cv_path_ZIC+set}" = set; then
7074 $as_echo_n "(cached) " >&6
7078 ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7088 ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7089 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 if test -n "$ZIC"; then
7101 { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7102 $as_echo "$ZIC" >&6; }
7104 { $as_echo "$as_me:$LINENO: result: no" >&5
7105 $as_echo "no" >&6; }
7109 if test -z "$ZIC"; then
7110 { { $as_echo "$as_me:$LINENO: error:
7111 When cross-compiling, either use the option --with-system-tzdata to use
7112 existing time-zone data, or set the environment variable ZIC to a zic
7113 program to use during the build." >&5
7114 $as_echo "$as_me: error:
7115 When cross-compiling, either use the option --with-system-tzdata to use
7116 existing time-zone data, or set the environment variable ZIC to a zic
7117 program to use during the build." >&2;}
7118 { (exit 1); exit 1; }; }
7126 ## Most libraries are included only if they demonstrably provide a function
7127 ## we need, but libm is an exception: always include it, because there are
7128 ## too many compilers that play cute optimization games that will break
7129 ## probes for standard functions such as pow().
7133 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7134 $as_echo_n "checking for main in -lm... " >&6; }
7135 if test "${ac_cv_lib_m_main+set}" = set; then
7136 $as_echo_n "(cached) " >&6
7138 ac_check_lib_save_LIBS=$LIBS
7140 cat >conftest.$ac_ext <<_ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7156 rm -f conftest.$ac_objext conftest$ac_exeext
7157 if { (ac_try="$ac_link"
7159 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7160 *) ac_try_echo
=$ac_try;;
7162 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7163 $as_echo "$ac_try_echo") >&5
7164 (eval "$ac_link") 2>conftest.er1
7166 grep -v '^ *+' conftest.er1
>conftest.err
7168 cat conftest.err
>&5
7169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170 (exit $ac_status); } && {
7171 test -z "$ac_c_werror_flag" ||
7172 test ! -s conftest.err
7173 } && test -s conftest
$ac_exeext && {
7174 test "$cross_compiling" = yes ||
7175 $as_test_x conftest
$ac_exeext
7177 ac_cv_lib_m_main
=yes
7179 $as_echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.
$ac_ext >&5
7185 rm -rf conftest.dSYM
7186 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7187 conftest
$ac_exeext conftest.
$ac_ext
7188 LIBS
=$ac_check_lib_save_LIBS
7190 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7191 $as_echo "$ac_cv_lib_m_main" >&6; }
7192 if test "x$ac_cv_lib_m_main" = x
""yes; then
7193 cat >>confdefs.h
<<_ACEOF
7201 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7202 $as_echo_n "checking for library containing setproctitle... " >&6; }
7203 if test "${ac_cv_search_setproctitle+set}" = set; then
7204 $as_echo_n "(cached) " >&6
7206 ac_func_search_save_LIBS
=$LIBS
7207 cat >conftest.
$ac_ext <<_ACEOF
7210 cat confdefs.h
>>conftest.
$ac_ext
7211 cat >>conftest.
$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7214 /* Override any GCC internal prototype to avoid an error.
7215 Use char because int might match the return type of a GCC
7216 builtin and then its argument prototype would still apply. */
7220 char setproctitle ();
7224 return setproctitle ();
7229 for ac_lib
in '' util
; do
7230 if test -z "$ac_lib"; then
7231 ac_res
="none required"
7234 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7236 rm -f conftest.
$ac_objext conftest
$ac_exeext
7237 if { (ac_try
="$ac_link"
7239 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7240 *) ac_try_echo=$ac_try;;
7242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7243 $as_echo "$ac_try_echo") >&5
7244 (eval "$ac_link") 2>conftest.er1
7246 grep -v '^ *+' conftest.er1 >conftest.err
7248 cat conftest.err >&5
7249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); } && {
7251 test -z "$ac_c_werror_flag" ||
7252 test ! -s conftest.err
7253 } && test -s conftest$ac_exeext && {
7254 test "$cross_compiling" = yes ||
7255 $as_test_x conftest$ac_exeext
7257 ac_cv_search_setproctitle=$ac_res
7259 $as_echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.$ac_ext >&5
7265 rm -rf conftest.dSYM
7266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7268 if test "${ac_cv_search_setproctitle+set}" = set; then
7272 if test "${ac_cv_search_setproctitle+set}" = set; then
7275 ac_cv_search_setproctitle=no
7278 LIBS=$ac_func_search_save_LIBS
7280 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7281 $as_echo "$ac_cv_search_setproctitle" >&6; }
7282 ac_res=$ac_cv_search_setproctitle
7283 if test "$ac_res" != no; then
7284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7288 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7289 $as_echo_n "checking for library containing dlopen... " >&6; }
7290 if test "${ac_cv_search_dlopen+set}" = set; then
7291 $as_echo_n "(cached) " >&6
7293 ac_func_search_save_LIBS=$LIBS
7294 cat >conftest.$ac_ext <<_ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h. */
7301 /* Override any GCC internal prototype to avoid an error.
7302 Use char because int might match the return type of a GCC
7303 builtin and then its argument prototype would still apply. */
7316 for ac_lib in '' dl; do
7317 if test -z "$ac_lib"; then
7318 ac_res="none required"
7321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7323 rm -f conftest.$ac_objext conftest$ac_exeext
7324 if { (ac_try="$ac_link"
7326 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7327 *) ac_try_echo
=$ac_try;;
7329 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7330 $as_echo "$ac_try_echo") >&5
7331 (eval "$ac_link") 2>conftest.er1
7333 grep -v '^ *+' conftest.er1
>conftest.err
7335 cat conftest.err
>&5
7336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } && {
7338 test -z "$ac_c_werror_flag" ||
7339 test ! -s conftest.err
7340 } && test -s conftest
$ac_exeext && {
7341 test "$cross_compiling" = yes ||
7342 $as_test_x conftest
$ac_exeext
7344 ac_cv_search_dlopen
=$ac_res
7346 $as_echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.
$ac_ext >&5
7352 rm -rf conftest.dSYM
7353 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7355 if test "${ac_cv_search_dlopen+set}" = set; then
7359 if test "${ac_cv_search_dlopen+set}" = set; then
7362 ac_cv_search_dlopen
=no
7365 LIBS
=$ac_func_search_save_LIBS
7367 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7368 $as_echo "$ac_cv_search_dlopen" >&6; }
7369 ac_res
=$ac_cv_search_dlopen
7370 if test "$ac_res" != no
; then
7371 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7375 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7376 $as_echo_n "checking for library containing socket... " >&6; }
7377 if test "${ac_cv_search_socket+set}" = set; then
7378 $as_echo_n "(cached) " >&6
7380 ac_func_search_save_LIBS
=$LIBS
7381 cat >conftest.
$ac_ext <<_ACEOF
7384 cat confdefs.h
>>conftest.
$ac_ext
7385 cat >>conftest.
$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7388 /* Override any GCC internal prototype to avoid an error.
7389 Use char because int might match the return type of a GCC
7390 builtin and then its argument prototype would still apply. */
7403 for ac_lib
in '' socket wsock32
; do
7404 if test -z "$ac_lib"; then
7405 ac_res
="none required"
7408 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7410 rm -f conftest.
$ac_objext conftest
$ac_exeext
7411 if { (ac_try
="$ac_link"
7413 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7414 *) ac_try_echo=$ac_try;;
7416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7417 $as_echo "$ac_try_echo") >&5
7418 (eval "$ac_link") 2>conftest.er1
7420 grep -v '^ *+' conftest.er1 >conftest.err
7422 cat conftest.err >&5
7423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } && {
7425 test -z "$ac_c_werror_flag" ||
7426 test ! -s conftest.err
7427 } && test -s conftest$ac_exeext && {
7428 test "$cross_compiling" = yes ||
7429 $as_test_x conftest$ac_exeext
7431 ac_cv_search_socket=$ac_res
7433 $as_echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7439 rm -rf conftest.dSYM
7440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7442 if test "${ac_cv_search_socket+set}" = set; then
7446 if test "${ac_cv_search_socket+set}" = set; then
7449 ac_cv_search_socket=no
7452 LIBS=$ac_func_search_save_LIBS
7454 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7455 $as_echo "$ac_cv_search_socket" >&6; }
7456 ac_res=$ac_cv_search_socket
7457 if test "$ac_res" != no; then
7458 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7462 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7463 $as_echo_n "checking for library containing shl_load... " >&6; }
7464 if test "${ac_cv_search_shl_load+set}" = set; then
7465 $as_echo_n "(cached) " >&6
7467 ac_func_search_save_LIBS=$LIBS
7468 cat >conftest.$ac_ext <<_ACEOF
7471 cat confdefs.h >>conftest.$ac_ext
7472 cat >>conftest.$ac_ext <<_ACEOF
7473 /* end confdefs.h. */
7475 /* Override any GCC internal prototype to avoid an error.
7476 Use char because int might match the return type of a GCC
7477 builtin and then its argument prototype would still apply. */
7490 for ac_lib in '' dld; do
7491 if test -z "$ac_lib"; then
7492 ac_res="none required"
7495 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7497 rm -f conftest.$ac_objext conftest$ac_exeext
7498 if { (ac_try="$ac_link"
7500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7501 *) ac_try_echo
=$ac_try;;
7503 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7504 $as_echo "$ac_try_echo") >&5
7505 (eval "$ac_link") 2>conftest.er1
7507 grep -v '^ *+' conftest.er1
>conftest.err
7509 cat conftest.err
>&5
7510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } && {
7512 test -z "$ac_c_werror_flag" ||
7513 test ! -s conftest.err
7514 } && test -s conftest
$ac_exeext && {
7515 test "$cross_compiling" = yes ||
7516 $as_test_x conftest
$ac_exeext
7518 ac_cv_search_shl_load
=$ac_res
7520 $as_echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.
$ac_ext >&5
7526 rm -rf conftest.dSYM
7527 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7529 if test "${ac_cv_search_shl_load+set}" = set; then
7533 if test "${ac_cv_search_shl_load+set}" = set; then
7536 ac_cv_search_shl_load
=no
7539 LIBS
=$ac_func_search_save_LIBS
7541 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
7542 $as_echo "$ac_cv_search_shl_load" >&6; }
7543 ac_res
=$ac_cv_search_shl_load
7544 if test "$ac_res" != no
; then
7545 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7549 # We only use libld in port/dynloader/aix.c
7552 { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
7553 $as_echo_n "checking for library containing ldopen... " >&6; }
7554 if test "${ac_cv_search_ldopen+set}" = set; then
7555 $as_echo_n "(cached) " >&6
7557 ac_func_search_save_LIBS
=$LIBS
7558 cat >conftest.
$ac_ext <<_ACEOF
7561 cat confdefs.h
>>conftest.
$ac_ext
7562 cat >>conftest.
$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7565 /* Override any GCC internal prototype to avoid an error.
7566 Use char because int might match the return type of a GCC
7567 builtin and then its argument prototype would still apply. */
7580 for ac_lib
in '' ld
; do
7581 if test -z "$ac_lib"; then
7582 ac_res
="none required"
7585 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7587 rm -f conftest.
$ac_objext conftest
$ac_exeext
7588 if { (ac_try
="$ac_link"
7590 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7591 *) ac_try_echo=$ac_try;;
7593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7594 $as_echo "$ac_try_echo") >&5
7595 (eval "$ac_link") 2>conftest.er1
7597 grep -v '^ *+' conftest.er1 >conftest.err
7599 cat conftest.err >&5
7600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); } && {
7602 test -z "$ac_c_werror_flag" ||
7603 test ! -s conftest.err
7604 } && test -s conftest$ac_exeext && {
7605 test "$cross_compiling" = yes ||
7606 $as_test_x conftest$ac_exeext
7608 ac_cv_search_ldopen=$ac_res
7610 $as_echo "$as_me: failed program was:" >&5
7611 sed 's/^/| /' conftest.$ac_ext >&5
7616 rm -rf conftest.dSYM
7617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7619 if test "${ac_cv_search_ldopen+set}" = set; then
7623 if test "${ac_cv_search_ldopen+set}" = set; then
7626 ac_cv_search_ldopen=no
7629 LIBS=$ac_func_search_save_LIBS
7631 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7632 $as_echo "$ac_cv_search_ldopen" >&6; }
7633 ac_res=$ac_cv_search_ldopen
7634 if test "$ac_res" != no; then
7635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7641 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7642 $as_echo_n "checking for library containing getopt_long... " >&6; }
7643 if test "${ac_cv_search_getopt_long+set}" = set; then
7644 $as_echo_n "(cached) " >&6
7646 ac_func_search_save_LIBS=$LIBS
7647 cat >conftest.$ac_ext <<_ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7654 /* Override any GCC internal prototype to avoid an error.
7655 Use char because int might match the return type of a GCC
7656 builtin and then its argument prototype would still apply. */
7660 char getopt_long ();
7664 return getopt_long ();
7669 for ac_lib in '' getopt gnugetopt; do
7670 if test -z "$ac_lib"; then
7671 ac_res="none required"
7674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7676 rm -f conftest.$ac_objext conftest$ac_exeext
7677 if { (ac_try="$ac_link"
7679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7680 *) ac_try_echo
=$ac_try;;
7682 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7683 $as_echo "$ac_try_echo") >&5
7684 (eval "$ac_link") 2>conftest.er1
7686 grep -v '^ *+' conftest.er1
>conftest.err
7688 cat conftest.err
>&5
7689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } && {
7691 test -z "$ac_c_werror_flag" ||
7692 test ! -s conftest.err
7693 } && test -s conftest
$ac_exeext && {
7694 test "$cross_compiling" = yes ||
7695 $as_test_x conftest
$ac_exeext
7697 ac_cv_search_getopt_long
=$ac_res
7699 $as_echo "$as_me: failed program was:" >&5
7700 sed 's/^/| /' conftest.
$ac_ext >&5
7705 rm -rf conftest.dSYM
7706 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7708 if test "${ac_cv_search_getopt_long+set}" = set; then
7712 if test "${ac_cv_search_getopt_long+set}" = set; then
7715 ac_cv_search_getopt_long
=no
7718 LIBS
=$ac_func_search_save_LIBS
7720 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7721 $as_echo "$ac_cv_search_getopt_long" >&6; }
7722 ac_res
=$ac_cv_search_getopt_long
7723 if test "$ac_res" != no
; then
7724 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7728 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
7729 $as_echo_n "checking for library containing crypt... " >&6; }
7730 if test "${ac_cv_search_crypt+set}" = set; then
7731 $as_echo_n "(cached) " >&6
7733 ac_func_search_save_LIBS
=$LIBS
7734 cat >conftest.
$ac_ext <<_ACEOF
7737 cat confdefs.h
>>conftest.
$ac_ext
7738 cat >>conftest.
$ac_ext <<_ACEOF
7739 /* end confdefs.h. */
7741 /* Override any GCC internal prototype to avoid an error.
7742 Use char because int might match the return type of a GCC
7743 builtin and then its argument prototype would still apply. */
7756 for ac_lib
in '' crypt; do
7757 if test -z "$ac_lib"; then
7758 ac_res
="none required"
7761 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7763 rm -f conftest.
$ac_objext conftest
$ac_exeext
7764 if { (ac_try
="$ac_link"
7766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7767 *) ac_try_echo=$ac_try;;
7769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7770 $as_echo "$ac_try_echo") >&5
7771 (eval "$ac_link") 2>conftest.er1
7773 grep -v '^ *+' conftest.er1 >conftest.err
7775 cat conftest.err >&5
7776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } && {
7778 test -z "$ac_c_werror_flag" ||
7779 test ! -s conftest.err
7780 } && test -s conftest$ac_exeext && {
7781 test "$cross_compiling" = yes ||
7782 $as_test_x conftest$ac_exeext
7784 ac_cv_search_crypt=$ac_res
7786 $as_echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.$ac_ext >&5
7792 rm -rf conftest.dSYM
7793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7795 if test "${ac_cv_search_crypt+set}" = set; then
7799 if test "${ac_cv_search_crypt+set}" = set; then
7802 ac_cv_search_crypt=no
7805 LIBS=$ac_func_search_save_LIBS
7807 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7808 $as_echo "$ac_cv_search_crypt" >&6; }
7809 ac_res=$ac_cv_search_crypt
7810 if test "$ac_res" != no; then
7811 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7816 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7817 $as_echo_n "checking for library containing fdatasync... " >&6; }
7818 if test "${ac_cv_search_fdatasync+set}" = set; then
7819 $as_echo_n "(cached) " >&6
7821 ac_func_search_save_LIBS=$LIBS
7822 cat >conftest.$ac_ext <<_ACEOF
7825 cat confdefs.h >>conftest.$ac_ext
7826 cat >>conftest.$ac_ext <<_ACEOF
7827 /* end confdefs.h. */
7829 /* Override any GCC internal prototype to avoid an error.
7830 Use char because int might match the return type of a GCC
7831 builtin and then its argument prototype would still apply. */
7839 return fdatasync ();
7844 for ac_lib in '' rt posix4; do
7845 if test -z "$ac_lib"; then
7846 ac_res="none required"
7849 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7851 rm -f conftest.$ac_objext conftest$ac_exeext
7852 if { (ac_try="$ac_link"
7854 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7855 *) ac_try_echo
=$ac_try;;
7857 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7858 $as_echo "$ac_try_echo") >&5
7859 (eval "$ac_link") 2>conftest.er1
7861 grep -v '^ *+' conftest.er1
>conftest.err
7863 cat conftest.err
>&5
7864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); } && {
7866 test -z "$ac_c_werror_flag" ||
7867 test ! -s conftest.err
7868 } && test -s conftest
$ac_exeext && {
7869 test "$cross_compiling" = yes ||
7870 $as_test_x conftest
$ac_exeext
7872 ac_cv_search_fdatasync
=$ac_res
7874 $as_echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.
$ac_ext >&5
7880 rm -rf conftest.dSYM
7881 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7883 if test "${ac_cv_search_fdatasync+set}" = set; then
7887 if test "${ac_cv_search_fdatasync+set}" = set; then
7890 ac_cv_search_fdatasync
=no
7893 LIBS
=$ac_func_search_save_LIBS
7895 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7896 $as_echo "$ac_cv_search_fdatasync" >&6; }
7897 ac_res
=$ac_cv_search_fdatasync
7898 if test "$ac_res" != no
; then
7899 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7903 # Required for thread_test.c on Solaris 2.5:
7904 # Other ports use it too (HP-UX) so test unconditionally
7905 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
7906 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
7907 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7908 $as_echo_n "(cached) " >&6
7910 ac_func_search_save_LIBS
=$LIBS
7911 cat >conftest.
$ac_ext <<_ACEOF
7914 cat confdefs.h
>>conftest.
$ac_ext
7915 cat >>conftest.
$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7918 /* Override any GCC internal prototype to avoid an error.
7919 Use char because int might match the return type of a GCC
7920 builtin and then its argument prototype would still apply. */
7924 char gethostbyname_r ();
7928 return gethostbyname_r ();
7933 for ac_lib
in '' nsl
; do
7934 if test -z "$ac_lib"; then
7935 ac_res
="none required"
7938 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7940 rm -f conftest.
$ac_objext conftest
$ac_exeext
7941 if { (ac_try
="$ac_link"
7943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7944 *) ac_try_echo=$ac_try;;
7946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7947 $as_echo "$ac_try_echo") >&5
7948 (eval "$ac_link") 2>conftest.er1
7950 grep -v '^ *+' conftest.er1 >conftest.err
7952 cat conftest.err >&5
7953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } && {
7955 test -z "$ac_c_werror_flag" ||
7956 test ! -s conftest.err
7957 } && test -s conftest$ac_exeext && {
7958 test "$cross_compiling" = yes ||
7959 $as_test_x conftest$ac_exeext
7961 ac_cv_search_gethostbyname_r=$ac_res
7963 $as_echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7969 rm -rf conftest.dSYM
7970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7972 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7976 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
7979 ac_cv_search_gethostbyname_r=no
7982 LIBS=$ac_func_search_save_LIBS
7984 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
7985 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
7986 ac_res=$ac_cv_search_gethostbyname_r
7987 if test "$ac_res" != no; then
7988 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7993 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
7994 $as_echo_n "checking for library containing shmget... " >&6; }
7995 if test "${ac_cv_search_shmget+set}" = set; then
7996 $as_echo_n "(cached) " >&6
7998 ac_func_search_save_LIBS=$LIBS
7999 cat >conftest.$ac_ext <<_ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h. */
8006 /* Override any GCC internal prototype to avoid an error.
8007 Use char because int might match the return type of a GCC
8008 builtin and then its argument prototype would still apply. */
8021 for ac_lib in '' cygipc; do
8022 if test -z "$ac_lib"; then
8023 ac_res="none required"
8026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (ac_try="$ac_link"
8031 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8032 *) ac_try_echo
=$ac_try;;
8034 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8035 $as_echo "$ac_try_echo") >&5
8036 (eval "$ac_link") 2>conftest.er1
8038 grep -v '^ *+' conftest.er1
>conftest.err
8040 cat conftest.err
>&5
8041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } && {
8043 test -z "$ac_c_werror_flag" ||
8044 test ! -s conftest.err
8045 } && test -s conftest
$ac_exeext && {
8046 test "$cross_compiling" = yes ||
8047 $as_test_x conftest
$ac_exeext
8049 ac_cv_search_shmget
=$ac_res
8051 $as_echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.
$ac_ext >&5
8057 rm -rf conftest.dSYM
8058 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8060 if test "${ac_cv_search_shmget+set}" = set; then
8064 if test "${ac_cv_search_shmget+set}" = set; then
8067 ac_cv_search_shmget
=no
8070 LIBS
=$ac_func_search_save_LIBS
8072 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8073 $as_echo "$ac_cv_search_shmget" >&6; }
8074 ac_res
=$ac_cv_search_shmget
8075 if test "$ac_res" != no
; then
8076 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8081 if test "$with_readline" = yes; then
8084 if test "${pgac_cv_check_readline+set}" = set; then
8085 $as_echo_n "(cached) " >&6
8087 pgac_cv_check_readline
=no
8088 pgac_save_LIBS
=$LIBS
8089 if test x
"$with_libedit_preferred" != x
"yes"
8090 then READLINE_ORDER
="-lreadline -ledit"
8091 else READLINE_ORDER
="-ledit -lreadline"
8093 for pgac_rllib
in $READLINE_ORDER ; do
8094 { $as_echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
8095 $as_echo_n "checking for ${pgac_rllib}... " >&6; }
8096 for pgac_lib
in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8097 LIBS
="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8098 cat >conftest.
$ac_ext <<_ACEOF
8101 cat confdefs.h
>>conftest.
$ac_ext
8102 cat >>conftest.
$ac_ext <<_ACEOF
8103 /* end confdefs.h. */
8105 /* Override any GCC internal prototype to avoid an error.
8106 Use char because int might match the return type of a GCC
8107 builtin and then its argument prototype would still apply. */
8120 rm -f conftest.
$ac_objext conftest
$ac_exeext
8121 if { (ac_try
="$ac_link"
8123 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8127 $as_echo "$ac_try_echo") >&5
8128 (eval "$ac_link") 2>conftest.er1
8130 grep -v '^ *+' conftest.er1 >conftest.err
8132 cat conftest.err >&5
8133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } && {
8135 test -z "$ac_c_werror_flag" ||
8136 test ! -s conftest.err
8137 } && test -s conftest$ac_exeext && {
8138 test "$cross_compiling" = yes ||
8139 $as_test_x conftest$ac_exeext
8142 # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8143 # recognize dependent libraries; assume curses is needed if we didn't
8144 # find any dependency.
8146 netbsd* | openbsd* | irix*)
8147 if test x"$pgac_lib" = x"" ; then
8148 pgac_lib=" -lcurses"
8152 pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8156 $as_echo "$as_me: failed program was:" >&5
8157 sed 's/^/| /' conftest.$ac_ext >&5
8162 rm -rf conftest.dSYM
8163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8164 conftest$ac_exeext conftest.$ac_ext
8166 if test "$pgac_cv_check_readline" != no ; then
8167 { $as_echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
8168 $as_echo "yes ($pgac_cv_check_readline)" >&6; }
8171 { $as_echo "$as_me:$LINENO: result: no" >&5
8172 $as_echo "no" >&6; }
8175 LIBS=$pgac_save_LIBS
8179 if test "$pgac_cv_check_readline" != no ; then
8180 LIBS="$pgac_cv_check_readline $LIBS"
8182 cat >>confdefs.h <<\_ACEOF
8183 #define HAVE_LIBREADLINE 1
8189 if test x"$pgac_cv_check_readline" = x"no"; then
8190 { { $as_echo "$as_me:$LINENO: error: readline library not found
8191 If you have readline already installed, see config.log for details on the
8192 failure. It is possible the compiler isn't looking in the proper directory.
8193 Use --without-readline to disable readline support." >&5
8194 $as_echo "$as_me: error: readline library not found
8195 If you have readline already installed, see config.log for details on the
8196 failure. It is possible the compiler isn't looking in the proper directory.
8197 Use --without-readline to disable readline support." >&2;}
8198 { (exit 1); exit 1; }; }
8202 if test "$with_zlib" = yes; then
8204 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8205 $as_echo_n "checking for inflate in -lz... " >&6; }
8206 if test "${ac_cv_lib_z_inflate+set}" = set; then
8207 $as_echo_n "(cached) " >&6
8209 ac_check_lib_save_LIBS=$LIBS
8211 cat >conftest.$ac_ext <<_ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8218 /* Override any GCC internal prototype to avoid an error.
8219 Use char because int might match the return type of a GCC
8220 builtin and then its argument prototype would still apply. */
8233 rm -f conftest.$ac_objext conftest$ac_exeext
8234 if { (ac_try="$ac_link"
8236 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8237 *) ac_try_echo
=$ac_try;;
8239 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8240 $as_echo "$ac_try_echo") >&5
8241 (eval "$ac_link") 2>conftest.er1
8243 grep -v '^ *+' conftest.er1
>conftest.err
8245 cat conftest.err
>&5
8246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); } && {
8248 test -z "$ac_c_werror_flag" ||
8249 test ! -s conftest.err
8250 } && test -s conftest
$ac_exeext && {
8251 test "$cross_compiling" = yes ||
8252 $as_test_x conftest
$ac_exeext
8254 ac_cv_lib_z_inflate
=yes
8256 $as_echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.
$ac_ext >&5
8259 ac_cv_lib_z_inflate
=no
8262 rm -rf conftest.dSYM
8263 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8264 conftest
$ac_exeext conftest.
$ac_ext
8265 LIBS
=$ac_check_lib_save_LIBS
8267 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8268 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8269 if test "x$ac_cv_lib_z_inflate" = x
""yes; then
8270 cat >>confdefs.h
<<_ACEOF
8277 { { $as_echo "$as_me:$LINENO: error: zlib library not found
8278 If you have zlib already installed, see config.log for details on the
8279 failure. It is possible the compiler isn't looking in the proper directory.
8280 Use --without-zlib to disable zlib support." >&5
8281 $as_echo "$as_me: error: zlib library not found
8282 If you have zlib already installed, see config.log for details on the
8283 failure. It is possible the compiler isn't looking in the proper directory.
8284 Use --without-zlib to disable zlib support." >&2;}
8285 { (exit 1); exit 1; }; }
8290 if test "$enable_spinlocks" = yes; then
8292 cat >>confdefs.h
<<\_ACEOF
8293 #define HAVE_SPINLOCKS 1
8297 { $as_echo "$as_me:$LINENO: WARNING:
8298 *** Not using spinlocks will cause poor performance." >&5
8299 $as_echo "$as_me: WARNING:
8300 *** Not using spinlocks will cause poor performance." >&2;}
8303 if test "$with_gssapi" = yes ; then
8304 if test "$PORTNAME" != "win32"; then
8305 { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8306 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
8307 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8308 $as_echo_n "(cached) " >&6
8310 ac_func_search_save_LIBS
=$LIBS
8311 cat >conftest.
$ac_ext <<_ACEOF
8314 cat confdefs.h
>>conftest.
$ac_ext
8315 cat >>conftest.
$ac_ext <<_ACEOF
8316 /* end confdefs.h. */
8318 /* Override any GCC internal prototype to avoid an error.
8319 Use char because int might match the return type of a GCC
8320 builtin and then its argument prototype would still apply. */
8324 char gss_init_sec_context ();
8328 return gss_init_sec_context ();
8333 for ac_lib
in '' gssapi_krb5 gss
'gssapi -lkrb5 -lcrypto'; do
8334 if test -z "$ac_lib"; then
8335 ac_res
="none required"
8338 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8340 rm -f conftest.
$ac_objext conftest
$ac_exeext
8341 if { (ac_try
="$ac_link"
8343 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8344 *) ac_try_echo=$ac_try;;
8346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8347 $as_echo "$ac_try_echo") >&5
8348 (eval "$ac_link") 2>conftest.er1
8350 grep -v '^ *+' conftest.er1 >conftest.err
8352 cat conftest.err >&5
8353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); } && {
8355 test -z "$ac_c_werror_flag" ||
8356 test ! -s conftest.err
8357 } && test -s conftest$ac_exeext && {
8358 test "$cross_compiling" = yes ||
8359 $as_test_x conftest$ac_exeext
8361 ac_cv_search_gss_init_sec_context=$ac_res
8363 $as_echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8369 rm -rf conftest.dSYM
8370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8372 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8376 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8379 ac_cv_search_gss_init_sec_context=no
8382 LIBS=$ac_func_search_save_LIBS
8384 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8385 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
8386 ac_res=$ac_cv_search_gss_init_sec_context
8387 if test "$ac_res" != no; then
8388 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8391 { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8392 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8393 { (exit 1); exit 1; }; }
8397 LIBS="$LIBS -lgssapi32"
8401 if test "$with_krb5" = yes ; then
8402 if test "$PORTNAME" != "win32"; then
8403 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8404 $as_echo_n "checking for library containing com_err... " >&6; }
8405 if test "${ac_cv_search_com_err+set}" = set; then
8406 $as_echo_n "(cached) " >&6
8408 ac_func_search_save_LIBS=$LIBS
8409 cat >conftest.$ac_ext <<_ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h. */
8416 /* Override any GCC internal prototype to avoid an error.
8417 Use char because int might match the return type of a GCC
8418 builtin and then its argument prototype would still apply. */
8431 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
8432 if test -z "$ac_lib"; then
8433 ac_res="none required"
8436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8438 rm -f conftest.$ac_objext conftest$ac_exeext
8439 if { (ac_try="$ac_link"
8441 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8442 *) ac_try_echo
=$ac_try;;
8444 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8445 $as_echo "$ac_try_echo") >&5
8446 (eval "$ac_link") 2>conftest.er1
8448 grep -v '^ *+' conftest.er1
>conftest.err
8450 cat conftest.err
>&5
8451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } && {
8453 test -z "$ac_c_werror_flag" ||
8454 test ! -s conftest.err
8455 } && test -s conftest
$ac_exeext && {
8456 test "$cross_compiling" = yes ||
8457 $as_test_x conftest
$ac_exeext
8459 ac_cv_search_com_err
=$ac_res
8461 $as_echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.
$ac_ext >&5
8467 rm -rf conftest.dSYM
8468 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8470 if test "${ac_cv_search_com_err+set}" = set; then
8474 if test "${ac_cv_search_com_err+set}" = set; then
8477 ac_cv_search_com_err
=no
8480 LIBS
=$ac_func_search_save_LIBS
8482 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8483 $as_echo "$ac_cv_search_com_err" >&6; }
8484 ac_res
=$ac_cv_search_com_err
8485 if test "$ac_res" != no
; then
8486 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8489 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8490 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8491 { (exit 1); exit 1; }; }
8494 { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8495 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
8496 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8497 $as_echo_n "(cached) " >&6
8499 ac_func_search_save_LIBS
=$LIBS
8500 cat >conftest.
$ac_ext <<_ACEOF
8503 cat confdefs.h
>>conftest.
$ac_ext
8504 cat >>conftest.
$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8507 /* Override any GCC internal prototype to avoid an error.
8508 Use char because int might match the return type of a GCC
8509 builtin and then its argument prototype would still apply. */
8513 char krb5_sendauth ();
8517 return krb5_sendauth ();
8522 for ac_lib
in '' krb5
'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8523 if test -z "$ac_lib"; then
8524 ac_res
="none required"
8527 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8529 rm -f conftest.
$ac_objext conftest
$ac_exeext
8530 if { (ac_try
="$ac_link"
8532 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8533 *) ac_try_echo=$ac_try;;
8535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8536 $as_echo "$ac_try_echo") >&5
8537 (eval "$ac_link") 2>conftest.er1
8539 grep -v '^ *+' conftest.er1 >conftest.err
8541 cat conftest.err >&5
8542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } && {
8544 test -z "$ac_c_werror_flag" ||
8545 test ! -s conftest.err
8546 } && test -s conftest$ac_exeext && {
8547 test "$cross_compiling" = yes ||
8548 $as_test_x conftest$ac_exeext
8550 ac_cv_search_krb5_sendauth=$ac_res
8552 $as_echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8558 rm -rf conftest.dSYM
8559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8561 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8565 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8568 ac_cv_search_krb5_sendauth=no
8571 LIBS=$ac_func_search_save_LIBS
8573 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8574 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
8575 ac_res=$ac_cv_search_krb5_sendauth
8576 if test "$ac_res" != no; then
8577 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8580 { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8581 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8582 { (exit 1); exit 1; }; }
8586 { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
8587 $as_echo_n "checking for library containing com_err... " >&6; }
8588 if test "${ac_cv_search_com_err+set}" = set; then
8589 $as_echo_n "(cached) " >&6
8591 ac_func_search_save_LIBS=$LIBS
8592 cat >conftest.$ac_ext <<_ACEOF
8595 cat confdefs.h >>conftest.$ac_ext
8596 cat >>conftest.$ac_ext <<_ACEOF
8597 /* end confdefs.h. */
8599 /* Override any GCC internal prototype to avoid an error.
8600 Use char because int might match the return type of a GCC
8601 builtin and then its argument prototype would still apply. */
8614 for ac_lib in '' 'comerr32 -lkrb5_32'; do
8615 if test -z "$ac_lib"; then
8616 ac_res="none required"
8619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8621 rm -f conftest.$ac_objext conftest$ac_exeext
8622 if { (ac_try="$ac_link"
8624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8625 *) ac_try_echo
=$ac_try;;
8627 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8628 $as_echo "$ac_try_echo") >&5
8629 (eval "$ac_link") 2>conftest.er1
8631 grep -v '^ *+' conftest.er1
>conftest.err
8633 cat conftest.err
>&5
8634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } && {
8636 test -z "$ac_c_werror_flag" ||
8637 test ! -s conftest.err
8638 } && test -s conftest
$ac_exeext && {
8639 test "$cross_compiling" = yes ||
8640 $as_test_x conftest
$ac_exeext
8642 ac_cv_search_com_err
=$ac_res
8644 $as_echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.
$ac_ext >&5
8650 rm -rf conftest.dSYM
8651 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8653 if test "${ac_cv_search_com_err+set}" = set; then
8657 if test "${ac_cv_search_com_err+set}" = set; then
8660 ac_cv_search_com_err
=no
8663 LIBS
=$ac_func_search_save_LIBS
8665 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8666 $as_echo "$ac_cv_search_com_err" >&6; }
8667 ac_res
=$ac_cv_search_com_err
8668 if test "$ac_res" != no
; then
8669 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8672 { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8673 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8674 { (exit 1); exit 1; }; }
8680 if test "$with_openssl" = yes ; then
8681 if test "$PORTNAME" != "win32"; then
8683 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
8684 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
8685 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
8686 $as_echo_n "(cached) " >&6
8688 ac_check_lib_save_LIBS
=$LIBS
8689 LIBS
="-lcrypto $LIBS"
8690 cat >conftest.
$ac_ext <<_ACEOF
8693 cat confdefs.h
>>conftest.
$ac_ext
8694 cat >>conftest.
$ac_ext <<_ACEOF
8695 /* end confdefs.h. */
8697 /* Override any GCC internal prototype to avoid an error.
8698 Use char because int might match the return type of a GCC
8699 builtin and then its argument prototype would still apply. */
8703 char CRYPTO_new_ex_data ();
8707 return CRYPTO_new_ex_data ();
8712 rm -f conftest.
$ac_objext conftest
$ac_exeext
8713 if { (ac_try
="$ac_link"
8715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8716 *) ac_try_echo=$ac_try;;
8718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8719 $as_echo "$ac_try_echo") >&5
8720 (eval "$ac_link") 2>conftest.er1
8722 grep -v '^ *+' conftest.er1 >conftest.err
8724 cat conftest.err >&5
8725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } && {
8727 test -z "$ac_c_werror_flag" ||
8728 test ! -s conftest.err
8729 } && test -s conftest$ac_exeext && {
8730 test "$cross_compiling" = yes ||
8731 $as_test_x conftest$ac_exeext
8733 ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8735 $as_echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8738 ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8741 rm -rf conftest.dSYM
8742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8743 conftest$ac_exeext conftest.$ac_ext
8744 LIBS=$ac_check_lib_save_LIBS
8746 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8747 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8748 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
8749 cat >>confdefs.h <<_ACEOF
8750 #define HAVE_LIBCRYPTO 1
8753 LIBS="-lcrypto $LIBS"
8756 { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8757 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8758 { (exit 1); exit 1; }; }
8762 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8763 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
8764 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8765 $as_echo_n "(cached) " >&6
8767 ac_check_lib_save_LIBS=$LIBS
8769 cat >conftest.$ac_ext <<_ACEOF
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h. */
8776 /* Override any GCC internal prototype to avoid an error.
8777 Use char because int might match the return type of a GCC
8778 builtin and then its argument prototype would still apply. */
8782 char SSL_library_init ();
8786 return SSL_library_init ();
8791 rm -f conftest.$ac_objext conftest$ac_exeext
8792 if { (ac_try="$ac_link"
8794 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8795 *) ac_try_echo
=$ac_try;;
8797 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8798 $as_echo "$ac_try_echo") >&5
8799 (eval "$ac_link") 2>conftest.er1
8801 grep -v '^ *+' conftest.er1
>conftest.err
8803 cat conftest.err
>&5
8804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } && {
8806 test -z "$ac_c_werror_flag" ||
8807 test ! -s conftest.err
8808 } && test -s conftest
$ac_exeext && {
8809 test "$cross_compiling" = yes ||
8810 $as_test_x conftest
$ac_exeext
8812 ac_cv_lib_ssl_SSL_library_init
=yes
8814 $as_echo "$as_me: failed program was:" >&5
8815 sed 's/^/| /' conftest.
$ac_ext >&5
8817 ac_cv_lib_ssl_SSL_library_init
=no
8820 rm -rf conftest.dSYM
8821 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8822 conftest
$ac_exeext conftest.
$ac_ext
8823 LIBS
=$ac_check_lib_save_LIBS
8825 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8826 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
8827 if test "x$ac_cv_lib_ssl_SSL_library_init" = x
""yes; then
8828 cat >>confdefs.h
<<_ACEOF
8829 #define HAVE_LIBSSL 1
8835 { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8836 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8837 { (exit 1); exit 1; }; }
8842 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8843 $as_echo_n "checking for CRYPTO_new_ex_data in -leay32... " >&6; }
8844 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8845 $as_echo_n "(cached) " >&6
8847 ac_check_lib_save_LIBS
=$LIBS
8848 LIBS
="-leay32 $LIBS"
8849 cat >conftest.
$ac_ext <<_ACEOF
8852 cat confdefs.h
>>conftest.
$ac_ext
8853 cat >>conftest.
$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8856 /* Override any GCC internal prototype to avoid an error.
8857 Use char because int might match the return type of a GCC
8858 builtin and then its argument prototype would still apply. */
8862 char CRYPTO_new_ex_data ();
8866 return CRYPTO_new_ex_data ();
8871 rm -f conftest.
$ac_objext conftest
$ac_exeext
8872 if { (ac_try
="$ac_link"
8874 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8875 *) ac_try_echo=$ac_try;;
8877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8878 $as_echo "$ac_try_echo") >&5
8879 (eval "$ac_link") 2>conftest.er1
8881 grep -v '^ *+' conftest.er1 >conftest.err
8883 cat conftest.err >&5
8884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } && {
8886 test -z "$ac_c_werror_flag" ||
8887 test ! -s conftest.err
8888 } && test -s conftest$ac_exeext && {
8889 test "$cross_compiling" = yes ||
8890 $as_test_x conftest$ac_exeext
8892 ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8894 $as_echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8897 ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8900 rm -rf conftest.dSYM
8901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8902 conftest$ac_exeext conftest.$ac_ext
8903 LIBS=$ac_check_lib_save_LIBS
8905 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8906 $as_echo "$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8907 if test "x$ac_cv_lib_eay32_CRYPTO_new_ex_data" = x""yes; then
8908 cat >>confdefs.h <<_ACEOF
8909 #define HAVE_LIBEAY32 1
8912 LIBS="-leay32 $LIBS"
8915 { { $as_echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8916 $as_echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8917 { (exit 1); exit 1; }; }
8921 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8922 $as_echo_n "checking for SSL_library_init in -lssleay32... " >&6; }
8923 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8924 $as_echo_n "(cached) " >&6
8926 ac_check_lib_save_LIBS=$LIBS
8927 LIBS="-lssleay32 $LIBS"
8928 cat >conftest.$ac_ext <<_ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h. */
8935 /* Override any GCC internal prototype to avoid an error.
8936 Use char because int might match the return type of a GCC
8937 builtin and then its argument prototype would still apply. */
8941 char SSL_library_init ();
8945 return SSL_library_init ();
8950 rm -f conftest.$ac_objext conftest$ac_exeext
8951 if { (ac_try="$ac_link"
8953 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8954 *) ac_try_echo
=$ac_try;;
8956 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8957 $as_echo "$ac_try_echo") >&5
8958 (eval "$ac_link") 2>conftest.er1
8960 grep -v '^ *+' conftest.er1
>conftest.err
8962 cat conftest.err
>&5
8963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); } && {
8965 test -z "$ac_c_werror_flag" ||
8966 test ! -s conftest.err
8967 } && test -s conftest
$ac_exeext && {
8968 test "$cross_compiling" = yes ||
8969 $as_test_x conftest
$ac_exeext
8971 ac_cv_lib_ssleay32_SSL_library_init
=yes
8973 $as_echo "$as_me: failed program was:" >&5
8974 sed 's/^/| /' conftest.
$ac_ext >&5
8976 ac_cv_lib_ssleay32_SSL_library_init
=no
8979 rm -rf conftest.dSYM
8980 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8981 conftest
$ac_exeext conftest.
$ac_ext
8982 LIBS
=$ac_check_lib_save_LIBS
8984 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8985 $as_echo "$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8986 if test "x$ac_cv_lib_ssleay32_SSL_library_init" = x
""yes; then
8987 cat >>confdefs.h
<<_ACEOF
8988 #define HAVE_LIBSSLEAY32 1
8991 LIBS
="-lssleay32 $LIBS"
8994 { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8995 $as_echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8996 { (exit 1); exit 1; }; }
9002 if test "$with_pam" = yes ; then
9004 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9005 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9006 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9007 $as_echo_n "(cached) " >&6
9009 ac_check_lib_save_LIBS
=$LIBS
9011 cat >conftest.
$ac_ext <<_ACEOF
9014 cat confdefs.h
>>conftest.
$ac_ext
9015 cat >>conftest.
$ac_ext <<_ACEOF
9016 /* end confdefs.h. */
9018 /* Override any GCC internal prototype to avoid an error.
9019 Use char because int might match the return type of a GCC
9020 builtin and then its argument prototype would still apply. */
9028 return pam_start ();
9033 rm -f conftest.
$ac_objext conftest
$ac_exeext
9034 if { (ac_try
="$ac_link"
9036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9037 *) ac_try_echo=$ac_try;;
9039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9040 $as_echo "$ac_try_echo") >&5
9041 (eval "$ac_link") 2>conftest.er1
9043 grep -v '^ *+' conftest.er1 >conftest.err
9045 cat conftest.err >&5
9046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); } && {
9048 test -z "$ac_c_werror_flag" ||
9049 test ! -s conftest.err
9050 } && test -s conftest$ac_exeext && {
9051 test "$cross_compiling" = yes ||
9052 $as_test_x conftest$ac_exeext
9054 ac_cv_lib_pam_pam_start=yes
9056 $as_echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9059 ac_cv_lib_pam_pam_start=no
9062 rm -rf conftest.dSYM
9063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9064 conftest$ac_exeext conftest.$ac_ext
9065 LIBS=$ac_check_lib_save_LIBS
9067 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9068 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9069 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9070 cat >>confdefs.h <<_ACEOF
9071 #define HAVE_LIBPAM 1
9077 { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9078 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9079 { (exit 1); exit 1; }; }
9084 if test "$with_libxml" = yes ; then
9086 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9087 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9088 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9089 $as_echo_n "(cached) " >&6
9091 ac_check_lib_save_LIBS=$LIBS
9093 cat >conftest.$ac_ext <<_ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9100 /* Override any GCC internal prototype to avoid an error.
9101 Use char because int might match the return type of a GCC
9102 builtin and then its argument prototype would still apply. */
9106 char xmlSaveToBuffer ();
9110 return xmlSaveToBuffer ();
9115 rm -f conftest.$ac_objext conftest$ac_exeext
9116 if { (ac_try="$ac_link"
9118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9119 *) ac_try_echo
=$ac_try;;
9121 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9122 $as_echo "$ac_try_echo") >&5
9123 (eval "$ac_link") 2>conftest.er1
9125 grep -v '^ *+' conftest.er1
>conftest.err
9127 cat conftest.err
>&5
9128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } && {
9130 test -z "$ac_c_werror_flag" ||
9131 test ! -s conftest.err
9132 } && test -s conftest
$ac_exeext && {
9133 test "$cross_compiling" = yes ||
9134 $as_test_x conftest
$ac_exeext
9136 ac_cv_lib_xml2_xmlSaveToBuffer
=yes
9138 $as_echo "$as_me: failed program was:" >&5
9139 sed 's/^/| /' conftest.
$ac_ext >&5
9141 ac_cv_lib_xml2_xmlSaveToBuffer
=no
9144 rm -rf conftest.dSYM
9145 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9146 conftest
$ac_exeext conftest.
$ac_ext
9147 LIBS
=$ac_check_lib_save_LIBS
9149 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9150 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9151 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x
""yes; then
9152 cat >>confdefs.h
<<_ACEOF
9153 #define HAVE_LIBXML2 1
9159 { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9160 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9161 { (exit 1); exit 1; }; }
9166 if test "$with_libxslt" = yes ; then
9168 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9169 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9170 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9171 $as_echo_n "(cached) " >&6
9173 ac_check_lib_save_LIBS
=$LIBS
9175 cat >conftest.
$ac_ext <<_ACEOF
9178 cat confdefs.h
>>conftest.
$ac_ext
9179 cat >>conftest.
$ac_ext <<_ACEOF
9180 /* end confdefs.h. */
9182 /* Override any GCC internal prototype to avoid an error.
9183 Use char because int might match the return type of a GCC
9184 builtin and then its argument prototype would still apply. */
9188 char xsltCleanupGlobals ();
9192 return xsltCleanupGlobals ();
9197 rm -f conftest.
$ac_objext conftest
$ac_exeext
9198 if { (ac_try
="$ac_link"
9200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9201 *) ac_try_echo=$ac_try;;
9203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9204 $as_echo "$ac_try_echo") >&5
9205 (eval "$ac_link") 2>conftest.er1
9207 grep -v '^ *+' conftest.er1 >conftest.err
9209 cat conftest.err >&5
9210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); } && {
9212 test -z "$ac_c_werror_flag" ||
9213 test ! -s conftest.err
9214 } && test -s conftest$ac_exeext && {
9215 test "$cross_compiling" = yes ||
9216 $as_test_x conftest$ac_exeext
9218 ac_cv_lib_xslt_xsltCleanupGlobals=yes
9220 $as_echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9223 ac_cv_lib_xslt_xsltCleanupGlobals=no
9226 rm -rf conftest.dSYM
9227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9228 conftest$ac_exeext conftest.$ac_ext
9229 LIBS=$ac_check_lib_save_LIBS
9231 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9232 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9233 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
9234 cat >>confdefs.h <<_ACEOF
9235 #define HAVE_LIBXSLT 1
9241 { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9242 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9243 { (exit 1); exit 1; }; }
9248 # for contrib/uuid-ossp
9249 if test "$with_ossp_uuid" = yes ; then
9250 { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9251 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
9252 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9253 $as_echo_n "(cached) " >&6
9255 ac_check_lib_save_LIBS=$LIBS
9256 LIBS="-lossp-uuid $LIBS"
9257 cat >conftest.$ac_ext <<_ACEOF
9260 cat confdefs.h >>conftest.$ac_ext
9261 cat >>conftest.$ac_ext <<_ACEOF
9262 /* end confdefs.h. */
9264 /* Override any GCC internal prototype to avoid an error.
9265 Use char because int might match the return type of a GCC
9266 builtin and then its argument prototype would still apply. */
9270 char uuid_export ();
9274 return uuid_export ();
9279 rm -f conftest.$ac_objext conftest$ac_exeext
9280 if { (ac_try="$ac_link"
9282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9283 *) ac_try_echo
=$ac_try;;
9285 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9286 $as_echo "$ac_try_echo") >&5
9287 (eval "$ac_link") 2>conftest.er1
9289 grep -v '^ *+' conftest.er1
>conftest.err
9291 cat conftest.err
>&5
9292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); } && {
9294 test -z "$ac_c_werror_flag" ||
9295 test ! -s conftest.err
9296 } && test -s conftest
$ac_exeext && {
9297 test "$cross_compiling" = yes ||
9298 $as_test_x conftest
$ac_exeext
9300 ac_cv_lib_ossp_uuid_uuid_export
=yes
9302 $as_echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.
$ac_ext >&5
9305 ac_cv_lib_ossp_uuid_uuid_export
=no
9308 rm -rf conftest.dSYM
9309 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9310 conftest
$ac_exeext conftest.
$ac_ext
9311 LIBS
=$ac_check_lib_save_LIBS
9313 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9314 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9315 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x
""yes; then
9316 OSSP_UUID_LIBS
="-lossp-uuid"
9318 { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9319 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
9320 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9321 $as_echo_n "(cached) " >&6
9323 ac_check_lib_save_LIBS
=$LIBS
9325 cat >conftest.
$ac_ext <<_ACEOF
9328 cat confdefs.h
>>conftest.
$ac_ext
9329 cat >>conftest.
$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9332 /* Override any GCC internal prototype to avoid an error.
9333 Use char because int might match the return type of a GCC
9334 builtin and then its argument prototype would still apply. */
9338 char uuid_export ();
9342 return uuid_export ();
9347 rm -f conftest.
$ac_objext conftest
$ac_exeext
9348 if { (ac_try
="$ac_link"
9350 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9351 *) ac_try_echo=$ac_try;;
9353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9354 $as_echo "$ac_try_echo") >&5
9355 (eval "$ac_link") 2>conftest.er1
9357 grep -v '^ *+' conftest.er1 >conftest.err
9359 cat conftest.err >&5
9360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } && {
9362 test -z "$ac_c_werror_flag" ||
9363 test ! -s conftest.err
9364 } && test -s conftest$ac_exeext && {
9365 test "$cross_compiling" = yes ||
9366 $as_test_x conftest$ac_exeext
9368 ac_cv_lib_uuid_uuid_export=yes
9370 $as_echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.$ac_ext >&5
9373 ac_cv_lib_uuid_uuid_export=no
9376 rm -rf conftest.dSYM
9377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9378 conftest$ac_exeext conftest.$ac_ext
9379 LIBS=$ac_check_lib_save_LIBS
9381 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9382 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
9383 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
9384 OSSP_UUID_LIBS="-luuid"
9386 { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9387 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9388 { (exit 1); exit 1; }; }
9401 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9402 $as_echo_n "checking for ANSI C header files... " >&6; }
9403 if test "${ac_cv_header_stdc+set}" = set; then
9404 $as_echo_n "(cached) " >&6
9406 cat >conftest.$ac_ext <<_ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9425 rm -f conftest.$ac_objext
9426 if { (ac_try="$ac_compile"
9428 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9429 *) ac_try_echo
=$ac_try;;
9431 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9432 $as_echo "$ac_try_echo") >&5
9433 (eval "$ac_compile") 2>conftest.er1
9435 grep -v '^ *+' conftest.er1
>conftest.err
9437 cat conftest.err
>&5
9438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } && {
9440 test -z "$ac_c_werror_flag" ||
9441 test ! -s conftest.err
9442 } && test -s conftest.
$ac_objext; then
9443 ac_cv_header_stdc
=yes
9445 $as_echo "$as_me: failed program was:" >&5
9446 sed 's/^/| /' conftest.
$ac_ext >&5
9448 ac_cv_header_stdc
=no
9451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9453 if test $ac_cv_header_stdc = yes; then
9454 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9455 cat >conftest.
$ac_ext <<_ACEOF
9458 cat confdefs.h
>>conftest.
$ac_ext
9459 cat >>conftest.
$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9465 $EGREP "memchr" >/dev
/null
2>&1; then
9468 ac_cv_header_stdc
=no
9474 if test $ac_cv_header_stdc = yes; then
9475 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9476 cat >conftest.
$ac_ext <<_ACEOF
9479 cat confdefs.h
>>conftest.
$ac_ext
9480 cat >>conftest.
$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9486 $EGREP "free" >/dev
/null
2>&1; then
9489 ac_cv_header_stdc
=no
9495 if test $ac_cv_header_stdc = yes; then
9496 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9497 if test "$cross_compiling" = yes; then
9500 cat >conftest.
$ac_ext <<_ACEOF
9503 cat confdefs.h
>>conftest.
$ac_ext
9504 cat >>conftest.
$ac_ext <<_ACEOF
9505 /* end confdefs.h. */
9508 #if ((' ' & 0x0FF) == 0x020)
9509 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9510 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9512 # define ISLOWER(c) \
9513 (('a' <= (c) && (c) <= 'i') \
9514 || ('j' <= (c) && (c) <= 'r') \
9515 || ('s' <= (c) && (c) <= 'z'))
9516 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9519 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9524 for (i = 0; i < 256; i++)
9525 if (XOR (islower (i), ISLOWER (i))
9526 || toupper (i) != TOUPPER (i))
9531 rm -f conftest
$ac_exeext
9532 if { (ac_try
="$ac_link"
9534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9535 *) ac_try_echo=$ac_try;;
9537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9538 $as_echo "$ac_try_echo") >&5
9539 (eval "$ac_link") 2>&5
9541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9543 { (case "(($ac_try" in
9544 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9545 *) ac_try_echo
=$ac_try;;
9547 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9548 $as_echo "$ac_try_echo") >&5
9549 (eval "$ac_try") 2>&5
9551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; }; then
9555 $as_echo "$as_me: program exited with status $ac_status" >&5
9556 $as_echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.
$ac_ext >&5
9560 ac_cv_header_stdc
=no
9562 rm -rf conftest.dSYM
9563 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9569 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9570 $as_echo "$ac_cv_header_stdc" >&6; }
9571 if test $ac_cv_header_stdc = yes; then
9573 cat >>confdefs.h
<<\_ACEOF
9574 #define STDC_HEADERS 1
9579 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9589 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
9590 inttypes.h stdint.h unistd.h
9592 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9593 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9594 $as_echo_n "checking for $ac_header... " >&6; }
9595 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9596 $as_echo_n "(cached) " >&6
9598 cat >conftest.
$ac_ext <<_ACEOF
9601 cat confdefs.h
>>conftest.
$ac_ext
9602 cat >>conftest.
$ac_ext <<_ACEOF
9603 /* end confdefs.h. */
9604 $ac_includes_default
9606 #include <$ac_header>
9608 rm -f conftest.
$ac_objext
9609 if { (ac_try
="$ac_compile"
9611 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9612 *) ac_try_echo=$ac_try;;
9614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9615 $as_echo "$ac_try_echo") >&5
9616 (eval "$ac_compile") 2>conftest.er1
9618 grep -v '^ *+' conftest.er1 >conftest.err
9620 cat conftest.err >&5
9621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } && {
9623 test -z "$ac_c_werror_flag" ||
9624 test ! -s conftest.err
9625 } && test -s conftest.$ac_objext; then
9626 eval "$as_ac_Header=yes"
9628 $as_echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9631 eval "$as_ac_Header=no"
9634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9636 ac_res=`eval 'as_val=${'$as_ac_Header'}
9637 $as_echo "$as_val"'`
9638 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9639 $as_echo "$ac_res" >&6; }
9640 as_val=`eval 'as_val=${'$as_ac_Header'}
9641 $as_echo "$as_val"'`
9642 if test "x$as_val" = x""yes; then
9643 cat >>confdefs.h <<_ACEOF
9644 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9682 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
9684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9686 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9687 $as_echo_n "checking for $ac_header... " >&6; }
9688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9689 $as_echo_n "(cached) " >&6
9691 ac_res=`eval 'as_val=${'$as_ac_Header'}
9692 $as_echo "$as_val"'`
9693 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9694 $as_echo "$ac_res" >&6; }
9696 # Is the header compilable?
9697 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9698 $as_echo_n "checking $ac_header usability... " >&6; }
9699 cat >conftest.$ac_ext <<_ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h. */
9705 $ac_includes_default
9706 #include <$ac_header>
9708 rm -f conftest.$ac_objext
9709 if { (ac_try="$ac_compile"
9711 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9712 *) ac_try_echo
=$ac_try;;
9714 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9715 $as_echo "$ac_try_echo") >&5
9716 (eval "$ac_compile") 2>conftest.er1
9718 grep -v '^ *+' conftest.er1
>conftest.err
9720 cat conftest.err
>&5
9721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); } && {
9723 test -z "$ac_c_werror_flag" ||
9724 test ! -s conftest.err
9725 } && test -s conftest.
$ac_objext; then
9726 ac_header_compiler
=yes
9728 $as_echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.
$ac_ext >&5
9731 ac_header_compiler
=no
9734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9735 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9736 $as_echo "$ac_header_compiler" >&6; }
9738 # Is the header present?
9739 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9740 $as_echo_n "checking $ac_header presence... " >&6; }
9741 cat >conftest.
$ac_ext <<_ACEOF
9744 cat confdefs.h
>>conftest.
$ac_ext
9745 cat >>conftest.
$ac_ext <<_ACEOF
9746 /* end confdefs.h. */
9747 #include <$ac_header>
9749 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9752 *) ac_try_echo=$ac_try;;
9754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9755 $as_echo "$ac_try_echo") >&5
9756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9758 grep -v '^ *+' conftest.er1 >conftest.err
9760 cat conftest.err >&5
9761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } >/dev/null && {
9763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9764 test ! -s conftest.err
9766 ac_header_preproc=yes
9768 $as_echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9771 ac_header_preproc=no
9774 rm -f conftest.err conftest.$ac_ext
9775 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9776 $as_echo "$ac_header_preproc" >&6; }
9778 # So? What about this header?
9779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9782 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9784 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9785 ac_header_preproc=yes
9788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9789 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9791 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9793 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9795 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9797 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9799 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9801 ## ---------------------------------------- ##
9802 ## Report this to pgsql-bugs@postgresql.org ##
9803 ## ---------------------------------------- ##
9805 ) | sed "s/^/$as_me: WARNING: /" >&2
9808 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9809 $as_echo_n "checking for $ac_header... " >&6; }
9810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9811 $as_echo_n "(cached) " >&6
9813 eval "$as_ac_Header=\$ac_header_preproc"
9815 ac_res=`eval 'as_val=${'$as_ac_Header'}
9816 $as_echo "$as_val"'`
9817 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9818 $as_echo "$ac_res" >&6; }
9821 as_val=`eval 'as_val=${'$as_ac_Header'}
9822 $as_echo "$as_val"'`
9823 if test "x$as_val" = x""yes; then
9824 cat >>confdefs.h <<_ACEOF
9825 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9833 # On BSD, cpp test for net/if.h will fail unless sys/socket.h
9834 # is included first.
9836 for ac_header in net/if.h
9838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9839 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9840 $as_echo_n "checking for $ac_header... " >&6; }
9841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9842 $as_echo_n "(cached) " >&6
9844 cat >conftest.$ac_ext <<_ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9850 $ac_includes_default
9851 #ifdef HAVE_SYS_SOCKET_H
9852 #include <sys/socket.h>
9856 #include <$ac_header>
9858 rm -f conftest.$ac_objext
9859 if { (ac_try="$ac_compile"
9861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9862 *) ac_try_echo
=$ac_try;;
9864 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9865 $as_echo "$ac_try_echo") >&5
9866 (eval "$ac_compile") 2>conftest.er1
9868 grep -v '^ *+' conftest.er1
>conftest.err
9870 cat conftest.err
>&5
9871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } && {
9873 test -z "$ac_c_werror_flag" ||
9874 test ! -s conftest.err
9875 } && test -s conftest.
$ac_objext; then
9876 eval "$as_ac_Header=yes"
9878 $as_echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.
$ac_ext >&5
9881 eval "$as_ac_Header=no"
9884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9886 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9887 $as_echo "$as_val"'`
9888 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9889 $as_echo "$ac_res" >&6; }
9890 as_val
=`eval 'as_val=${'$as_ac_Header'}
9891 $as_echo "$as_val"'`
9892 if test "x$as_val" = x
""yes; then
9893 cat >>confdefs.h
<<_ACEOF
9894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9902 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9903 # netinet/in.h is included first.
9905 for ac_header
in netinet
/in.h
9907 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9908 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9909 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9910 $as_echo_n "checking for $ac_header... " >&6; }
9911 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9912 $as_echo_n "(cached) " >&6
9914 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9915 $as_echo "$as_val"'`
9916 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9917 $as_echo "$ac_res" >&6; }
9919 # Is the header compilable?
9920 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9921 $as_echo_n "checking $ac_header usability... " >&6; }
9922 cat >conftest.
$ac_ext <<_ACEOF
9925 cat confdefs.h
>>conftest.
$ac_ext
9926 cat >>conftest.
$ac_ext <<_ACEOF
9927 /* end confdefs.h. */
9928 $ac_includes_default
9929 #include <$ac_header>
9931 rm -f conftest.
$ac_objext
9932 if { (ac_try
="$ac_compile"
9934 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9935 *) ac_try_echo=$ac_try;;
9937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9938 $as_echo "$ac_try_echo") >&5
9939 (eval "$ac_compile") 2>conftest.er1
9941 grep -v '^ *+' conftest.er1 >conftest.err
9943 cat conftest.err >&5
9944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } && {
9946 test -z "$ac_c_werror_flag" ||
9947 test ! -s conftest.err
9948 } && test -s conftest.$ac_objext; then
9949 ac_header_compiler=yes
9951 $as_echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9954 ac_header_compiler=no
9957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9958 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9959 $as_echo "$ac_header_compiler" >&6; }
9961 # Is the header present?
9962 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9963 $as_echo_n "checking $ac_header presence... " >&6; }
9964 cat >conftest.$ac_ext <<_ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9970 #include <$ac_header>
9972 if { (ac_try="$ac_cpp conftest.$ac_ext"
9974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9975 *) ac_try_echo
=$ac_try;;
9977 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9978 $as_echo "$ac_try_echo") >&5
9979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9981 grep -v '^ *+' conftest.er1
>conftest.err
9983 cat conftest.err
>&5
9984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); } >/dev
/null
&& {
9986 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9987 test ! -s conftest.err
9989 ac_header_preproc
=yes
9991 $as_echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.
$ac_ext >&5
9994 ac_header_preproc
=no
9997 rm -f conftest.err conftest.
$ac_ext
9998 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9999 $as_echo "$ac_header_preproc" >&6; }
10001 # So? What about this header?
10002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10005 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10007 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10008 ac_header_preproc
=yes
10011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10012 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10014 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10016 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10018 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10020 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10022 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10024 ## ---------------------------------------- ##
10025 ## Report this to pgsql-bugs@postgresql.org ##
10026 ## ---------------------------------------- ##
10028 ) |
sed "s/^/$as_me: WARNING: /" >&2
10031 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10032 $as_echo_n "checking for $ac_header... " >&6; }
10033 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10034 $as_echo_n "(cached) " >&6
10036 eval "$as_ac_Header=\$ac_header_preproc"
10038 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10039 $as_echo "$as_val"'`
10040 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10041 $as_echo "$ac_res" >&6; }
10044 as_val
=`eval 'as_val=${'$as_ac_Header'}
10045 $as_echo "$as_val"'`
10046 if test "x$as_val" = x
""yes; then
10047 cat >>confdefs.h
<<_ACEOF
10048 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10056 for ac_header
in netinet
/tcp.h
10058 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10059 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10060 $as_echo_n "checking for $ac_header... " >&6; }
10061 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10062 $as_echo_n "(cached) " >&6
10064 cat >conftest.
$ac_ext <<_ACEOF
10067 cat confdefs.h
>>conftest.
$ac_ext
10068 cat >>conftest.
$ac_ext <<_ACEOF
10069 /* end confdefs.h. */
10070 $ac_includes_default
10071 #ifdef HAVE_NETINET_IN_H
10072 #include <netinet/in.h>
10076 #include <$ac_header>
10078 rm -f conftest.
$ac_objext
10079 if { (ac_try
="$ac_compile"
10080 case "(($ac_try" in
10081 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10082 *) ac_try_echo=$ac_try;;
10084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10085 $as_echo "$ac_try_echo") >&5
10086 (eval "$ac_compile") 2>conftest.er1
10088 grep -v '^ *+' conftest.er1 >conftest.err
10090 cat conftest.err >&5
10091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } && {
10093 test -z "$ac_c_werror_flag" ||
10094 test ! -s conftest.err
10095 } && test -s conftest.$ac_objext; then
10096 eval "$as_ac_Header=yes"
10098 $as_echo "$as_me: failed program was:" >&5
10099 sed 's/^/| /' conftest.$ac_ext >&5
10101 eval "$as_ac_Header=no"
10104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10106 ac_res=`eval 'as_val=${'$as_ac_Header'}
10107 $as_echo "$as_val"'`
10108 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10109 $as_echo "$ac_res" >&6; }
10110 as_val=`eval 'as_val=${'$as_ac_Header'}
10111 $as_echo "$as_val"'`
10112 if test "x$as_val" = x""yes; then
10113 cat >>confdefs.h <<_ACEOF
10114 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10122 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10124 for ac_header in readline/readline.h
10126 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10128 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10129 $as_echo_n "checking for $ac_header... " >&6; }
10130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10131 $as_echo_n "(cached) " >&6
10133 ac_res=`eval 'as_val=${'$as_ac_Header'}
10134 $as_echo "$as_val"'`
10135 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10136 $as_echo "$ac_res" >&6; }
10138 # Is the header compilable?
10139 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10140 $as_echo_n "checking $ac_header usability... " >&6; }
10141 cat >conftest.$ac_ext <<_ACEOF
10144 cat confdefs.h >>conftest.$ac_ext
10145 cat >>conftest.$ac_ext <<_ACEOF
10146 /* end confdefs.h. */
10147 $ac_includes_default
10148 #include <$ac_header>
10150 rm -f conftest.$ac_objext
10151 if { (ac_try="$ac_compile"
10152 case "(($ac_try" in
10153 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10154 *) ac_try_echo
=$ac_try;;
10156 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10157 $as_echo "$ac_try_echo") >&5
10158 (eval "$ac_compile") 2>conftest.er1
10160 grep -v '^ *+' conftest.er1
>conftest.err
10162 cat conftest.err
>&5
10163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); } && {
10165 test -z "$ac_c_werror_flag" ||
10166 test ! -s conftest.err
10167 } && test -s conftest.
$ac_objext; then
10168 ac_header_compiler
=yes
10170 $as_echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.
$ac_ext >&5
10173 ac_header_compiler
=no
10176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10177 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10178 $as_echo "$ac_header_compiler" >&6; }
10180 # Is the header present?
10181 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10182 $as_echo_n "checking $ac_header presence... " >&6; }
10183 cat >conftest.
$ac_ext <<_ACEOF
10186 cat confdefs.h
>>conftest.
$ac_ext
10187 cat >>conftest.
$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10189 #include <$ac_header>
10191 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10192 case "(($ac_try" in
10193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10194 *) ac_try_echo=$ac_try;;
10196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10197 $as_echo "$ac_try_echo") >&5
10198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10200 grep -v '^ *+' conftest.er1 >conftest.err
10202 cat conftest.err >&5
10203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } >/dev/null && {
10205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10206 test ! -s conftest.err
10208 ac_header_preproc=yes
10210 $as_echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10213 ac_header_preproc=no
10216 rm -f conftest.err conftest.$ac_ext
10217 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10218 $as_echo "$ac_header_preproc" >&6; }
10220 # So? What about this header?
10221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10224 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10226 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10227 ac_header_preproc=yes
10230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10231 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10233 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10235 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10237 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10238 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10239 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10241 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10243 ## ---------------------------------------- ##
10244 ## Report this to pgsql-bugs@postgresql.org ##
10245 ## ---------------------------------------- ##
10247 ) | sed "s/^/$as_me: WARNING: /" >&2
10250 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10251 $as_echo_n "checking for $ac_header... " >&6; }
10252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10253 $as_echo_n "(cached) " >&6
10255 eval "$as_ac_Header=\$ac_header_preproc"
10257 ac_res=`eval 'as_val=${'$as_ac_Header'}
10258 $as_echo "$as_val"'`
10259 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10260 $as_echo "$ac_res" >&6; }
10263 as_val=`eval 'as_val=${'$as_ac_Header'}
10264 $as_echo "$as_val"'`
10265 if test "x$as_val" = x""yes; then
10266 cat >>confdefs.h <<_ACEOF
10267 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10272 for ac_header in readline.h
10274 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10276 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10277 $as_echo_n "checking for $ac_header... " >&6; }
10278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10279 $as_echo_n "(cached) " >&6
10281 ac_res=`eval 'as_val=${'$as_ac_Header'}
10282 $as_echo "$as_val"'`
10283 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10284 $as_echo "$ac_res" >&6; }
10286 # Is the header compilable?
10287 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10288 $as_echo_n "checking $ac_header usability... " >&6; }
10289 cat >conftest.$ac_ext <<_ACEOF
10292 cat confdefs.h >>conftest.$ac_ext
10293 cat >>conftest.$ac_ext <<_ACEOF
10294 /* end confdefs.h. */
10295 $ac_includes_default
10296 #include <$ac_header>
10298 rm -f conftest.$ac_objext
10299 if { (ac_try="$ac_compile"
10300 case "(($ac_try" in
10301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10302 *) ac_try_echo
=$ac_try;;
10304 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10305 $as_echo "$ac_try_echo") >&5
10306 (eval "$ac_compile") 2>conftest.er1
10308 grep -v '^ *+' conftest.er1
>conftest.err
10310 cat conftest.err
>&5
10311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); } && {
10313 test -z "$ac_c_werror_flag" ||
10314 test ! -s conftest.err
10315 } && test -s conftest.
$ac_objext; then
10316 ac_header_compiler
=yes
10318 $as_echo "$as_me: failed program was:" >&5
10319 sed 's/^/| /' conftest.
$ac_ext >&5
10321 ac_header_compiler
=no
10324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10325 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10326 $as_echo "$ac_header_compiler" >&6; }
10328 # Is the header present?
10329 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10330 $as_echo_n "checking $ac_header presence... " >&6; }
10331 cat >conftest.
$ac_ext <<_ACEOF
10334 cat confdefs.h
>>conftest.
$ac_ext
10335 cat >>conftest.
$ac_ext <<_ACEOF
10336 /* end confdefs.h. */
10337 #include <$ac_header>
10339 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10340 case "(($ac_try" in
10341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10342 *) ac_try_echo=$ac_try;;
10344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10345 $as_echo "$ac_try_echo") >&5
10346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10348 grep -v '^ *+' conftest.er1 >conftest.err
10350 cat conftest.err >&5
10351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); } >/dev/null && {
10353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10354 test ! -s conftest.err
10356 ac_header_preproc=yes
10358 $as_echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10361 ac_header_preproc=no
10364 rm -f conftest.err conftest.$ac_ext
10365 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10366 $as_echo "$ac_header_preproc" >&6; }
10368 # So? What about this header?
10369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10372 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10374 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10375 ac_header_preproc=yes
10378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10379 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10381 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10383 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10385 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10387 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10389 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10391 ## ---------------------------------------- ##
10392 ## Report this to pgsql-bugs@postgresql.org ##
10393 ## ---------------------------------------- ##
10395 ) | sed "s/^/$as_me: WARNING: /" >&2
10398 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10399 $as_echo_n "checking for $ac_header... " >&6; }
10400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10401 $as_echo_n "(cached) " >&6
10403 eval "$as_ac_Header=\$ac_header_preproc"
10405 ac_res=`eval 'as_val=${'$as_ac_Header'}
10406 $as_echo "$as_val"'`
10407 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10408 $as_echo "$ac_res" >&6; }
10411 as_val=`eval 'as_val=${'$as_ac_Header'}
10412 $as_echo "$as_val"'`
10413 if test "x$as_val" = x""yes; then
10414 cat >>confdefs.h <<_ACEOF
10415 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10419 { { $as_echo "$as_me:$LINENO: error: readline header not found
10420 If you have readline already installed, see config.log for details on the
10421 failure. It is possible the compiler isn't looking in the proper directory.
10422 Use --without-readline to disable readline support." >&5
10423 $as_echo "$as_me: error: readline header not found
10424 If you have readline already installed, see config.log for details on the
10425 failure. It is possible the compiler isn't looking in the proper directory.
10426 Use --without-readline to disable readline support." >&2;}
10427 { (exit 1); exit 1; }; }
10437 for ac_header in readline/history.h
10439 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10441 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10442 $as_echo_n "checking for $ac_header... " >&6; }
10443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10444 $as_echo_n "(cached) " >&6
10446 ac_res=`eval 'as_val=${'$as_ac_Header'}
10447 $as_echo "$as_val"'`
10448 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10449 $as_echo "$ac_res" >&6; }
10451 # Is the header compilable?
10452 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10453 $as_echo_n "checking $ac_header usability... " >&6; }
10454 cat >conftest.$ac_ext <<_ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h. */
10460 $ac_includes_default
10461 #include <$ac_header>
10463 rm -f conftest.$ac_objext
10464 if { (ac_try="$ac_compile"
10465 case "(($ac_try" in
10466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10467 *) ac_try_echo
=$ac_try;;
10469 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10470 $as_echo "$ac_try_echo") >&5
10471 (eval "$ac_compile") 2>conftest.er1
10473 grep -v '^ *+' conftest.er1
>conftest.err
10475 cat conftest.err
>&5
10476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } && {
10478 test -z "$ac_c_werror_flag" ||
10479 test ! -s conftest.err
10480 } && test -s conftest.
$ac_objext; then
10481 ac_header_compiler
=yes
10483 $as_echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.
$ac_ext >&5
10486 ac_header_compiler
=no
10489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10490 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10491 $as_echo "$ac_header_compiler" >&6; }
10493 # Is the header present?
10494 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10495 $as_echo_n "checking $ac_header presence... " >&6; }
10496 cat >conftest.
$ac_ext <<_ACEOF
10499 cat confdefs.h
>>conftest.
$ac_ext
10500 cat >>conftest.
$ac_ext <<_ACEOF
10501 /* end confdefs.h. */
10502 #include <$ac_header>
10504 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10505 case "(($ac_try" in
10506 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10507 *) ac_try_echo=$ac_try;;
10509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10510 $as_echo "$ac_try_echo") >&5
10511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10513 grep -v '^ *+' conftest.er1 >conftest.err
10515 cat conftest.err >&5
10516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } >/dev/null && {
10518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10519 test ! -s conftest.err
10521 ac_header_preproc=yes
10523 $as_echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10526 ac_header_preproc=no
10529 rm -f conftest.err conftest.$ac_ext
10530 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10531 $as_echo "$ac_header_preproc" >&6; }
10533 # So? What about this header?
10534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10537 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10539 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10540 ac_header_preproc=yes
10543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10544 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10545 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10546 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10548 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10550 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10552 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10554 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10556 ## ---------------------------------------- ##
10557 ## Report this to pgsql-bugs@postgresql.org ##
10558 ## ---------------------------------------- ##
10560 ) | sed "s/^/$as_me: WARNING: /" >&2
10563 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10564 $as_echo_n "checking for $ac_header... " >&6; }
10565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10566 $as_echo_n "(cached) " >&6
10568 eval "$as_ac_Header=\$ac_header_preproc"
10570 ac_res=`eval 'as_val=${'$as_ac_Header'}
10571 $as_echo "$as_val"'`
10572 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10573 $as_echo "$ac_res" >&6; }
10576 as_val=`eval 'as_val=${'$as_ac_Header'}
10577 $as_echo "$as_val"'`
10578 if test "x$as_val" = x""yes; then
10579 cat >>confdefs.h <<_ACEOF
10580 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10585 for ac_header in history.h
10587 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10589 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10590 $as_echo_n "checking for $ac_header... " >&6; }
10591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10592 $as_echo_n "(cached) " >&6
10594 ac_res=`eval 'as_val=${'$as_ac_Header'}
10595 $as_echo "$as_val"'`
10596 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10597 $as_echo "$ac_res" >&6; }
10599 # Is the header compilable?
10600 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10601 $as_echo_n "checking $ac_header usability... " >&6; }
10602 cat >conftest.$ac_ext <<_ACEOF
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h. */
10608 $ac_includes_default
10609 #include <$ac_header>
10611 rm -f conftest.$ac_objext
10612 if { (ac_try="$ac_compile"
10613 case "(($ac_try" in
10614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10615 *) ac_try_echo
=$ac_try;;
10617 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10618 $as_echo "$ac_try_echo") >&5
10619 (eval "$ac_compile") 2>conftest.er1
10621 grep -v '^ *+' conftest.er1
>conftest.err
10623 cat conftest.err
>&5
10624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } && {
10626 test -z "$ac_c_werror_flag" ||
10627 test ! -s conftest.err
10628 } && test -s conftest.
$ac_objext; then
10629 ac_header_compiler
=yes
10631 $as_echo "$as_me: failed program was:" >&5
10632 sed 's/^/| /' conftest.
$ac_ext >&5
10634 ac_header_compiler
=no
10637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10638 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10639 $as_echo "$ac_header_compiler" >&6; }
10641 # Is the header present?
10642 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10643 $as_echo_n "checking $ac_header presence... " >&6; }
10644 cat >conftest.
$ac_ext <<_ACEOF
10647 cat confdefs.h
>>conftest.
$ac_ext
10648 cat >>conftest.
$ac_ext <<_ACEOF
10649 /* end confdefs.h. */
10650 #include <$ac_header>
10652 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10653 case "(($ac_try" in
10654 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10658 $as_echo "$ac_try_echo") >&5
10659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10661 grep -v '^ *+' conftest.er1 >conftest.err
10663 cat conftest.err >&5
10664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } >/dev/null && {
10666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10667 test ! -s conftest.err
10669 ac_header_preproc=yes
10671 $as_echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10674 ac_header_preproc=no
10677 rm -f conftest.err conftest.$ac_ext
10678 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10679 $as_echo "$ac_header_preproc" >&6; }
10681 # So? What about this header?
10682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10685 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10687 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10688 ac_header_preproc=yes
10691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10692 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10694 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10696 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10698 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10700 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10702 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10704 ## ---------------------------------------- ##
10705 ## Report this to pgsql-bugs@postgresql.org ##
10706 ## ---------------------------------------- ##
10708 ) | sed "s/^/$as_me: WARNING: /" >&2
10711 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10712 $as_echo_n "checking for $ac_header... " >&6; }
10713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10714 $as_echo_n "(cached) " >&6
10716 eval "$as_ac_Header=\$ac_header_preproc"
10718 ac_res=`eval 'as_val=${'$as_ac_Header'}
10719 $as_echo "$as_val"'`
10720 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10721 $as_echo "$ac_res" >&6; }
10724 as_val=`eval 'as_val=${'$as_ac_Header'}
10725 $as_echo "$as_val"'`
10726 if test "x$as_val" = x""yes; then
10727 cat >>confdefs.h <<_ACEOF
10728 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10732 { { $as_echo "$as_me:$LINENO: error: history header not found
10733 If you have readline already installed, see config.log for details on the
10734 failure. It is possible the compiler isn't looking in the proper directory.
10735 Use --without-readline to disable readline support." >&5
10736 $as_echo "$as_me: error: history header not found
10737 If you have readline already installed, see config.log for details on the
10738 failure. It is possible the compiler isn't looking in the proper directory.
10739 Use --without-readline to disable readline support." >&2;}
10740 { (exit 1); exit 1; }; }
10751 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10752 # Some installations of libedit usurp /usr/include/readline/, which seems
10753 # bad practice, since in combined installations readline will have its headers
10754 # there. We might have to resort to AC_EGREP checks to make sure we found
10755 # the proper header...
10757 for ac_header in editline/readline.h
10759 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10761 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10762 $as_echo_n "checking for $ac_header... " >&6; }
10763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10764 $as_echo_n "(cached) " >&6
10766 ac_res=`eval 'as_val=${'$as_ac_Header'}
10767 $as_echo "$as_val"'`
10768 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10769 $as_echo "$ac_res" >&6; }
10771 # Is the header compilable?
10772 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10773 $as_echo_n "checking $ac_header usability... " >&6; }
10774 cat >conftest.$ac_ext <<_ACEOF
10777 cat confdefs.h >>conftest.$ac_ext
10778 cat >>conftest.$ac_ext <<_ACEOF
10779 /* end confdefs.h. */
10780 $ac_includes_default
10781 #include <$ac_header>
10783 rm -f conftest.$ac_objext
10784 if { (ac_try="$ac_compile"
10785 case "(($ac_try" in
10786 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10787 *) ac_try_echo
=$ac_try;;
10789 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10790 $as_echo "$ac_try_echo") >&5
10791 (eval "$ac_compile") 2>conftest.er1
10793 grep -v '^ *+' conftest.er1
>conftest.err
10795 cat conftest.err
>&5
10796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); } && {
10798 test -z "$ac_c_werror_flag" ||
10799 test ! -s conftest.err
10800 } && test -s conftest.
$ac_objext; then
10801 ac_header_compiler
=yes
10803 $as_echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.
$ac_ext >&5
10806 ac_header_compiler
=no
10809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10810 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10811 $as_echo "$ac_header_compiler" >&6; }
10813 # Is the header present?
10814 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10815 $as_echo_n "checking $ac_header presence... " >&6; }
10816 cat >conftest.
$ac_ext <<_ACEOF
10819 cat confdefs.h
>>conftest.
$ac_ext
10820 cat >>conftest.
$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10822 #include <$ac_header>
10824 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10825 case "(($ac_try" in
10826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10827 *) ac_try_echo=$ac_try;;
10829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10830 $as_echo "$ac_try_echo") >&5
10831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10833 grep -v '^ *+' conftest.er1 >conftest.err
10835 cat conftest.err >&5
10836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } >/dev/null && {
10838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10839 test ! -s conftest.err
10841 ac_header_preproc=yes
10843 $as_echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.$ac_ext >&5
10846 ac_header_preproc=no
10849 rm -f conftest.err conftest.$ac_ext
10850 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10851 $as_echo "$ac_header_preproc" >&6; }
10853 # So? What about this header?
10854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10857 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10859 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10860 ac_header_preproc=yes
10863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10864 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10866 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10868 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10870 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10872 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10874 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10876 ## ---------------------------------------- ##
10877 ## Report this to pgsql-bugs@postgresql.org ##
10878 ## ---------------------------------------- ##
10880 ) | sed "s/^/$as_me: WARNING: /" >&2
10883 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10884 $as_echo_n "checking for $ac_header... " >&6; }
10885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10886 $as_echo_n "(cached) " >&6
10888 eval "$as_ac_Header=\$ac_header_preproc"
10890 ac_res=`eval 'as_val=${'$as_ac_Header'}
10891 $as_echo "$as_val"'`
10892 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10893 $as_echo "$ac_res" >&6; }
10896 as_val=`eval 'as_val=${'$as_ac_Header'}
10897 $as_echo "$as_val"'`
10898 if test "x$as_val" = x""yes; then
10899 cat >>confdefs.h <<_ACEOF
10900 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10905 for ac_header in readline.h
10907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10909 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10910 $as_echo_n "checking for $ac_header... " >&6; }
10911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10912 $as_echo_n "(cached) " >&6
10914 ac_res=`eval 'as_val=${'$as_ac_Header'}
10915 $as_echo "$as_val"'`
10916 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10917 $as_echo "$ac_res" >&6; }
10919 # Is the header compilable?
10920 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10921 $as_echo_n "checking $ac_header usability... " >&6; }
10922 cat >conftest.$ac_ext <<_ACEOF
10925 cat confdefs.h >>conftest.$ac_ext
10926 cat >>conftest.$ac_ext <<_ACEOF
10927 /* end confdefs.h. */
10928 $ac_includes_default
10929 #include <$ac_header>
10931 rm -f conftest.$ac_objext
10932 if { (ac_try="$ac_compile"
10933 case "(($ac_try" in
10934 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10935 *) ac_try_echo
=$ac_try;;
10937 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10938 $as_echo "$ac_try_echo") >&5
10939 (eval "$ac_compile") 2>conftest.er1
10941 grep -v '^ *+' conftest.er1
>conftest.err
10943 cat conftest.err
>&5
10944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); } && {
10946 test -z "$ac_c_werror_flag" ||
10947 test ! -s conftest.err
10948 } && test -s conftest.
$ac_objext; then
10949 ac_header_compiler
=yes
10951 $as_echo "$as_me: failed program was:" >&5
10952 sed 's/^/| /' conftest.
$ac_ext >&5
10954 ac_header_compiler
=no
10957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10958 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10959 $as_echo "$ac_header_compiler" >&6; }
10961 # Is the header present?
10962 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10963 $as_echo_n "checking $ac_header presence... " >&6; }
10964 cat >conftest.
$ac_ext <<_ACEOF
10967 cat confdefs.h
>>conftest.
$ac_ext
10968 cat >>conftest.
$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10970 #include <$ac_header>
10972 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10973 case "(($ac_try" in
10974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10975 *) ac_try_echo=$ac_try;;
10977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10978 $as_echo "$ac_try_echo") >&5
10979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10981 grep -v '^ *+' conftest.er1 >conftest.err
10983 cat conftest.err >&5
10984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } >/dev/null && {
10986 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10987 test ! -s conftest.err
10989 ac_header_preproc=yes
10991 $as_echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10994 ac_header_preproc=no
10997 rm -f conftest.err conftest.$ac_ext
10998 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10999 $as_echo "$ac_header_preproc" >&6; }
11001 # So? What about this header?
11002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11005 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11007 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11008 ac_header_preproc=yes
11011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11012 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11014 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11016 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11018 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11020 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11022 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11024 ## ---------------------------------------- ##
11025 ## Report this to pgsql-bugs@postgresql.org ##
11026 ## ---------------------------------------- ##
11028 ) | sed "s/^/$as_me: WARNING: /" >&2
11031 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11032 $as_echo_n "checking for $ac_header... " >&6; }
11033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11034 $as_echo_n "(cached) " >&6
11036 eval "$as_ac_Header=\$ac_header_preproc"
11038 ac_res=`eval 'as_val=${'$as_ac_Header'}
11039 $as_echo "$as_val"'`
11040 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11041 $as_echo "$ac_res" >&6; }
11044 as_val=`eval 'as_val=${'$as_ac_Header'}
11045 $as_echo "$as_val"'`
11046 if test "x$as_val" = x""yes; then
11047 cat >>confdefs.h <<_ACEOF
11048 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11053 for ac_header in readline/readline.h
11055 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11057 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11058 $as_echo_n "checking for $ac_header... " >&6; }
11059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11060 $as_echo_n "(cached) " >&6
11062 ac_res=`eval 'as_val=${'$as_ac_Header'}
11063 $as_echo "$as_val"'`
11064 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11065 $as_echo "$ac_res" >&6; }
11067 # Is the header compilable?
11068 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11069 $as_echo_n "checking $ac_header usability... " >&6; }
11070 cat >conftest.$ac_ext <<_ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h. */
11076 $ac_includes_default
11077 #include <$ac_header>
11079 rm -f conftest.$ac_objext
11080 if { (ac_try="$ac_compile"
11081 case "(($ac_try" in
11082 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11083 *) ac_try_echo
=$ac_try;;
11085 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11086 $as_echo "$ac_try_echo") >&5
11087 (eval "$ac_compile") 2>conftest.er1
11089 grep -v '^ *+' conftest.er1
>conftest.err
11091 cat conftest.err
>&5
11092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } && {
11094 test -z "$ac_c_werror_flag" ||
11095 test ! -s conftest.err
11096 } && test -s conftest.
$ac_objext; then
11097 ac_header_compiler
=yes
11099 $as_echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.
$ac_ext >&5
11102 ac_header_compiler
=no
11105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11106 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11107 $as_echo "$ac_header_compiler" >&6; }
11109 # Is the header present?
11110 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11111 $as_echo_n "checking $ac_header presence... " >&6; }
11112 cat >conftest.
$ac_ext <<_ACEOF
11115 cat confdefs.h
>>conftest.
$ac_ext
11116 cat >>conftest.
$ac_ext <<_ACEOF
11117 /* end confdefs.h. */
11118 #include <$ac_header>
11120 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11121 case "(($ac_try" in
11122 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11126 $as_echo "$ac_try_echo") >&5
11127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11129 grep -v '^ *+' conftest.er1 >conftest.err
11131 cat conftest.err >&5
11132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } >/dev/null && {
11134 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11135 test ! -s conftest.err
11137 ac_header_preproc=yes
11139 $as_echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11142 ac_header_preproc=no
11145 rm -f conftest.err conftest.$ac_ext
11146 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11147 $as_echo "$ac_header_preproc" >&6; }
11149 # So? What about this header?
11150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11153 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11155 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11156 ac_header_preproc=yes
11159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11160 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11162 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11164 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11166 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11168 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11169 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11170 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11172 ## ---------------------------------------- ##
11173 ## Report this to pgsql-bugs@postgresql.org ##
11174 ## ---------------------------------------- ##
11176 ) | sed "s/^/$as_me: WARNING: /" >&2
11179 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11180 $as_echo_n "checking for $ac_header... " >&6; }
11181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11182 $as_echo_n "(cached) " >&6
11184 eval "$as_ac_Header=\$ac_header_preproc"
11186 ac_res=`eval 'as_val=${'$as_ac_Header'}
11187 $as_echo "$as_val"'`
11188 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11189 $as_echo "$ac_res" >&6; }
11192 as_val=`eval 'as_val=${'$as_ac_Header'}
11193 $as_echo "$as_val"'`
11194 if test "x$as_val" = x""yes; then
11195 cat >>confdefs.h <<_ACEOF
11196 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11200 { { $as_echo "$as_me:$LINENO: error: readline header not found
11201 If you have libedit already installed, see config.log for details on the
11202 failure. It is possible the compiler isn't looking in the proper directory.
11203 Use --without-readline to disable libedit support." >&5
11204 $as_echo "$as_me: error: readline header not found
11205 If you have libedit already installed, see config.log for details on the
11206 failure. It is possible the compiler isn't looking in the proper directory.
11207 Use --without-readline to disable libedit support." >&2;}
11208 { (exit 1); exit 1; }; }
11221 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11222 # not be there at all. Hence, don't complain if not found. We must check
11223 # though, since in yet other versions it is an independent header.
11225 for ac_header in editline/history.h
11227 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11229 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11230 $as_echo_n "checking for $ac_header... " >&6; }
11231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11232 $as_echo_n "(cached) " >&6
11234 ac_res=`eval 'as_val=${'$as_ac_Header'}
11235 $as_echo "$as_val"'`
11236 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11237 $as_echo "$ac_res" >&6; }
11239 # Is the header compilable?
11240 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11241 $as_echo_n "checking $ac_header usability... " >&6; }
11242 cat >conftest.$ac_ext <<_ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h. */
11248 $ac_includes_default
11249 #include <$ac_header>
11251 rm -f conftest.$ac_objext
11252 if { (ac_try="$ac_compile"
11253 case "(($ac_try" in
11254 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11255 *) ac_try_echo
=$ac_try;;
11257 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11258 $as_echo "$ac_try_echo") >&5
11259 (eval "$ac_compile") 2>conftest.er1
11261 grep -v '^ *+' conftest.er1
>conftest.err
11263 cat conftest.err
>&5
11264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } && {
11266 test -z "$ac_c_werror_flag" ||
11267 test ! -s conftest.err
11268 } && test -s conftest.
$ac_objext; then
11269 ac_header_compiler
=yes
11271 $as_echo "$as_me: failed program was:" >&5
11272 sed 's/^/| /' conftest.
$ac_ext >&5
11274 ac_header_compiler
=no
11277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11278 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11279 $as_echo "$ac_header_compiler" >&6; }
11281 # Is the header present?
11282 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11283 $as_echo_n "checking $ac_header presence... " >&6; }
11284 cat >conftest.
$ac_ext <<_ACEOF
11287 cat confdefs.h
>>conftest.
$ac_ext
11288 cat >>conftest.
$ac_ext <<_ACEOF
11289 /* end confdefs.h. */
11290 #include <$ac_header>
11292 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11293 case "(($ac_try" in
11294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11298 $as_echo "$ac_try_echo") >&5
11299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11301 grep -v '^ *+' conftest.er1 >conftest.err
11303 cat conftest.err >&5
11304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); } >/dev/null && {
11306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11307 test ! -s conftest.err
11309 ac_header_preproc=yes
11311 $as_echo "$as_me: failed program was:" >&5
11312 sed 's/^/| /' conftest.$ac_ext >&5
11314 ac_header_preproc=no
11317 rm -f conftest.err conftest.$ac_ext
11318 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11319 $as_echo "$ac_header_preproc" >&6; }
11321 # So? What about this header?
11322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11325 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11327 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11328 ac_header_preproc=yes
11331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11332 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11334 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11336 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11338 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11340 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11342 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11344 ## ---------------------------------------- ##
11345 ## Report this to pgsql-bugs@postgresql.org ##
11346 ## ---------------------------------------- ##
11348 ) | sed "s/^/$as_me: WARNING: /" >&2
11351 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11352 $as_echo_n "checking for $ac_header... " >&6; }
11353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11354 $as_echo_n "(cached) " >&6
11356 eval "$as_ac_Header=\$ac_header_preproc"
11358 ac_res=`eval 'as_val=${'$as_ac_Header'}
11359 $as_echo "$as_val"'`
11360 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11361 $as_echo "$ac_res" >&6; }
11364 as_val=`eval 'as_val=${'$as_ac_Header'}
11365 $as_echo "$as_val"'`
11366 if test "x$as_val" = x""yes; then
11367 cat >>confdefs.h <<_ACEOF
11368 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11373 for ac_header in history.h
11375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11377 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11378 $as_echo_n "checking for $ac_header... " >&6; }
11379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11380 $as_echo_n "(cached) " >&6
11382 ac_res=`eval 'as_val=${'$as_ac_Header'}
11383 $as_echo "$as_val"'`
11384 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11385 $as_echo "$ac_res" >&6; }
11387 # Is the header compilable?
11388 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11389 $as_echo_n "checking $ac_header usability... " >&6; }
11390 cat >conftest.$ac_ext <<_ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h. */
11396 $ac_includes_default
11397 #include <$ac_header>
11399 rm -f conftest.$ac_objext
11400 if { (ac_try="$ac_compile"
11401 case "(($ac_try" in
11402 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11403 *) ac_try_echo
=$ac_try;;
11405 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11406 $as_echo "$ac_try_echo") >&5
11407 (eval "$ac_compile") 2>conftest.er1
11409 grep -v '^ *+' conftest.er1
>conftest.err
11411 cat conftest.err
>&5
11412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } && {
11414 test -z "$ac_c_werror_flag" ||
11415 test ! -s conftest.err
11416 } && test -s conftest.
$ac_objext; then
11417 ac_header_compiler
=yes
11419 $as_echo "$as_me: failed program was:" >&5
11420 sed 's/^/| /' conftest.
$ac_ext >&5
11422 ac_header_compiler
=no
11425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11426 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11427 $as_echo "$ac_header_compiler" >&6; }
11429 # Is the header present?
11430 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11431 $as_echo_n "checking $ac_header presence... " >&6; }
11432 cat >conftest.
$ac_ext <<_ACEOF
11435 cat confdefs.h
>>conftest.
$ac_ext
11436 cat >>conftest.
$ac_ext <<_ACEOF
11437 /* end confdefs.h. */
11438 #include <$ac_header>
11440 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11441 case "(($ac_try" in
11442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11446 $as_echo "$ac_try_echo") >&5
11447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11449 grep -v '^ *+' conftest.er1 >conftest.err
11451 cat conftest.err >&5
11452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } >/dev/null && {
11454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11455 test ! -s conftest.err
11457 ac_header_preproc=yes
11459 $as_echo "$as_me: failed program was:" >&5
11460 sed 's/^/| /' conftest.$ac_ext >&5
11462 ac_header_preproc=no
11465 rm -f conftest.err conftest.$ac_ext
11466 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11467 $as_echo "$ac_header_preproc" >&6; }
11469 # So? What about this header?
11470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11473 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11475 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11476 ac_header_preproc=yes
11479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11480 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11482 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11484 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11486 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11488 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11490 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11492 ## ---------------------------------------- ##
11493 ## Report this to pgsql-bugs@postgresql.org ##
11494 ## ---------------------------------------- ##
11496 ) | sed "s/^/$as_me: WARNING: /" >&2
11499 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11500 $as_echo_n "checking for $ac_header... " >&6; }
11501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11502 $as_echo_n "(cached) " >&6
11504 eval "$as_ac_Header=\$ac_header_preproc"
11506 ac_res=`eval 'as_val=${'$as_ac_Header'}
11507 $as_echo "$as_val"'`
11508 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11509 $as_echo "$ac_res" >&6; }
11512 as_val=`eval 'as_val=${'$as_ac_Header'}
11513 $as_echo "$as_val"'`
11514 if test "x$as_val" = x""yes; then
11515 cat >>confdefs.h <<_ACEOF
11516 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11521 for ac_header in readline/history.h
11523 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11525 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11526 $as_echo_n "checking for $ac_header... " >&6; }
11527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11528 $as_echo_n "(cached) " >&6
11530 ac_res=`eval 'as_val=${'$as_ac_Header'}
11531 $as_echo "$as_val"'`
11532 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11533 $as_echo "$ac_res" >&6; }
11535 # Is the header compilable?
11536 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11537 $as_echo_n "checking $ac_header usability... " >&6; }
11538 cat >conftest.$ac_ext <<_ACEOF
11541 cat confdefs.h >>conftest.$ac_ext
11542 cat >>conftest.$ac_ext <<_ACEOF
11543 /* end confdefs.h. */
11544 $ac_includes_default
11545 #include <$ac_header>
11547 rm -f conftest.$ac_objext
11548 if { (ac_try="$ac_compile"
11549 case "(($ac_try" in
11550 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11551 *) ac_try_echo
=$ac_try;;
11553 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11554 $as_echo "$ac_try_echo") >&5
11555 (eval "$ac_compile") 2>conftest.er1
11557 grep -v '^ *+' conftest.er1
>conftest.err
11559 cat conftest.err
>&5
11560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } && {
11562 test -z "$ac_c_werror_flag" ||
11563 test ! -s conftest.err
11564 } && test -s conftest.
$ac_objext; then
11565 ac_header_compiler
=yes
11567 $as_echo "$as_me: failed program was:" >&5
11568 sed 's/^/| /' conftest.
$ac_ext >&5
11570 ac_header_compiler
=no
11573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11574 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11575 $as_echo "$ac_header_compiler" >&6; }
11577 # Is the header present?
11578 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11579 $as_echo_n "checking $ac_header presence... " >&6; }
11580 cat >conftest.
$ac_ext <<_ACEOF
11583 cat confdefs.h
>>conftest.
$ac_ext
11584 cat >>conftest.
$ac_ext <<_ACEOF
11585 /* end confdefs.h. */
11586 #include <$ac_header>
11588 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11589 case "(($ac_try" in
11590 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11591 *) ac_try_echo=$ac_try;;
11593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11594 $as_echo "$ac_try_echo") >&5
11595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11597 grep -v '^ *+' conftest.er1 >conftest.err
11599 cat conftest.err >&5
11600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); } >/dev/null && {
11602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11603 test ! -s conftest.err
11605 ac_header_preproc=yes
11607 $as_echo "$as_me: failed program was:" >&5
11608 sed 's/^/| /' conftest.$ac_ext >&5
11610 ac_header_preproc=no
11613 rm -f conftest.err conftest.$ac_ext
11614 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11615 $as_echo "$ac_header_preproc" >&6; }
11617 # So? What about this header?
11618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11621 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11623 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11624 ac_header_preproc=yes
11627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11628 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11630 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11632 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11634 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11635 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11636 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11638 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11640 ## ---------------------------------------- ##
11641 ## Report this to pgsql-bugs@postgresql.org ##
11642 ## ---------------------------------------- ##
11644 ) | sed "s/^/$as_me: WARNING: /" >&2
11647 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11648 $as_echo_n "checking for $ac_header... " >&6; }
11649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11650 $as_echo_n "(cached) " >&6
11652 eval "$as_ac_Header=\$ac_header_preproc"
11654 ac_res=`eval 'as_val=${'$as_ac_Header'}
11655 $as_echo "$as_val"'`
11656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11657 $as_echo "$ac_res" >&6; }
11660 as_val=`eval 'as_val=${'$as_ac_Header'}
11661 $as_echo "$as_val"'`
11662 if test "x$as_val" = x""yes; then
11663 cat >>confdefs.h <<_ACEOF
11664 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11681 if test "$with_zlib" = yes; then
11682 if test "${ac_cv_header_zlib_h+set}" = set; then
11683 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11684 $as_echo_n "checking for zlib.h... " >&6; }
11685 if test "${ac_cv_header_zlib_h+set}" = set; then
11686 $as_echo_n "(cached) " >&6
11688 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11689 $as_echo "$ac_cv_header_zlib_h" >&6; }
11691 # Is the header compilable?
11692 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
11693 $as_echo_n "checking zlib.h usability... " >&6; }
11694 cat >conftest.$ac_ext <<_ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h. */
11700 $ac_includes_default
11703 rm -f conftest.$ac_objext
11704 if { (ac_try="$ac_compile"
11705 case "(($ac_try" in
11706 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11707 *) ac_try_echo
=$ac_try;;
11709 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11710 $as_echo "$ac_try_echo") >&5
11711 (eval "$ac_compile") 2>conftest.er1
11713 grep -v '^ *+' conftest.er1
>conftest.err
11715 cat conftest.err
>&5
11716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } && {
11718 test -z "$ac_c_werror_flag" ||
11719 test ! -s conftest.err
11720 } && test -s conftest.
$ac_objext; then
11721 ac_header_compiler
=yes
11723 $as_echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.
$ac_ext >&5
11726 ac_header_compiler
=no
11729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11730 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11731 $as_echo "$ac_header_compiler" >&6; }
11733 # Is the header present?
11734 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
11735 $as_echo_n "checking zlib.h presence... " >&6; }
11736 cat >conftest.
$ac_ext <<_ACEOF
11739 cat confdefs.h
>>conftest.
$ac_ext
11740 cat >>conftest.
$ac_ext <<_ACEOF
11741 /* end confdefs.h. */
11744 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11745 case "(($ac_try" in
11746 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11747 *) ac_try_echo=$ac_try;;
11749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11750 $as_echo "$ac_try_echo") >&5
11751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11753 grep -v '^ *+' conftest.er1 >conftest.err
11755 cat conftest.err >&5
11756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } >/dev/null && {
11758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11759 test ! -s conftest.err
11761 ac_header_preproc=yes
11763 $as_echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11766 ac_header_preproc=no
11769 rm -f conftest.err conftest.$ac_ext
11770 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11771 $as_echo "$ac_header_preproc" >&6; }
11773 # So? What about this header?
11774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11776 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11777 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11778 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11779 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11780 ac_header_preproc=yes
11783 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11784 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11785 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
11786 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
11787 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11788 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11789 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
11790 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
11791 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11792 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11793 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11794 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11796 ## ---------------------------------------- ##
11797 ## Report this to pgsql-bugs@postgresql.org ##
11798 ## ---------------------------------------- ##
11800 ) | sed "s/^/$as_me: WARNING: /" >&2
11803 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
11804 $as_echo_n "checking for zlib.h... " >&6; }
11805 if test "${ac_cv_header_zlib_h+set}" = set; then
11806 $as_echo_n "(cached) " >&6
11808 ac_cv_header_zlib_h=$ac_header_preproc
11810 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11811 $as_echo "$ac_cv_header_zlib_h" >&6; }
11814 if test "x$ac_cv_header_zlib_h" = x""yes; then
11817 { { $as_echo "$as_me:$LINENO: error: zlib header not found
11818 If you have zlib already installed, see config.log for details on the
11819 failure. It is possible the compiler isn't looking in the proper directory.
11820 Use --without-zlib to disable zlib support." >&5
11821 $as_echo "$as_me: error: zlib header not found
11822 If you have zlib already installed, see config.log for details on the
11823 failure. It is possible the compiler isn't looking in the proper directory.
11824 Use --without-zlib to disable zlib support." >&2;}
11825 { (exit 1); exit 1; }; }
11831 if test "$with_gssapi" = yes ; then
11833 for ac_header in gssapi/gssapi.h
11835 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11837 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11838 $as_echo_n "checking for $ac_header... " >&6; }
11839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11840 $as_echo_n "(cached) " >&6
11842 ac_res=`eval 'as_val=${'$as_ac_Header'}
11843 $as_echo "$as_val"'`
11844 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11845 $as_echo "$ac_res" >&6; }
11847 # Is the header compilable?
11848 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11849 $as_echo_n "checking $ac_header usability... " >&6; }
11850 cat >conftest.$ac_ext <<_ACEOF
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h. */
11856 $ac_includes_default
11857 #include <$ac_header>
11859 rm -f conftest.$ac_objext
11860 if { (ac_try="$ac_compile"
11861 case "(($ac_try" in
11862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11863 *) ac_try_echo
=$ac_try;;
11865 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11866 $as_echo "$ac_try_echo") >&5
11867 (eval "$ac_compile") 2>conftest.er1
11869 grep -v '^ *+' conftest.er1
>conftest.err
11871 cat conftest.err
>&5
11872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } && {
11874 test -z "$ac_c_werror_flag" ||
11875 test ! -s conftest.err
11876 } && test -s conftest.
$ac_objext; then
11877 ac_header_compiler
=yes
11879 $as_echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.
$ac_ext >&5
11882 ac_header_compiler
=no
11885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11886 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11887 $as_echo "$ac_header_compiler" >&6; }
11889 # Is the header present?
11890 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11891 $as_echo_n "checking $ac_header presence... " >&6; }
11892 cat >conftest.
$ac_ext <<_ACEOF
11895 cat confdefs.h
>>conftest.
$ac_ext
11896 cat >>conftest.
$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11898 #include <$ac_header>
11900 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11901 case "(($ac_try" in
11902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11906 $as_echo "$ac_try_echo") >&5
11907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11909 grep -v '^ *+' conftest.er1 >conftest.err
11911 cat conftest.err >&5
11912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } >/dev/null && {
11914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11915 test ! -s conftest.err
11917 ac_header_preproc=yes
11919 $as_echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11922 ac_header_preproc=no
11925 rm -f conftest.err conftest.$ac_ext
11926 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11927 $as_echo "$ac_header_preproc" >&6; }
11929 # So? What about this header?
11930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11933 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11935 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11936 ac_header_preproc=yes
11939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11940 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11942 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11944 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11946 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11947 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11948 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11949 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11950 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11952 ## ---------------------------------------- ##
11953 ## Report this to pgsql-bugs@postgresql.org ##
11954 ## ---------------------------------------- ##
11956 ) | sed "s/^/$as_me: WARNING: /" >&2
11959 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11960 $as_echo_n "checking for $ac_header... " >&6; }
11961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11962 $as_echo_n "(cached) " >&6
11964 eval "$as_ac_Header=\$ac_header_preproc"
11966 ac_res=`eval 'as_val=${'$as_ac_Header'}
11967 $as_echo "$as_val"'`
11968 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11969 $as_echo "$ac_res" >&6; }
11972 as_val=`eval 'as_val=${'$as_ac_Header'}
11973 $as_echo "$as_val"'`
11974 if test "x$as_val" = x""yes; then
11975 cat >>confdefs.h <<_ACEOF
11976 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11981 for ac_header in gssapi.h
11983 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11985 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11986 $as_echo_n "checking for $ac_header... " >&6; }
11987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11988 $as_echo_n "(cached) " >&6
11990 ac_res=`eval 'as_val=${'$as_ac_Header'}
11991 $as_echo "$as_val"'`
11992 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11993 $as_echo "$ac_res" >&6; }
11995 # Is the header compilable?
11996 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11997 $as_echo_n "checking $ac_header usability... " >&6; }
11998 cat >conftest.$ac_ext <<_ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h. */
12004 $ac_includes_default
12005 #include <$ac_header>
12007 rm -f conftest.$ac_objext
12008 if { (ac_try="$ac_compile"
12009 case "(($ac_try" in
12010 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12011 *) ac_try_echo
=$ac_try;;
12013 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12014 $as_echo "$ac_try_echo") >&5
12015 (eval "$ac_compile") 2>conftest.er1
12017 grep -v '^ *+' conftest.er1
>conftest.err
12019 cat conftest.err
>&5
12020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } && {
12022 test -z "$ac_c_werror_flag" ||
12023 test ! -s conftest.err
12024 } && test -s conftest.
$ac_objext; then
12025 ac_header_compiler
=yes
12027 $as_echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.
$ac_ext >&5
12030 ac_header_compiler
=no
12033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12034 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12035 $as_echo "$ac_header_compiler" >&6; }
12037 # Is the header present?
12038 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12039 $as_echo_n "checking $ac_header presence... " >&6; }
12040 cat >conftest.
$ac_ext <<_ACEOF
12043 cat confdefs.h
>>conftest.
$ac_ext
12044 cat >>conftest.
$ac_ext <<_ACEOF
12045 /* end confdefs.h. */
12046 #include <$ac_header>
12048 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12049 case "(($ac_try" in
12050 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12051 *) ac_try_echo=$ac_try;;
12053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12054 $as_echo "$ac_try_echo") >&5
12055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12057 grep -v '^ *+' conftest.er1 >conftest.err
12059 cat conftest.err >&5
12060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } >/dev/null && {
12062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12063 test ! -s conftest.err
12065 ac_header_preproc=yes
12067 $as_echo "$as_me: failed program was:" >&5
12068 sed 's/^/| /' conftest.$ac_ext >&5
12070 ac_header_preproc=no
12073 rm -f conftest.err conftest.$ac_ext
12074 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12075 $as_echo "$ac_header_preproc" >&6; }
12077 # So? What about this header?
12078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12081 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12083 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12084 ac_header_preproc=yes
12087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12088 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12090 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12092 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12094 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12096 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12098 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12100 ## ---------------------------------------- ##
12101 ## Report this to pgsql-bugs@postgresql.org ##
12102 ## ---------------------------------------- ##
12104 ) | sed "s/^/$as_me: WARNING: /" >&2
12107 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12108 $as_echo_n "checking for $ac_header... " >&6; }
12109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12110 $as_echo_n "(cached) " >&6
12112 eval "$as_ac_Header=\$ac_header_preproc"
12114 ac_res=`eval 'as_val=${'$as_ac_Header'}
12115 $as_echo "$as_val"'`
12116 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12117 $as_echo "$ac_res" >&6; }
12120 as_val=`eval 'as_val=${'$as_ac_Header'}
12121 $as_echo "$as_val"'`
12122 if test "x$as_val" = x""yes; then
12123 cat >>confdefs.h <<_ACEOF
12124 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12128 { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12129 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12130 { (exit 1); exit 1; }; }
12141 if test "$with_krb5" = yes ; then
12142 if test "${ac_cv_header_krb5_h+set}" = set; then
12143 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12144 $as_echo_n "checking for krb5.h... " >&6; }
12145 if test "${ac_cv_header_krb5_h+set}" = set; then
12146 $as_echo_n "(cached) " >&6
12148 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12149 $as_echo "$ac_cv_header_krb5_h" >&6; }
12151 # Is the header compilable?
12152 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
12153 $as_echo_n "checking krb5.h usability... " >&6; }
12154 cat >conftest.$ac_ext <<_ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12160 $ac_includes_default
12163 rm -f conftest.$ac_objext
12164 if { (ac_try="$ac_compile"
12165 case "(($ac_try" in
12166 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12167 *) ac_try_echo
=$ac_try;;
12169 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12170 $as_echo "$ac_try_echo") >&5
12171 (eval "$ac_compile") 2>conftest.er1
12173 grep -v '^ *+' conftest.er1
>conftest.err
12175 cat conftest.err
>&5
12176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } && {
12178 test -z "$ac_c_werror_flag" ||
12179 test ! -s conftest.err
12180 } && test -s conftest.
$ac_objext; then
12181 ac_header_compiler
=yes
12183 $as_echo "$as_me: failed program was:" >&5
12184 sed 's/^/| /' conftest.
$ac_ext >&5
12186 ac_header_compiler
=no
12189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12190 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12191 $as_echo "$ac_header_compiler" >&6; }
12193 # Is the header present?
12194 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
12195 $as_echo_n "checking krb5.h presence... " >&6; }
12196 cat >conftest.
$ac_ext <<_ACEOF
12199 cat confdefs.h
>>conftest.
$ac_ext
12200 cat >>conftest.
$ac_ext <<_ACEOF
12201 /* end confdefs.h. */
12204 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12205 case "(($ac_try" in
12206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12210 $as_echo "$ac_try_echo") >&5
12211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12213 grep -v '^ *+' conftest.er1 >conftest.err
12215 cat conftest.err >&5
12216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } >/dev/null && {
12218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12219 test ! -s conftest.err
12221 ac_header_preproc=yes
12223 $as_echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12226 ac_header_preproc=no
12229 rm -f conftest.err conftest.$ac_ext
12230 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12231 $as_echo "$ac_header_preproc" >&6; }
12233 # So? What about this header?
12234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12236 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12237 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12238 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12239 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12240 ac_header_preproc=yes
12243 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12244 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12245 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: check for missing prerequisite headers?" >&5
12246 $as_echo "$as_me: WARNING: krb5.h: check for missing prerequisite headers?" >&2;}
12247 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12248 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12249 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&5
12250 $as_echo "$as_me: WARNING: krb5.h: section \"Present But Cannot Be Compiled\"" >&2;}
12251 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12252 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12253 { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12254 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12256 ## ---------------------------------------- ##
12257 ## Report this to pgsql-bugs@postgresql.org ##
12258 ## ---------------------------------------- ##
12260 ) | sed "s/^/$as_me: WARNING: /" >&2
12263 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
12264 $as_echo_n "checking for krb5.h... " >&6; }
12265 if test "${ac_cv_header_krb5_h+set}" = set; then
12266 $as_echo_n "(cached) " >&6
12268 ac_cv_header_krb5_h=$ac_header_preproc
12270 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12271 $as_echo "$ac_cv_header_krb5_h" >&6; }
12274 if test "x$ac_cv_header_krb5_h" = x""yes; then
12277 { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12278 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12279 { (exit 1); exit 1; }; }
12285 if test "$with_openssl" = yes ; then
12286 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12287 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12288 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12289 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12290 $as_echo_n "(cached) " >&6
12292 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12293 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12295 # Is the header compilable?
12296 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12297 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12298 cat >conftest.$ac_ext <<_ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h. */
12304 $ac_includes_default
12305 #include <openssl/ssl.h>
12307 rm -f conftest.$ac_objext
12308 if { (ac_try="$ac_compile"
12309 case "(($ac_try" in
12310 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12311 *) ac_try_echo
=$ac_try;;
12313 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12314 $as_echo "$ac_try_echo") >&5
12315 (eval "$ac_compile") 2>conftest.er1
12317 grep -v '^ *+' conftest.er1
>conftest.err
12319 cat conftest.err
>&5
12320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } && {
12322 test -z "$ac_c_werror_flag" ||
12323 test ! -s conftest.err
12324 } && test -s conftest.
$ac_objext; then
12325 ac_header_compiler
=yes
12327 $as_echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.
$ac_ext >&5
12330 ac_header_compiler
=no
12333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12334 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12335 $as_echo "$ac_header_compiler" >&6; }
12337 # Is the header present?
12338 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12339 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12340 cat >conftest.
$ac_ext <<_ACEOF
12343 cat confdefs.h
>>conftest.
$ac_ext
12344 cat >>conftest.
$ac_ext <<_ACEOF
12345 /* end confdefs.h. */
12346 #include <openssl/ssl.h>
12348 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12349 case "(($ac_try" in
12350 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12351 *) ac_try_echo=$ac_try;;
12353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12354 $as_echo "$ac_try_echo") >&5
12355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12357 grep -v '^ *+' conftest.er1 >conftest.err
12359 cat conftest.err >&5
12360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } >/dev/null && {
12362 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12363 test ! -s conftest.err
12365 ac_header_preproc=yes
12367 $as_echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12370 ac_header_preproc=no
12373 rm -f conftest.err conftest.$ac_ext
12374 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12375 $as_echo "$ac_header_preproc" >&6; }
12377 # So? What about this header?
12378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12380 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12381 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12382 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12383 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12384 ac_header_preproc=yes
12387 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12388 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12389 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
12390 $as_echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
12391 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12392 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12393 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
12394 $as_echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
12395 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12396 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12397 { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12398 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12400 ## ---------------------------------------- ##
12401 ## Report this to pgsql-bugs@postgresql.org ##
12402 ## ---------------------------------------- ##
12404 ) | sed "s/^/$as_me: WARNING: /" >&2
12407 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12408 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12409 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12410 $as_echo_n "(cached) " >&6
12412 ac_cv_header_openssl_ssl_h=$ac_header_preproc
12414 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12415 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12418 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12421 { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12422 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12423 { (exit 1); exit 1; }; }
12427 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12428 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12429 $as_echo_n "checking for openssl/err.h... " >&6; }
12430 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12431 $as_echo_n "(cached) " >&6
12433 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12434 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12436 # Is the header compilable?
12437 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12438 $as_echo_n "checking openssl/err.h usability... " >&6; }
12439 cat >conftest.$ac_ext <<_ACEOF
12442 cat confdefs.h >>conftest.$ac_ext
12443 cat >>conftest.$ac_ext <<_ACEOF
12444 /* end confdefs.h. */
12445 $ac_includes_default
12446 #include <openssl/err.h>
12448 rm -f conftest.$ac_objext
12449 if { (ac_try="$ac_compile"
12450 case "(($ac_try" in
12451 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12452 *) ac_try_echo
=$ac_try;;
12454 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12455 $as_echo "$ac_try_echo") >&5
12456 (eval "$ac_compile") 2>conftest.er1
12458 grep -v '^ *+' conftest.er1
>conftest.err
12460 cat conftest.err
>&5
12461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); } && {
12463 test -z "$ac_c_werror_flag" ||
12464 test ! -s conftest.err
12465 } && test -s conftest.
$ac_objext; then
12466 ac_header_compiler
=yes
12468 $as_echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.
$ac_ext >&5
12471 ac_header_compiler
=no
12474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12475 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12476 $as_echo "$ac_header_compiler" >&6; }
12478 # Is the header present?
12479 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12480 $as_echo_n "checking openssl/err.h presence... " >&6; }
12481 cat >conftest.
$ac_ext <<_ACEOF
12484 cat confdefs.h
>>conftest.
$ac_ext
12485 cat >>conftest.
$ac_ext <<_ACEOF
12486 /* end confdefs.h. */
12487 #include <openssl/err.h>
12489 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12490 case "(($ac_try" in
12491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12492 *) ac_try_echo=$ac_try;;
12494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12495 $as_echo "$ac_try_echo") >&5
12496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12498 grep -v '^ *+' conftest.er1 >conftest.err
12500 cat conftest.err >&5
12501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); } >/dev/null && {
12503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12504 test ! -s conftest.err
12506 ac_header_preproc=yes
12508 $as_echo "$as_me: failed program was:" >&5
12509 sed 's/^/| /' conftest.$ac_ext >&5
12511 ac_header_preproc=no
12514 rm -f conftest.err conftest.$ac_ext
12515 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12516 $as_echo "$ac_header_preproc" >&6; }
12518 # So? What about this header?
12519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12521 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12522 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12523 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12524 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12525 ac_header_preproc=yes
12528 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12529 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12530 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: check for missing prerequisite headers?" >&5
12531 $as_echo "$as_me: WARNING: openssl/err.h: check for missing prerequisite headers?" >&2;}
12532 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12533 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12534 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&5
12535 $as_echo "$as_me: WARNING: openssl/err.h: section \"Present But Cannot Be Compiled\"" >&2;}
12536 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12537 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12538 { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12539 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12541 ## ---------------------------------------- ##
12542 ## Report this to pgsql-bugs@postgresql.org ##
12543 ## ---------------------------------------- ##
12545 ) | sed "s/^/$as_me: WARNING: /" >&2
12548 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12549 $as_echo_n "checking for openssl/err.h... " >&6; }
12550 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12551 $as_echo_n "(cached) " >&6
12553 ac_cv_header_openssl_err_h=$ac_header_preproc
12555 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12556 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12559 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12562 { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12563 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12564 { (exit 1); exit 1; }; }
12569 for ac_func in ERR_set_mark
12571 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12572 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12573 $as_echo_n "checking for $ac_func... " >&6; }
12574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12575 $as_echo_n "(cached) " >&6
12577 cat >conftest.$ac_ext <<_ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h. */
12583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12585 #define $ac_func innocuous_$ac_func
12587 /* System header to define __stub macros and hopefully few prototypes,
12588 which can conflict with char $ac_func (); below.
12589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12590 <limits.h> exists even on freestanding compilers. */
12593 # include <limits.h>
12595 # include <assert.h>
12600 /* Override any GCC internal prototype to avoid an error.
12601 Use char because int might match the return type of a GCC
12602 builtin and then its argument prototype would still apply. */
12607 /* The GNU C library defines this for functions which it implements
12608 to always fail with ENOSYS. Some functions are actually named
12609 something starting with __ and the normal name is an alias. */
12610 #if defined __stub_$ac_func || defined __stub___$ac_func
12617 return $ac_func ();
12622 rm -f conftest.$ac_objext conftest$ac_exeext
12623 if { (ac_try="$ac_link"
12624 case "(($ac_try" in
12625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12626 *) ac_try_echo
=$ac_try;;
12628 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12629 $as_echo "$ac_try_echo") >&5
12630 (eval "$ac_link") 2>conftest.er1
12632 grep -v '^ *+' conftest.er1
>conftest.err
12634 cat conftest.err
>&5
12635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); } && {
12637 test -z "$ac_c_werror_flag" ||
12638 test ! -s conftest.err
12639 } && test -s conftest
$ac_exeext && {
12640 test "$cross_compiling" = yes ||
12641 $as_test_x conftest
$ac_exeext
12643 eval "$as_ac_var=yes"
12645 $as_echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.
$ac_ext >&5
12648 eval "$as_ac_var=no"
12651 rm -rf conftest.dSYM
12652 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12653 conftest
$ac_exeext conftest.
$ac_ext
12655 ac_res
=`eval 'as_val=${'$as_ac_var'}
12656 $as_echo "$as_val"'`
12657 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12658 $as_echo "$ac_res" >&6; }
12659 as_val
=`eval 'as_val=${'$as_ac_var'}
12660 $as_echo "$as_val"'`
12661 if test "x$as_val" = x
""yes; then
12662 cat >>confdefs.h
<<_ACEOF
12663 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12671 if test "$with_pam" = yes ; then
12673 for ac_header
in security
/pam_appl.h
12675 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12676 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12677 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12678 $as_echo_n "checking for $ac_header... " >&6; }
12679 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12680 $as_echo_n "(cached) " >&6
12682 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12683 $as_echo "$as_val"'`
12684 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12685 $as_echo "$ac_res" >&6; }
12687 # Is the header compilable?
12688 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12689 $as_echo_n "checking $ac_header usability... " >&6; }
12690 cat >conftest.
$ac_ext <<_ACEOF
12693 cat confdefs.h
>>conftest.
$ac_ext
12694 cat >>conftest.
$ac_ext <<_ACEOF
12695 /* end confdefs.h. */
12696 $ac_includes_default
12697 #include <$ac_header>
12699 rm -f conftest.
$ac_objext
12700 if { (ac_try
="$ac_compile"
12701 case "(($ac_try" in
12702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12703 *) ac_try_echo=$ac_try;;
12705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12706 $as_echo "$ac_try_echo") >&5
12707 (eval "$ac_compile") 2>conftest.er1
12709 grep -v '^ *+' conftest.er1 >conftest.err
12711 cat conftest.err >&5
12712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); } && {
12714 test -z "$ac_c_werror_flag" ||
12715 test ! -s conftest.err
12716 } && test -s conftest.$ac_objext; then
12717 ac_header_compiler=yes
12719 $as_echo "$as_me: failed program was:" >&5
12720 sed 's/^/| /' conftest.$ac_ext >&5
12722 ac_header_compiler=no
12725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12726 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12727 $as_echo "$ac_header_compiler" >&6; }
12729 # Is the header present?
12730 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12731 $as_echo_n "checking $ac_header presence... " >&6; }
12732 cat >conftest.$ac_ext <<_ACEOF
12735 cat confdefs.h >>conftest.$ac_ext
12736 cat >>conftest.$ac_ext <<_ACEOF
12737 /* end confdefs.h. */
12738 #include <$ac_header>
12740 if { (ac_try="$ac_cpp conftest.$ac_ext"
12741 case "(($ac_try" in
12742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12743 *) ac_try_echo
=$ac_try;;
12745 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12746 $as_echo "$ac_try_echo") >&5
12747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12749 grep -v '^ *+' conftest.er1
>conftest.err
12751 cat conftest.err
>&5
12752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } >/dev
/null
&& {
12754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12755 test ! -s conftest.err
12757 ac_header_preproc
=yes
12759 $as_echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.
$ac_ext >&5
12762 ac_header_preproc
=no
12765 rm -f conftest.err conftest.
$ac_ext
12766 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12767 $as_echo "$ac_header_preproc" >&6; }
12769 # So? What about this header?
12770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12773 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12775 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12776 ac_header_preproc
=yes
12779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12780 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12782 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12784 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12786 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12788 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12790 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12792 ## ---------------------------------------- ##
12793 ## Report this to pgsql-bugs@postgresql.org ##
12794 ## ---------------------------------------- ##
12796 ) |
sed "s/^/$as_me: WARNING: /" >&2
12799 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12800 $as_echo_n "checking for $ac_header... " >&6; }
12801 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12802 $as_echo_n "(cached) " >&6
12804 eval "$as_ac_Header=\$ac_header_preproc"
12806 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12807 $as_echo "$as_val"'`
12808 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12809 $as_echo "$ac_res" >&6; }
12812 as_val
=`eval 'as_val=${'$as_ac_Header'}
12813 $as_echo "$as_val"'`
12814 if test "x$as_val" = x
""yes; then
12815 cat >>confdefs.h
<<_ACEOF
12816 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12821 for ac_header
in pam
/pam_appl.h
12823 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12824 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12825 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12826 $as_echo_n "checking for $ac_header... " >&6; }
12827 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12828 $as_echo_n "(cached) " >&6
12830 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12831 $as_echo "$as_val"'`
12832 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12833 $as_echo "$ac_res" >&6; }
12835 # Is the header compilable?
12836 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12837 $as_echo_n "checking $ac_header usability... " >&6; }
12838 cat >conftest.
$ac_ext <<_ACEOF
12841 cat confdefs.h
>>conftest.
$ac_ext
12842 cat >>conftest.
$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12844 $ac_includes_default
12845 #include <$ac_header>
12847 rm -f conftest.
$ac_objext
12848 if { (ac_try
="$ac_compile"
12849 case "(($ac_try" in
12850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12851 *) ac_try_echo=$ac_try;;
12853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12854 $as_echo "$ac_try_echo") >&5
12855 (eval "$ac_compile") 2>conftest.er1
12857 grep -v '^ *+' conftest.er1 >conftest.err
12859 cat conftest.err >&5
12860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } && {
12862 test -z "$ac_c_werror_flag" ||
12863 test ! -s conftest.err
12864 } && test -s conftest.$ac_objext; then
12865 ac_header_compiler=yes
12867 $as_echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12870 ac_header_compiler=no
12873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12874 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12875 $as_echo "$ac_header_compiler" >&6; }
12877 # Is the header present?
12878 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12879 $as_echo_n "checking $ac_header presence... " >&6; }
12880 cat >conftest.$ac_ext <<_ACEOF
12883 cat confdefs.h >>conftest.$ac_ext
12884 cat >>conftest.$ac_ext <<_ACEOF
12885 /* end confdefs.h. */
12886 #include <$ac_header>
12888 if { (ac_try="$ac_cpp conftest.$ac_ext"
12889 case "(($ac_try" in
12890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12891 *) ac_try_echo
=$ac_try;;
12893 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12894 $as_echo "$ac_try_echo") >&5
12895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12897 grep -v '^ *+' conftest.er1
>conftest.err
12899 cat conftest.err
>&5
12900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } >/dev
/null
&& {
12902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12903 test ! -s conftest.err
12905 ac_header_preproc
=yes
12907 $as_echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.
$ac_ext >&5
12910 ac_header_preproc
=no
12913 rm -f conftest.err conftest.
$ac_ext
12914 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12915 $as_echo "$ac_header_preproc" >&6; }
12917 # So? What about this header?
12918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12921 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12923 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12924 ac_header_preproc
=yes
12927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12928 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12930 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12932 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12934 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12936 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12938 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12940 ## ---------------------------------------- ##
12941 ## Report this to pgsql-bugs@postgresql.org ##
12942 ## ---------------------------------------- ##
12944 ) |
sed "s/^/$as_me: WARNING: /" >&2
12947 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12948 $as_echo_n "checking for $ac_header... " >&6; }
12949 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12950 $as_echo_n "(cached) " >&6
12952 eval "$as_ac_Header=\$ac_header_preproc"
12954 ac_res
=`eval 'as_val=${'$as_ac_Header'}
12955 $as_echo "$as_val"'`
12956 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12957 $as_echo "$ac_res" >&6; }
12960 as_val
=`eval 'as_val=${'$as_ac_Header'}
12961 $as_echo "$as_val"'`
12962 if test "x$as_val" = x
""yes; then
12963 cat >>confdefs.h
<<_ACEOF
12964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12968 { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12969 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12970 { (exit 1); exit 1; }; }
12981 if test "$with_libxml" = yes ; then
12982 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12983 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12984 $as_echo_n "checking for libxml/parser.h... " >&6; }
12985 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12986 $as_echo_n "(cached) " >&6
12988 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12989 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
12991 # Is the header compilable?
12992 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12993 $as_echo_n "checking libxml/parser.h usability... " >&6; }
12994 cat >conftest.
$ac_ext <<_ACEOF
12997 cat confdefs.h
>>conftest.
$ac_ext
12998 cat >>conftest.
$ac_ext <<_ACEOF
12999 /* end confdefs.h. */
13000 $ac_includes_default
13001 #include <libxml/parser.h>
13003 rm -f conftest.
$ac_objext
13004 if { (ac_try
="$ac_compile"
13005 case "(($ac_try" in
13006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13010 $as_echo "$ac_try_echo") >&5
13011 (eval "$ac_compile") 2>conftest.er1
13013 grep -v '^ *+' conftest.er1 >conftest.err
13015 cat conftest.err >&5
13016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); } && {
13018 test -z "$ac_c_werror_flag" ||
13019 test ! -s conftest.err
13020 } && test -s conftest.$ac_objext; then
13021 ac_header_compiler=yes
13023 $as_echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13026 ac_header_compiler=no
13029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13030 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13031 $as_echo "$ac_header_compiler" >&6; }
13033 # Is the header present?
13034 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13035 $as_echo_n "checking libxml/parser.h presence... " >&6; }
13036 cat >conftest.$ac_ext <<_ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h. */
13042 #include <libxml/parser.h>
13044 if { (ac_try="$ac_cpp conftest.$ac_ext"
13045 case "(($ac_try" in
13046 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13047 *) ac_try_echo
=$ac_try;;
13049 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13050 $as_echo "$ac_try_echo") >&5
13051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13053 grep -v '^ *+' conftest.er1
>conftest.err
13055 cat conftest.err
>&5
13056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } >/dev
/null
&& {
13058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13059 test ! -s conftest.err
13061 ac_header_preproc
=yes
13063 $as_echo "$as_me: failed program was:" >&5
13064 sed 's/^/| /' conftest.
$ac_ext >&5
13066 ac_header_preproc
=no
13069 rm -f conftest.err conftest.
$ac_ext
13070 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13071 $as_echo "$ac_header_preproc" >&6; }
13073 # So? What about this header?
13074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13076 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13077 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13078 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13079 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13080 ac_header_preproc
=yes
13083 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13084 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13085 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
13086 $as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
13087 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13088 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13089 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
13090 $as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
13091 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13092 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13093 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13094 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13096 ## ---------------------------------------- ##
13097 ## Report this to pgsql-bugs@postgresql.org ##
13098 ## ---------------------------------------- ##
13100 ) |
sed "s/^/$as_me: WARNING: /" >&2
13103 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13104 $as_echo_n "checking for libxml/parser.h... " >&6; }
13105 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13106 $as_echo_n "(cached) " >&6
13108 ac_cv_header_libxml_parser_h
=$ac_header_preproc
13110 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13111 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13114 if test "x$ac_cv_header_libxml_parser_h" = x
""yes; then
13117 { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13118 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13119 { (exit 1); exit 1; }; }
13125 if test "$with_libxslt" = yes ; then
13126 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13127 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13128 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13129 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13130 $as_echo_n "(cached) " >&6
13132 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13133 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13135 # Is the header compilable?
13136 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13137 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13138 cat >conftest.
$ac_ext <<_ACEOF
13141 cat confdefs.h
>>conftest.
$ac_ext
13142 cat >>conftest.
$ac_ext <<_ACEOF
13143 /* end confdefs.h. */
13144 $ac_includes_default
13145 #include <libxslt/xslt.h>
13147 rm -f conftest.
$ac_objext
13148 if { (ac_try
="$ac_compile"
13149 case "(($ac_try" in
13150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13151 *) ac_try_echo=$ac_try;;
13153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13154 $as_echo "$ac_try_echo") >&5
13155 (eval "$ac_compile") 2>conftest.er1
13157 grep -v '^ *+' conftest.er1 >conftest.err
13159 cat conftest.err >&5
13160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); } && {
13162 test -z "$ac_c_werror_flag" ||
13163 test ! -s conftest.err
13164 } && test -s conftest.$ac_objext; then
13165 ac_header_compiler=yes
13167 $as_echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13170 ac_header_compiler=no
13173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13174 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13175 $as_echo "$ac_header_compiler" >&6; }
13177 # Is the header present?
13178 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13179 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13180 cat >conftest.$ac_ext <<_ACEOF
13183 cat confdefs.h >>conftest.$ac_ext
13184 cat >>conftest.$ac_ext <<_ACEOF
13185 /* end confdefs.h. */
13186 #include <libxslt/xslt.h>
13188 if { (ac_try="$ac_cpp conftest.$ac_ext"
13189 case "(($ac_try" in
13190 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13191 *) ac_try_echo
=$ac_try;;
13193 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13194 $as_echo "$ac_try_echo") >&5
13195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13197 grep -v '^ *+' conftest.er1
>conftest.err
13199 cat conftest.err
>&5
13200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } >/dev
/null
&& {
13202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13203 test ! -s conftest.err
13205 ac_header_preproc
=yes
13207 $as_echo "$as_me: failed program was:" >&5
13208 sed 's/^/| /' conftest.
$ac_ext >&5
13210 ac_header_preproc
=no
13213 rm -f conftest.err conftest.
$ac_ext
13214 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13215 $as_echo "$ac_header_preproc" >&6; }
13217 # So? What about this header?
13218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13220 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13221 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13222 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13223 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13224 ac_header_preproc
=yes
13227 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13228 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13229 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&5
13230 $as_echo "$as_me: WARNING: libxslt/xslt.h: check for missing prerequisite headers?" >&2;}
13231 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13232 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13233 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&5
13234 $as_echo "$as_me: WARNING: libxslt/xslt.h: section \"Present But Cannot Be Compiled\"" >&2;}
13235 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13236 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13237 { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13238 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13240 ## ---------------------------------------- ##
13241 ## Report this to pgsql-bugs@postgresql.org ##
13242 ## ---------------------------------------- ##
13244 ) |
sed "s/^/$as_me: WARNING: /" >&2
13247 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13248 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13249 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13250 $as_echo_n "(cached) " >&6
13252 ac_cv_header_libxslt_xslt_h
=$ac_header_preproc
13254 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13255 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13258 if test "x$ac_cv_header_libxslt_xslt_h" = x
""yes; then
13261 { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13262 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13263 { (exit 1); exit 1; }; }
13269 if test "$with_ldap" = yes ; then
13270 if test "$PORTNAME" != "win32"; then
13272 for ac_header
in ldap.h
13274 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13275 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13276 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13277 $as_echo_n "checking for $ac_header... " >&6; }
13278 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13279 $as_echo_n "(cached) " >&6
13281 ac_res
=`eval 'as_val=${'$as_ac_Header'}
13282 $as_echo "$as_val"'`
13283 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13284 $as_echo "$ac_res" >&6; }
13286 # Is the header compilable?
13287 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13288 $as_echo_n "checking $ac_header usability... " >&6; }
13289 cat >conftest.
$ac_ext <<_ACEOF
13292 cat confdefs.h
>>conftest.
$ac_ext
13293 cat >>conftest.
$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13295 $ac_includes_default
13296 #include <$ac_header>
13298 rm -f conftest.
$ac_objext
13299 if { (ac_try
="$ac_compile"
13300 case "(($ac_try" in
13301 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13305 $as_echo "$ac_try_echo") >&5
13306 (eval "$ac_compile") 2>conftest.er1
13308 grep -v '^ *+' conftest.er1 >conftest.err
13310 cat conftest.err >&5
13311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); } && {
13313 test -z "$ac_c_werror_flag" ||
13314 test ! -s conftest.err
13315 } && test -s conftest.$ac_objext; then
13316 ac_header_compiler=yes
13318 $as_echo "$as_me: failed program was:" >&5
13319 sed 's/^/| /' conftest.$ac_ext >&5
13321 ac_header_compiler=no
13324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13325 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13326 $as_echo "$ac_header_compiler" >&6; }
13328 # Is the header present?
13329 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13330 $as_echo_n "checking $ac_header presence... " >&6; }
13331 cat >conftest.$ac_ext <<_ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h. */
13337 #include <$ac_header>
13339 if { (ac_try="$ac_cpp conftest.$ac_ext"
13340 case "(($ac_try" in
13341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13342 *) ac_try_echo
=$ac_try;;
13344 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13345 $as_echo "$ac_try_echo") >&5
13346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13348 grep -v '^ *+' conftest.er1
>conftest.err
13350 cat conftest.err
>&5
13351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } >/dev
/null
&& {
13353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13354 test ! -s conftest.err
13356 ac_header_preproc
=yes
13358 $as_echo "$as_me: failed program was:" >&5
13359 sed 's/^/| /' conftest.
$ac_ext >&5
13361 ac_header_preproc
=no
13364 rm -f conftest.err conftest.
$ac_ext
13365 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13366 $as_echo "$ac_header_preproc" >&6; }
13368 # So? What about this header?
13369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13372 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13374 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13375 ac_header_preproc
=yes
13378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13379 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13381 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13383 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13385 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13387 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13389 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13391 ## ---------------------------------------- ##
13392 ## Report this to pgsql-bugs@postgresql.org ##
13393 ## ---------------------------------------- ##
13395 ) |
sed "s/^/$as_me: WARNING: /" >&2
13398 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13399 $as_echo_n "checking for $ac_header... " >&6; }
13400 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13401 $as_echo_n "(cached) " >&6
13403 eval "$as_ac_Header=\$ac_header_preproc"
13405 ac_res
=`eval 'as_val=${'$as_ac_Header'}
13406 $as_echo "$as_val"'`
13407 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13408 $as_echo "$ac_res" >&6; }
13411 as_val
=`eval 'as_val=${'$as_ac_Header'}
13412 $as_echo "$as_val"'`
13413 if test "x$as_val" = x
""yes; then
13414 cat >>confdefs.h
<<_ACEOF
13415 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13419 { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13420 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13421 { (exit 1); exit 1; }; }
13428 for ac_header
in winldap.h
13430 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13431 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13432 $as_echo_n "checking for $ac_header... " >&6; }
13433 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13434 $as_echo_n "(cached) " >&6
13436 cat >conftest.
$ac_ext <<_ACEOF
13439 cat confdefs.h
>>conftest.
$ac_ext
13440 cat >>conftest.
$ac_ext <<_ACEOF
13441 /* end confdefs.h. */
13442 $ac_includes_default
13443 #include <windows.h>
13446 #include <$ac_header>
13448 rm -f conftest.
$ac_objext
13449 if { (ac_try
="$ac_compile"
13450 case "(($ac_try" in
13451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13452 *) ac_try_echo=$ac_try;;
13454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13455 $as_echo "$ac_try_echo") >&5
13456 (eval "$ac_compile") 2>conftest.er1
13458 grep -v '^ *+' conftest.er1 >conftest.err
13460 cat conftest.err >&5
13461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); } && {
13463 test -z "$ac_c_werror_flag" ||
13464 test ! -s conftest.err
13465 } && test -s conftest.$ac_objext; then
13466 eval "$as_ac_Header=yes"
13468 $as_echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.$ac_ext >&5
13471 eval "$as_ac_Header=no"
13474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13476 ac_res=`eval 'as_val=${'$as_ac_Header'}
13477 $as_echo "$as_val"'`
13478 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13479 $as_echo "$ac_res" >&6; }
13480 as_val=`eval 'as_val=${'$as_ac_Header'}
13481 $as_echo "$as_val"'`
13482 if test "x$as_val" = x""yes; then
13483 cat >>confdefs.h <<_ACEOF
13484 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
13488 { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13489 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13490 { (exit 1); exit 1; }; }
13498 if test "$with_bonjour" = yes ; then
13499 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13500 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13501 $as_echo_n "checking for dns_sd.h... " >&6; }
13502 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13503 $as_echo_n "(cached) " >&6
13505 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13506 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13508 # Is the header compilable?
13509 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
13510 $as_echo_n "checking dns_sd.h usability... " >&6; }
13511 cat >conftest.$ac_ext <<_ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h. */
13517 $ac_includes_default
13518 #include <dns_sd.h>
13520 rm -f conftest.$ac_objext
13521 if { (ac_try="$ac_compile"
13522 case "(($ac_try" in
13523 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13524 *) ac_try_echo
=$ac_try;;
13526 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13527 $as_echo "$ac_try_echo") >&5
13528 (eval "$ac_compile") 2>conftest.er1
13530 grep -v '^ *+' conftest.er1
>conftest.err
13532 cat conftest.err
>&5
13533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); } && {
13535 test -z "$ac_c_werror_flag" ||
13536 test ! -s conftest.err
13537 } && test -s conftest.
$ac_objext; then
13538 ac_header_compiler
=yes
13540 $as_echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.
$ac_ext >&5
13543 ac_header_compiler
=no
13546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13547 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13548 $as_echo "$ac_header_compiler" >&6; }
13550 # Is the header present?
13551 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
13552 $as_echo_n "checking dns_sd.h presence... " >&6; }
13553 cat >conftest.
$ac_ext <<_ACEOF
13556 cat confdefs.h
>>conftest.
$ac_ext
13557 cat >>conftest.
$ac_ext <<_ACEOF
13558 /* end confdefs.h. */
13559 #include <dns_sd.h>
13561 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13562 case "(($ac_try" in
13563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13564 *) ac_try_echo=$ac_try;;
13566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13567 $as_echo "$ac_try_echo") >&5
13568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13570 grep -v '^ *+' conftest.er1 >conftest.err
13572 cat conftest.err >&5
13573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } >/dev/null && {
13575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13576 test ! -s conftest.err
13578 ac_header_preproc=yes
13580 $as_echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13583 ac_header_preproc=no
13586 rm -f conftest.err conftest.$ac_ext
13587 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13588 $as_echo "$ac_header_preproc" >&6; }
13590 # So? What about this header?
13591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13593 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
13594 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13595 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
13596 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
13597 ac_header_preproc=yes
13600 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
13601 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
13602 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: check for missing prerequisite headers?" >&5
13603 $as_echo "$as_me: WARNING: dns_sd.h: check for missing prerequisite headers?" >&2;}
13604 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
13605 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
13606 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&5
13607 $as_echo "$as_me: WARNING: dns_sd.h: section \"Present But Cannot Be Compiled\"" >&2;}
13608 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
13609 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
13610 { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
13611 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
13613 ## ---------------------------------------- ##
13614 ## Report this to pgsql-bugs@postgresql.org ##
13615 ## ---------------------------------------- ##
13617 ) | sed "s/^/$as_me: WARNING: /" >&2
13620 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
13621 $as_echo_n "checking for dns_sd.h... " >&6; }
13622 if test "${ac_cv_header_dns_sd_h+set}" = set; then
13623 $as_echo_n "(cached) " >&6
13625 ac_cv_header_dns_sd_h=$ac_header_preproc
13627 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
13628 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
13631 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
13634 { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
13635 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
13636 { (exit 1); exit 1; }; }
13642 # for contrib/uuid-ossp
13643 if test "$with_ossp_uuid" = yes ; then
13645 for ac_header in ossp/uuid.h
13647 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
13648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13649 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13650 $as_echo_n "checking for $ac_header... " >&6; }
13651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13652 $as_echo_n "(cached) " >&6
13654 ac_res=`eval 'as_val=${'$as_ac_Header'}
13655 $as_echo "$as_val"'`
13656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13657 $as_echo "$ac_res" >&6; }
13659 # Is the header compilable?
13660 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13661 $as_echo_n "checking $ac_header usability... " >&6; }
13662 cat >conftest.$ac_ext <<_ACEOF
13665 cat confdefs.h >>conftest.$ac_ext
13666 cat >>conftest.$ac_ext <<_ACEOF
13667 /* end confdefs.h. */
13668 $ac_includes_default
13669 #include <$ac_header>
13671 rm -f conftest.$ac_objext
13672 if { (ac_try="$ac_compile"
13673 case "(($ac_try" in
13674 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13675 *) ac_try_echo
=$ac_try;;
13677 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13678 $as_echo "$ac_try_echo") >&5
13679 (eval "$ac_compile") 2>conftest.er1
13681 grep -v '^ *+' conftest.er1
>conftest.err
13683 cat conftest.err
>&5
13684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); } && {
13686 test -z "$ac_c_werror_flag" ||
13687 test ! -s conftest.err
13688 } && test -s conftest.
$ac_objext; then
13689 ac_header_compiler
=yes
13691 $as_echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.
$ac_ext >&5
13694 ac_header_compiler
=no
13697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13698 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13699 $as_echo "$ac_header_compiler" >&6; }
13701 # Is the header present?
13702 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13703 $as_echo_n "checking $ac_header presence... " >&6; }
13704 cat >conftest.
$ac_ext <<_ACEOF
13707 cat confdefs.h
>>conftest.
$ac_ext
13708 cat >>conftest.
$ac_ext <<_ACEOF
13709 /* end confdefs.h. */
13710 #include <$ac_header>
13712 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13713 case "(($ac_try" in
13714 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13715 *) ac_try_echo=$ac_try;;
13717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13718 $as_echo "$ac_try_echo") >&5
13719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13721 grep -v '^ *+' conftest.er1 >conftest.err
13723 cat conftest.err >&5
13724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } >/dev/null && {
13726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13727 test ! -s conftest.err
13729 ac_header_preproc=yes
13731 $as_echo "$as_me: failed program was:" >&5
13732 sed 's/^/| /' conftest.$ac_ext >&5
13734 ac_header_preproc=no
13737 rm -f conftest.err conftest.$ac_ext
13738 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13739 $as_echo "$ac_header_preproc" >&6; }
13741 # So? What about this header?
13742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13745 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13747 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13748 ac_header_preproc=yes
13751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13752 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13754 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13756 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13758 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13760 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13762 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13764 ## ---------------------------------------- ##
13765 ## Report this to pgsql-bugs@postgresql.org ##
13766 ## ---------------------------------------- ##
13768 ) | sed "s/^/$as_me: WARNING: /" >&2
13771 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13772 $as_echo_n "checking for $ac_header... " >&6; }
13773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13774 $as_echo_n "(cached) " >&6
13776 eval "$as_ac_Header=\$ac_header_preproc"
13778 ac_res=`eval 'as_val=${'$as_ac_Header'}
13779 $as_echo "$as_val"'`
13780 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13781 $as_echo "$ac_res" >&6; }
13784 as_val=`eval 'as_val=${'$as_ac_Header'}
13785 $as_echo "$as_val"'`
13786 if test "x$as_val" = x""yes; then
13787 cat >>confdefs.h <<_ACEOF
13788 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
13794 for ac_header in uuid.h
13796 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
13797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13798 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13799 $as_echo_n "checking for $ac_header... " >&6; }
13800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13801 $as_echo_n "(cached) " >&6
13803 ac_res=`eval 'as_val=${'$as_ac_Header'}
13804 $as_echo "$as_val"'`
13805 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13806 $as_echo "$ac_res" >&6; }
13808 # Is the header compilable?
13809 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13810 $as_echo_n "checking $ac_header usability... " >&6; }
13811 cat >conftest.$ac_ext <<_ACEOF
13814 cat confdefs.h >>conftest.$ac_ext
13815 cat >>conftest.$ac_ext <<_ACEOF
13816 /* end confdefs.h. */
13817 $ac_includes_default
13818 #include <$ac_header>
13820 rm -f conftest.$ac_objext
13821 if { (ac_try="$ac_compile"
13822 case "(($ac_try" in
13823 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13824 *) ac_try_echo
=$ac_try;;
13826 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13827 $as_echo "$ac_try_echo") >&5
13828 (eval "$ac_compile") 2>conftest.er1
13830 grep -v '^ *+' conftest.er1
>conftest.err
13832 cat conftest.err
>&5
13833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); } && {
13835 test -z "$ac_c_werror_flag" ||
13836 test ! -s conftest.err
13837 } && test -s conftest.
$ac_objext; then
13838 ac_header_compiler
=yes
13840 $as_echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.
$ac_ext >&5
13843 ac_header_compiler
=no
13846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13847 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13848 $as_echo "$ac_header_compiler" >&6; }
13850 # Is the header present?
13851 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13852 $as_echo_n "checking $ac_header presence... " >&6; }
13853 cat >conftest.
$ac_ext <<_ACEOF
13856 cat confdefs.h
>>conftest.
$ac_ext
13857 cat >>conftest.
$ac_ext <<_ACEOF
13858 /* end confdefs.h. */
13859 #include <$ac_header>
13861 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13862 case "(($ac_try" in
13863 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13864 *) ac_try_echo=$ac_try;;
13866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13867 $as_echo "$ac_try_echo") >&5
13868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13870 grep -v '^ *+' conftest.er1 >conftest.err
13872 cat conftest.err >&5
13873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } >/dev/null && {
13875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13876 test ! -s conftest.err
13878 ac_header_preproc=yes
13880 $as_echo "$as_me: failed program was:" >&5
13881 sed 's/^/| /' conftest.$ac_ext >&5
13883 ac_header_preproc=no
13886 rm -f conftest.err conftest.$ac_ext
13887 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13888 $as_echo "$ac_header_preproc" >&6; }
13890 # So? What about this header?
13891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13894 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13896 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13897 ac_header_preproc=yes
13900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13901 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13903 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13905 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13907 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13908 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13909 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13911 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13913 ## ---------------------------------------- ##
13914 ## Report this to pgsql-bugs@postgresql.org ##
13915 ## ---------------------------------------- ##
13917 ) | sed "s/^/$as_me: WARNING: /" >&2
13920 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13921 $as_echo_n "checking for $ac_header... " >&6; }
13922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13923 $as_echo_n "(cached) " >&6
13925 eval "$as_ac_Header=\$ac_header_preproc"
13927 ac_res=`eval 'as_val=${'$as_ac_Header'}
13928 $as_echo "$as_val"'`
13929 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13930 $as_echo "$ac_res" >&6; }
13933 as_val=`eval 'as_val=${'$as_ac_Header'}
13934 $as_echo "$as_val"'`
13935 if test "x$as_val" = x""yes; then
13936 cat >>confdefs.h <<_ACEOF
13937 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
13941 { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13942 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13943 { (exit 1); exit 1; }; }
13956 ## Types, structures, compiler characteristics
13960 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13961 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13962 if test "${ac_cv_c_bigendian+set}" = set; then
13963 $as_echo_n "(cached) " >&6
13965 ac_cv_c_bigendian=unknown
13966 # See if we're dealing with a universal compiler.
13967 cat >conftest.$ac_ext <<_ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h. */
13973 #ifndef __APPLE_CC__
13974 not a universal capable compiler
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
13998 # Check for potential -arch flags. It is not universal unless
13999 # there are some -arch flags. Note that *ppc* also matches
14000 # ppc64. This check is also rather less than ideal.
14001 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14002 *-arch*ppc
*|
*-arch*i386
*|
*-arch*x86_64
*) ac_cv_c_bigendian
=universal
;;
14005 $as_echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.
$ac_ext >&5
14011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14012 if test $ac_cv_c_bigendian = unknown
; then
14013 # See if sys/param.h defines the BYTE_ORDER macro.
14014 cat >conftest.
$ac_ext <<_ACEOF
14017 cat confdefs.h
>>conftest.
$ac_ext
14018 cat >>conftest.
$ac_ext <<_ACEOF
14019 /* end confdefs.h. */
14020 #include <sys/types.h>
14021 #include <sys/param.h>
14026 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14027 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14029 bogus endian macros
14036 rm -f conftest.
$ac_objext
14037 if { (ac_try
="$ac_compile"
14038 case "(($ac_try" in
14039 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14040 *) ac_try_echo=$ac_try;;
14042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14043 $as_echo "$ac_try_echo") >&5
14044 (eval "$ac_compile") 2>conftest.er1
14046 grep -v '^ *+' conftest.er1 >conftest.err
14048 cat conftest.err >&5
14049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } && {
14051 test -z "$ac_c_werror_flag" ||
14052 test ! -s conftest.err
14053 } && test -s conftest.$ac_objext; then
14054 # It does; now see whether it defined to BIG_ENDIAN or not.
14055 cat >conftest.$ac_ext <<_ACEOF
14058 cat confdefs.h >>conftest.$ac_ext
14059 cat >>conftest.$ac_ext <<_ACEOF
14060 /* end confdefs.h. */
14061 #include <sys/types.h>
14062 #include <sys/param.h>
14067 #if BYTE_ORDER != BIG_ENDIAN
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 ac_cv_c_bigendian
=yes
14095 $as_echo "$as_me: failed program was:" >&5
14096 sed 's/^/| /' conftest.
$ac_ext >&5
14098 ac_cv_c_bigendian
=no
14101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14103 $as_echo "$as_me: failed program was:" >&5
14104 sed 's/^/| /' conftest.
$ac_ext >&5
14109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14111 if test $ac_cv_c_bigendian = unknown
; then
14112 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14113 cat >conftest.
$ac_ext <<_ACEOF
14116 cat confdefs.h
>>conftest.
$ac_ext
14117 cat >>conftest.
$ac_ext <<_ACEOF
14118 /* end confdefs.h. */
14119 #include <limits.h>
14124 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14125 bogus endian macros
14132 rm -f conftest.
$ac_objext
14133 if { (ac_try
="$ac_compile"
14134 case "(($ac_try" in
14135 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14136 *) ac_try_echo=$ac_try;;
14138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14139 $as_echo "$ac_try_echo") >&5
14140 (eval "$ac_compile") 2>conftest.er1
14142 grep -v '^ *+' conftest.er1 >conftest.err
14144 cat conftest.err >&5
14145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } && {
14147 test -z "$ac_c_werror_flag" ||
14148 test ! -s conftest.err
14149 } && test -s conftest.$ac_objext; then
14150 # It does; now see whether it defined to _BIG_ENDIAN or not.
14151 cat >conftest.$ac_ext <<_ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h. */
14157 #include <limits.h>
14162 #ifndef _BIG_ENDIAN
14170 rm -f conftest.$ac_objext
14171 if { (ac_try="$ac_compile"
14172 case "(($ac_try" in
14173 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14174 *) ac_try_echo
=$ac_try;;
14176 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14177 $as_echo "$ac_try_echo") >&5
14178 (eval "$ac_compile") 2>conftest.er1
14180 grep -v '^ *+' conftest.er1
>conftest.err
14182 cat conftest.err
>&5
14183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } && {
14185 test -z "$ac_c_werror_flag" ||
14186 test ! -s conftest.err
14187 } && test -s conftest.
$ac_objext; then
14188 ac_cv_c_bigendian
=yes
14190 $as_echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.
$ac_ext >&5
14193 ac_cv_c_bigendian
=no
14196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14198 $as_echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.
$ac_ext >&5
14204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14206 if test $ac_cv_c_bigendian = unknown
; then
14207 # Compile a test program.
14208 if test "$cross_compiling" = yes; then
14209 # Try to guess by grepping values from an object file.
14210 cat >conftest.
$ac_ext <<_ACEOF
14213 cat confdefs.h
>>conftest.
$ac_ext
14214 cat >>conftest.
$ac_ext <<_ACEOF
14215 /* end confdefs.h. */
14216 short int ascii_mm[] =
14217 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14218 short int ascii_ii[] =
14219 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14220 int use_ascii (int i) {
14221 return ascii_mm[i] + ascii_ii[i];
14223 short int ebcdic_ii[] =
14224 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14225 short int ebcdic_mm[] =
14226 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14227 int use_ebcdic (int i) {
14228 return ebcdic_mm[i] + ebcdic_ii[i];
14235 return use_ascii (foo) == use_ebcdic (foo);
14240 rm -f conftest.
$ac_objext
14241 if { (ac_try
="$ac_compile"
14242 case "(($ac_try" in
14243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14244 *) ac_try_echo=$ac_try;;
14246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14247 $as_echo "$ac_try_echo") >&5
14248 (eval "$ac_compile") 2>conftest.er1
14250 grep -v '^ *+' conftest.er1 >conftest.err
14252 cat conftest.err >&5
14253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); } && {
14255 test -z "$ac_c_werror_flag" ||
14256 test ! -s conftest.err
14257 } && test -s conftest.$ac_objext; then
14258 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14259 ac_cv_c_bigendian=yes
14261 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14262 if test "$ac_cv_c_bigendian" = unknown; then
14263 ac_cv_c_bigendian=no
14265 # finding both strings is unlikely to happen, but who knows?
14266 ac_cv_c_bigendian=unknown
14270 $as_echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.$ac_ext >&5
14276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14278 cat >conftest.$ac_ext <<_ACEOF
14281 cat confdefs.h >>conftest.$ac_ext
14282 cat >>conftest.$ac_ext <<_ACEOF
14283 /* end confdefs.h. */
14284 $ac_includes_default
14289 /* Are we little or big endian? From Harbison&Steele. */
14293 char c[sizeof (long int)];
14296 return u.c[sizeof (long int) - 1] == 1;
14302 rm -f conftest$ac_exeext
14303 if { (ac_try="$ac_link"
14304 case "(($ac_try" in
14305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14306 *) ac_try_echo
=$ac_try;;
14308 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14309 $as_echo "$ac_try_echo") >&5
14310 (eval "$ac_link") 2>&5
14312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14314 { (case "(($ac_try" in
14315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14316 *) ac_try_echo=$ac_try;;
14318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14319 $as_echo "$ac_try_echo") >&5
14320 (eval "$ac_try") 2>&5
14322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; }; then
14324 ac_cv_c_bigendian=no
14326 $as_echo "$as_me: program exited with status $ac_status" >&5
14327 $as_echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14330 ( exit $ac_status )
14331 ac_cv_c_bigendian=yes
14333 rm -rf conftest.dSYM
14334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14340 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14341 $as_echo "$ac_cv_c_bigendian" >&6; }
14342 case $ac_cv_c_bigendian in #(
14344 cat >>confdefs.h <<\_ACEOF
14345 #define WORDS_BIGENDIAN 1
14352 cat >>confdefs.h <<\_ACEOF
14353 #define AC_APPLE_UNIVERSAL_BUILD 1
14358 { { $as_echo "$as_me:$LINENO: error: unknown endianness
14359 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14360 $as_echo "$as_me: error: unknown endianness
14361 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14362 { (exit 1); exit 1; }; } ;;
14365 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14366 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14367 if test "${ac_cv_c_const+set}" = set; then
14368 $as_echo_n "(cached) " >&6
14370 cat >conftest.$ac_ext <<_ACEOF
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h. */
14380 /* FIXME: Include the comments suggested by Paul. */
14381 #ifndef __cplusplus
14382 /* Ultrix mips cc rejects this. */
14383 typedef int charset[2];
14385 /* SunOS 4.1.1 cc rejects this. */
14386 char const *const *pcpcc;
14388 /* NEC SVR4.0.2 mips cc rejects this. */
14389 struct point {int x, y;};
14390 static struct point const zero = {0,0};
14391 /* AIX XL C 1.02.0.0 rejects this.
14392 It does not let you subtract one const X* pointer from another in
14393 an arm of an if-expression whose if-part is not a constant
14395 const char *g = "string";
14396 pcpcc = &g + (g ? g-g : 0);
14397 /* HPUX 7.0 cc rejects these. */
14399 ppc = (char**) pcpcc;
14400 pcpcc = (char const *const *) ppc;
14401 { /* SCO 3.2v4 cc rejects this. */
14403 char const *s = 0 ? (char *) 0 : (char const *) 0;
14408 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14409 int x[] = {25, 17};
14410 const int *foo = &x[0];
14413 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14414 typedef const int *iptr;
14418 { /* AIX XL C 1.02.0.0 rejects this saying
14419 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14420 struct s { int j; const int *ap[3]; };
14421 struct s *b; b->j = 5;
14423 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14424 const int foo = 10;
14425 if (!foo) return 0;
14427 return !cs[0] && !zero.x;
14434 rm -f conftest.$ac_objext
14435 if { (ac_try="$ac_compile"
14436 case "(($ac_try" in
14437 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14438 *) ac_try_echo
=$ac_try;;
14440 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14441 $as_echo "$ac_try_echo") >&5
14442 (eval "$ac_compile") 2>conftest.er1
14444 grep -v '^ *+' conftest.er1
>conftest.err
14446 cat conftest.err
>&5
14447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); } && {
14449 test -z "$ac_c_werror_flag" ||
14450 test ! -s conftest.err
14451 } && test -s conftest.
$ac_objext; then
14454 $as_echo "$as_me: failed program was:" >&5
14455 sed 's/^/| /' conftest.
$ac_ext >&5
14460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14462 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14463 $as_echo "$ac_cv_c_const" >&6; }
14464 if test $ac_cv_c_const = no
; then
14466 cat >>confdefs.h
<<\_ACEOF
14472 { $as_echo "$as_me:$LINENO: checking for inline" >&5
14473 $as_echo_n "checking for inline... " >&6; }
14474 if test "${ac_cv_c_inline+set}" = set; then
14475 $as_echo_n "(cached) " >&6
14478 for ac_kw
in inline __inline__ __inline
; do
14479 cat >conftest.
$ac_ext <<_ACEOF
14482 cat confdefs.h
>>conftest.
$ac_ext
14483 cat >>conftest.
$ac_ext <<_ACEOF
14484 /* end confdefs.h. */
14485 #ifndef __cplusplus
14487 static $ac_kw foo_t static_foo () {return 0; }
14488 $ac_kw foo_t foo () {return 0; }
14492 rm -f conftest.
$ac_objext
14493 if { (ac_try
="$ac_compile"
14494 case "(($ac_try" in
14495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14496 *) ac_try_echo=$ac_try;;
14498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14499 $as_echo "$ac_try_echo") >&5
14500 (eval "$ac_compile") 2>conftest.er1
14502 grep -v '^ *+' conftest.er1 >conftest.err
14504 cat conftest.err >&5
14505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); } && {
14507 test -z "$ac_c_werror_flag" ||
14508 test ! -s conftest.err
14509 } && test -s conftest.$ac_objext; then
14510 ac_cv_c_inline=$ac_kw
14512 $as_echo "$as_me: failed program was:" >&5
14513 sed 's/^/| /' conftest.$ac_ext >&5
14518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14519 test "$ac_cv_c_inline" != no && break
14523 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14524 $as_echo "$ac_cv_c_inline" >&6; }
14527 case $ac_cv_c_inline in
14530 case $ac_cv_c_inline in
14532 *) ac_val=$ac_cv_c_inline;;
14534 cat >>confdefs.h <<_ACEOF
14535 #ifndef __cplusplus
14536 #define inline $ac_val
14542 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
14543 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
14544 if test "${pgac_cv_c_inline_quietly+set}" = set; then
14545 $as_echo_n "(cached) " >&6
14547 pgac_cv_c_inline_quietly=no
14548 if test "$ac_cv_c_inline" != no; then
14549 pgac_c_inline_save_werror=$ac_c_werror_flag
14550 ac_c_werror_flag=yes
14551 cat >conftest.$ac_ext <<_ACEOF
14554 cat confdefs.h >>conftest.$ac_ext
14555 cat >>conftest.$ac_ext <<_ACEOF
14556 /* end confdefs.h. */
14557 static inline int fun () {return 0;}
14566 rm -f conftest.$ac_objext conftest$ac_exeext
14567 if { (ac_try="$ac_link"
14568 case "(($ac_try" in
14569 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14570 *) ac_try_echo
=$ac_try;;
14572 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14573 $as_echo "$ac_try_echo") >&5
14574 (eval "$ac_link") 2>conftest.er1
14576 grep -v '^ *+' conftest.er1
>conftest.err
14578 cat conftest.err
>&5
14579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } && {
14581 test -z "$ac_c_werror_flag" ||
14582 test ! -s conftest.err
14583 } && test -s conftest
$ac_exeext && {
14584 test "$cross_compiling" = yes ||
14585 $as_test_x conftest
$ac_exeext
14587 pgac_cv_c_inline_quietly
=yes
14589 $as_echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.
$ac_ext >&5
14595 rm -rf conftest.dSYM
14596 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14597 conftest
$ac_exeext conftest.
$ac_ext
14598 ac_c_werror_flag
=$pgac_c_inline_save_werror
14601 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
14602 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
14603 if test "$pgac_cv_c_inline_quietly" != no
; then
14605 cat >>confdefs.h
<<_ACEOF
14606 #define USE_INLINE 1
14611 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14612 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
14613 if test "${ac_cv_c_stringize+set}" = set; then
14614 $as_echo_n "(cached) " >&6
14616 cat >conftest.
$ac_ext <<_ACEOF
14619 cat confdefs.h
>>conftest.
$ac_ext
14620 cat >>conftest.
$ac_ext <<_ACEOF
14621 /* end confdefs.h. */
14624 char *s = x(teststring);
14626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14627 $EGREP "#teststring" >/dev
/null
2>&1; then
14628 ac_cv_c_stringize
=no
14630 ac_cv_c_stringize
=yes
14635 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
14636 $as_echo "$ac_cv_c_stringize" >&6; }
14637 if test $ac_cv_c_stringize = yes; then
14639 cat >>confdefs.h
<<\_ACEOF
14640 #define HAVE_STRINGIZE 1
14645 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
14646 $as_echo_n "checking for signed types... " >&6; }
14647 if test "${pgac_cv_c_signed+set}" = set; then
14648 $as_echo_n "(cached) " >&6
14650 cat >conftest.
$ac_ext <<_ACEOF
14653 cat confdefs.h
>>conftest.
$ac_ext
14654 cat >>conftest.
$ac_ext <<_ACEOF
14655 /* end confdefs.h. */
14660 signed char c; signed short s; signed int i;
14665 rm -f conftest.
$ac_objext
14666 if { (ac_try
="$ac_compile"
14667 case "(($ac_try" in
14668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14669 *) ac_try_echo=$ac_try;;
14671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14672 $as_echo "$ac_try_echo") >&5
14673 (eval "$ac_compile") 2>conftest.er1
14675 grep -v '^ *+' conftest.er1 >conftest.err
14677 cat conftest.err >&5
14678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } && {
14680 test -z "$ac_c_werror_flag" ||
14681 test ! -s conftest.err
14682 } && test -s conftest.$ac_objext; then
14683 pgac_cv_c_signed=yes
14685 $as_echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14688 pgac_cv_c_signed=no
14691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14693 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14694 $as_echo "$pgac_cv_c_signed" >&6; }
14695 if test x"$pgac_cv_c_signed" = xno ; then
14697 cat >>confdefs.h <<\_ACEOF
14698 #define signed /**/
14702 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
14703 $as_echo_n "checking for working volatile... " >&6; }
14704 if test "${ac_cv_c_volatile+set}" = set; then
14705 $as_echo_n "(cached) " >&6
14707 cat >conftest.$ac_ext <<_ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h. */
14719 int * volatile y = (int *) 0;
14725 rm -f conftest.$ac_objext
14726 if { (ac_try="$ac_compile"
14727 case "(($ac_try" in
14728 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14729 *) ac_try_echo
=$ac_try;;
14731 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14732 $as_echo "$ac_try_echo") >&5
14733 (eval "$ac_compile") 2>conftest.er1
14735 grep -v '^ *+' conftest.er1
>conftest.err
14737 cat conftest.err
>&5
14738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); } && {
14740 test -z "$ac_c_werror_flag" ||
14741 test ! -s conftest.err
14742 } && test -s conftest.
$ac_objext; then
14743 ac_cv_c_volatile
=yes
14745 $as_echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.
$ac_ext >&5
14748 ac_cv_c_volatile
=no
14751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14753 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14754 $as_echo "$ac_cv_c_volatile" >&6; }
14755 if test $ac_cv_c_volatile = no
; then
14757 cat >>confdefs.h
<<\_ACEOF
14758 #define volatile /**/
14763 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
14764 $as_echo_n "checking for __func__... " >&6; }
14765 if test "${pgac_cv_funcname_func_support+set}" = set; then
14766 $as_echo_n "(cached) " >&6
14768 cat >conftest.
$ac_ext <<_ACEOF
14771 cat confdefs.h
>>conftest.
$ac_ext
14772 cat >>conftest.
$ac_ext <<_ACEOF
14773 /* end confdefs.h. */
14778 printf("%s\n", __func__);
14783 rm -f conftest.
$ac_objext
14784 if { (ac_try
="$ac_compile"
14785 case "(($ac_try" in
14786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14787 *) ac_try_echo=$ac_try;;
14789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14790 $as_echo "$ac_try_echo") >&5
14791 (eval "$ac_compile") 2>conftest.er1
14793 grep -v '^ *+' conftest.er1 >conftest.err
14795 cat conftest.err >&5
14796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); } && {
14798 test -z "$ac_c_werror_flag" ||
14799 test ! -s conftest.err
14800 } && test -s conftest.$ac_objext; then
14801 pgac_cv_funcname_func_support=yes
14803 $as_echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14806 pgac_cv_funcname_func_support=no
14809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14811 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14812 $as_echo "$pgac_cv_funcname_func_support" >&6; }
14813 if test x"$pgac_cv_funcname_func_support" = xyes ; then
14815 cat >>confdefs.h <<\_ACEOF
14816 #define HAVE_FUNCNAME__FUNC 1
14820 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14821 $as_echo_n "checking for __FUNCTION__... " >&6; }
14822 if test "${pgac_cv_funcname_function_support+set}" = set; then
14823 $as_echo_n "(cached) " >&6
14825 cat >conftest.$ac_ext <<_ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h. */
14835 printf("%s\n", __FUNCTION__);
14840 rm -f conftest.$ac_objext
14841 if { (ac_try="$ac_compile"
14842 case "(($ac_try" in
14843 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14844 *) ac_try_echo
=$ac_try;;
14846 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14847 $as_echo "$ac_try_echo") >&5
14848 (eval "$ac_compile") 2>conftest.er1
14850 grep -v '^ *+' conftest.er1
>conftest.err
14852 cat conftest.err
>&5
14853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); } && {
14855 test -z "$ac_c_werror_flag" ||
14856 test ! -s conftest.err
14857 } && test -s conftest.
$ac_objext; then
14858 pgac_cv_funcname_function_support
=yes
14860 $as_echo "$as_me: failed program was:" >&5
14861 sed 's/^/| /' conftest.
$ac_ext >&5
14863 pgac_cv_funcname_function_support
=no
14866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14868 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14869 $as_echo "$pgac_cv_funcname_function_support" >&6; }
14870 if test x
"$pgac_cv_funcname_function_support" = xyes
; then
14872 cat >>confdefs.h
<<\_ACEOF
14873 #define HAVE_FUNCNAME__FUNCTION 1
14878 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14879 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14880 if test "${ac_cv_struct_tm+set}" = set; then
14881 $as_echo_n "(cached) " >&6
14883 cat >conftest.
$ac_ext <<_ACEOF
14886 cat confdefs.h
>>conftest.
$ac_ext
14887 cat >>conftest.
$ac_ext <<_ACEOF
14888 /* end confdefs.h. */
14889 #include <sys/types.h>
14896 int *p = &tm.tm_sec;
14902 rm -f conftest.
$ac_objext
14903 if { (ac_try
="$ac_compile"
14904 case "(($ac_try" in
14905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14906 *) ac_try_echo=$ac_try;;
14908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14909 $as_echo "$ac_try_echo") >&5
14910 (eval "$ac_compile") 2>conftest.er1
14912 grep -v '^ *+' conftest.er1 >conftest.err
14914 cat conftest.err >&5
14915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } && {
14917 test -z "$ac_c_werror_flag" ||
14918 test ! -s conftest.err
14919 } && test -s conftest.$ac_objext; then
14920 ac_cv_struct_tm=time.h
14922 $as_echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14925 ac_cv_struct_tm=sys/time.h
14928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14930 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14931 $as_echo "$ac_cv_struct_tm" >&6; }
14932 if test $ac_cv_struct_tm = sys/time.h; then
14934 cat >>confdefs.h <<\_ACEOF
14935 #define TM_IN_SYS_TIME 1
14940 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14941 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
14942 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14943 $as_echo_n "(cached) " >&6
14945 cat >conftest.$ac_ext <<_ACEOF
14948 cat confdefs.h >>conftest.$ac_ext
14949 cat >>conftest.$ac_ext <<_ACEOF
14950 /* end confdefs.h. */
14951 #include <sys/types.h>
14952 #include <$ac_cv_struct_tm>
14958 static struct tm ac_aggr;
14959 if (ac_aggr.tm_zone)
14965 rm -f conftest.$ac_objext
14966 if { (ac_try="$ac_compile"
14967 case "(($ac_try" in
14968 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14969 *) ac_try_echo
=$ac_try;;
14971 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14972 $as_echo "$ac_try_echo") >&5
14973 (eval "$ac_compile") 2>conftest.er1
14975 grep -v '^ *+' conftest.er1
>conftest.err
14977 cat conftest.err
>&5
14978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); } && {
14980 test -z "$ac_c_werror_flag" ||
14981 test ! -s conftest.err
14982 } && test -s conftest.
$ac_objext; then
14983 ac_cv_member_struct_tm_tm_zone
=yes
14985 $as_echo "$as_me: failed program was:" >&5
14986 sed 's/^/| /' conftest.
$ac_ext >&5
14988 cat >conftest.
$ac_ext <<_ACEOF
14991 cat confdefs.h
>>conftest.
$ac_ext
14992 cat >>conftest.
$ac_ext <<_ACEOF
14993 /* end confdefs.h. */
14994 #include <sys/types.h>
14995 #include <$ac_cv_struct_tm>
15001 static struct tm ac_aggr;
15002 if (sizeof ac_aggr.tm_zone)
15008 rm -f conftest.
$ac_objext
15009 if { (ac_try
="$ac_compile"
15010 case "(($ac_try" in
15011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15012 *) ac_try_echo=$ac_try;;
15014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15015 $as_echo "$ac_try_echo") >&5
15016 (eval "$ac_compile") 2>conftest.er1
15018 grep -v '^ *+' conftest.er1 >conftest.err
15020 cat conftest.err >&5
15021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); } && {
15023 test -z "$ac_c_werror_flag" ||
15024 test ! -s conftest.err
15025 } && test -s conftest.$ac_objext; then
15026 ac_cv_member_struct_tm_tm_zone=yes
15028 $as_echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.$ac_ext >&5
15031 ac_cv_member_struct_tm_tm_zone=no
15034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15039 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
15040 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
15041 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
15043 cat >>confdefs.h <<_ACEOF
15044 #define HAVE_STRUCT_TM_TM_ZONE 1
15050 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
15052 cat >>confdefs.h <<\_ACEOF
15053 #define HAVE_TM_ZONE 1
15057 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
15058 $as_echo_n "checking for tzname... " >&6; }
15059 if test "${ac_cv_var_tzname+set}" = set; then
15060 $as_echo_n "(cached) " >&6
15062 cat >conftest.$ac_ext <<_ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h. */
15069 #ifndef tzname /* For SGI. */
15070 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
15081 rm -f conftest.$ac_objext conftest$ac_exeext
15082 if { (ac_try="$ac_link"
15083 case "(($ac_try" in
15084 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15085 *) ac_try_echo
=$ac_try;;
15087 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15088 $as_echo "$ac_try_echo") >&5
15089 (eval "$ac_link") 2>conftest.er1
15091 grep -v '^ *+' conftest.er1
>conftest.err
15093 cat conftest.err
>&5
15094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } && {
15096 test -z "$ac_c_werror_flag" ||
15097 test ! -s conftest.err
15098 } && test -s conftest
$ac_exeext && {
15099 test "$cross_compiling" = yes ||
15100 $as_test_x conftest
$ac_exeext
15102 ac_cv_var_tzname
=yes
15104 $as_echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.
$ac_ext >&5
15107 ac_cv_var_tzname
=no
15110 rm -rf conftest.dSYM
15111 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15112 conftest
$ac_exeext conftest.
$ac_ext
15114 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
15115 $as_echo "$ac_cv_var_tzname" >&6; }
15116 if test $ac_cv_var_tzname = yes; then
15118 cat >>confdefs.h
<<\_ACEOF
15119 #define HAVE_TZNAME 1
15124 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
15125 $as_echo_n "checking for union semun... " >&6; }
15126 if test "${ac_cv_type_union_semun+set}" = set; then
15127 $as_echo_n "(cached) " >&6
15129 ac_cv_type_union_semun
=no
15130 cat >conftest.
$ac_ext <<_ACEOF
15133 cat confdefs.h
>>conftest.
$ac_ext
15134 cat >>conftest.
$ac_ext <<_ACEOF
15135 /* end confdefs.h. */
15136 #include <sys/types.h>
15137 #include <sys/ipc.h>
15138 #include <sys/sem.h>
15143 if (sizeof (union semun))
15149 rm -f conftest.
$ac_objext
15150 if { (ac_try
="$ac_compile"
15151 case "(($ac_try" in
15152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15153 *) ac_try_echo=$ac_try;;
15155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15156 $as_echo "$ac_try_echo") >&5
15157 (eval "$ac_compile") 2>conftest.er1
15159 grep -v '^ *+' conftest.er1 >conftest.err
15161 cat conftest.err >&5
15162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } && {
15164 test -z "$ac_c_werror_flag" ||
15165 test ! -s conftest.err
15166 } && test -s conftest.$ac_objext; then
15167 cat >conftest.$ac_ext <<_ACEOF
15170 cat confdefs.h >>conftest.$ac_ext
15171 cat >>conftest.$ac_ext <<_ACEOF
15172 /* end confdefs.h. */
15173 #include <sys/types.h>
15174 #include <sys/ipc.h>
15175 #include <sys/sem.h>
15180 if (sizeof ((union semun)))
15186 rm -f conftest.$ac_objext
15187 if { (ac_try="$ac_compile"
15188 case "(($ac_try" in
15189 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15190 *) ac_try_echo
=$ac_try;;
15192 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15193 $as_echo "$ac_try_echo") >&5
15194 (eval "$ac_compile") 2>conftest.er1
15196 grep -v '^ *+' conftest.er1
>conftest.err
15198 cat conftest.err
>&5
15199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); } && {
15201 test -z "$ac_c_werror_flag" ||
15202 test ! -s conftest.err
15203 } && test -s conftest.
$ac_objext; then
15206 $as_echo "$as_me: failed program was:" >&5
15207 sed 's/^/| /' conftest.
$ac_ext >&5
15209 ac_cv_type_union_semun
=yes
15212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15214 $as_echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.
$ac_ext >&5
15220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15222 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
15223 $as_echo "$ac_cv_type_union_semun" >&6; }
15224 if test "x$ac_cv_type_union_semun" = x
""yes; then
15226 cat >>confdefs.h
<<_ACEOF
15227 #define HAVE_UNION_SEMUN 1
15233 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
15234 $as_echo_n "checking for struct sockaddr_un... " >&6; }
15235 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
15236 $as_echo_n "(cached) " >&6
15238 ac_cv_type_struct_sockaddr_un
=no
15239 cat >conftest.
$ac_ext <<_ACEOF
15242 cat confdefs.h
>>conftest.
$ac_ext
15243 cat >>conftest.
$ac_ext <<_ACEOF
15244 /* end confdefs.h. */
15245 #include <sys/types.h>
15246 #ifdef HAVE_SYS_UN_H
15247 #include <sys/un.h>
15254 if (sizeof (struct sockaddr_un))
15260 rm -f conftest.
$ac_objext
15261 if { (ac_try
="$ac_compile"
15262 case "(($ac_try" in
15263 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15267 $as_echo "$ac_try_echo") >&5
15268 (eval "$ac_compile") 2>conftest.er1
15270 grep -v '^ *+' conftest.er1 >conftest.err
15272 cat conftest.err >&5
15273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } && {
15275 test -z "$ac_c_werror_flag" ||
15276 test ! -s conftest.err
15277 } && test -s conftest.$ac_objext; then
15278 cat >conftest.$ac_ext <<_ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h. */
15284 #include <sys/types.h>
15285 #ifdef HAVE_SYS_UN_H
15286 #include <sys/un.h>
15293 if (sizeof ((struct sockaddr_un)))
15299 rm -f conftest.$ac_objext
15300 if { (ac_try="$ac_compile"
15301 case "(($ac_try" in
15302 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15303 *) ac_try_echo
=$ac_try;;
15305 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15306 $as_echo "$ac_try_echo") >&5
15307 (eval "$ac_compile") 2>conftest.er1
15309 grep -v '^ *+' conftest.er1
>conftest.err
15311 cat conftest.err
>&5
15312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); } && {
15314 test -z "$ac_c_werror_flag" ||
15315 test ! -s conftest.err
15316 } && test -s conftest.
$ac_objext; then
15319 $as_echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.
$ac_ext >&5
15322 ac_cv_type_struct_sockaddr_un
=yes
15325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15327 $as_echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.
$ac_ext >&5
15333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15335 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
15336 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
15337 if test "x$ac_cv_type_struct_sockaddr_un" = x
""yes; then
15339 cat >>confdefs.h
<<_ACEOF
15340 #define HAVE_STRUCT_SOCKADDR_UN 1
15344 cat >>confdefs.h
<<\_ACEOF
15345 #define HAVE_UNIX_SOCKETS 1
15350 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
15351 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
15352 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
15353 $as_echo_n "(cached) " >&6
15355 ac_cv_type_struct_sockaddr_storage
=no
15356 cat >conftest.
$ac_ext <<_ACEOF
15359 cat confdefs.h
>>conftest.
$ac_ext
15360 cat >>conftest.
$ac_ext <<_ACEOF
15361 /* end confdefs.h. */
15362 #include <sys/types.h>
15363 #ifdef HAVE_SYS_SOCKET_H
15364 #include <sys/socket.h>
15371 if (sizeof (struct sockaddr_storage))
15377 rm -f conftest.
$ac_objext
15378 if { (ac_try
="$ac_compile"
15379 case "(($ac_try" in
15380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15381 *) ac_try_echo=$ac_try;;
15383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15384 $as_echo "$ac_try_echo") >&5
15385 (eval "$ac_compile") 2>conftest.er1
15387 grep -v '^ *+' conftest.er1 >conftest.err
15389 cat conftest.err >&5
15390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); } && {
15392 test -z "$ac_c_werror_flag" ||
15393 test ! -s conftest.err
15394 } && test -s conftest.$ac_objext; then
15395 cat >conftest.$ac_ext <<_ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h. */
15401 #include <sys/types.h>
15402 #ifdef HAVE_SYS_SOCKET_H
15403 #include <sys/socket.h>
15410 if (sizeof ((struct sockaddr_storage)))
15416 rm -f conftest.$ac_objext
15417 if { (ac_try="$ac_compile"
15418 case "(($ac_try" in
15419 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15420 *) ac_try_echo
=$ac_try;;
15422 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15423 $as_echo "$ac_try_echo") >&5
15424 (eval "$ac_compile") 2>conftest.er1
15426 grep -v '^ *+' conftest.er1
>conftest.err
15428 cat conftest.err
>&5
15429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); } && {
15431 test -z "$ac_c_werror_flag" ||
15432 test ! -s conftest.err
15433 } && test -s conftest.
$ac_objext; then
15436 $as_echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.
$ac_ext >&5
15439 ac_cv_type_struct_sockaddr_storage
=yes
15442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15444 $as_echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.
$ac_ext >&5
15450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15452 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
15453 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
15454 if test "x$ac_cv_type_struct_sockaddr_storage" = x
""yes; then
15456 cat >>confdefs.h
<<_ACEOF
15457 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15463 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
15464 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
15465 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
15466 $as_echo_n "(cached) " >&6
15468 cat >conftest.
$ac_ext <<_ACEOF
15471 cat confdefs.h
>>conftest.
$ac_ext
15472 cat >>conftest.
$ac_ext <<_ACEOF
15473 /* end confdefs.h. */
15474 #include <sys/types.h>
15475 #ifdef HAVE_SYS_SOCKET_H
15476 #include <sys/socket.h>
15483 static struct sockaddr_storage ac_aggr;
15484 if (ac_aggr.ss_family)
15490 rm -f conftest.
$ac_objext
15491 if { (ac_try
="$ac_compile"
15492 case "(($ac_try" in
15493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15494 *) ac_try_echo=$ac_try;;
15496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15497 $as_echo "$ac_try_echo") >&5
15498 (eval "$ac_compile") 2>conftest.er1
15500 grep -v '^ *+' conftest.er1 >conftest.err
15502 cat conftest.err >&5
15503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); } && {
15505 test -z "$ac_c_werror_flag" ||
15506 test ! -s conftest.err
15507 } && test -s conftest.$ac_objext; then
15508 ac_cv_member_struct_sockaddr_storage_ss_family=yes
15510 $as_echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15513 cat >conftest.$ac_ext <<_ACEOF
15516 cat confdefs.h >>conftest.$ac_ext
15517 cat >>conftest.$ac_ext <<_ACEOF
15518 /* end confdefs.h. */
15519 #include <sys/types.h>
15520 #ifdef HAVE_SYS_SOCKET_H
15521 #include <sys/socket.h>
15528 static struct sockaddr_storage ac_aggr;
15529 if (sizeof ac_aggr.ss_family)
15535 rm -f conftest.$ac_objext
15536 if { (ac_try="$ac_compile"
15537 case "(($ac_try" in
15538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15539 *) ac_try_echo
=$ac_try;;
15541 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15542 $as_echo "$ac_try_echo") >&5
15543 (eval "$ac_compile") 2>conftest.er1
15545 grep -v '^ *+' conftest.er1
>conftest.err
15547 cat conftest.err
>&5
15548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); } && {
15550 test -z "$ac_c_werror_flag" ||
15551 test ! -s conftest.err
15552 } && test -s conftest.
$ac_objext; then
15553 ac_cv_member_struct_sockaddr_storage_ss_family
=yes
15555 $as_echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.
$ac_ext >&5
15558 ac_cv_member_struct_sockaddr_storage_ss_family
=no
15561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15566 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
15567 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
15568 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x
""yes; then
15570 cat >>confdefs.h
<<_ACEOF
15571 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15576 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
15577 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
15578 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
15579 $as_echo_n "(cached) " >&6
15581 cat >conftest.
$ac_ext <<_ACEOF
15584 cat confdefs.h
>>conftest.
$ac_ext
15585 cat >>conftest.
$ac_ext <<_ACEOF
15586 /* end confdefs.h. */
15587 #include <sys/types.h>
15588 #ifdef HAVE_SYS_SOCKET_H
15589 #include <sys/socket.h>
15596 static struct sockaddr_storage ac_aggr;
15597 if (ac_aggr.__ss_family)
15603 rm -f conftest.
$ac_objext
15604 if { (ac_try
="$ac_compile"
15605 case "(($ac_try" in
15606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15607 *) ac_try_echo=$ac_try;;
15609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15610 $as_echo "$ac_try_echo") >&5
15611 (eval "$ac_compile") 2>conftest.er1
15613 grep -v '^ *+' conftest.er1 >conftest.err
15615 cat conftest.err >&5
15616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); } && {
15618 test -z "$ac_c_werror_flag" ||
15619 test ! -s conftest.err
15620 } && test -s conftest.$ac_objext; then
15621 ac_cv_member_struct_sockaddr_storage___ss_family=yes
15623 $as_echo "$as_me: failed program was:" >&5
15624 sed 's/^/| /' conftest.$ac_ext >&5
15626 cat >conftest.$ac_ext <<_ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h. */
15632 #include <sys/types.h>
15633 #ifdef HAVE_SYS_SOCKET_H
15634 #include <sys/socket.h>
15641 static struct sockaddr_storage ac_aggr;
15642 if (sizeof ac_aggr.__ss_family)
15648 rm -f conftest.$ac_objext
15649 if { (ac_try="$ac_compile"
15650 case "(($ac_try" in
15651 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15652 *) ac_try_echo
=$ac_try;;
15654 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15655 $as_echo "$ac_try_echo") >&5
15656 (eval "$ac_compile") 2>conftest.er1
15658 grep -v '^ *+' conftest.er1
>conftest.err
15660 cat conftest.err
>&5
15661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); } && {
15663 test -z "$ac_c_werror_flag" ||
15664 test ! -s conftest.err
15665 } && test -s conftest.
$ac_objext; then
15666 ac_cv_member_struct_sockaddr_storage___ss_family
=yes
15668 $as_echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.
$ac_ext >&5
15671 ac_cv_member_struct_sockaddr_storage___ss_family
=no
15674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15679 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
15680 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
15681 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x
""yes; then
15683 cat >>confdefs.h
<<_ACEOF
15684 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15689 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
15690 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
15691 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
15692 $as_echo_n "(cached) " >&6
15694 cat >conftest.
$ac_ext <<_ACEOF
15697 cat confdefs.h
>>conftest.
$ac_ext
15698 cat >>conftest.
$ac_ext <<_ACEOF
15699 /* end confdefs.h. */
15700 #include <sys/types.h>
15701 #ifdef HAVE_SYS_SOCKET_H
15702 #include <sys/socket.h>
15709 static struct sockaddr_storage ac_aggr;
15710 if (ac_aggr.ss_len)
15716 rm -f conftest.
$ac_objext
15717 if { (ac_try
="$ac_compile"
15718 case "(($ac_try" in
15719 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15720 *) ac_try_echo=$ac_try;;
15722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15723 $as_echo "$ac_try_echo") >&5
15724 (eval "$ac_compile") 2>conftest.er1
15726 grep -v '^ *+' conftest.er1 >conftest.err
15728 cat conftest.err >&5
15729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); } && {
15731 test -z "$ac_c_werror_flag" ||
15732 test ! -s conftest.err
15733 } && test -s conftest.$ac_objext; then
15734 ac_cv_member_struct_sockaddr_storage_ss_len=yes
15736 $as_echo "$as_me: failed program was:" >&5
15737 sed 's/^/| /' conftest.$ac_ext >&5
15739 cat >conftest.$ac_ext <<_ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h. */
15745 #include <sys/types.h>
15746 #ifdef HAVE_SYS_SOCKET_H
15747 #include <sys/socket.h>
15754 static struct sockaddr_storage ac_aggr;
15755 if (sizeof ac_aggr.ss_len)
15761 rm -f conftest.$ac_objext
15762 if { (ac_try="$ac_compile"
15763 case "(($ac_try" in
15764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15765 *) ac_try_echo
=$ac_try;;
15767 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15768 $as_echo "$ac_try_echo") >&5
15769 (eval "$ac_compile") 2>conftest.er1
15771 grep -v '^ *+' conftest.er1
>conftest.err
15773 cat conftest.err
>&5
15774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); } && {
15776 test -z "$ac_c_werror_flag" ||
15777 test ! -s conftest.err
15778 } && test -s conftest.
$ac_objext; then
15779 ac_cv_member_struct_sockaddr_storage_ss_len
=yes
15781 $as_echo "$as_me: failed program was:" >&5
15782 sed 's/^/| /' conftest.
$ac_ext >&5
15784 ac_cv_member_struct_sockaddr_storage_ss_len
=no
15787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15790 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15792 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
15793 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
15794 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x
""yes; then
15796 cat >>confdefs.h
<<_ACEOF
15797 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
15802 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
15803 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
15804 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
15805 $as_echo_n "(cached) " >&6
15807 cat >conftest.
$ac_ext <<_ACEOF
15810 cat confdefs.h
>>conftest.
$ac_ext
15811 cat >>conftest.
$ac_ext <<_ACEOF
15812 /* end confdefs.h. */
15813 #include <sys/types.h>
15814 #ifdef HAVE_SYS_SOCKET_H
15815 #include <sys/socket.h>
15822 static struct sockaddr_storage ac_aggr;
15823 if (ac_aggr.__ss_len)
15829 rm -f conftest.
$ac_objext
15830 if { (ac_try
="$ac_compile"
15831 case "(($ac_try" in
15832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15833 *) ac_try_echo=$ac_try;;
15835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15836 $as_echo "$ac_try_echo") >&5
15837 (eval "$ac_compile") 2>conftest.er1
15839 grep -v '^ *+' conftest.er1 >conftest.err
15841 cat conftest.err >&5
15842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); } && {
15844 test -z "$ac_c_werror_flag" ||
15845 test ! -s conftest.err
15846 } && test -s conftest.$ac_objext; then
15847 ac_cv_member_struct_sockaddr_storage___ss_len=yes
15849 $as_echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15852 cat >conftest.$ac_ext <<_ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h. */
15858 #include <sys/types.h>
15859 #ifdef HAVE_SYS_SOCKET_H
15860 #include <sys/socket.h>
15867 static struct sockaddr_storage ac_aggr;
15868 if (sizeof ac_aggr.__ss_len)
15874 rm -f conftest.$ac_objext
15875 if { (ac_try="$ac_compile"
15876 case "(($ac_try" in
15877 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15878 *) ac_try_echo
=$ac_try;;
15880 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15881 $as_echo "$ac_try_echo") >&5
15882 (eval "$ac_compile") 2>conftest.er1
15884 grep -v '^ *+' conftest.er1
>conftest.err
15886 cat conftest.err
>&5
15887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); } && {
15889 test -z "$ac_c_werror_flag" ||
15890 test ! -s conftest.err
15891 } && test -s conftest.
$ac_objext; then
15892 ac_cv_member_struct_sockaddr_storage___ss_len
=yes
15894 $as_echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.
$ac_ext >&5
15897 ac_cv_member_struct_sockaddr_storage___ss_len
=no
15900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15905 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
15906 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
15907 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x
""yes; then
15909 cat >>confdefs.h
<<_ACEOF
15910 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
15915 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15916 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
15917 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15918 $as_echo_n "(cached) " >&6
15920 cat >conftest.
$ac_ext <<_ACEOF
15923 cat confdefs.h
>>conftest.
$ac_ext
15924 cat >>conftest.
$ac_ext <<_ACEOF
15925 /* end confdefs.h. */
15926 #include <sys/types.h>
15927 #ifdef HAVE_SYS_SOCKET_H
15928 #include <sys/socket.h>
15935 static struct sockaddr ac_aggr;
15936 if (ac_aggr.sa_len)
15942 rm -f conftest.
$ac_objext
15943 if { (ac_try
="$ac_compile"
15944 case "(($ac_try" in
15945 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15946 *) ac_try_echo=$ac_try;;
15948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15949 $as_echo "$ac_try_echo") >&5
15950 (eval "$ac_compile") 2>conftest.er1
15952 grep -v '^ *+' conftest.er1 >conftest.err
15954 cat conftest.err >&5
15955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); } && {
15957 test -z "$ac_c_werror_flag" ||
15958 test ! -s conftest.err
15959 } && test -s conftest.$ac_objext; then
15960 ac_cv_member_struct_sockaddr_sa_len=yes
15962 $as_echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15965 cat >conftest.$ac_ext <<_ACEOF
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h. */
15971 #include <sys/types.h>
15972 #ifdef HAVE_SYS_SOCKET_H
15973 #include <sys/socket.h>
15980 static struct sockaddr ac_aggr;
15981 if (sizeof ac_aggr.sa_len)
15987 rm -f conftest.$ac_objext
15988 if { (ac_try="$ac_compile"
15989 case "(($ac_try" in
15990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15991 *) ac_try_echo
=$ac_try;;
15993 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15994 $as_echo "$ac_try_echo") >&5
15995 (eval "$ac_compile") 2>conftest.er1
15997 grep -v '^ *+' conftest.er1
>conftest.err
15999 cat conftest.err
>&5
16000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); } && {
16002 test -z "$ac_c_werror_flag" ||
16003 test ! -s conftest.err
16004 } && test -s conftest.
$ac_objext; then
16005 ac_cv_member_struct_sockaddr_sa_len
=yes
16007 $as_echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.
$ac_ext >&5
16010 ac_cv_member_struct_sockaddr_sa_len
=no
16013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16018 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16019 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
16020 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x
""yes; then
16022 cat >>confdefs.h
<<_ACEOF
16023 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16029 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
16030 $as_echo_n "checking for struct addrinfo... " >&6; }
16031 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
16032 $as_echo_n "(cached) " >&6
16034 ac_cv_type_struct_addrinfo
=no
16035 cat >conftest.
$ac_ext <<_ACEOF
16038 cat confdefs.h
>>conftest.
$ac_ext
16039 cat >>conftest.
$ac_ext <<_ACEOF
16040 /* end confdefs.h. */
16041 #include <sys/types.h>
16042 #include <sys/socket.h>
16049 if (sizeof (struct addrinfo))
16055 rm -f conftest.
$ac_objext
16056 if { (ac_try
="$ac_compile"
16057 case "(($ac_try" in
16058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16062 $as_echo "$ac_try_echo") >&5
16063 (eval "$ac_compile") 2>conftest.er1
16065 grep -v '^ *+' conftest.er1 >conftest.err
16067 cat conftest.err >&5
16068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); } && {
16070 test -z "$ac_c_werror_flag" ||
16071 test ! -s conftest.err
16072 } && test -s conftest.$ac_objext; then
16073 cat >conftest.$ac_ext <<_ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h. */
16079 #include <sys/types.h>
16080 #include <sys/socket.h>
16087 if (sizeof ((struct addrinfo)))
16093 rm -f conftest.$ac_objext
16094 if { (ac_try="$ac_compile"
16095 case "(($ac_try" in
16096 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16097 *) ac_try_echo
=$ac_try;;
16099 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16100 $as_echo "$ac_try_echo") >&5
16101 (eval "$ac_compile") 2>conftest.er1
16103 grep -v '^ *+' conftest.er1
>conftest.err
16105 cat conftest.err
>&5
16106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); } && {
16108 test -z "$ac_c_werror_flag" ||
16109 test ! -s conftest.err
16110 } && test -s conftest.
$ac_objext; then
16113 $as_echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.
$ac_ext >&5
16116 ac_cv_type_struct_addrinfo
=yes
16119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16121 $as_echo "$as_me: failed program was:" >&5
16122 sed 's/^/| /' conftest.
$ac_ext >&5
16127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16129 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
16130 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
16131 if test "x$ac_cv_type_struct_addrinfo" = x
""yes; then
16133 cat >>confdefs.h
<<_ACEOF
16134 #define HAVE_STRUCT_ADDRINFO 1
16141 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
16142 $as_echo_n "checking for intptr_t... " >&6; }
16143 if test "${ac_cv_type_intptr_t+set}" = set; then
16144 $as_echo_n "(cached) " >&6
16146 ac_cv_type_intptr_t
=no
16147 cat >conftest.
$ac_ext <<_ACEOF
16150 cat confdefs.h
>>conftest.
$ac_ext
16151 cat >>conftest.
$ac_ext <<_ACEOF
16152 /* end confdefs.h. */
16153 $ac_includes_default
16157 if (sizeof (intptr_t))
16163 rm -f conftest.
$ac_objext
16164 if { (ac_try
="$ac_compile"
16165 case "(($ac_try" in
16166 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16167 *) ac_try_echo=$ac_try;;
16169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16170 $as_echo "$ac_try_echo") >&5
16171 (eval "$ac_compile") 2>conftest.er1
16173 grep -v '^ *+' conftest.er1 >conftest.err
16175 cat conftest.err >&5
16176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); } && {
16178 test -z "$ac_c_werror_flag" ||
16179 test ! -s conftest.err
16180 } && test -s conftest.$ac_objext; then
16181 cat >conftest.$ac_ext <<_ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h. */
16187 $ac_includes_default
16191 if (sizeof ((intptr_t)))
16197 rm -f conftest.$ac_objext
16198 if { (ac_try="$ac_compile"
16199 case "(($ac_try" in
16200 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16201 *) ac_try_echo
=$ac_try;;
16203 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16204 $as_echo "$ac_try_echo") >&5
16205 (eval "$ac_compile") 2>conftest.er1
16207 grep -v '^ *+' conftest.er1
>conftest.err
16209 cat conftest.err
>&5
16210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } && {
16212 test -z "$ac_c_werror_flag" ||
16213 test ! -s conftest.err
16214 } && test -s conftest.
$ac_objext; then
16217 $as_echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.
$ac_ext >&5
16220 ac_cv_type_intptr_t
=yes
16223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16225 $as_echo "$as_me: failed program was:" >&5
16226 sed 's/^/| /' conftest.
$ac_ext >&5
16231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16233 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
16234 $as_echo "$ac_cv_type_intptr_t" >&6; }
16235 if test "x$ac_cv_type_intptr_t" = x
""yes; then
16237 cat >>confdefs.h
<<\_ACEOF
16238 #define HAVE_INTPTR_T 1
16242 for ac_type
in 'int' 'long int' 'long long int'; do
16243 cat >conftest.
$ac_ext <<_ACEOF
16246 cat confdefs.h
>>conftest.
$ac_ext
16247 cat >>conftest.
$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16249 $ac_includes_default
16253 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16260 rm -f conftest.
$ac_objext
16261 if { (ac_try
="$ac_compile"
16262 case "(($ac_try" in
16263 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16267 $as_echo "$ac_try_echo") >&5
16268 (eval "$ac_compile") 2>conftest.er1
16270 grep -v '^ *+' conftest.er1 >conftest.err
16272 cat conftest.err >&5
16273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } && {
16275 test -z "$ac_c_werror_flag" ||
16276 test ! -s conftest.err
16277 } && test -s conftest.$ac_objext; then
16279 cat >>confdefs.h <<_ACEOF
16280 #define intptr_t $ac_type
16285 $as_echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16292 test -z "$ac_type" && break
16298 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
16299 $as_echo_n "checking for uintptr_t... " >&6; }
16300 if test "${ac_cv_type_uintptr_t+set}" = set; then
16301 $as_echo_n "(cached) " >&6
16303 ac_cv_type_uintptr_t=no
16304 cat >conftest.$ac_ext <<_ACEOF
16307 cat confdefs.h >>conftest.$ac_ext
16308 cat >>conftest.$ac_ext <<_ACEOF
16309 /* end confdefs.h. */
16310 $ac_includes_default
16314 if (sizeof (uintptr_t))
16320 rm -f conftest.$ac_objext
16321 if { (ac_try="$ac_compile"
16322 case "(($ac_try" in
16323 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16324 *) ac_try_echo
=$ac_try;;
16326 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16327 $as_echo "$ac_try_echo") >&5
16328 (eval "$ac_compile") 2>conftest.er1
16330 grep -v '^ *+' conftest.er1
>conftest.err
16332 cat conftest.err
>&5
16333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } && {
16335 test -z "$ac_c_werror_flag" ||
16336 test ! -s conftest.err
16337 } && test -s conftest.
$ac_objext; then
16338 cat >conftest.
$ac_ext <<_ACEOF
16341 cat confdefs.h
>>conftest.
$ac_ext
16342 cat >>conftest.
$ac_ext <<_ACEOF
16343 /* end confdefs.h. */
16344 $ac_includes_default
16348 if (sizeof ((uintptr_t)))
16354 rm -f conftest.
$ac_objext
16355 if { (ac_try
="$ac_compile"
16356 case "(($ac_try" in
16357 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16358 *) ac_try_echo=$ac_try;;
16360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16361 $as_echo "$ac_try_echo") >&5
16362 (eval "$ac_compile") 2>conftest.er1
16364 grep -v '^ *+' conftest.er1 >conftest.err
16366 cat conftest.err >&5
16367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); } && {
16369 test -z "$ac_c_werror_flag" ||
16370 test ! -s conftest.err
16371 } && test -s conftest.$ac_objext; then
16374 $as_echo "$as_me: failed program was:" >&5
16375 sed 's/^/| /' conftest.$ac_ext >&5
16377 ac_cv_type_uintptr_t=yes
16380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16382 $as_echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.$ac_ext >&5
16388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16390 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16391 $as_echo "$ac_cv_type_uintptr_t" >&6; }
16392 if test "x$ac_cv_type_uintptr_t" = x""yes; then
16394 cat >>confdefs.h <<\_ACEOF
16395 #define HAVE_UINTPTR_T 1
16399 for ac_type in 'unsigned int' 'unsigned long int' \
16400 'unsigned long long int'; do
16401 cat >conftest.$ac_ext <<_ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h. */
16407 $ac_includes_default
16411 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
16418 rm -f conftest.$ac_objext
16419 if { (ac_try="$ac_compile"
16420 case "(($ac_try" in
16421 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16422 *) ac_try_echo
=$ac_try;;
16424 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16425 $as_echo "$ac_try_echo") >&5
16426 (eval "$ac_compile") 2>conftest.er1
16428 grep -v '^ *+' conftest.er1
>conftest.err
16430 cat conftest.err
>&5
16431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); } && {
16433 test -z "$ac_c_werror_flag" ||
16434 test ! -s conftest.err
16435 } && test -s conftest.
$ac_objext; then
16437 cat >>confdefs.h
<<_ACEOF
16438 #define uintptr_t $ac_type
16443 $as_echo "$as_me: failed program was:" >&5
16444 sed 's/^/| /' conftest.
$ac_ext >&5
16449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16450 test -z "$ac_type" && break
16456 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
16457 $as_echo_n "checking for long long int... " >&6; }
16458 if test "${ac_cv_type_long_long_int+set}" = set; then
16459 $as_echo_n "(cached) " >&6
16461 cat >conftest.
$ac_ext <<_ACEOF
16465 cat confdefs.h
>>conftest.
$ac_ext
16466 cat >>conftest.
$ac_ext <<_ACEOF
16467 /* end confdefs.h. */
16468 /* For now, do not test the preprocessor; as of 2007 there are too many
16469 implementations with broken preprocessors. Perhaps this can
16470 be revisited in 2012. In the meantime, code should not expect
16471 #if to work with literals wider than 32 bits. */
16472 /* Test literals. */
16473 long long int ll = 9223372036854775807ll;
16474 long long int nll = -9223372036854775807LL;
16475 unsigned long long int ull = 18446744073709551615ULL;
16476 /* Test constant expressions. */
16477 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16479 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16485 /* Test availability of runtime routines for shift and division. */
16486 long long int llmax = 9223372036854775807ll;
16487 unsigned long long int ullmax = 18446744073709551615ull;
16488 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16489 | (llmax / ll) | (llmax % ll)
16490 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16491 | (ullmax / ull) | (ullmax % ull));
16497 rm -f conftest.
$ac_objext conftest
$ac_exeext
16498 if { (ac_try
="$ac_link"
16499 case "(($ac_try" in
16500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16501 *) ac_try_echo=$ac_try;;
16503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16504 $as_echo "$ac_try_echo") >&5
16505 (eval "$ac_link") 2>conftest.er1
16507 grep -v '^ *+' conftest.er1 >conftest.err
16509 cat conftest.err >&5
16510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); } && {
16512 test -z "$ac_c_werror_flag" ||
16513 test ! -s conftest.err
16514 } && test -s conftest$ac_exeext && {
16515 test "$cross_compiling" = yes ||
16516 $as_test_x conftest$ac_exeext
16518 if test "$cross_compiling" = yes; then
16519 ac_cv_type_long_long_int=yes
16521 cat >conftest.$ac_ext <<_ACEOF
16524 cat confdefs.h >>conftest.$ac_ext
16525 cat >>conftest.$ac_ext <<_ACEOF
16526 /* end confdefs.h. */
16527 #include <limits.h>
16530 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16531 # define LLONG_MAX (HALF - 1 + HALF)
16536 long long int n = 1;
16540 long long int m = n << i;
16543 if (LLONG_MAX / 2 < m)
16551 rm -f conftest$ac_exeext
16552 if { (ac_try="$ac_link"
16553 case "(($ac_try" in
16554 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16555 *) ac_try_echo
=$ac_try;;
16557 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16558 $as_echo "$ac_try_echo") >&5
16559 (eval "$ac_link") 2>&5
16561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16563 { (case "(($ac_try" in
16564 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16565 *) ac_try_echo=$ac_try;;
16567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16568 $as_echo "$ac_try_echo") >&5
16569 (eval "$ac_try") 2>&5
16571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); }; }; then
16573 ac_cv_type_long_long_int=yes
16575 $as_echo "$as_me: program exited with status $ac_status" >&5
16576 $as_echo "$as_me: failed program was:" >&5
16577 sed 's/^/| /' conftest.$ac_ext >&5
16579 ( exit $ac_status )
16580 ac_cv_type_long_long_int=no
16582 rm -rf conftest.dSYM
16583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16588 $as_echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16591 ac_cv_type_long_long_int=no
16594 rm -rf conftest.dSYM
16595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16596 conftest$ac_exeext conftest.$ac_ext
16598 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16599 $as_echo "$ac_cv_type_long_long_int" >&6; }
16600 if test $ac_cv_type_long_long_int = yes; then
16602 cat >>confdefs.h <<\_ACEOF
16603 #define HAVE_LONG_LONG_INT 1
16609 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
16610 $as_echo_n "checking for struct cmsgcred... " >&6; }
16611 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
16612 $as_echo_n "(cached) " >&6
16614 ac_cv_type_struct_cmsgcred=no
16615 cat >conftest.$ac_ext <<_ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h. */
16621 #include <sys/param.h>
16622 #include <sys/types.h>
16623 #include <sys/socket.h>
16624 #include <sys/ucred.h>
16629 if (sizeof (struct cmsgcred))
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 cat >conftest.
$ac_ext <<_ACEOF
16656 cat confdefs.h
>>conftest.
$ac_ext
16657 cat >>conftest.
$ac_ext <<_ACEOF
16658 /* end confdefs.h. */
16659 #include <sys/param.h>
16660 #include <sys/types.h>
16661 #include <sys/socket.h>
16662 #include <sys/ucred.h>
16667 if (sizeof ((struct cmsgcred)))
16673 rm -f conftest.
$ac_objext
16674 if { (ac_try
="$ac_compile"
16675 case "(($ac_try" in
16676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16680 $as_echo "$ac_try_echo") >&5
16681 (eval "$ac_compile") 2>conftest.er1
16683 grep -v '^ *+' conftest.er1 >conftest.err
16685 cat conftest.err >&5
16686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); } && {
16688 test -z "$ac_c_werror_flag" ||
16689 test ! -s conftest.err
16690 } && test -s conftest.$ac_objext; then
16693 $as_echo "$as_me: failed program was:" >&5
16694 sed 's/^/| /' conftest.$ac_ext >&5
16696 ac_cv_type_struct_cmsgcred=yes
16699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16701 $as_echo "$as_me: failed program was:" >&5
16702 sed 's/^/| /' conftest.$ac_ext >&5
16707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16709 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
16710 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
16711 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
16713 cat >>confdefs.h <<_ACEOF
16714 #define HAVE_STRUCT_CMSGCRED 1
16719 { $as_echo "$as_me:$LINENO: checking for struct fcred" >&5
16720 $as_echo_n "checking for struct fcred... " >&6; }
16721 if test "${ac_cv_type_struct_fcred+set}" = set; then
16722 $as_echo_n "(cached) " >&6
16724 ac_cv_type_struct_fcred=no
16725 cat >conftest.$ac_ext <<_ACEOF
16728 cat confdefs.h >>conftest.$ac_ext
16729 cat >>conftest.$ac_ext <<_ACEOF
16730 /* end confdefs.h. */
16731 #include <sys/param.h>
16732 #include <sys/types.h>
16733 #include <sys/socket.h>
16734 #include <sys/ucred.h>
16739 if (sizeof (struct fcred))
16745 rm -f conftest.$ac_objext
16746 if { (ac_try="$ac_compile"
16747 case "(($ac_try" in
16748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16749 *) ac_try_echo
=$ac_try;;
16751 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16752 $as_echo "$ac_try_echo") >&5
16753 (eval "$ac_compile") 2>conftest.er1
16755 grep -v '^ *+' conftest.er1
>conftest.err
16757 cat conftest.err
>&5
16758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); } && {
16760 test -z "$ac_c_werror_flag" ||
16761 test ! -s conftest.err
16762 } && test -s conftest.
$ac_objext; then
16763 cat >conftest.
$ac_ext <<_ACEOF
16766 cat confdefs.h
>>conftest.
$ac_ext
16767 cat >>conftest.
$ac_ext <<_ACEOF
16768 /* end confdefs.h. */
16769 #include <sys/param.h>
16770 #include <sys/types.h>
16771 #include <sys/socket.h>
16772 #include <sys/ucred.h>
16777 if (sizeof ((struct fcred)))
16783 rm -f conftest.
$ac_objext
16784 if { (ac_try
="$ac_compile"
16785 case "(($ac_try" in
16786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16787 *) ac_try_echo=$ac_try;;
16789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16790 $as_echo "$ac_try_echo") >&5
16791 (eval "$ac_compile") 2>conftest.er1
16793 grep -v '^ *+' conftest.er1 >conftest.err
16795 cat conftest.err >&5
16796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); } && {
16798 test -z "$ac_c_werror_flag" ||
16799 test ! -s conftest.err
16800 } && test -s conftest.$ac_objext; then
16803 $as_echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.$ac_ext >&5
16806 ac_cv_type_struct_fcred=yes
16809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16811 $as_echo "$as_me: failed program was:" >&5
16812 sed 's/^/| /' conftest.$ac_ext >&5
16817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16819 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
16820 $as_echo "$ac_cv_type_struct_fcred" >&6; }
16821 if test "x$ac_cv_type_struct_fcred" = x""yes; then
16823 cat >>confdefs.h <<_ACEOF
16824 #define HAVE_STRUCT_FCRED 1
16829 { $as_echo "$as_me:$LINENO: checking for struct sockcred" >&5
16830 $as_echo_n "checking for struct sockcred... " >&6; }
16831 if test "${ac_cv_type_struct_sockcred+set}" = set; then
16832 $as_echo_n "(cached) " >&6
16834 ac_cv_type_struct_sockcred=no
16835 cat >conftest.$ac_ext <<_ACEOF
16838 cat confdefs.h >>conftest.$ac_ext
16839 cat >>conftest.$ac_ext <<_ACEOF
16840 /* end confdefs.h. */
16841 #include <sys/param.h>
16842 #include <sys/types.h>
16843 #include <sys/socket.h>
16844 #include <sys/ucred.h>
16849 if (sizeof (struct sockcred))
16855 rm -f conftest.$ac_objext
16856 if { (ac_try="$ac_compile"
16857 case "(($ac_try" in
16858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16859 *) ac_try_echo
=$ac_try;;
16861 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16862 $as_echo "$ac_try_echo") >&5
16863 (eval "$ac_compile") 2>conftest.er1
16865 grep -v '^ *+' conftest.er1
>conftest.err
16867 cat conftest.err
>&5
16868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } && {
16870 test -z "$ac_c_werror_flag" ||
16871 test ! -s conftest.err
16872 } && test -s conftest.
$ac_objext; then
16873 cat >conftest.
$ac_ext <<_ACEOF
16876 cat confdefs.h
>>conftest.
$ac_ext
16877 cat >>conftest.
$ac_ext <<_ACEOF
16878 /* end confdefs.h. */
16879 #include <sys/param.h>
16880 #include <sys/types.h>
16881 #include <sys/socket.h>
16882 #include <sys/ucred.h>
16887 if (sizeof ((struct sockcred)))
16893 rm -f conftest.
$ac_objext
16894 if { (ac_try
="$ac_compile"
16895 case "(($ac_try" in
16896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16897 *) ac_try_echo=$ac_try;;
16899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16900 $as_echo "$ac_try_echo") >&5
16901 (eval "$ac_compile") 2>conftest.er1
16903 grep -v '^ *+' conftest.er1 >conftest.err
16905 cat conftest.err >&5
16906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); } && {
16908 test -z "$ac_c_werror_flag" ||
16909 test ! -s conftest.err
16910 } && test -s conftest.$ac_objext; then
16913 $as_echo "$as_me: failed program was:" >&5
16914 sed 's/^/| /' conftest.$ac_ext >&5
16916 ac_cv_type_struct_sockcred=yes
16919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16921 $as_echo "$as_me: failed program was:" >&5
16922 sed 's/^/| /' conftest.$ac_ext >&5
16927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16929 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
16930 $as_echo "$ac_cv_type_struct_sockcred" >&6; }
16931 if test "x$ac_cv_type_struct_sockcred" = x""yes; then
16933 cat >>confdefs.h <<_ACEOF
16934 #define HAVE_STRUCT_SOCKCRED 1
16941 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
16942 $as_echo_n "checking for struct option... " >&6; }
16943 if test "${ac_cv_type_struct_option+set}" = set; then
16944 $as_echo_n "(cached) " >&6
16946 ac_cv_type_struct_option=no
16947 cat >conftest.$ac_ext <<_ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h. */
16953 #ifdef HAVE_GETOPT_H
16954 #include <getopt.h>
16960 if (sizeof (struct option))
16966 rm -f conftest.$ac_objext
16967 if { (ac_try="$ac_compile"
16968 case "(($ac_try" in
16969 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16970 *) ac_try_echo
=$ac_try;;
16972 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16973 $as_echo "$ac_try_echo") >&5
16974 (eval "$ac_compile") 2>conftest.er1
16976 grep -v '^ *+' conftest.er1
>conftest.err
16978 cat conftest.err
>&5
16979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } && {
16981 test -z "$ac_c_werror_flag" ||
16982 test ! -s conftest.err
16983 } && test -s conftest.
$ac_objext; then
16984 cat >conftest.
$ac_ext <<_ACEOF
16987 cat confdefs.h
>>conftest.
$ac_ext
16988 cat >>conftest.
$ac_ext <<_ACEOF
16989 /* end confdefs.h. */
16990 #ifdef HAVE_GETOPT_H
16991 #include <getopt.h>
16997 if (sizeof ((struct option)))
17003 rm -f conftest.
$ac_objext
17004 if { (ac_try
="$ac_compile"
17005 case "(($ac_try" in
17006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17010 $as_echo "$ac_try_echo") >&5
17011 (eval "$ac_compile") 2>conftest.er1
17013 grep -v '^ *+' conftest.er1 >conftest.err
17015 cat conftest.err >&5
17016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); } && {
17018 test -z "$ac_c_werror_flag" ||
17019 test ! -s conftest.err
17020 } && test -s conftest.$ac_objext; then
17023 $as_echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17026 ac_cv_type_struct_option=yes
17029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17031 $as_echo "$as_me: failed program was:" >&5
17032 sed 's/^/| /' conftest.$ac_ext >&5
17037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17039 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
17040 $as_echo "$ac_cv_type_struct_option" >&6; }
17041 if test "x$ac_cv_type_struct_option" = x""yes; then
17043 cat >>confdefs.h <<_ACEOF
17044 #define HAVE_STRUCT_OPTION 1
17051 if test "$with_zlib" = yes; then
17052 # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
17053 # did not). While we could work around the lack of z_streamp, it
17054 # seems unwise to encourage people to use such old zlib versions...
17055 { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
17056 $as_echo_n "checking for z_streamp... " >&6; }
17057 if test "${ac_cv_type_z_streamp+set}" = set; then
17058 $as_echo_n "(cached) " >&6
17060 ac_cv_type_z_streamp=no
17061 cat >conftest.$ac_ext <<_ACEOF
17064 cat confdefs.h >>conftest.$ac_ext
17065 cat >>conftest.$ac_ext <<_ACEOF
17066 /* end confdefs.h. */
17072 if (sizeof (z_streamp))
17078 rm -f conftest.$ac_objext
17079 if { (ac_try="$ac_compile"
17080 case "(($ac_try" in
17081 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17082 *) ac_try_echo
=$ac_try;;
17084 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17085 $as_echo "$ac_try_echo") >&5
17086 (eval "$ac_compile") 2>conftest.er1
17088 grep -v '^ *+' conftest.er1
>conftest.err
17090 cat conftest.err
>&5
17091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); } && {
17093 test -z "$ac_c_werror_flag" ||
17094 test ! -s conftest.err
17095 } && test -s conftest.
$ac_objext; then
17096 cat >conftest.
$ac_ext <<_ACEOF
17099 cat confdefs.h
>>conftest.
$ac_ext
17100 cat >>conftest.
$ac_ext <<_ACEOF
17101 /* end confdefs.h. */
17107 if (sizeof ((z_streamp)))
17113 rm -f conftest.
$ac_objext
17114 if { (ac_try
="$ac_compile"
17115 case "(($ac_try" in
17116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17117 *) ac_try_echo=$ac_try;;
17119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17120 $as_echo "$ac_try_echo") >&5
17121 (eval "$ac_compile") 2>conftest.er1
17123 grep -v '^ *+' conftest.er1 >conftest.err
17125 cat conftest.err >&5
17126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); } && {
17128 test -z "$ac_c_werror_flag" ||
17129 test ! -s conftest.err
17130 } && test -s conftest.$ac_objext; then
17133 $as_echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.$ac_ext >&5
17136 ac_cv_type_z_streamp=yes
17139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17141 $as_echo "$as_me: failed program was:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17149 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
17150 $as_echo "$ac_cv_type_z_streamp" >&6; }
17151 if test "x$ac_cv_type_z_streamp" = x""yes; then
17154 { { $as_echo "$as_me:$LINENO: error: zlib version is too old
17155 Use --without-zlib to disable zlib support." >&5
17156 $as_echo "$as_me: error: zlib version is too old
17157 Use --without-zlib to disable zlib support." >&2;}
17158 { (exit 1); exit 1; }; }
17163 if test "$with_krb5" = yes; then
17164 # Check for differences between MIT and Heimdal (KTH) releases
17165 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
17166 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
17167 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
17168 $as_echo_n "(cached) " >&6
17170 cat >conftest.$ac_ext <<_ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h. */
17181 static krb5_ticket ac_aggr;
17182 if (ac_aggr.enc_part2)
17188 rm -f conftest.$ac_objext
17189 if { (ac_try="$ac_compile"
17190 case "(($ac_try" in
17191 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17192 *) ac_try_echo
=$ac_try;;
17194 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17195 $as_echo "$ac_try_echo") >&5
17196 (eval "$ac_compile") 2>conftest.er1
17198 grep -v '^ *+' conftest.er1
>conftest.err
17200 cat conftest.err
>&5
17201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); } && {
17203 test -z "$ac_c_werror_flag" ||
17204 test ! -s conftest.err
17205 } && test -s conftest.
$ac_objext; then
17206 ac_cv_member_krb5_ticket_enc_part2
=yes
17208 $as_echo "$as_me: failed program was:" >&5
17209 sed 's/^/| /' conftest.
$ac_ext >&5
17211 cat >conftest.
$ac_ext <<_ACEOF
17214 cat confdefs.h
>>conftest.
$ac_ext
17215 cat >>conftest.
$ac_ext <<_ACEOF
17216 /* end confdefs.h. */
17222 static krb5_ticket ac_aggr;
17223 if (sizeof ac_aggr.enc_part2)
17229 rm -f conftest.
$ac_objext
17230 if { (ac_try
="$ac_compile"
17231 case "(($ac_try" in
17232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17233 *) ac_try_echo=$ac_try;;
17235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17236 $as_echo "$ac_try_echo") >&5
17237 (eval "$ac_compile") 2>conftest.er1
17239 grep -v '^ *+' conftest.er1 >conftest.err
17241 cat conftest.err >&5
17242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); } && {
17244 test -z "$ac_c_werror_flag" ||
17245 test ! -s conftest.err
17246 } && test -s conftest.$ac_objext; then
17247 ac_cv_member_krb5_ticket_enc_part2=yes
17249 $as_echo "$as_me: failed program was:" >&5
17250 sed 's/^/| /' conftest.$ac_ext >&5
17252 ac_cv_member_krb5_ticket_enc_part2=no
17255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17260 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
17261 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
17262 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
17264 cat >>confdefs.h <<_ACEOF
17265 #define HAVE_KRB5_TICKET_ENC_PART2 1
17270 { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
17271 $as_echo_n "checking for krb5_ticket.client... " >&6; }
17272 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
17273 $as_echo_n "(cached) " >&6
17275 cat >conftest.$ac_ext <<_ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17286 static krb5_ticket ac_aggr;
17287 if (ac_aggr.client)
17293 rm -f conftest.$ac_objext
17294 if { (ac_try="$ac_compile"
17295 case "(($ac_try" in
17296 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17297 *) ac_try_echo
=$ac_try;;
17299 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17300 $as_echo "$ac_try_echo") >&5
17301 (eval "$ac_compile") 2>conftest.er1
17303 grep -v '^ *+' conftest.er1
>conftest.err
17305 cat conftest.err
>&5
17306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); } && {
17308 test -z "$ac_c_werror_flag" ||
17309 test ! -s conftest.err
17310 } && test -s conftest.
$ac_objext; then
17311 ac_cv_member_krb5_ticket_client
=yes
17313 $as_echo "$as_me: failed program was:" >&5
17314 sed 's/^/| /' conftest.
$ac_ext >&5
17316 cat >conftest.
$ac_ext <<_ACEOF
17319 cat confdefs.h
>>conftest.
$ac_ext
17320 cat >>conftest.
$ac_ext <<_ACEOF
17321 /* end confdefs.h. */
17327 static krb5_ticket ac_aggr;
17328 if (sizeof ac_aggr.client)
17334 rm -f conftest.
$ac_objext
17335 if { (ac_try
="$ac_compile"
17336 case "(($ac_try" in
17337 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17338 *) ac_try_echo=$ac_try;;
17340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17341 $as_echo "$ac_try_echo") >&5
17342 (eval "$ac_compile") 2>conftest.er1
17344 grep -v '^ *+' conftest.er1 >conftest.err
17346 cat conftest.err >&5
17347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); } && {
17349 test -z "$ac_c_werror_flag" ||
17350 test ! -s conftest.err
17351 } && test -s conftest.$ac_objext; then
17352 ac_cv_member_krb5_ticket_client=yes
17354 $as_echo "$as_me: failed program was:" >&5
17355 sed 's/^/| /' conftest.$ac_ext >&5
17357 ac_cv_member_krb5_ticket_client=no
17360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17365 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
17366 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
17367 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
17369 cat >>confdefs.h <<_ACEOF
17370 #define HAVE_KRB5_TICKET_CLIENT 1
17375 { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
17376 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
17377 { (exit 1); exit 1; }; }
17382 { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
17383 $as_echo_n "checking for krb5_error.text.data... " >&6; }
17384 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
17385 $as_echo_n "(cached) " >&6
17387 cat >conftest.$ac_ext <<_ACEOF
17390 cat confdefs.h >>conftest.$ac_ext
17391 cat >>conftest.$ac_ext <<_ACEOF
17392 /* end confdefs.h. */
17398 static krb5_error ac_aggr;
17399 if (ac_aggr.text.data)
17405 rm -f conftest.$ac_objext
17406 if { (ac_try="$ac_compile"
17407 case "(($ac_try" in
17408 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17409 *) ac_try_echo
=$ac_try;;
17411 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17412 $as_echo "$ac_try_echo") >&5
17413 (eval "$ac_compile") 2>conftest.er1
17415 grep -v '^ *+' conftest.er1
>conftest.err
17417 cat conftest.err
>&5
17418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); } && {
17420 test -z "$ac_c_werror_flag" ||
17421 test ! -s conftest.err
17422 } && test -s conftest.
$ac_objext; then
17423 ac_cv_member_krb5_error_text_data
=yes
17425 $as_echo "$as_me: failed program was:" >&5
17426 sed 's/^/| /' conftest.
$ac_ext >&5
17428 cat >conftest.
$ac_ext <<_ACEOF
17431 cat confdefs.h
>>conftest.
$ac_ext
17432 cat >>conftest.
$ac_ext <<_ACEOF
17433 /* end confdefs.h. */
17439 static krb5_error ac_aggr;
17440 if (sizeof ac_aggr.text.data)
17446 rm -f conftest.
$ac_objext
17447 if { (ac_try
="$ac_compile"
17448 case "(($ac_try" in
17449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17450 *) ac_try_echo=$ac_try;;
17452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17453 $as_echo "$ac_try_echo") >&5
17454 (eval "$ac_compile") 2>conftest.er1
17456 grep -v '^ *+' conftest.er1 >conftest.err
17458 cat conftest.err >&5
17459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); } && {
17461 test -z "$ac_c_werror_flag" ||
17462 test ! -s conftest.err
17463 } && test -s conftest.$ac_objext; then
17464 ac_cv_member_krb5_error_text_data=yes
17466 $as_echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17469 ac_cv_member_krb5_error_text_data=no
17472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17477 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
17478 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
17479 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
17481 cat >>confdefs.h <<_ACEOF
17482 #define HAVE_KRB5_ERROR_TEXT_DATA 1
17487 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
17488 $as_echo_n "checking for krb5_error.e_data... " >&6; }
17489 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
17490 $as_echo_n "(cached) " >&6
17492 cat >conftest.$ac_ext <<_ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h. */
17503 static krb5_error ac_aggr;
17504 if (ac_aggr.e_data)
17510 rm -f conftest.$ac_objext
17511 if { (ac_try="$ac_compile"
17512 case "(($ac_try" in
17513 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17514 *) ac_try_echo
=$ac_try;;
17516 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17517 $as_echo "$ac_try_echo") >&5
17518 (eval "$ac_compile") 2>conftest.er1
17520 grep -v '^ *+' conftest.er1
>conftest.err
17522 cat conftest.err
>&5
17523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } && {
17525 test -z "$ac_c_werror_flag" ||
17526 test ! -s conftest.err
17527 } && test -s conftest.
$ac_objext; then
17528 ac_cv_member_krb5_error_e_data
=yes
17530 $as_echo "$as_me: failed program was:" >&5
17531 sed 's/^/| /' conftest.
$ac_ext >&5
17533 cat >conftest.
$ac_ext <<_ACEOF
17536 cat confdefs.h
>>conftest.
$ac_ext
17537 cat >>conftest.
$ac_ext <<_ACEOF
17538 /* end confdefs.h. */
17544 static krb5_error ac_aggr;
17545 if (sizeof ac_aggr.e_data)
17551 rm -f conftest.
$ac_objext
17552 if { (ac_try
="$ac_compile"
17553 case "(($ac_try" in
17554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17555 *) ac_try_echo=$ac_try;;
17557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17558 $as_echo "$ac_try_echo") >&5
17559 (eval "$ac_compile") 2>conftest.er1
17561 grep -v '^ *+' conftest.er1 >conftest.err
17563 cat conftest.err >&5
17564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); } && {
17566 test -z "$ac_c_werror_flag" ||
17567 test ! -s conftest.err
17568 } && test -s conftest.$ac_objext; then
17569 ac_cv_member_krb5_error_e_data=yes
17571 $as_echo "$as_me: failed program was:" >&5
17572 sed 's/^/| /' conftest.$ac_ext >&5
17574 ac_cv_member_krb5_error_e_data=no
17577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17582 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
17583 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
17584 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
17586 cat >>confdefs.h <<_ACEOF
17587 #define HAVE_KRB5_ERROR_E_DATA 1
17592 { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
17593 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
17594 { (exit 1); exit 1; }; }
17600 # Win32 requires headers to be loaded for __stdcall, so can't use
17601 # AC_CHECK_FUNCS here.
17602 { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
17603 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
17604 cat >conftest.$ac_ext <<_ACEOF
17607 cat confdefs.h >>conftest.$ac_ext
17608 cat >>conftest.$ac_ext <<_ACEOF
17609 /* end confdefs.h. */
17614 krb5_free_unparsed_name(NULL,NULL);
17619 rm -f conftest.$ac_objext conftest$ac_exeext
17620 if { (ac_try="$ac_link"
17621 case "(($ac_try" in
17622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17623 *) ac_try_echo
=$ac_try;;
17625 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17626 $as_echo "$ac_try_echo") >&5
17627 (eval "$ac_link") 2>conftest.er1
17629 grep -v '^ *+' conftest.er1
>conftest.err
17631 cat conftest.err
>&5
17632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); } && {
17634 test -z "$ac_c_werror_flag" ||
17635 test ! -s conftest.err
17636 } && test -s conftest
$ac_exeext && {
17637 test "$cross_compiling" = yes ||
17638 $as_test_x conftest
$ac_exeext
17641 cat >>confdefs.h
<<\_ACEOF
17642 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
17645 { $as_echo "$as_me:$LINENO: result: yes" >&5
17646 $as_echo "yes" >&6; }
17648 $as_echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.
$ac_ext >&5
17651 { $as_echo "$as_me:$LINENO: result: no" >&5
17652 $as_echo "no" >&6; }
17655 rm -rf conftest.dSYM
17656 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17657 conftest
$ac_exeext conftest.
$ac_ext
17660 # Check largefile support. You might think this is a system service not a
17661 # compiler characteristic, but you'd be wrong. We must check this before
17662 # probing existence of related functions such as fseeko, since the largefile
17663 # defines can affect what is generated for that.
17664 # Check whether --enable-largefile was given.
17665 if test "${enable_largefile+set}" = set; then
17666 enableval
=$enable_largefile;
17669 if test "$enable_largefile" != no
; then
17671 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
17672 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17673 if test "${ac_cv_sys_largefile_CC+set}" = set; then
17674 $as_echo_n "(cached) " >&6
17676 ac_cv_sys_largefile_CC
=no
17677 if test "$GCC" != yes; then
17680 # IRIX 6.2 and later do not support large files by default,
17681 # so use the C compiler's -n32 option if that helps.
17682 cat >conftest.
$ac_ext <<_ACEOF
17685 cat confdefs.h
>>conftest.
$ac_ext
17686 cat >>conftest.
$ac_ext <<_ACEOF
17687 /* end confdefs.h. */
17688 #include <sys/types.h>
17689 /* Check that off_t can represent 2**63 - 1 correctly.
17690 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17691 since some C++ compilers masquerading as C compilers
17692 incorrectly reject 9223372036854775807. */
17693 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17694 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17695 && LARGE_OFF_T % 2147483647 == 1)
17705 rm -f conftest.
$ac_objext
17706 if { (ac_try
="$ac_compile"
17707 case "(($ac_try" in
17708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17709 *) ac_try_echo=$ac_try;;
17711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17712 $as_echo "$ac_try_echo") >&5
17713 (eval "$ac_compile") 2>conftest.er1
17715 grep -v '^ *+' conftest.er1 >conftest.err
17717 cat conftest.err >&5
17718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); } && {
17720 test -z "$ac_c_werror_flag" ||
17721 test ! -s conftest.err
17722 } && test -s conftest.$ac_objext; then
17725 $as_echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.$ac_ext >&5
17731 rm -f core conftest.err conftest.$ac_objext
17733 rm -f conftest.$ac_objext
17734 if { (ac_try="$ac_compile"
17735 case "(($ac_try" in
17736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17737 *) ac_try_echo
=$ac_try;;
17739 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17740 $as_echo "$ac_try_echo") >&5
17741 (eval "$ac_compile") 2>conftest.er1
17743 grep -v '^ *+' conftest.er1
>conftest.err
17745 cat conftest.err
>&5
17746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } && {
17748 test -z "$ac_c_werror_flag" ||
17749 test ! -s conftest.err
17750 } && test -s conftest.
$ac_objext; then
17751 ac_cv_sys_largefile_CC
=' -n32'; break
17753 $as_echo "$as_me: failed program was:" >&5
17754 sed 's/^/| /' conftest.
$ac_ext >&5
17759 rm -f core conftest.err conftest.
$ac_objext
17763 rm -f conftest.
$ac_ext
17766 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
17767 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17768 if test "$ac_cv_sys_largefile_CC" != no
; then
17769 CC
=$CC$ac_cv_sys_largefile_CC
17772 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17773 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17774 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17775 $as_echo_n "(cached) " >&6
17778 cat >conftest.
$ac_ext <<_ACEOF
17781 cat confdefs.h
>>conftest.
$ac_ext
17782 cat >>conftest.
$ac_ext <<_ACEOF
17783 /* end confdefs.h. */
17784 #include <sys/types.h>
17785 /* Check that off_t can represent 2**63 - 1 correctly.
17786 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17787 since some C++ compilers masquerading as C compilers
17788 incorrectly reject 9223372036854775807. */
17789 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17790 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17791 && LARGE_OFF_T % 2147483647 == 1)
17801 rm -f conftest.
$ac_objext
17802 if { (ac_try
="$ac_compile"
17803 case "(($ac_try" in
17804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17805 *) ac_try_echo=$ac_try;;
17807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17808 $as_echo "$ac_try_echo") >&5
17809 (eval "$ac_compile") 2>conftest.er1
17811 grep -v '^ *+' conftest.er1 >conftest.err
17813 cat conftest.err >&5
17814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); } && {
17816 test -z "$ac_c_werror_flag" ||
17817 test ! -s conftest.err
17818 } && test -s conftest.$ac_objext; then
17819 ac_cv_sys_file_offset_bits=no; break
17821 $as_echo "$as_me: failed program was:" >&5
17822 sed 's/^/| /' conftest.$ac_ext >&5
17827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17828 cat >conftest.$ac_ext <<_ACEOF
17831 cat confdefs.h >>conftest.$ac_ext
17832 cat >>conftest.$ac_ext <<_ACEOF
17833 /* end confdefs.h. */
17834 #define _FILE_OFFSET_BITS 64
17835 #include <sys/types.h>
17836 /* Check that off_t can represent 2**63 - 1 correctly.
17837 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17838 since some C++ compilers masquerading as C compilers
17839 incorrectly reject 9223372036854775807. */
17840 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17841 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17842 && LARGE_OFF_T % 2147483647 == 1)
17852 rm -f conftest.$ac_objext
17853 if { (ac_try="$ac_compile"
17854 case "(($ac_try" in
17855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17856 *) ac_try_echo
=$ac_try;;
17858 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17859 $as_echo "$ac_try_echo") >&5
17860 (eval "$ac_compile") 2>conftest.er1
17862 grep -v '^ *+' conftest.er1
>conftest.err
17864 cat conftest.err
>&5
17865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); } && {
17867 test -z "$ac_c_werror_flag" ||
17868 test ! -s conftest.err
17869 } && test -s conftest.
$ac_objext; then
17870 ac_cv_sys_file_offset_bits
=64; break
17872 $as_echo "$as_me: failed program was:" >&5
17873 sed 's/^/| /' conftest.
$ac_ext >&5
17878 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17879 ac_cv_sys_file_offset_bits
=unknown
17883 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17884 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17885 case $ac_cv_sys_file_offset_bits in #(
17888 cat >>confdefs.h
<<_ACEOF
17889 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17894 if test $ac_cv_sys_file_offset_bits = unknown
; then
17895 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17896 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17897 if test "${ac_cv_sys_large_files+set}" = set; then
17898 $as_echo_n "(cached) " >&6
17901 cat >conftest.
$ac_ext <<_ACEOF
17904 cat confdefs.h
>>conftest.
$ac_ext
17905 cat >>conftest.
$ac_ext <<_ACEOF
17906 /* end confdefs.h. */
17907 #include <sys/types.h>
17908 /* Check that off_t can represent 2**63 - 1 correctly.
17909 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17910 since some C++ compilers masquerading as C compilers
17911 incorrectly reject 9223372036854775807. */
17912 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17913 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17914 && LARGE_OFF_T % 2147483647 == 1)
17924 rm -f conftest.
$ac_objext
17925 if { (ac_try
="$ac_compile"
17926 case "(($ac_try" in
17927 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17928 *) ac_try_echo=$ac_try;;
17930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17931 $as_echo "$ac_try_echo") >&5
17932 (eval "$ac_compile") 2>conftest.er1
17934 grep -v '^ *+' conftest.er1 >conftest.err
17936 cat conftest.err >&5
17937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); } && {
17939 test -z "$ac_c_werror_flag" ||
17940 test ! -s conftest.err
17941 } && test -s conftest.$ac_objext; then
17942 ac_cv_sys_large_files=no; break
17944 $as_echo "$as_me: failed program was:" >&5
17945 sed 's/^/| /' conftest.$ac_ext >&5
17950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17951 cat >conftest.$ac_ext <<_ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h. */
17957 #define _LARGE_FILES 1
17958 #include <sys/types.h>
17959 /* Check that off_t can represent 2**63 - 1 correctly.
17960 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17961 since some C++ compilers masquerading as C compilers
17962 incorrectly reject 9223372036854775807. */
17963 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17964 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17965 && LARGE_OFF_T % 2147483647 == 1)
17975 rm -f conftest.$ac_objext
17976 if { (ac_try="$ac_compile"
17977 case "(($ac_try" in
17978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17979 *) ac_try_echo
=$ac_try;;
17981 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17982 $as_echo "$ac_try_echo") >&5
17983 (eval "$ac_compile") 2>conftest.er1
17985 grep -v '^ *+' conftest.er1
>conftest.err
17987 cat conftest.err
>&5
17988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); } && {
17990 test -z "$ac_c_werror_flag" ||
17991 test ! -s conftest.err
17992 } && test -s conftest.
$ac_objext; then
17993 ac_cv_sys_large_files
=1; break
17995 $as_echo "$as_me: failed program was:" >&5
17996 sed 's/^/| /' conftest.
$ac_ext >&5
18001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18002 ac_cv_sys_large_files
=unknown
18006 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18007 $as_echo "$ac_cv_sys_large_files" >&6; }
18008 case $ac_cv_sys_large_files in #(
18011 cat >>confdefs.h
<<_ACEOF
18012 #define _LARGE_FILES $ac_cv_sys_large_files
18021 # Check for largefile support (must be after AC_SYS_LARGEFILE)
18022 # The cast to long int works around a bug in the HP C Compiler
18023 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18024 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18025 # This bug is HP SR number 8606223364.
18026 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
18027 $as_echo_n "checking size of off_t... " >&6; }
18028 if test "${ac_cv_sizeof_off_t+set}" = set; then
18029 $as_echo_n "(cached) " >&6
18031 if test "$cross_compiling" = yes; then
18032 # Depending upon the size, compute the lo and hi bounds.
18033 cat >conftest.
$ac_ext <<_ACEOF
18036 cat confdefs.h
>>conftest.
$ac_ext
18037 cat >>conftest.
$ac_ext <<_ACEOF
18038 /* end confdefs.h. */
18039 $ac_includes_default
18043 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
18050 rm -f conftest.
$ac_objext
18051 if { (ac_try
="$ac_compile"
18052 case "(($ac_try" in
18053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18054 *) ac_try_echo=$ac_try;;
18056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18057 $as_echo "$ac_try_echo") >&5
18058 (eval "$ac_compile") 2>conftest.er1
18060 grep -v '^ *+' conftest.er1 >conftest.err
18062 cat conftest.err >&5
18063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } && {
18065 test -z "$ac_c_werror_flag" ||
18066 test ! -s conftest.err
18067 } && test -s conftest.$ac_objext; then
18070 cat >conftest.$ac_ext <<_ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h. */
18076 $ac_includes_default
18080 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18087 rm -f conftest.$ac_objext
18088 if { (ac_try="$ac_compile"
18089 case "(($ac_try" in
18090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18091 *) ac_try_echo
=$ac_try;;
18093 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18094 $as_echo "$ac_try_echo") >&5
18095 (eval "$ac_compile") 2>conftest.er1
18097 grep -v '^ *+' conftest.er1
>conftest.err
18099 cat conftest.err
>&5
18100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); } && {
18102 test -z "$ac_c_werror_flag" ||
18103 test ! -s conftest.err
18104 } && test -s conftest.
$ac_objext; then
18105 ac_hi
=$ac_mid; break
18107 $as_echo "$as_me: failed program was:" >&5
18108 sed 's/^/| /' conftest.
$ac_ext >&5
18110 ac_lo
=`expr $ac_mid + 1`
18111 if test $ac_lo -le $ac_mid; then
18115 ac_mid
=`expr 2 '*' $ac_mid + 1`
18118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18121 $as_echo "$as_me: failed program was:" >&5
18122 sed 's/^/| /' conftest.
$ac_ext >&5
18124 cat >conftest.
$ac_ext <<_ACEOF
18127 cat confdefs.h
>>conftest.
$ac_ext
18128 cat >>conftest.
$ac_ext <<_ACEOF
18129 /* end confdefs.h. */
18130 $ac_includes_default
18134 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
18141 rm -f conftest.
$ac_objext
18142 if { (ac_try
="$ac_compile"
18143 case "(($ac_try" in
18144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18145 *) ac_try_echo=$ac_try;;
18147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18148 $as_echo "$ac_try_echo") >&5
18149 (eval "$ac_compile") 2>conftest.er1
18151 grep -v '^ *+' conftest.er1 >conftest.err
18153 cat conftest.err >&5
18154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } && {
18156 test -z "$ac_c_werror_flag" ||
18157 test ! -s conftest.err
18158 } && test -s conftest.$ac_objext; then
18161 cat >conftest.$ac_ext <<_ACEOF
18164 cat confdefs.h >>conftest.$ac_ext
18165 cat >>conftest.$ac_ext <<_ACEOF
18166 /* end confdefs.h. */
18167 $ac_includes_default
18171 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
18178 rm -f conftest.$ac_objext
18179 if { (ac_try="$ac_compile"
18180 case "(($ac_try" in
18181 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18182 *) ac_try_echo
=$ac_try;;
18184 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
18185 $as_echo "$ac_try_echo") >&5
18186 (eval "$ac_compile") 2>conftest.er1
18188 grep -v '^ *+' conftest.er1
>conftest.err
18190 cat conftest.err
>&5
18191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } && {
18193 test -z "$ac_c_werror_flag" ||
18194 test ! -s conftest.err
18195 } && test -s conftest.
$ac_objext; then
18196 ac_lo
=$ac_mid; break
18198 $as_echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.
$ac_ext >&5
18201 ac_hi
=`expr '(' $ac_mid ')' - 1`
18202 if test $ac_mid -le $ac_hi; then
18206 ac_mid
=`expr 2 '*' $ac_mid`
18209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18212 $as_echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.
$ac_ext >&5
18218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18222 # Binary search between lo and hi bounds.
18223 while test "x$ac_lo" != "x$ac_hi"; do
18224 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18225 cat >conftest.
$ac_ext <<_ACEOF
18228 cat confdefs.h
>>conftest.
$ac_ext
18229 cat >>conftest.
$ac_ext <<_ACEOF
18230 /* end confdefs.h. */
18231 $ac_includes_default
18235 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
18242 rm -f conftest.
$ac_objext
18243 if { (ac_try
="$ac_compile"
18244 case "(($ac_try" in
18245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18246 *) ac_try_echo=$ac_try;;
18248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18249 $as_echo "$ac_try_echo") >&5
18250 (eval "$ac_compile") 2>conftest.er1
18252 grep -v '^ *+' conftest.er1 >conftest.err
18254 cat conftest.err >&5
18255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); } && {
18257 test -z "$ac_c_werror_flag" ||
18258 test ! -s conftest.err
18259 } && test -s conftest.$ac_objext; then
18262 $as_echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18265 ac_lo=`expr '(' $ac_mid ')' + 1`
18268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18271 ?*) ac_cv_sizeof_off_t=$ac_lo;;
18272 '') if test "$ac_cv_type_off_t" = yes; then
18273 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18275 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(off_t
)
18276 See \
`config.log' for more details." >&5
18277 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18278 See \`config.log
' for more details." >&2;}
18279 { (exit 77); exit 77; }; }; }
18281 ac_cv_sizeof_off_t=0
18285 cat >conftest.$ac_ext <<_ACEOF
18288 cat confdefs.h >>conftest.$ac_ext
18289 cat >>conftest.$ac_ext <<_ACEOF
18290 /* end confdefs.h. */
18291 $ac_includes_default
18292 static long int longval () { return (long int) (sizeof (off_t)); }
18293 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
18295 #include <stdlib.h>
18300 FILE *f = fopen ("conftest.val", "w");
18303 if (((long int) (sizeof (off_t))) < 0)
18305 long int i = longval ();
18306 if (i != ((long int) (sizeof (off_t))))
18308 fprintf (f, "%ld", i);
18312 unsigned long int i = ulongval ();
18313 if (i != ((long int) (sizeof (off_t))))
18315 fprintf (f, "%lu", i);
18317 /* Do not output a trailing newline, as this causes \r\n confusion
18318 on some platforms. */
18319 return ferror (f) || fclose (f) != 0;
18325 rm -f conftest$ac_exeext
18326 if { (ac_try="$ac_link"
18327 case "(($ac_try" in
18328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329 *) ac_try_echo=$ac_try;;
18331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18332 $as_echo "$ac_try_echo") >&5
18333 (eval "$ac_link") 2>&5
18335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
18337 { (case "(($ac_try" in
18338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339 *) ac_try_echo=$ac_try;;
18341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18342 $as_echo "$ac_try_echo") >&5
18343 (eval "$ac_try") 2>&5
18345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; }; then
18347 ac_cv_sizeof_off_t=`cat conftest.val`
18349 $as_echo "$as_me: program exited with status $ac_status" >&5
18350 $as_echo "$as_me: failed program was:" >&5
18351 sed 's
/^
/|
/' conftest.$ac_ext >&5
18353 ( exit $ac_status )
18354 if test "$ac_cv_type_off_t" = yes; then
18355 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
18356 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
18357 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
18358 See \`config.log
' for more details." >&5
18359 $as_echo "$as_me: error: cannot compute sizeof (off_t)
18360 See \`config.log' for more details.
" >&2;}
18361 { (exit 77); exit 77; }; }; }
18363 ac_cv_sizeof_off_t=0
18366 rm -rf conftest.dSYM
18367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18371 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sizeof_off_t" >&5
18372 $as_echo "$ac_cv_sizeof_off_t" >&6; }
18376 cat >>confdefs.h <<_ACEOF
18377 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
18382 # If we don't have largefile support, can't handle segsize >= 2GB.
18383 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
18384 { { $as_echo "$as_me:$LINENO: error
: Large
file support is not enabled. Segment size cannot be larger than
1GB.
" >&5
18385 $as_echo "$as_me: error
: Large
file support is not enabled. Segment size cannot be larger than
1GB.
" >&2;}
18386 { (exit 1); exit 1; }; }
18391 ## Functions, global variables
18394 { $as_echo "$as_me:$LINENO: checking
for int timezone
" >&5
18395 $as_echo_n "checking
for int timezone...
" >&6; }
18396 if test "${pgac_cv_var_int_timezone+set}" = set; then
18397 $as_echo_n "(cached
) " >&6
18399 cat >conftest.$ac_ext <<_ACEOF
18402 cat confdefs.h >>conftest.$ac_ext
18403 cat >>conftest.$ac_ext <<_ACEOF
18404 /* end confdefs.h. */
18411 res = timezone / 60;
18413 res = _timezone / 60;
18419 rm -f conftest.$ac_objext conftest$ac_exeext
18420 if { (ac_try="$ac_link"
18421 case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18425 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18426 $as_echo "$ac_try_echo") >&5
18427 (eval "$ac_link") 2>conftest.er1
18429 grep -v '^ *+' conftest.er1 >conftest.err
18431 cat conftest.err >&5
18432 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18433 (exit $ac_status); } && {
18434 test -z "$ac_c_werror_flag" ||
18435 test ! -s conftest.err
18436 } && test -s conftest$ac_exeext && {
18437 test "$cross_compiling" = yes ||
18438 $as_test_x conftest$ac_exeext
18440 pgac_cv_var_int_timezone=yes
18442 $as_echo "$as_me: failed program was
:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18445 pgac_cv_var_int_timezone=no
18448 rm -rf conftest.dSYM
18449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18450 conftest$ac_exeext conftest.$ac_ext
18452 { $as_echo "$as_me:$LINENO: result
: $pgac_cv_var_int_timezone" >&5
18453 $as_echo "$pgac_cv_var_int_timezone" >&6; }
18454 if test x"$pgac_cv_var_int_timezone" = xyes ; then
18456 cat >>confdefs.h <<\_ACEOF
18457 #define HAVE_INT_TIMEZONE /**/
18461 { $as_echo "$as_me:$LINENO: checking types of arguments
for accept
()" >&5
18462 $as_echo_n "checking types of arguments
for accept
()...
" >&6; }
18463 if test "${ac_cv_func_accept_return+set}" = set; then
18464 $as_echo_n "(cached
) " >&6
18466 if test "${ac_cv_func_accept_arg1+set}" = set; then
18467 $as_echo_n "(cached
) " >&6
18469 if test "${ac_cv_func_accept_arg2+set}" = set; then
18470 $as_echo_n "(cached
) " >&6
18472 if test "${ac_cv_func_accept_arg3+set}" = set; then
18473 $as_echo_n "(cached
) " >&6
18475 for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
18476 for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
18477 for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
18478 for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
18479 cat >conftest.$ac_ext <<_ACEOF
18482 cat confdefs.h >>conftest.$ac_ext
18483 cat >>conftest.$ac_ext <<_ACEOF
18484 /* end confdefs.h. */
18485 #ifdef HAVE_SYS_TYPES_H
18486 #include <sys/types.h>
18488 #ifdef HAVE_SYS_SOCKET_H
18489 #include <sys/socket.h>
18491 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
18500 rm -f conftest.$ac_objext
18501 if { (ac_try="$ac_compile"
18502 case "(($ac_try" in
18503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18504 *) ac_try_echo=$ac_try;;
18506 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18507 $as_echo "$ac_try_echo") >&5
18508 (eval "$ac_compile") 2>conftest.er1
18510 grep -v '^ *+' conftest.er1 >conftest.err
18512 cat conftest.err >&5
18513 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18514 (exit $ac_status); } && {
18515 test -z "$ac_c_werror_flag" ||
18516 test ! -s conftest.err
18517 } && test -s conftest.$ac_objext; then
18518 ac_not_found=no; break 4
18520 $as_echo "$as_me: failed program was
:" >&5
18521 sed 's/^/| /' conftest.$ac_ext >&5
18526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18531 if test "$ac_not_found" = yes; then
18532 { { $as_echo "$as_me:$LINENO: error
: could not determine argument types
" >&5
18533 $as_echo "$as_me: error
: could not determine argument types
" >&2;}
18534 { (exit 1); exit 1; }; }
18536 if test "$ac_cv_func_accept_arg3" = "void
"; then
18537 ac_cv_func_accept_arg3=int
18547 { $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
18548 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
18550 cat >>confdefs.h <<_ACEOF
18551 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
18555 cat >>confdefs.h <<_ACEOF
18556 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
18560 cat >>confdefs.h <<_ACEOF
18561 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
18565 cat >>confdefs.h <<_ACEOF
18566 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
18570 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument
" >&5
18571 $as_echo_n "checking whether gettimeofday takes only one argument...
" >&6; }
18572 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
18573 $as_echo_n "(cached
) " >&6
18575 cat >conftest.$ac_ext <<_ACEOF
18578 cat confdefs.h >>conftest.$ac_ext
18579 cat >>conftest.$ac_ext <<_ACEOF
18580 /* end confdefs.h. */
18581 #include <sys/time.h>
18585 struct timeval *tp;
18586 struct timezone *tzp;
18587 gettimeofday(tp,tzp);
18592 rm -f conftest.$ac_objext
18593 if { (ac_try="$ac_compile"
18594 case "(($ac_try" in
18595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596 *) ac_try_echo=$ac_try;;
18598 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18599 $as_echo "$ac_try_echo") >&5
18600 (eval "$ac_compile") 2>conftest.er1
18602 grep -v '^ *+' conftest.er1 >conftest.err
18604 cat conftest.err >&5
18605 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18606 (exit $ac_status); } && {
18607 test -z "$ac_c_werror_flag" ||
18608 test ! -s conftest.err
18609 } && test -s conftest.$ac_objext; then
18610 pgac_cv_func_gettimeofday_1arg=no
18612 $as_echo "$as_me: failed program was
:" >&5
18613 sed 's/^/| /' conftest.$ac_ext >&5
18615 pgac_cv_func_gettimeofday_1arg=yes
18618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18620 { $as_echo "$as_me:$LINENO: result
: $pgac_cv_func_gettimeofday_1arg" >&5
18621 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
18622 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
18624 cat >>confdefs.h <<\_ACEOF
18625 #define GETTIMEOFDAY_1ARG /**/
18655 for ac_func in cbrt dlopen fcvt fdatasync getifaddrs getpeereid getpeerucred getrlimit memmove poll pstat readlink scandir setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
18657 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18658 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18659 $as_echo_n "checking
for $ac_func...
" >&6; }
18660 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18661 $as_echo_n "(cached
) " >&6
18663 cat >conftest.$ac_ext <<_ACEOF
18666 cat confdefs.h >>conftest.$ac_ext
18667 cat >>conftest.$ac_ext <<_ACEOF
18668 /* end confdefs.h. */
18669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18671 #define $ac_func innocuous_$ac_func
18673 /* System header to define __stub macros and hopefully few prototypes,
18674 which can conflict with char $ac_func (); below.
18675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18676 <limits.h> exists even on freestanding compilers. */
18679 # include <limits.h>
18681 # include <assert.h>
18686 /* Override any GCC internal prototype to avoid an error.
18687 Use char because int might match the return type of a GCC
18688 builtin and then its argument prototype would still apply. */
18693 /* The GNU C library defines this for functions which it implements
18694 to always fail with ENOSYS. Some functions are actually named
18695 something starting with __ and the normal name is an alias. */
18696 #if defined __stub_$ac_func || defined __stub___$ac_func
18703 return $ac_func ();
18708 rm -f conftest.$ac_objext conftest$ac_exeext
18709 if { (ac_try="$ac_link"
18710 case "(($ac_try" in
18711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18712 *) ac_try_echo=$ac_try;;
18714 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18715 $as_echo "$ac_try_echo") >&5
18716 (eval "$ac_link") 2>conftest.er1
18718 grep -v '^ *+' conftest.er1 >conftest.err
18720 cat conftest.err >&5
18721 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18722 (exit $ac_status); } && {
18723 test -z "$ac_c_werror_flag" ||
18724 test ! -s conftest.err
18725 } && test -s conftest$ac_exeext && {
18726 test "$cross_compiling" = yes ||
18727 $as_test_x conftest$ac_exeext
18729 eval "$as_ac_var=yes"
18731 $as_echo "$as_me: failed program was
:" >&5
18732 sed 's/^/| /' conftest.$ac_ext >&5
18734 eval "$as_ac_var=no
"
18737 rm -rf conftest.dSYM
18738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18739 conftest$ac_exeext conftest.$ac_ext
18741 ac_res=`eval 'as_val=${'$as_ac_var'}
18742 $as_echo "$as_val"'`
18743 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18744 $as_echo "$ac_res" >&6; }
18745 as_val=`eval 'as_val=${'$as_ac_var'}
18746 $as_echo "$as_val"'`
18747 if test "x
$as_val" = x""yes; then
18748 cat >>confdefs.h <<_ACEOF
18749 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18757 for ac_func in fseeko
18759 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18760 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
18761 $as_echo_n "checking
for $ac_func...
" >&6; }
18762 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18763 $as_echo_n "(cached
) " >&6
18765 cat >conftest.$ac_ext <<_ACEOF
18768 cat confdefs.h >>conftest.$ac_ext
18769 cat >>conftest.$ac_ext <<_ACEOF
18770 /* end confdefs.h. */
18771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18773 #define $ac_func innocuous_$ac_func
18775 /* System header to define __stub macros and hopefully few prototypes,
18776 which can conflict with char $ac_func (); below.
18777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18778 <limits.h> exists even on freestanding compilers. */
18781 # include <limits.h>
18783 # include <assert.h>
18788 /* Override any GCC internal prototype to avoid an error.
18789 Use char because int might match the return type of a GCC
18790 builtin and then its argument prototype would still apply. */
18795 /* The GNU C library defines this for functions which it implements
18796 to always fail with ENOSYS. Some functions are actually named
18797 something starting with __ and the normal name is an alias. */
18798 #if defined __stub_$ac_func || defined __stub___$ac_func
18805 return $ac_func ();
18810 rm -f conftest.$ac_objext conftest$ac_exeext
18811 if { (ac_try="$ac_link"
18812 case "(($ac_try" in
18813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814 *) ac_try_echo=$ac_try;;
18816 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18817 $as_echo "$ac_try_echo") >&5
18818 (eval "$ac_link") 2>conftest.er1
18820 grep -v '^ *+' conftest.er1 >conftest.err
18822 cat conftest.err >&5
18823 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18824 (exit $ac_status); } && {
18825 test -z "$ac_c_werror_flag" ||
18826 test ! -s conftest.err
18827 } && test -s conftest$ac_exeext && {
18828 test "$cross_compiling" = yes ||
18829 $as_test_x conftest$ac_exeext
18831 eval "$as_ac_var=yes"
18833 $as_echo "$as_me: failed program was
:" >&5
18834 sed 's/^/| /' conftest.$ac_ext >&5
18836 eval "$as_ac_var=no
"
18839 rm -rf conftest.dSYM
18840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18841 conftest$ac_exeext conftest.$ac_ext
18843 ac_res=`eval 'as_val=${'$as_ac_var'}
18844 $as_echo "$as_val"'`
18845 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
18846 $as_echo "$ac_res" >&6; }
18847 as_val=`eval 'as_val=${'$as_ac_var'}
18848 $as_echo "$as_val"'`
18849 if test "x
$as_val" = x""yes; then
18850 cat >>confdefs.h <<_ACEOF
18851 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18855 case " $LIBOBJS " in
18856 *" $ac_func.
$ac_objext "* ) ;;
18857 *) LIBOBJS="$LIBOBJS $ac_func.
$ac_objext"
18866 # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18867 # Mingw uses macros to access Win32 API calls
18868 bsdi*|netbsd*|mingw*)
18870 cat >>confdefs.h <<\_ACEOF
18871 #define HAVE_FSEEKO 1
18874 ac_cv_func_fseeko=yes;;
18876 { $as_echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18877 $as_echo_n "checking
for _LARGEFILE_SOURCE value needed
for large files...
" >&6; }
18878 if test "${ac_cv_sys_largefile_source+set}" = set; then
18879 $as_echo_n "(cached
) " >&6
18882 cat >conftest.$ac_ext <<_ACEOF
18885 cat confdefs.h >>conftest.$ac_ext
18886 cat >>conftest.$ac_ext <<_ACEOF
18887 /* end confdefs.h. */
18888 #include <sys/types.h> /* for off_t */
18893 int (*fp) (FILE *, off_t, int) = fseeko;
18894 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18899 rm -f conftest.$ac_objext conftest$ac_exeext
18900 if { (ac_try="$ac_link"
18901 case "(($ac_try" in
18902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18903 *) ac_try_echo=$ac_try;;
18905 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18906 $as_echo "$ac_try_echo") >&5
18907 (eval "$ac_link") 2>conftest.er1
18909 grep -v '^ *+' conftest.er1 >conftest.err
18911 cat conftest.err >&5
18912 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18913 (exit $ac_status); } && {
18914 test -z "$ac_c_werror_flag" ||
18915 test ! -s conftest.err
18916 } && test -s conftest$ac_exeext && {
18917 test "$cross_compiling" = yes ||
18918 $as_test_x conftest$ac_exeext
18920 ac_cv_sys_largefile_source=no; break
18922 $as_echo "$as_me: failed program was
:" >&5
18923 sed 's/^/| /' conftest.$ac_ext >&5
18928 rm -rf conftest.dSYM
18929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18930 conftest$ac_exeext conftest.$ac_ext
18931 cat >conftest.$ac_ext <<_ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h. */
18937 #define _LARGEFILE_SOURCE 1
18938 #include <sys/types.h> /* for off_t */
18943 int (*fp) (FILE *, off_t, int) = fseeko;
18944 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18949 rm -f conftest.$ac_objext conftest$ac_exeext
18950 if { (ac_try="$ac_link"
18951 case "(($ac_try" in
18952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18953 *) ac_try_echo=$ac_try;;
18955 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
18956 $as_echo "$ac_try_echo") >&5
18957 (eval "$ac_link") 2>conftest.er1
18959 grep -v '^ *+' conftest.er1 >conftest.err
18961 cat conftest.err >&5
18962 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18963 (exit $ac_status); } && {
18964 test -z "$ac_c_werror_flag" ||
18965 test ! -s conftest.err
18966 } && test -s conftest$ac_exeext && {
18967 test "$cross_compiling" = yes ||
18968 $as_test_x conftest$ac_exeext
18970 ac_cv_sys_largefile_source=1; break
18972 $as_echo "$as_me: failed program was
:" >&5
18973 sed 's/^/| /' conftest.$ac_ext >&5
18978 rm -rf conftest.dSYM
18979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18980 conftest$ac_exeext conftest.$ac_ext
18981 ac_cv_sys_largefile_source=unknown
18985 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18986 $as_echo "$ac_cv_sys_largefile_source" >&6; }
18987 case $ac_cv_sys_largefile_source in #(
18990 cat >>confdefs.h <<_ACEOF
18991 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18997 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18998 # in glibc 2.1.3, but that breaks too many other things.
18999 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19000 if test $ac_cv_sys_largefile_source != unknown; then
19002 cat >>confdefs.h <<\_ACEOF
19003 #define HAVE_FSEEKO 1
19010 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
19011 # by calling it, 2009-04-02
19012 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
19013 if test "$PORTNAME" != "solaris
"; then
19015 for ac_func in posix_fadvise
19017 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19018 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19019 $as_echo_n "checking
for $ac_func...
" >&6; }
19020 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19021 $as_echo_n "(cached
) " >&6
19023 cat >conftest.$ac_ext <<_ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19031 #define $ac_func innocuous_$ac_func
19033 /* System header to define __stub macros and hopefully few prototypes,
19034 which can conflict with char $ac_func (); below.
19035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19036 <limits.h> exists even on freestanding compilers. */
19039 # include <limits.h>
19041 # include <assert.h>
19046 /* Override any GCC internal prototype to avoid an error.
19047 Use char because int might match the return type of a GCC
19048 builtin and then its argument prototype would still apply. */
19053 /* The GNU C library defines this for functions which it implements
19054 to always fail with ENOSYS. Some functions are actually named
19055 something starting with __ and the normal name is an alias. */
19056 #if defined __stub_$ac_func || defined __stub___$ac_func
19063 return $ac_func ();
19068 rm -f conftest.$ac_objext conftest$ac_exeext
19069 if { (ac_try="$ac_link"
19070 case "(($ac_try" in
19071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072 *) ac_try_echo=$ac_try;;
19074 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19075 $as_echo "$ac_try_echo") >&5
19076 (eval "$ac_link") 2>conftest.er1
19078 grep -v '^ *+' conftest.er1 >conftest.err
19080 cat conftest.err >&5
19081 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19082 (exit $ac_status); } && {
19083 test -z "$ac_c_werror_flag" ||
19084 test ! -s conftest.err
19085 } && test -s conftest$ac_exeext && {
19086 test "$cross_compiling" = yes ||
19087 $as_test_x conftest$ac_exeext
19089 eval "$as_ac_var=yes"
19091 $as_echo "$as_me: failed program was
:" >&5
19092 sed 's/^/| /' conftest.$ac_ext >&5
19094 eval "$as_ac_var=no
"
19097 rm -rf conftest.dSYM
19098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19099 conftest$ac_exeext conftest.$ac_ext
19101 ac_res=`eval 'as_val=${'$as_ac_var'}
19102 $as_echo "$as_val"'`
19103 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19104 $as_echo "$ac_res" >&6; }
19105 as_val=`eval 'as_val=${'$as_ac_var'}
19106 $as_echo "$as_val"'`
19107 if test "x
$as_val" = x""yes; then
19108 cat >>confdefs.h <<_ACEOF
19109 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19115 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared
" >&5
19116 $as_echo_n "checking whether posix_fadvise is declared...
" >&6; }
19117 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
19118 $as_echo_n "(cached
) " >&6
19120 cat >conftest.$ac_ext <<_ACEOF
19123 cat confdefs.h >>conftest.$ac_ext
19124 cat >>conftest.$ac_ext <<_ACEOF
19125 /* end confdefs.h. */
19131 #ifndef posix_fadvise
19132 (void) posix_fadvise;
19139 rm -f conftest.$ac_objext
19140 if { (ac_try="$ac_compile"
19141 case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19145 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19146 $as_echo "$ac_try_echo") >&5
19147 (eval "$ac_compile") 2>conftest.er1
19149 grep -v '^ *+' conftest.er1 >conftest.err
19151 cat conftest.err >&5
19152 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19153 (exit $ac_status); } && {
19154 test -z "$ac_c_werror_flag" ||
19155 test ! -s conftest.err
19156 } && test -s conftest.$ac_objext; then
19157 ac_cv_have_decl_posix_fadvise=yes
19159 $as_echo "$as_me: failed program was
:" >&5
19160 sed 's/^/| /' conftest.$ac_ext >&5
19162 ac_cv_have_decl_posix_fadvise=no
19165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19167 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_posix_fadvise" >&5
19168 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
19169 if test "x
$ac_cv_have_decl_posix_fadvise" = x""yes; then
19171 cat >>confdefs.h <<_ACEOF
19172 #define HAVE_DECL_POSIX_FADVISE 1
19177 cat >>confdefs.h <<_ACEOF
19178 #define HAVE_DECL_POSIX_FADVISE 0
19187 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared
" >&5
19188 $as_echo_n "checking whether fdatasync is declared...
" >&6; }
19189 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
19190 $as_echo_n "(cached
) " >&6
19192 cat >conftest.$ac_ext <<_ACEOF
19195 cat confdefs.h >>conftest.$ac_ext
19196 cat >>conftest.$ac_ext <<_ACEOF
19197 /* end confdefs.h. */
19198 #include <unistd.h>
19211 rm -f conftest.$ac_objext
19212 if { (ac_try="$ac_compile"
19213 case "(($ac_try" in
19214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215 *) ac_try_echo=$ac_try;;
19217 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19218 $as_echo "$ac_try_echo") >&5
19219 (eval "$ac_compile") 2>conftest.er1
19221 grep -v '^ *+' conftest.er1 >conftest.err
19223 cat conftest.err >&5
19224 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19225 (exit $ac_status); } && {
19226 test -z "$ac_c_werror_flag" ||
19227 test ! -s conftest.err
19228 } && test -s conftest.$ac_objext; then
19229 ac_cv_have_decl_fdatasync=yes
19231 $as_echo "$as_me: failed program was
:" >&5
19232 sed 's/^/| /' conftest.$ac_ext >&5
19234 ac_cv_have_decl_fdatasync=no
19237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19239 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_fdatasync" >&5
19240 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
19241 if test "x
$ac_cv_have_decl_fdatasync" = x""yes; then
19243 cat >>confdefs.h <<_ACEOF
19244 #define HAVE_DECL_FDATASYNC 1
19249 cat >>confdefs.h <<_ACEOF
19250 #define HAVE_DECL_FDATASYNC 0
19257 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared
" >&5
19258 $as_echo_n "checking whether strlcat is declared...
" >&6; }
19259 if test "${ac_cv_have_decl_strlcat+set}" = set; then
19260 $as_echo_n "(cached
) " >&6
19262 cat >conftest.$ac_ext <<_ACEOF
19265 cat confdefs.h >>conftest.$ac_ext
19266 cat >>conftest.$ac_ext <<_ACEOF
19267 /* end confdefs.h. */
19268 $ac_includes_default
19280 rm -f conftest.$ac_objext
19281 if { (ac_try="$ac_compile"
19282 case "(($ac_try" in
19283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284 *) ac_try_echo=$ac_try;;
19286 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19287 $as_echo "$ac_try_echo") >&5
19288 (eval "$ac_compile") 2>conftest.er1
19290 grep -v '^ *+' conftest.er1 >conftest.err
19292 cat conftest.err >&5
19293 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19294 (exit $ac_status); } && {
19295 test -z "$ac_c_werror_flag" ||
19296 test ! -s conftest.err
19297 } && test -s conftest.$ac_objext; then
19298 ac_cv_have_decl_strlcat=yes
19300 $as_echo "$as_me: failed program was
:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19303 ac_cv_have_decl_strlcat=no
19306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19308 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_strlcat" >&5
19309 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
19310 if test "x
$ac_cv_have_decl_strlcat" = x""yes; then
19312 cat >>confdefs.h <<_ACEOF
19313 #define HAVE_DECL_STRLCAT 1
19318 cat >>confdefs.h <<_ACEOF
19319 #define HAVE_DECL_STRLCAT 0
19324 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared
" >&5
19325 $as_echo_n "checking whether strlcpy is declared...
" >&6; }
19326 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
19327 $as_echo_n "(cached
) " >&6
19329 cat >conftest.$ac_ext <<_ACEOF
19332 cat confdefs.h >>conftest.$ac_ext
19333 cat >>conftest.$ac_ext <<_ACEOF
19334 /* end confdefs.h. */
19335 $ac_includes_default
19347 rm -f conftest.$ac_objext
19348 if { (ac_try="$ac_compile"
19349 case "(($ac_try" in
19350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351 *) ac_try_echo=$ac_try;;
19353 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19354 $as_echo "$ac_try_echo") >&5
19355 (eval "$ac_compile") 2>conftest.er1
19357 grep -v '^ *+' conftest.er1 >conftest.err
19359 cat conftest.err >&5
19360 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19361 (exit $ac_status); } && {
19362 test -z "$ac_c_werror_flag" ||
19363 test ! -s conftest.err
19364 } && test -s conftest.$ac_objext; then
19365 ac_cv_have_decl_strlcpy=yes
19367 $as_echo "$as_me: failed program was
:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19370 ac_cv_have_decl_strlcpy=no
19373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19375 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_strlcpy" >&5
19376 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
19377 if test "x
$ac_cv_have_decl_strlcpy" = x""yes; then
19379 cat >>confdefs.h <<_ACEOF
19380 #define HAVE_DECL_STRLCPY 1
19385 cat >>confdefs.h <<_ACEOF
19386 #define HAVE_DECL_STRLCPY 0
19393 # This is probably only present on Darwin, but may as well check always
19394 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared
" >&5
19395 $as_echo_n "checking whether F_FULLFSYNC is declared...
" >&6; }
19396 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
19397 $as_echo_n "(cached
) " >&6
19399 cat >conftest.$ac_ext <<_ACEOF
19402 cat confdefs.h >>conftest.$ac_ext
19403 cat >>conftest.$ac_ext <<_ACEOF
19404 /* end confdefs.h. */
19410 #ifndef F_FULLFSYNC
19411 (void) F_FULLFSYNC;
19418 rm -f conftest.$ac_objext
19419 if { (ac_try="$ac_compile"
19420 case "(($ac_try" in
19421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422 *) ac_try_echo=$ac_try;;
19424 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19425 $as_echo "$ac_try_echo") >&5
19426 (eval "$ac_compile") 2>conftest.er1
19428 grep -v '^ *+' conftest.er1 >conftest.err
19430 cat conftest.err >&5
19431 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19432 (exit $ac_status); } && {
19433 test -z "$ac_c_werror_flag" ||
19434 test ! -s conftest.err
19435 } && test -s conftest.$ac_objext; then
19436 ac_cv_have_decl_F_FULLFSYNC=yes
19438 $as_echo "$as_me: failed program was
:" >&5
19439 sed 's/^/| /' conftest.$ac_ext >&5
19441 ac_cv_have_decl_F_FULLFSYNC=no
19444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19446 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_F_FULLFSYNC" >&5
19447 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
19448 if test "x
$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
19450 cat >>confdefs.h <<_ACEOF
19451 #define HAVE_DECL_F_FULLFSYNC 1
19456 cat >>confdefs.h <<_ACEOF
19457 #define HAVE_DECL_F_FULLFSYNC 0
19466 { $as_echo "$as_me:$LINENO: checking
for struct sockaddr_in6
" >&5
19467 $as_echo_n "checking
for struct sockaddr_in6...
" >&6; }
19468 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
19469 $as_echo_n "(cached
) " >&6
19471 ac_cv_type_struct_sockaddr_in6=no
19472 cat >conftest.$ac_ext <<_ACEOF
19475 cat confdefs.h >>conftest.$ac_ext
19476 cat >>conftest.$ac_ext <<_ACEOF
19477 /* end confdefs.h. */
19478 $ac_includes_default
19479 #include <netinet/in.h>
19484 if (sizeof (struct sockaddr_in6))
19490 rm -f conftest.$ac_objext
19491 if { (ac_try="$ac_compile"
19492 case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19496 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19497 $as_echo "$ac_try_echo") >&5
19498 (eval "$ac_compile") 2>conftest.er1
19500 grep -v '^ *+' conftest.er1 >conftest.err
19502 cat conftest.err >&5
19503 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19504 (exit $ac_status); } && {
19505 test -z "$ac_c_werror_flag" ||
19506 test ! -s conftest.err
19507 } && test -s conftest.$ac_objext; then
19508 cat >conftest.$ac_ext <<_ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h. */
19514 $ac_includes_default
19515 #include <netinet/in.h>
19520 if (sizeof ((struct sockaddr_in6)))
19526 rm -f conftest.$ac_objext
19527 if { (ac_try="$ac_compile"
19528 case "(($ac_try" in
19529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19530 *) ac_try_echo=$ac_try;;
19532 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19533 $as_echo "$ac_try_echo") >&5
19534 (eval "$ac_compile") 2>conftest.er1
19536 grep -v '^ *+' conftest.er1 >conftest.err
19538 cat conftest.err >&5
19539 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19540 (exit $ac_status); } && {
19541 test -z "$ac_c_werror_flag" ||
19542 test ! -s conftest.err
19543 } && test -s conftest.$ac_objext; then
19546 $as_echo "$as_me: failed program was
:" >&5
19547 sed 's/^/| /' conftest.$ac_ext >&5
19549 ac_cv_type_struct_sockaddr_in6=yes
19552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19554 $as_echo "$as_me: failed program was
:" >&5
19555 sed 's/^/| /' conftest.$ac_ext >&5
19560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19562 { $as_echo "$as_me:$LINENO: result
: $ac_cv_type_struct_sockaddr_in6" >&5
19563 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
19564 if test "x
$ac_cv_type_struct_sockaddr_in6" = x""yes; then
19566 cat >>confdefs.h <<\_ACEOF
19567 #define HAVE_IPV6 1
19575 { $as_echo "$as_me:$LINENO: checking
for PS_STRINGS
" >&5
19576 $as_echo_n "checking
for PS_STRINGS...
" >&6; }
19577 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
19578 $as_echo_n "(cached
) " >&6
19580 cat >conftest.$ac_ext <<_ACEOF
19583 cat confdefs.h >>conftest.$ac_ext
19584 cat >>conftest.$ac_ext <<_ACEOF
19585 /* end confdefs.h. */
19586 #include <machine/vmparam.h>
19587 #include <sys/exec.h>
19592 PS_STRINGS->ps_nargvstr = 1;
19593 PS_STRINGS->ps_argvstr = "foo
";
19598 rm -f conftest.$ac_objext conftest$ac_exeext
19599 if { (ac_try="$ac_link"
19600 case "(($ac_try" in
19601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19602 *) ac_try_echo=$ac_try;;
19604 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19605 $as_echo "$ac_try_echo") >&5
19606 (eval "$ac_link") 2>conftest.er1
19608 grep -v '^ *+' conftest.er1 >conftest.err
19610 cat conftest.err >&5
19611 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19612 (exit $ac_status); } && {
19613 test -z "$ac_c_werror_flag" ||
19614 test ! -s conftest.err
19615 } && test -s conftest$ac_exeext && {
19616 test "$cross_compiling" = yes ||
19617 $as_test_x conftest$ac_exeext
19619 pgac_cv_var_PS_STRINGS=yes
19621 $as_echo "$as_me: failed program was
:" >&5
19622 sed 's/^/| /' conftest.$ac_ext >&5
19624 pgac_cv_var_PS_STRINGS=no
19627 rm -rf conftest.dSYM
19628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19629 conftest$ac_exeext conftest.$ac_ext
19631 { $as_echo "$as_me:$LINENO: result
: $pgac_cv_var_PS_STRINGS" >&5
19632 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
19633 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
19635 cat >>confdefs.h <<\_ACEOF
19636 #define HAVE_PS_STRINGS /**/
19642 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
19643 # is missing. Yes, there are machines that have only one. We may
19644 # also decide to use snprintf.c if snprintf() is present but does not
19645 # have all the features we need --- see below.
19647 if test "$PORTNAME" = "win32
"; then
19648 # Win32 gets snprintf.c built unconditionally.
19650 # To properly translate all NLS languages strings, we must support the
19651 # *printf() %$ format, which allows *printf() arguments to be selected
19652 # by position in the translated string.
19654 # libintl versions < 0.13 use the native *printf() functions, and Win32
19655 # *printf() doesn't understand %$, so we must use our /port versions,
19656 # which do understand %$. libintl versions >= 0.13 include their own
19657 # *printf versions on Win32. The libintl 0.13 release note text is:
19659 # C format strings with positions, as they arise when a translator
19660 # needs to reorder a sentence, are now supported on all platforms.
19661 # On those few platforms (NetBSD and Woe32) for which the native
19662 # printf()/fprintf()/... functions don't support such format
19663 # strings, replacements are provided through <libintl.h>.
19665 # We could use libintl >= 0.13's *printf() if we were sure that we had
19666 # a litint >= 0.13 at runtime, but seeing that there is no clean way
19667 # to guarantee that, it is best to just use our own, so we are sure to
19668 # get %$ support. In include/port.h we disable the *printf() macros
19669 # that might have been defined by libintl.
19671 # We do this unconditionally whether NLS is used or not so we are sure
19672 # that all Win32 libraries and binaries behave the same.
19673 pgac_need_repl_snprintf=yes
19675 pgac_need_repl_snprintf=no
19677 for ac_func in snprintf
19679 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19680 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19681 $as_echo_n "checking
for $ac_func...
" >&6; }
19682 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19683 $as_echo_n "(cached
) " >&6
19685 cat >conftest.$ac_ext <<_ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h. */
19691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19693 #define $ac_func innocuous_$ac_func
19695 /* System header to define __stub macros and hopefully few prototypes,
19696 which can conflict with char $ac_func (); below.
19697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19698 <limits.h> exists even on freestanding compilers. */
19701 # include <limits.h>
19703 # include <assert.h>
19708 /* Override any GCC internal prototype to avoid an error.
19709 Use char because int might match the return type of a GCC
19710 builtin and then its argument prototype would still apply. */
19715 /* The GNU C library defines this for functions which it implements
19716 to always fail with ENOSYS. Some functions are actually named
19717 something starting with __ and the normal name is an alias. */
19718 #if defined __stub_$ac_func || defined __stub___$ac_func
19725 return $ac_func ();
19730 rm -f conftest.$ac_objext conftest$ac_exeext
19731 if { (ac_try="$ac_link"
19732 case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19736 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19737 $as_echo "$ac_try_echo") >&5
19738 (eval "$ac_link") 2>conftest.er1
19740 grep -v '^ *+' conftest.er1 >conftest.err
19742 cat conftest.err >&5
19743 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19744 (exit $ac_status); } && {
19745 test -z "$ac_c_werror_flag" ||
19746 test ! -s conftest.err
19747 } && test -s conftest$ac_exeext && {
19748 test "$cross_compiling" = yes ||
19749 $as_test_x conftest$ac_exeext
19751 eval "$as_ac_var=yes"
19753 $as_echo "$as_me: failed program was
:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19756 eval "$as_ac_var=no
"
19759 rm -rf conftest.dSYM
19760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19761 conftest$ac_exeext conftest.$ac_ext
19763 ac_res=`eval 'as_val=${'$as_ac_var'}
19764 $as_echo "$as_val"'`
19765 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19766 $as_echo "$ac_res" >&6; }
19767 as_val=`eval 'as_val=${'$as_ac_var'}
19768 $as_echo "$as_val"'`
19769 if test "x
$as_val" = x""yes; then
19770 cat >>confdefs.h <<_ACEOF
19771 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19775 pgac_need_repl_snprintf=yes
19780 for ac_func in vsnprintf
19782 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19783 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
19784 $as_echo_n "checking
for $ac_func...
" >&6; }
19785 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19786 $as_echo_n "(cached
) " >&6
19788 cat >conftest.$ac_ext <<_ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h. */
19794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19796 #define $ac_func innocuous_$ac_func
19798 /* System header to define __stub macros and hopefully few prototypes,
19799 which can conflict with char $ac_func (); below.
19800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19801 <limits.h> exists even on freestanding compilers. */
19804 # include <limits.h>
19806 # include <assert.h>
19811 /* Override any GCC internal prototype to avoid an error.
19812 Use char because int might match the return type of a GCC
19813 builtin and then its argument prototype would still apply. */
19818 /* The GNU C library defines this for functions which it implements
19819 to always fail with ENOSYS. Some functions are actually named
19820 something starting with __ and the normal name is an alias. */
19821 #if defined __stub_$ac_func || defined __stub___$ac_func
19828 return $ac_func ();
19833 rm -f conftest.$ac_objext conftest$ac_exeext
19834 if { (ac_try="$ac_link"
19835 case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19839 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19840 $as_echo "$ac_try_echo") >&5
19841 (eval "$ac_link") 2>conftest.er1
19843 grep -v '^ *+' conftest.er1 >conftest.err
19845 cat conftest.err >&5
19846 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19847 (exit $ac_status); } && {
19848 test -z "$ac_c_werror_flag" ||
19849 test ! -s conftest.err
19850 } && test -s conftest$ac_exeext && {
19851 test "$cross_compiling" = yes ||
19852 $as_test_x conftest$ac_exeext
19854 eval "$as_ac_var=yes"
19856 $as_echo "$as_me: failed program was
:" >&5
19857 sed 's/^/| /' conftest.$ac_ext >&5
19859 eval "$as_ac_var=no
"
19862 rm -rf conftest.dSYM
19863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19864 conftest$ac_exeext conftest.$ac_ext
19866 ac_res=`eval 'as_val=${'$as_ac_var'}
19867 $as_echo "$as_val"'`
19868 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
19869 $as_echo "$ac_res" >&6; }
19870 as_val=`eval 'as_val=${'$as_ac_var'}
19871 $as_echo "$as_val"'`
19872 if test "x
$as_val" = x""yes; then
19873 cat >>confdefs.h <<_ACEOF
19874 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19878 pgac_need_repl_snprintf=yes
19885 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
19886 # include/c.h will provide declarations. Note this is a separate test
19887 # from whether the functions exist in the C library --- there are
19888 # systems that have the functions but don't bother to declare them :-(
19890 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared
" >&5
19891 $as_echo_n "checking whether snprintf is declared...
" >&6; }
19892 if test "${ac_cv_have_decl_snprintf+set}" = set; then
19893 $as_echo_n "(cached
) " >&6
19895 cat >conftest.$ac_ext <<_ACEOF
19898 cat confdefs.h >>conftest.$ac_ext
19899 cat >>conftest.$ac_ext <<_ACEOF
19900 /* end confdefs.h. */
19901 $ac_includes_default
19913 rm -f conftest.$ac_objext
19914 if { (ac_try="$ac_compile"
19915 case "(($ac_try" in
19916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19917 *) ac_try_echo=$ac_try;;
19919 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19920 $as_echo "$ac_try_echo") >&5
19921 (eval "$ac_compile") 2>conftest.er1
19923 grep -v '^ *+' conftest.er1 >conftest.err
19925 cat conftest.err >&5
19926 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19927 (exit $ac_status); } && {
19928 test -z "$ac_c_werror_flag" ||
19929 test ! -s conftest.err
19930 } && test -s conftest.$ac_objext; then
19931 ac_cv_have_decl_snprintf=yes
19933 $as_echo "$as_me: failed program was
:" >&5
19934 sed 's/^/| /' conftest.$ac_ext >&5
19936 ac_cv_have_decl_snprintf=no
19939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19941 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_snprintf" >&5
19942 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
19943 if test "x
$ac_cv_have_decl_snprintf" = x""yes; then
19945 cat >>confdefs.h <<_ACEOF
19946 #define HAVE_DECL_SNPRINTF 1
19951 cat >>confdefs.h <<_ACEOF
19952 #define HAVE_DECL_SNPRINTF 0
19957 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared
" >&5
19958 $as_echo_n "checking whether vsnprintf is declared...
" >&6; }
19959 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
19960 $as_echo_n "(cached
) " >&6
19962 cat >conftest.$ac_ext <<_ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19968 $ac_includes_default
19980 rm -f conftest.$ac_objext
19981 if { (ac_try="$ac_compile"
19982 case "(($ac_try" in
19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 *) ac_try_echo=$ac_try;;
19986 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
19987 $as_echo "$ac_try_echo") >&5
19988 (eval "$ac_compile") 2>conftest.er1
19990 grep -v '^ *+' conftest.er1 >conftest.err
19992 cat conftest.err >&5
19993 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19994 (exit $ac_status); } && {
19995 test -z "$ac_c_werror_flag" ||
19996 test ! -s conftest.err
19997 } && test -s conftest.$ac_objext; then
19998 ac_cv_have_decl_vsnprintf=yes
20000 $as_echo "$as_me: failed program was
:" >&5
20001 sed 's/^/| /' conftest.$ac_ext >&5
20003 ac_cv_have_decl_vsnprintf=no
20006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20008 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_vsnprintf" >&5
20009 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
20010 if test "x
$ac_cv_have_decl_vsnprintf" = x""yes; then
20012 cat >>confdefs.h <<_ACEOF
20013 #define HAVE_DECL_VSNPRINTF 1
20018 cat >>confdefs.h <<_ACEOF
20019 #define HAVE_DECL_VSNPRINTF 0
20028 { $as_echo "$as_me:$LINENO: checking
for isinf
" >&5
20029 $as_echo_n "checking
for isinf...
" >&6; }
20030 if test "${ac_cv_func_isinf+set}" = set; then
20031 $as_echo_n "(cached
) " >&6
20033 cat >conftest.$ac_ext <<_ACEOF
20036 cat confdefs.h >>conftest.$ac_ext
20037 cat >>conftest.$ac_ext <<_ACEOF
20038 /* end confdefs.h. */
20041 double glob_double;
20046 return isinf(glob_double) ? 0 : 1;
20051 rm -f conftest.$ac_objext conftest$ac_exeext
20052 if { (ac_try="$ac_link"
20053 case "(($ac_try" in
20054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055 *) ac_try_echo=$ac_try;;
20057 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20058 $as_echo "$ac_try_echo") >&5
20059 (eval "$ac_link") 2>conftest.er1
20061 grep -v '^ *+' conftest.er1 >conftest.err
20063 cat conftest.err >&5
20064 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20065 (exit $ac_status); } && {
20066 test -z "$ac_c_werror_flag" ||
20067 test ! -s conftest.err
20068 } && test -s conftest$ac_exeext && {
20069 test "$cross_compiling" = yes ||
20070 $as_test_x conftest$ac_exeext
20072 ac_cv_func_isinf=yes
20074 $as_echo "$as_me: failed program was
:" >&5
20075 sed 's/^/| /' conftest.$ac_ext >&5
20077 ac_cv_func_isinf=no
20080 rm -rf conftest.dSYM
20081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20082 conftest$ac_exeext conftest.$ac_ext
20084 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_isinf" >&5
20085 $as_echo "$ac_cv_func_isinf" >&6; }
20087 if test $ac_cv_func_isinf = yes ; then
20089 cat >>confdefs.h <<\_ACEOF
20090 #define HAVE_ISINF 1
20094 case " $LIBOBJS " in
20095 *" isinf.
$ac_objext "* ) ;;
20096 *) LIBOBJS="$LIBOBJS isinf.
$ac_objext"
20100 # Look for a way to implement a substitute for isinf()
20105 for ac_func in fpclass fp_class fp_class_d class
20107 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20108 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20109 $as_echo_n "checking
for $ac_func...
" >&6; }
20110 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20111 $as_echo_n "(cached
) " >&6
20113 cat >conftest.$ac_ext <<_ACEOF
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h. */
20119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20121 #define $ac_func innocuous_$ac_func
20123 /* System header to define __stub macros and hopefully few prototypes,
20124 which can conflict with char $ac_func (); below.
20125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20126 <limits.h> exists even on freestanding compilers. */
20129 # include <limits.h>
20131 # include <assert.h>
20136 /* Override any GCC internal prototype to avoid an error.
20137 Use char because int might match the return type of a GCC
20138 builtin and then its argument prototype would still apply. */
20143 /* The GNU C library defines this for functions which it implements
20144 to always fail with ENOSYS. Some functions are actually named
20145 something starting with __ and the normal name is an alias. */
20146 #if defined __stub_$ac_func || defined __stub___$ac_func
20153 return $ac_func ();
20158 rm -f conftest.$ac_objext conftest$ac_exeext
20159 if { (ac_try="$ac_link"
20160 case "(($ac_try" in
20161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162 *) ac_try_echo=$ac_try;;
20164 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20165 $as_echo "$ac_try_echo") >&5
20166 (eval "$ac_link") 2>conftest.er1
20168 grep -v '^ *+' conftest.er1 >conftest.err
20170 cat conftest.err >&5
20171 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20172 (exit $ac_status); } && {
20173 test -z "$ac_c_werror_flag" ||
20174 test ! -s conftest.err
20175 } && test -s conftest$ac_exeext && {
20176 test "$cross_compiling" = yes ||
20177 $as_test_x conftest$ac_exeext
20179 eval "$as_ac_var=yes"
20181 $as_echo "$as_me: failed program was
:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20184 eval "$as_ac_var=no
"
20187 rm -rf conftest.dSYM
20188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20189 conftest$ac_exeext conftest.$ac_ext
20191 ac_res=`eval 'as_val=${'$as_ac_var'}
20192 $as_echo "$as_val"'`
20193 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20194 $as_echo "$ac_res" >&6; }
20195 as_val=`eval 'as_val=${'$as_ac_var'}
20196 $as_echo "$as_val"'`
20197 if test "x
$as_val" = x""yes; then
20198 cat >>confdefs.h <<_ACEOF
20199 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20207 # Some versions of libedit contain strlcpy(); so disregard that library while
20208 # checking for these standard libc functions.
20209 pgac_save_LIBS="$LIBS"
20210 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20226 for ac_func in crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20228 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20229 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20230 $as_echo_n "checking
for $ac_func...
" >&6; }
20231 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20232 $as_echo_n "(cached
) " >&6
20234 cat >conftest.$ac_ext <<_ACEOF
20237 cat confdefs.h >>conftest.$ac_ext
20238 cat >>conftest.$ac_ext <<_ACEOF
20239 /* end confdefs.h. */
20240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20242 #define $ac_func innocuous_$ac_func
20244 /* System header to define __stub macros and hopefully few prototypes,
20245 which can conflict with char $ac_func (); below.
20246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20247 <limits.h> exists even on freestanding compilers. */
20250 # include <limits.h>
20252 # include <assert.h>
20257 /* Override any GCC internal prototype to avoid an error.
20258 Use char because int might match the return type of a GCC
20259 builtin and then its argument prototype would still apply. */
20264 /* The GNU C library defines this for functions which it implements
20265 to always fail with ENOSYS. Some functions are actually named
20266 something starting with __ and the normal name is an alias. */
20267 #if defined __stub_$ac_func || defined __stub___$ac_func
20274 return $ac_func ();
20279 rm -f conftest.$ac_objext conftest$ac_exeext
20280 if { (ac_try="$ac_link"
20281 case "(($ac_try" in
20282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20283 *) ac_try_echo=$ac_try;;
20285 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20286 $as_echo "$ac_try_echo") >&5
20287 (eval "$ac_link") 2>conftest.er1
20289 grep -v '^ *+' conftest.er1 >conftest.err
20291 cat conftest.err >&5
20292 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20293 (exit $ac_status); } && {
20294 test -z "$ac_c_werror_flag" ||
20295 test ! -s conftest.err
20296 } && test -s conftest$ac_exeext && {
20297 test "$cross_compiling" = yes ||
20298 $as_test_x conftest$ac_exeext
20300 eval "$as_ac_var=yes"
20302 $as_echo "$as_me: failed program was
:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20305 eval "$as_ac_var=no
"
20308 rm -rf conftest.dSYM
20309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20310 conftest$ac_exeext conftest.$ac_ext
20312 ac_res=`eval 'as_val=${'$as_ac_var'}
20313 $as_echo "$as_val"'`
20314 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20315 $as_echo "$ac_res" >&6; }
20316 as_val=`eval 'as_val=${'$as_ac_var'}
20317 $as_echo "$as_val"'`
20318 if test "x
$as_val" = x""yes; then
20319 cat >>confdefs.h <<_ACEOF
20320 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20324 case " $LIBOBJS " in
20325 *" $ac_func.
$ac_objext "* ) ;;
20326 *) LIBOBJS="$LIBOBJS $ac_func.
$ac_objext"
20337 # Windows uses a specialised env handler
20340 cat >>confdefs.h <<\_ACEOF
20341 #define HAVE_UNSETENV 1
20344 ac_cv_func_unsetenv=yes;;
20347 for ac_func in unsetenv
20349 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20350 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20351 $as_echo_n "checking
for $ac_func...
" >&6; }
20352 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20353 $as_echo_n "(cached
) " >&6
20355 cat >conftest.$ac_ext <<_ACEOF
20358 cat confdefs.h >>conftest.$ac_ext
20359 cat >>conftest.$ac_ext <<_ACEOF
20360 /* end confdefs.h. */
20361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20363 #define $ac_func innocuous_$ac_func
20365 /* System header to define __stub macros and hopefully few prototypes,
20366 which can conflict with char $ac_func (); below.
20367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20368 <limits.h> exists even on freestanding compilers. */
20371 # include <limits.h>
20373 # include <assert.h>
20378 /* Override any GCC internal prototype to avoid an error.
20379 Use char because int might match the return type of a GCC
20380 builtin and then its argument prototype would still apply. */
20385 /* The GNU C library defines this for functions which it implements
20386 to always fail with ENOSYS. Some functions are actually named
20387 something starting with __ and the normal name is an alias. */
20388 #if defined __stub_$ac_func || defined __stub___$ac_func
20395 return $ac_func ();
20400 rm -f conftest.$ac_objext conftest$ac_exeext
20401 if { (ac_try="$ac_link"
20402 case "(($ac_try" in
20403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20404 *) ac_try_echo=$ac_try;;
20406 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20407 $as_echo "$ac_try_echo") >&5
20408 (eval "$ac_link") 2>conftest.er1
20410 grep -v '^ *+' conftest.er1 >conftest.err
20412 cat conftest.err >&5
20413 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20414 (exit $ac_status); } && {
20415 test -z "$ac_c_werror_flag" ||
20416 test ! -s conftest.err
20417 } && test -s conftest$ac_exeext && {
20418 test "$cross_compiling" = yes ||
20419 $as_test_x conftest$ac_exeext
20421 eval "$as_ac_var=yes"
20423 $as_echo "$as_me: failed program was
:" >&5
20424 sed 's/^/| /' conftest.$ac_ext >&5
20426 eval "$as_ac_var=no
"
20429 rm -rf conftest.dSYM
20430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20431 conftest$ac_exeext conftest.$ac_ext
20433 ac_res=`eval 'as_val=${'$as_ac_var'}
20434 $as_echo "$as_val"'`
20435 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20436 $as_echo "$ac_res" >&6; }
20437 as_val=`eval 'as_val=${'$as_ac_var'}
20438 $as_echo "$as_val"'`
20439 if test "x
$as_val" = x""yes; then
20440 cat >>confdefs.h <<_ACEOF
20441 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20445 case " $LIBOBJS " in
20446 *" $ac_func.
$ac_objext "* ) ;;
20447 *) LIBOBJS="$LIBOBJS $ac_func.
$ac_objext"
20459 LIBS="$pgac_save_LIBS"
20461 # System's version of getaddrinfo(), if any, may be used only if we found
20462 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
20463 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
20464 # versions of getaddrinfo don't follow normal C call protocol. This is OK
20465 # because we want to use our own getaddrinfo.c on Windows anyway.)
20466 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
20468 for ac_func in getaddrinfo
20470 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20471 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20472 $as_echo_n "checking
for $ac_func...
" >&6; }
20473 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20474 $as_echo_n "(cached
) " >&6
20476 cat >conftest.$ac_ext <<_ACEOF
20479 cat confdefs.h >>conftest.$ac_ext
20480 cat >>conftest.$ac_ext <<_ACEOF
20481 /* end confdefs.h. */
20482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20484 #define $ac_func innocuous_$ac_func
20486 /* System header to define __stub macros and hopefully few prototypes,
20487 which can conflict with char $ac_func (); below.
20488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20489 <limits.h> exists even on freestanding compilers. */
20492 # include <limits.h>
20494 # include <assert.h>
20499 /* Override any GCC internal prototype to avoid an error.
20500 Use char because int might match the return type of a GCC
20501 builtin and then its argument prototype would still apply. */
20506 /* The GNU C library defines this for functions which it implements
20507 to always fail with ENOSYS. Some functions are actually named
20508 something starting with __ and the normal name is an alias. */
20509 #if defined __stub_$ac_func || defined __stub___$ac_func
20516 return $ac_func ();
20521 rm -f conftest.$ac_objext conftest$ac_exeext
20522 if { (ac_try="$ac_link"
20523 case "(($ac_try" in
20524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20525 *) ac_try_echo=$ac_try;;
20527 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20528 $as_echo "$ac_try_echo") >&5
20529 (eval "$ac_link") 2>conftest.er1
20531 grep -v '^ *+' conftest.er1 >conftest.err
20533 cat conftest.err >&5
20534 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20535 (exit $ac_status); } && {
20536 test -z "$ac_c_werror_flag" ||
20537 test ! -s conftest.err
20538 } && test -s conftest$ac_exeext && {
20539 test "$cross_compiling" = yes ||
20540 $as_test_x conftest$ac_exeext
20542 eval "$as_ac_var=yes"
20544 $as_echo "$as_me: failed program was
:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20547 eval "$as_ac_var=no
"
20550 rm -rf conftest.dSYM
20551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20552 conftest$ac_exeext conftest.$ac_ext
20554 ac_res=`eval 'as_val=${'$as_ac_var'}
20555 $as_echo "$as_val"'`
20556 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20557 $as_echo "$ac_res" >&6; }
20558 as_val=`eval 'as_val=${'$as_ac_var'}
20559 $as_echo "$as_val"'`
20560 if test "x
$as_val" = x""yes; then
20561 cat >>confdefs.h <<_ACEOF
20562 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20566 case " $LIBOBJS " in
20567 *" $ac_func.
$ac_objext "* ) ;;
20568 *) LIBOBJS="$LIBOBJS $ac_func.
$ac_objext"
20577 case " $LIBOBJS " in
20578 *" getaddrinfo.
$ac_objext "* ) ;;
20579 *) LIBOBJS="$LIBOBJS getaddrinfo.
$ac_objext"
20585 # Similarly, use system's getopt_long() only if system provides struct option.
20586 if test x"$ac_cv_type_struct_option" = xyes ; then
20588 for ac_func in getopt_long
20590 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20591 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20592 $as_echo_n "checking
for $ac_func...
" >&6; }
20593 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20594 $as_echo_n "(cached
) " >&6
20596 cat >conftest.$ac_ext <<_ACEOF
20599 cat confdefs.h >>conftest.$ac_ext
20600 cat >>conftest.$ac_ext <<_ACEOF
20601 /* end confdefs.h. */
20602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20604 #define $ac_func innocuous_$ac_func
20606 /* System header to define __stub macros and hopefully few prototypes,
20607 which can conflict with char $ac_func (); below.
20608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20609 <limits.h> exists even on freestanding compilers. */
20612 # include <limits.h>
20614 # include <assert.h>
20619 /* Override any GCC internal prototype to avoid an error.
20620 Use char because int might match the return type of a GCC
20621 builtin and then its argument prototype would still apply. */
20626 /* The GNU C library defines this for functions which it implements
20627 to always fail with ENOSYS. Some functions are actually named
20628 something starting with __ and the normal name is an alias. */
20629 #if defined __stub_$ac_func || defined __stub___$ac_func
20636 return $ac_func ();
20641 rm -f conftest.$ac_objext conftest$ac_exeext
20642 if { (ac_try="$ac_link"
20643 case "(($ac_try" in
20644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20645 *) ac_try_echo=$ac_try;;
20647 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20648 $as_echo "$ac_try_echo") >&5
20649 (eval "$ac_link") 2>conftest.er1
20651 grep -v '^ *+' conftest.er1 >conftest.err
20653 cat conftest.err >&5
20654 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20655 (exit $ac_status); } && {
20656 test -z "$ac_c_werror_flag" ||
20657 test ! -s conftest.err
20658 } && test -s conftest$ac_exeext && {
20659 test "$cross_compiling" = yes ||
20660 $as_test_x conftest$ac_exeext
20662 eval "$as_ac_var=yes"
20664 $as_echo "$as_me: failed program was
:" >&5
20665 sed 's/^/| /' conftest.$ac_ext >&5
20667 eval "$as_ac_var=no
"
20670 rm -rf conftest.dSYM
20671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20672 conftest$ac_exeext conftest.$ac_ext
20674 ac_res=`eval 'as_val=${'$as_ac_var'}
20675 $as_echo "$as_val"'`
20676 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20677 $as_echo "$ac_res" >&6; }
20678 as_val=`eval 'as_val=${'$as_ac_var'}
20679 $as_echo "$as_val"'`
20680 if test "x
$as_val" = x""yes; then
20681 cat >>confdefs.h <<_ACEOF
20682 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20686 case " $LIBOBJS " in
20687 *" $ac_func.
$ac_objext "* ) ;;
20688 *) LIBOBJS="$LIBOBJS $ac_func.
$ac_objext"
20697 case " $LIBOBJS " in
20698 *" getopt_long.
$ac_objext "* ) ;;
20699 *) LIBOBJS="$LIBOBJS getopt_long.
$ac_objext"
20705 # Solaris' getopt() doesn't do what we want for long options, so always use
20706 # our version on that platform.
20707 if test "$PORTNAME" = "solaris
"; then
20708 case " $LIBOBJS " in
20709 *" getopt.
$ac_objext "* ) ;;
20710 *) LIBOBJS="$LIBOBJS getopt.
$ac_objext"
20716 # Cygwin's erand48() is broken (always returns zero) in some releases,
20717 # so force use of ours.
20718 if test "$PORTNAME" = "cygwin
"; then
20719 case " $LIBOBJS " in
20720 *" erand48.
$ac_objext "* ) ;;
20721 *) LIBOBJS="$LIBOBJS erand48.
$ac_objext"
20728 if test "$PORTNAME" = "win32
"; then
20730 for ac_func in gettimeofday
20732 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20733 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20734 $as_echo_n "checking
for $ac_func...
" >&6; }
20735 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20736 $as_echo_n "(cached
) " >&6
20738 cat >conftest.$ac_ext <<_ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20746 #define $ac_func innocuous_$ac_func
20748 /* System header to define __stub macros and hopefully few prototypes,
20749 which can conflict with char $ac_func (); below.
20750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20751 <limits.h> exists even on freestanding compilers. */
20754 # include <limits.h>
20756 # include <assert.h>
20761 /* Override any GCC internal prototype to avoid an error.
20762 Use char because int might match the return type of a GCC
20763 builtin and then its argument prototype would still apply. */
20768 /* The GNU C library defines this for functions which it implements
20769 to always fail with ENOSYS. Some functions are actually named
20770 something starting with __ and the normal name is an alias. */
20771 #if defined __stub_$ac_func || defined __stub___$ac_func
20778 return $ac_func ();
20783 rm -f conftest.$ac_objext conftest$ac_exeext
20784 if { (ac_try="$ac_link"
20785 case "(($ac_try" in
20786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20787 *) ac_try_echo=$ac_try;;
20789 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20790 $as_echo "$ac_try_echo") >&5
20791 (eval "$ac_link") 2>conftest.er1
20793 grep -v '^ *+' conftest.er1 >conftest.err
20795 cat conftest.err >&5
20796 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20797 (exit $ac_status); } && {
20798 test -z "$ac_c_werror_flag" ||
20799 test ! -s conftest.err
20800 } && test -s conftest$ac_exeext && {
20801 test "$cross_compiling" = yes ||
20802 $as_test_x conftest$ac_exeext
20804 eval "$as_ac_var=yes"
20806 $as_echo "$as_me: failed program was
:" >&5
20807 sed 's/^/| /' conftest.$ac_ext >&5
20809 eval "$as_ac_var=no
"
20812 rm -rf conftest.dSYM
20813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20814 conftest$ac_exeext conftest.$ac_ext
20816 ac_res=`eval 'as_val=${'$as_ac_var'}
20817 $as_echo "$as_val"'`
20818 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
20819 $as_echo "$ac_res" >&6; }
20820 as_val=`eval 'as_val=${'$as_ac_var'}
20821 $as_echo "$as_val"'`
20822 if test "x
$as_val" = x""yes; then
20823 cat >>confdefs.h <<_ACEOF
20824 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20828 case " $LIBOBJS " in
20829 *" $ac_func.
$ac_objext "* ) ;;
20830 *) LIBOBJS="$LIBOBJS $ac_func.
$ac_objext"
20838 case " $LIBOBJS " in
20839 *" kill.
$ac_objext "* ) ;;
20840 *) LIBOBJS="$LIBOBJS kill.
$ac_objext"
20844 case " $LIBOBJS " in
20845 *" open.
$ac_objext "* ) ;;
20846 *) LIBOBJS="$LIBOBJS open.
$ac_objext"
20850 case " $LIBOBJS " in
20851 *" win32env.
$ac_objext "* ) ;;
20852 *) LIBOBJS="$LIBOBJS win32env.
$ac_objext"
20856 case " $LIBOBJS " in
20857 *" win32error.
$ac_objext "* ) ;;
20858 *) LIBOBJS="$LIBOBJS win32error.
$ac_objext"
20863 cat >>confdefs.h <<\_ACEOF
20864 #define HAVE_SYMLINK 1
20869 if test "$with_readline" = yes; then
20870 { $as_echo "$as_me:$LINENO: checking
for rl_completion_append_character
" >&5
20871 $as_echo_n "checking
for rl_completion_append_character...
" >&6; }
20872 cat >conftest.$ac_ext <<_ACEOF
20875 cat confdefs.h >>conftest.$ac_ext
20876 cat >>conftest.$ac_ext <<_ACEOF
20877 /* end confdefs.h. */
20879 #ifdef HAVE_READLINE_READLINE_H
20880 # include <readline/readline.h>
20881 #elif defined(HAVE_READLINE_H)
20882 # include <readline.h>
20888 rl_completion_append_character = 'x';
20893 rm -f conftest.$ac_objext conftest$ac_exeext
20894 if { (ac_try="$ac_link"
20895 case "(($ac_try" in
20896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897 *) ac_try_echo=$ac_try;;
20899 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20900 $as_echo "$ac_try_echo") >&5
20901 (eval "$ac_link") 2>conftest.er1
20903 grep -v '^ *+' conftest.er1 >conftest.err
20905 cat conftest.err >&5
20906 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20907 (exit $ac_status); } && {
20908 test -z "$ac_c_werror_flag" ||
20909 test ! -s conftest.err
20910 } && test -s conftest$ac_exeext && {
20911 test "$cross_compiling" = yes ||
20912 $as_test_x conftest$ac_exeext
20914 { $as_echo "$as_me:$LINENO: result
: yes" >&5
20915 $as_echo "yes" >&6; }
20917 cat >>confdefs.h <<\_ACEOF
20918 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
20922 $as_echo "$as_me: failed program was
:" >&5
20923 sed 's/^/| /' conftest.$ac_ext >&5
20925 { $as_echo "$as_me:$LINENO: result
: no
" >&5
20926 $as_echo "no
" >&6; }
20929 rm -rf conftest.dSYM
20930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20931 conftest$ac_exeext conftest.$ac_ext
20934 for ac_func in rl_completion_matches rl_filename_completion_function
20936 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20937 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
20938 $as_echo_n "checking
for $ac_func...
" >&6; }
20939 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20940 $as_echo_n "(cached
) " >&6
20942 cat >conftest.$ac_ext <<_ACEOF
20945 cat confdefs.h >>conftest.$ac_ext
20946 cat >>conftest.$ac_ext <<_ACEOF
20947 /* end confdefs.h. */
20948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20950 #define $ac_func innocuous_$ac_func
20952 /* System header to define __stub macros and hopefully few prototypes,
20953 which can conflict with char $ac_func (); below.
20954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20955 <limits.h> exists even on freestanding compilers. */
20958 # include <limits.h>
20960 # include <assert.h>
20965 /* Override any GCC internal prototype to avoid an error.
20966 Use char because int might match the return type of a GCC
20967 builtin and then its argument prototype would still apply. */
20972 /* The GNU C library defines this for functions which it implements
20973 to always fail with ENOSYS. Some functions are actually named
20974 something starting with __ and the normal name is an alias. */
20975 #if defined __stub_$ac_func || defined __stub___$ac_func
20982 return $ac_func ();
20987 rm -f conftest.$ac_objext conftest$ac_exeext
20988 if { (ac_try="$ac_link"
20989 case "(($ac_try" in
20990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20991 *) ac_try_echo=$ac_try;;
20993 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
20994 $as_echo "$ac_try_echo") >&5
20995 (eval "$ac_link") 2>conftest.er1
20997 grep -v '^ *+' conftest.er1 >conftest.err
20999 cat conftest.err >&5
21000 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21001 (exit $ac_status); } && {
21002 test -z "$ac_c_werror_flag" ||
21003 test ! -s conftest.err
21004 } && test -s conftest$ac_exeext && {
21005 test "$cross_compiling" = yes ||
21006 $as_test_x conftest$ac_exeext
21008 eval "$as_ac_var=yes"
21010 $as_echo "$as_me: failed program was
:" >&5
21011 sed 's/^/| /' conftest.$ac_ext >&5
21013 eval "$as_ac_var=no
"
21016 rm -rf conftest.dSYM
21017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21018 conftest$ac_exeext conftest.$ac_ext
21020 ac_res=`eval 'as_val=${'$as_ac_var'}
21021 $as_echo "$as_val"'`
21022 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21023 $as_echo "$ac_res" >&6; }
21024 as_val=`eval 'as_val=${'$as_ac_var'}
21025 $as_echo "$as_val"'`
21026 if test "x
$as_val" = x""yes; then
21027 cat >>confdefs.h <<_ACEOF
21028 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21036 for ac_func in append_history history_truncate_file
21038 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21039 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21040 $as_echo_n "checking
for $ac_func...
" >&6; }
21041 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21042 $as_echo_n "(cached
) " >&6
21044 cat >conftest.$ac_ext <<_ACEOF
21047 cat confdefs.h >>conftest.$ac_ext
21048 cat >>conftest.$ac_ext <<_ACEOF
21049 /* end confdefs.h. */
21050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21052 #define $ac_func innocuous_$ac_func
21054 /* System header to define __stub macros and hopefully few prototypes,
21055 which can conflict with char $ac_func (); below.
21056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21057 <limits.h> exists even on freestanding compilers. */
21060 # include <limits.h>
21062 # include <assert.h>
21067 /* Override any GCC internal prototype to avoid an error.
21068 Use char because int might match the return type of a GCC
21069 builtin and then its argument prototype would still apply. */
21074 /* The GNU C library defines this for functions which it implements
21075 to always fail with ENOSYS. Some functions are actually named
21076 something starting with __ and the normal name is an alias. */
21077 #if defined __stub_$ac_func || defined __stub___$ac_func
21084 return $ac_func ();
21089 rm -f conftest.$ac_objext conftest$ac_exeext
21090 if { (ac_try="$ac_link"
21091 case "(($ac_try" in
21092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21093 *) ac_try_echo=$ac_try;;
21095 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21096 $as_echo "$ac_try_echo") >&5
21097 (eval "$ac_link") 2>conftest.er1
21099 grep -v '^ *+' conftest.er1 >conftest.err
21101 cat conftest.err >&5
21102 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21103 (exit $ac_status); } && {
21104 test -z "$ac_c_werror_flag" ||
21105 test ! -s conftest.err
21106 } && test -s conftest$ac_exeext && {
21107 test "$cross_compiling" = yes ||
21108 $as_test_x conftest$ac_exeext
21110 eval "$as_ac_var=yes"
21112 $as_echo "$as_me: failed program was
:" >&5
21113 sed 's/^/| /' conftest.$ac_ext >&5
21115 eval "$as_ac_var=no
"
21118 rm -rf conftest.dSYM
21119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21120 conftest$ac_exeext conftest.$ac_ext
21122 ac_res=`eval 'as_val=${'$as_ac_var'}
21123 $as_echo "$as_val"'`
21124 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21125 $as_echo "$ac_res" >&6; }
21126 as_val=`eval 'as_val=${'$as_ac_var'}
21127 $as_echo "$as_val"'`
21128 if test "x
$as_val" = x""yes; then
21129 cat >>confdefs.h <<_ACEOF
21130 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21139 { $as_echo "$as_me:$LINENO: checking
for sigsetjmp
" >&5
21140 $as_echo_n "checking
for sigsetjmp...
" >&6; }
21141 cat >conftest.$ac_ext <<_ACEOF
21144 cat confdefs.h >>conftest.$ac_ext
21145 cat >>conftest.$ac_ext <<_ACEOF
21146 /* end confdefs.h. */
21147 #include <setjmp.h>
21151 sigjmp_buf x; sigsetjmp(x, 1);
21156 rm -f conftest.$ac_objext conftest$ac_exeext
21157 if { (ac_try="$ac_link"
21158 case "(($ac_try" in
21159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21160 *) ac_try_echo=$ac_try;;
21162 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21163 $as_echo "$ac_try_echo") >&5
21164 (eval "$ac_link") 2>conftest.er1
21166 grep -v '^ *+' conftest.er1 >conftest.err
21168 cat conftest.err >&5
21169 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21170 (exit $ac_status); } && {
21171 test -z "$ac_c_werror_flag" ||
21172 test ! -s conftest.err
21173 } && test -s conftest$ac_exeext && {
21174 test "$cross_compiling" = yes ||
21175 $as_test_x conftest$ac_exeext
21178 cat >>confdefs.h <<\_ACEOF
21179 #define HAVE_SIGSETJMP 1
21182 { $as_echo "$as_me:$LINENO: result
: yes" >&5
21183 $as_echo "yes" >&6; }
21185 $as_echo "$as_me: failed program was
:" >&5
21186 sed 's/^/| /' conftest.$ac_ext >&5
21188 { $as_echo "$as_me:$LINENO: result
: no
" >&5
21189 $as_echo "no
" >&6; }
21192 rm -rf conftest.dSYM
21193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21194 conftest$ac_exeext conftest.$ac_ext
21196 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared
" >&5
21197 $as_echo_n "checking whether sys_siglist is declared...
" >&6; }
21198 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
21199 $as_echo_n "(cached
) " >&6
21201 cat >conftest.$ac_ext <<_ACEOF
21204 cat confdefs.h >>conftest.$ac_ext
21205 cat >>conftest.$ac_ext <<_ACEOF
21206 /* end confdefs.h. */
21207 #include <signal.h>
21208 /* NetBSD declares sys_siglist in unistd.h. */
21209 #ifdef HAVE_UNISTD_H
21210 # include <unistd.h>
21217 #ifndef sys_siglist
21218 (void) sys_siglist;
21225 rm -f conftest.$ac_objext
21226 if { (ac_try="$ac_compile"
21227 case "(($ac_try" in
21228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229 *) ac_try_echo=$ac_try;;
21231 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21232 $as_echo "$ac_try_echo") >&5
21233 (eval "$ac_compile") 2>conftest.er1
21235 grep -v '^ *+' conftest.er1 >conftest.err
21237 cat conftest.err >&5
21238 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21239 (exit $ac_status); } && {
21240 test -z "$ac_c_werror_flag" ||
21241 test ! -s conftest.err
21242 } && test -s conftest.$ac_objext; then
21243 ac_cv_have_decl_sys_siglist=yes
21245 $as_echo "$as_me: failed program was
:" >&5
21246 sed 's/^/| /' conftest.$ac_ext >&5
21248 ac_cv_have_decl_sys_siglist=no
21251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21253 { $as_echo "$as_me:$LINENO: result
: $ac_cv_have_decl_sys_siglist" >&5
21254 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
21255 if test "x
$ac_cv_have_decl_sys_siglist" = x""yes; then
21257 cat >>confdefs.h <<_ACEOF
21258 #define HAVE_DECL_SYS_SIGLIST 1
21263 cat >>confdefs.h <<_ACEOF
21264 #define HAVE_DECL_SYS_SIGLIST 0
21273 { $as_echo "$as_me:$LINENO: checking
for syslog
" >&5
21274 $as_echo_n "checking
for syslog...
" >&6; }
21275 if test "${ac_cv_func_syslog+set}" = set; then
21276 $as_echo_n "(cached
) " >&6
21278 cat >conftest.$ac_ext <<_ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h. */
21284 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
21285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21286 #define syslog innocuous_syslog
21288 /* System header to define __stub macros and hopefully few prototypes,
21289 which can conflict with char syslog (); below.
21290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21291 <limits.h> exists even on freestanding compilers. */
21294 # include <limits.h>
21296 # include <assert.h>
21301 /* Override any GCC internal prototype to avoid an error.
21302 Use char because int might match the return type of a GCC
21303 builtin and then its argument prototype would still apply. */
21308 /* The GNU C library defines this for functions which it implements
21309 to always fail with ENOSYS. Some functions are actually named
21310 something starting with __ and the normal name is an alias. */
21311 #if defined __stub_syslog || defined __stub___syslog
21323 rm -f conftest.$ac_objext conftest$ac_exeext
21324 if { (ac_try="$ac_link"
21325 case "(($ac_try" in
21326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21327 *) ac_try_echo=$ac_try;;
21329 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21330 $as_echo "$ac_try_echo") >&5
21331 (eval "$ac_link") 2>conftest.er1
21333 grep -v '^ *+' conftest.er1 >conftest.err
21335 cat conftest.err >&5
21336 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21337 (exit $ac_status); } && {
21338 test -z "$ac_c_werror_flag" ||
21339 test ! -s conftest.err
21340 } && test -s conftest$ac_exeext && {
21341 test "$cross_compiling" = yes ||
21342 $as_test_x conftest$ac_exeext
21344 ac_cv_func_syslog=yes
21346 $as_echo "$as_me: failed program was
:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21349 ac_cv_func_syslog=no
21352 rm -rf conftest.dSYM
21353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21354 conftest$ac_exeext conftest.$ac_ext
21356 { $as_echo "$as_me:$LINENO: result
: $ac_cv_func_syslog" >&5
21357 $as_echo "$ac_cv_func_syslog" >&6; }
21358 if test "x
$ac_cv_func_syslog" = x""yes; then
21359 if test "${ac_cv_header_syslog_h+set}" = set; then
21360 { $as_echo "$as_me:$LINENO: checking
for syslog.h
" >&5
21361 $as_echo_n "checking
for syslog.h...
" >&6; }
21362 if test "${ac_cv_header_syslog_h+set}" = set; then
21363 $as_echo_n "(cached
) " >&6
21365 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_syslog_h" >&5
21366 $as_echo "$ac_cv_header_syslog_h" >&6; }
21368 # Is the header compilable?
21369 { $as_echo "$as_me:$LINENO: checking syslog.h usability
" >&5
21370 $as_echo_n "checking syslog.h usability...
" >&6; }
21371 cat >conftest.$ac_ext <<_ACEOF
21374 cat confdefs.h >>conftest.$ac_ext
21375 cat >>conftest.$ac_ext <<_ACEOF
21376 /* end confdefs.h. */
21377 $ac_includes_default
21378 #include <syslog.h>
21380 rm -f conftest.$ac_objext
21381 if { (ac_try="$ac_compile"
21382 case "(($ac_try" in
21383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21384 *) ac_try_echo=$ac_try;;
21386 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21387 $as_echo "$ac_try_echo") >&5
21388 (eval "$ac_compile") 2>conftest.er1
21390 grep -v '^ *+' conftest.er1 >conftest.err
21392 cat conftest.err >&5
21393 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21394 (exit $ac_status); } && {
21395 test -z "$ac_c_werror_flag" ||
21396 test ! -s conftest.err
21397 } && test -s conftest.$ac_objext; then
21398 ac_header_compiler=yes
21400 $as_echo "$as_me: failed program was
:" >&5
21401 sed 's/^/| /' conftest.$ac_ext >&5
21403 ac_header_compiler=no
21406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21407 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21408 $as_echo "$ac_header_compiler" >&6; }
21410 # Is the header present?
21411 { $as_echo "$as_me:$LINENO: checking syslog.h presence
" >&5
21412 $as_echo_n "checking syslog.h presence...
" >&6; }
21413 cat >conftest.$ac_ext <<_ACEOF
21416 cat confdefs.h >>conftest.$ac_ext
21417 cat >>conftest.$ac_ext <<_ACEOF
21418 /* end confdefs.h. */
21419 #include <syslog.h>
21421 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21422 case "(($ac_try" in
21423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21424 *) ac_try_echo=$ac_try;;
21426 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21427 $as_echo "$ac_try_echo") >&5
21428 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21430 grep -v '^ *+' conftest.er1 >conftest.err
21432 cat conftest.err >&5
21433 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21434 (exit $ac_status); } >/dev/null && {
21435 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21436 test ! -s conftest.err
21438 ac_header_preproc=yes
21440 $as_echo "$as_me: failed program was
:" >&5
21441 sed 's/^/| /' conftest.$ac_ext >&5
21443 ac_header_preproc=no
21446 rm -f conftest.err conftest.$ac_ext
21447 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21448 $as_echo "$ac_header_preproc" >&6; }
21450 # So? What about this header?
21451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21453 { $as_echo "$as_me:$LINENO: WARNING
: syslog.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21454 $as_echo "$as_me: WARNING
: syslog.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21455 { $as_echo "$as_me:$LINENO: WARNING
: syslog.h
: proceeding with the compiler
's result" >&5
21456 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result
" >&2;}
21457 ac_header_preproc=yes
21460 { $as_echo "$as_me:$LINENO: WARNING
: syslog.h
: present but cannot be compiled
" >&5
21461 $as_echo "$as_me: WARNING
: syslog.h
: present but cannot be compiled
" >&2;}
21462 { $as_echo "$as_me:$LINENO: WARNING
: syslog.h
: check
for missing prerequisite headers?
" >&5
21463 $as_echo "$as_me: WARNING
: syslog.h
: check
for missing prerequisite headers?
" >&2;}
21464 { $as_echo "$as_me:$LINENO: WARNING
: syslog.h
: see the Autoconf documentation
" >&5
21465 $as_echo "$as_me: WARNING
: syslog.h
: see the Autoconf documentation
" >&2;}
21466 { $as_echo "$as_me:$LINENO: WARNING
: syslog.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21467 $as_echo "$as_me: WARNING
: syslog.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21468 { $as_echo "$as_me:$LINENO: WARNING
: syslog.h
: proceeding with the preprocessor
's result" >&5
21469 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result
" >&2;}
21470 { $as_echo "$as_me:$LINENO: WARNING
: syslog.h
: in the future
, the compiler will take precedence
" >&5
21471 $as_echo "$as_me: WARNING
: syslog.h
: in the future
, the compiler will take precedence
" >&2;}
21473 ## ---------------------------------------- ##
21474 ## Report this to pgsql-bugs@postgresql.org ##
21475 ## ---------------------------------------- ##
21477 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
21480 { $as_echo "$as_me:$LINENO: checking
for syslog.h
" >&5
21481 $as_echo_n "checking
for syslog.h...
" >&6; }
21482 if test "${ac_cv_header_syslog_h+set}" = set; then
21483 $as_echo_n "(cached
) " >&6
21485 ac_cv_header_syslog_h=$ac_header_preproc
21487 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_syslog_h" >&5
21488 $as_echo "$ac_cv_header_syslog_h" >&6; }
21491 if test "x
$ac_cv_header_syslog_h" = x""yes; then
21493 cat >>confdefs.h <<\_ACEOF
21494 #define HAVE_SYSLOG 1
21503 { $as_echo "$as_me:$LINENO: checking
for opterr
" >&5
21504 $as_echo_n "checking
for opterr...
" >&6; }
21505 if test "${pgac_cv_var_int_opterr+set}" = set; then
21506 $as_echo_n "(cached
) " >&6
21508 cat >conftest.$ac_ext <<_ACEOF
21511 cat confdefs.h >>conftest.$ac_ext
21512 cat >>conftest.$ac_ext <<_ACEOF
21513 /* end confdefs.h. */
21514 #include <unistd.h>
21518 extern int opterr; opterr = 1;
21523 rm -f conftest.$ac_objext conftest$ac_exeext
21524 if { (ac_try="$ac_link"
21525 case "(($ac_try" in
21526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21527 *) ac_try_echo=$ac_try;;
21529 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21530 $as_echo "$ac_try_echo") >&5
21531 (eval "$ac_link") 2>conftest.er1
21533 grep -v '^ *+' conftest.er1 >conftest.err
21535 cat conftest.err >&5
21536 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21537 (exit $ac_status); } && {
21538 test -z "$ac_c_werror_flag" ||
21539 test ! -s conftest.err
21540 } && test -s conftest$ac_exeext && {
21541 test "$cross_compiling" = yes ||
21542 $as_test_x conftest$ac_exeext
21544 pgac_cv_var_int_opterr=yes
21546 $as_echo "$as_me: failed program was
:" >&5
21547 sed 's/^/| /' conftest.$ac_ext >&5
21549 pgac_cv_var_int_opterr=no
21552 rm -rf conftest.dSYM
21553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21554 conftest$ac_exeext conftest.$ac_ext
21556 { $as_echo "$as_me:$LINENO: result
: $pgac_cv_var_int_opterr" >&5
21557 $as_echo "$pgac_cv_var_int_opterr" >&6; }
21558 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
21560 cat >>confdefs.h <<\_ACEOF
21561 #define HAVE_INT_OPTERR 1
21566 { $as_echo "$as_me:$LINENO: checking
for optreset
" >&5
21567 $as_echo_n "checking
for optreset...
" >&6; }
21568 if test "${pgac_cv_var_int_optreset+set}" = set; then
21569 $as_echo_n "(cached
) " >&6
21571 cat >conftest.$ac_ext <<_ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h. */
21577 #include <unistd.h>
21581 extern int optreset; optreset = 1;
21586 rm -f conftest.$ac_objext conftest$ac_exeext
21587 if { (ac_try="$ac_link"
21588 case "(($ac_try" in
21589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21590 *) ac_try_echo=$ac_try;;
21592 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21593 $as_echo "$ac_try_echo") >&5
21594 (eval "$ac_link") 2>conftest.er1
21596 grep -v '^ *+' conftest.er1 >conftest.err
21598 cat conftest.err >&5
21599 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21600 (exit $ac_status); } && {
21601 test -z "$ac_c_werror_flag" ||
21602 test ! -s conftest.err
21603 } && test -s conftest$ac_exeext && {
21604 test "$cross_compiling" = yes ||
21605 $as_test_x conftest$ac_exeext
21607 pgac_cv_var_int_optreset=yes
21609 $as_echo "$as_me: failed program was
:" >&5
21610 sed 's/^/| /' conftest.$ac_ext >&5
21612 pgac_cv_var_int_optreset=no
21615 rm -rf conftest.dSYM
21616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21617 conftest$ac_exeext conftest.$ac_ext
21619 { $as_echo "$as_me:$LINENO: result
: $pgac_cv_var_int_optreset" >&5
21620 $as_echo "$pgac_cv_var_int_optreset" >&6; }
21621 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
21623 cat >>confdefs.h <<\_ACEOF
21624 #define HAVE_INT_OPTRESET 1
21631 for ac_func in strtoll strtoq
21633 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21634 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21635 $as_echo_n "checking
for $ac_func...
" >&6; }
21636 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21637 $as_echo_n "(cached
) " >&6
21639 cat >conftest.$ac_ext <<_ACEOF
21642 cat confdefs.h >>conftest.$ac_ext
21643 cat >>conftest.$ac_ext <<_ACEOF
21644 /* end confdefs.h. */
21645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21647 #define $ac_func innocuous_$ac_func
21649 /* System header to define __stub macros and hopefully few prototypes,
21650 which can conflict with char $ac_func (); below.
21651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21652 <limits.h> exists even on freestanding compilers. */
21655 # include <limits.h>
21657 # include <assert.h>
21662 /* Override any GCC internal prototype to avoid an error.
21663 Use char because int might match the return type of a GCC
21664 builtin and then its argument prototype would still apply. */
21669 /* The GNU C library defines this for functions which it implements
21670 to always fail with ENOSYS. Some functions are actually named
21671 something starting with __ and the normal name is an alias. */
21672 #if defined __stub_$ac_func || defined __stub___$ac_func
21679 return $ac_func ();
21684 rm -f conftest.$ac_objext conftest$ac_exeext
21685 if { (ac_try="$ac_link"
21686 case "(($ac_try" in
21687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21688 *) ac_try_echo=$ac_try;;
21690 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21691 $as_echo "$ac_try_echo") >&5
21692 (eval "$ac_link") 2>conftest.er1
21694 grep -v '^ *+' conftest.er1 >conftest.err
21696 cat conftest.err >&5
21697 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21698 (exit $ac_status); } && {
21699 test -z "$ac_c_werror_flag" ||
21700 test ! -s conftest.err
21701 } && test -s conftest$ac_exeext && {
21702 test "$cross_compiling" = yes ||
21703 $as_test_x conftest$ac_exeext
21705 eval "$as_ac_var=yes"
21707 $as_echo "$as_me: failed program was
:" >&5
21708 sed 's/^/| /' conftest.$ac_ext >&5
21710 eval "$as_ac_var=no
"
21713 rm -rf conftest.dSYM
21714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21715 conftest$ac_exeext conftest.$ac_ext
21717 ac_res=`eval 'as_val=${'$as_ac_var'}
21718 $as_echo "$as_val"'`
21719 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21720 $as_echo "$ac_res" >&6; }
21721 as_val=`eval 'as_val=${'$as_ac_var'}
21722 $as_echo "$as_val"'`
21723 if test "x
$as_val" = x""yes; then
21724 cat >>confdefs.h <<_ACEOF
21725 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21733 for ac_func in strtoull strtouq
21735 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21736 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21737 $as_echo_n "checking
for $ac_func...
" >&6; }
21738 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21739 $as_echo_n "(cached
) " >&6
21741 cat >conftest.$ac_ext <<_ACEOF
21744 cat confdefs.h >>conftest.$ac_ext
21745 cat >>conftest.$ac_ext <<_ACEOF
21746 /* end confdefs.h. */
21747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21749 #define $ac_func innocuous_$ac_func
21751 /* System header to define __stub macros and hopefully few prototypes,
21752 which can conflict with char $ac_func (); below.
21753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21754 <limits.h> exists even on freestanding compilers. */
21757 # include <limits.h>
21759 # include <assert.h>
21764 /* Override any GCC internal prototype to avoid an error.
21765 Use char because int might match the return type of a GCC
21766 builtin and then its argument prototype would still apply. */
21771 /* The GNU C library defines this for functions which it implements
21772 to always fail with ENOSYS. Some functions are actually named
21773 something starting with __ and the normal name is an alias. */
21774 #if defined __stub_$ac_func || defined __stub___$ac_func
21781 return $ac_func ();
21786 rm -f conftest.$ac_objext conftest$ac_exeext
21787 if { (ac_try="$ac_link"
21788 case "(($ac_try" in
21789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21790 *) ac_try_echo=$ac_try;;
21792 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21793 $as_echo "$ac_try_echo") >&5
21794 (eval "$ac_link") 2>conftest.er1
21796 grep -v '^ *+' conftest.er1 >conftest.err
21798 cat conftest.err >&5
21799 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21800 (exit $ac_status); } && {
21801 test -z "$ac_c_werror_flag" ||
21802 test ! -s conftest.err
21803 } && test -s conftest$ac_exeext && {
21804 test "$cross_compiling" = yes ||
21805 $as_test_x conftest$ac_exeext
21807 eval "$as_ac_var=yes"
21809 $as_echo "$as_me: failed program was
:" >&5
21810 sed 's/^/| /' conftest.$ac_ext >&5
21812 eval "$as_ac_var=no
"
21815 rm -rf conftest.dSYM
21816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21817 conftest$ac_exeext conftest.$ac_ext
21819 ac_res=`eval 'as_val=${'$as_ac_var'}
21820 $as_echo "$as_val"'`
21821 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21822 $as_echo "$ac_res" >&6; }
21823 as_val=`eval 'as_val=${'$as_ac_var'}
21824 $as_echo "$as_val"'`
21825 if test "x
$as_val" = x""yes; then
21826 cat >>confdefs.h <<_ACEOF
21827 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21834 # Check for one of atexit() or on_exit()
21836 for ac_func in atexit
21838 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21839 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21840 $as_echo_n "checking
for $ac_func...
" >&6; }
21841 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21842 $as_echo_n "(cached
) " >&6
21844 cat >conftest.$ac_ext <<_ACEOF
21847 cat confdefs.h >>conftest.$ac_ext
21848 cat >>conftest.$ac_ext <<_ACEOF
21849 /* end confdefs.h. */
21850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21852 #define $ac_func innocuous_$ac_func
21854 /* System header to define __stub macros and hopefully few prototypes,
21855 which can conflict with char $ac_func (); below.
21856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21857 <limits.h> exists even on freestanding compilers. */
21860 # include <limits.h>
21862 # include <assert.h>
21867 /* Override any GCC internal prototype to avoid an error.
21868 Use char because int might match the return type of a GCC
21869 builtin and then its argument prototype would still apply. */
21874 /* The GNU C library defines this for functions which it implements
21875 to always fail with ENOSYS. Some functions are actually named
21876 something starting with __ and the normal name is an alias. */
21877 #if defined __stub_$ac_func || defined __stub___$ac_func
21884 return $ac_func ();
21889 rm -f conftest.$ac_objext conftest$ac_exeext
21890 if { (ac_try="$ac_link"
21891 case "(($ac_try" in
21892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21893 *) ac_try_echo=$ac_try;;
21895 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21896 $as_echo "$ac_try_echo") >&5
21897 (eval "$ac_link") 2>conftest.er1
21899 grep -v '^ *+' conftest.er1 >conftest.err
21901 cat conftest.err >&5
21902 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21903 (exit $ac_status); } && {
21904 test -z "$ac_c_werror_flag" ||
21905 test ! -s conftest.err
21906 } && test -s conftest$ac_exeext && {
21907 test "$cross_compiling" = yes ||
21908 $as_test_x conftest$ac_exeext
21910 eval "$as_ac_var=yes"
21912 $as_echo "$as_me: failed program was
:" >&5
21913 sed 's/^/| /' conftest.$ac_ext >&5
21915 eval "$as_ac_var=no
"
21918 rm -rf conftest.dSYM
21919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21920 conftest$ac_exeext conftest.$ac_ext
21922 ac_res=`eval 'as_val=${'$as_ac_var'}
21923 $as_echo "$as_val"'`
21924 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
21925 $as_echo "$ac_res" >&6; }
21926 as_val=`eval 'as_val=${'$as_ac_var'}
21927 $as_echo "$as_val"'`
21928 if test "x
$as_val" = x""yes; then
21929 cat >>confdefs.h <<_ACEOF
21930 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21935 for ac_func in on_exit
21937 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21938 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
21939 $as_echo_n "checking
for $ac_func...
" >&6; }
21940 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21941 $as_echo_n "(cached
) " >&6
21943 cat >conftest.$ac_ext <<_ACEOF
21946 cat confdefs.h >>conftest.$ac_ext
21947 cat >>conftest.$ac_ext <<_ACEOF
21948 /* end confdefs.h. */
21949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21951 #define $ac_func innocuous_$ac_func
21953 /* System header to define __stub macros and hopefully few prototypes,
21954 which can conflict with char $ac_func (); below.
21955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21956 <limits.h> exists even on freestanding compilers. */
21959 # include <limits.h>
21961 # include <assert.h>
21966 /* Override any GCC internal prototype to avoid an error.
21967 Use char because int might match the return type of a GCC
21968 builtin and then its argument prototype would still apply. */
21973 /* The GNU C library defines this for functions which it implements
21974 to always fail with ENOSYS. Some functions are actually named
21975 something starting with __ and the normal name is an alias. */
21976 #if defined __stub_$ac_func || defined __stub___$ac_func
21983 return $ac_func ();
21988 rm -f conftest.$ac_objext conftest$ac_exeext
21989 if { (ac_try="$ac_link"
21990 case "(($ac_try" in
21991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21992 *) ac_try_echo=$ac_try;;
21994 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
21995 $as_echo "$ac_try_echo") >&5
21996 (eval "$ac_link") 2>conftest.er1
21998 grep -v '^ *+' conftest.er1 >conftest.err
22000 cat conftest.err >&5
22001 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22002 (exit $ac_status); } && {
22003 test -z "$ac_c_werror_flag" ||
22004 test ! -s conftest.err
22005 } && test -s conftest$ac_exeext && {
22006 test "$cross_compiling" = yes ||
22007 $as_test_x conftest$ac_exeext
22009 eval "$as_ac_var=yes"
22011 $as_echo "$as_me: failed program was
:" >&5
22012 sed 's/^/| /' conftest.$ac_ext >&5
22014 eval "$as_ac_var=no
"
22017 rm -rf conftest.dSYM
22018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22019 conftest$ac_exeext conftest.$ac_ext
22021 ac_res=`eval 'as_val=${'$as_ac_var'}
22022 $as_echo "$as_val"'`
22023 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22024 $as_echo "$ac_res" >&6; }
22025 as_val=`eval 'as_val=${'$as_ac_var'}
22026 $as_echo "$as_val"'`
22027 if test "x
$as_val" = x""yes; then
22028 cat >>confdefs.h <<_ACEOF
22029 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22033 { { $as_echo "$as_me:$LINENO: error
: neither atexit
() nor on_exit
() found
" >&5
22034 $as_echo "$as_me: error
: neither atexit
() nor on_exit
() found
" >&2;}
22035 { (exit 1); exit 1; }; }
22047 # For each platform, we need to know about any special compile and link
22048 # libraries, and whether the normal C function names are thread-safe.
22049 # See the comment at the top of src/port/thread.c for more information.
22050 # WIN32 doesn't need the pthread tests; it always uses threads
22051 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32
"; then
22056 ac_cpp='$CPP $CPPFLAGS'
22057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22063 # We used to check for pthread.h first, but this fails if pthread.h
22064 # requires special compiler flags (e.g. on True64 or Sequent).
22065 # It gets checked for in the link test anyway.
22067 # First of all, check if the user has set any of the PTHREAD_LIBS,
22068 # etcetera environment variables, and if threads linking works using
22070 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22071 save_CFLAGS="$CFLAGS"
22072 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22074 LIBS="$PTHREAD_LIBS $LIBS"
22075 { $as_echo "$as_me:$LINENO: checking
for pthread_join
in LIBS
=$PTHREAD_LIBS with CFLAGS
=$PTHREAD_CFLAGS" >&5
22076 $as_echo_n "checking
for pthread_join
in LIBS
=$PTHREAD_LIBS with CFLAGS
=$PTHREAD_CFLAGS...
" >&6; }
22077 cat >conftest.$ac_ext <<_ACEOF
22080 cat confdefs.h >>conftest.$ac_ext
22081 cat >>conftest.$ac_ext <<_ACEOF
22082 /* end confdefs.h. */
22084 /* Override any GCC internal prototype to avoid an error.
22085 Use char because int might match the return type of a GCC
22086 builtin and then its argument prototype would still apply. */
22090 char pthread_join ();
22094 return pthread_join ();
22099 rm -f conftest.$ac_objext conftest$ac_exeext
22100 if { (ac_try="$ac_link"
22101 case "(($ac_try" in
22102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22103 *) ac_try_echo=$ac_try;;
22105 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22106 $as_echo "$ac_try_echo") >&5
22107 (eval "$ac_link") 2>conftest.er1
22109 grep -v '^ *+' conftest.er1 >conftest.err
22111 cat conftest.err >&5
22112 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22113 (exit $ac_status); } && {
22114 test -z "$ac_c_werror_flag" ||
22115 test ! -s conftest.err
22116 } && test -s conftest$ac_exeext && {
22117 test "$cross_compiling" = yes ||
22118 $as_test_x conftest$ac_exeext
22122 $as_echo "$as_me: failed program was
:" >&5
22123 sed 's/^/| /' conftest.$ac_ext >&5
22128 rm -rf conftest.dSYM
22129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22130 conftest$ac_exeext conftest.$ac_ext
22131 { $as_echo "$as_me:$LINENO: result
: $acx_pthread_ok" >&5
22132 $as_echo "$acx_pthread_ok" >&6; }
22133 if test x"$acx_pthread_ok" = xno; then
22138 CFLAGS="$save_CFLAGS"
22141 # We must check for the threads library under a number of different
22142 # names; the ordering is very important because some systems
22143 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22144 # libraries is broken (non-POSIX).
22146 # Create a list of thread flags to try. Items starting with a "-" are
22147 # C compiler flags, and other items are library names, except for "none
"
22148 # which indicates that we try without any flags at all, and "pthread-config
"
22149 # which is a program returning the flags for the Pth emulation library.
22151 acx_pthread_flags="pthreads none
-Kthread -kthread lthread
-pthread -pthreads -mthreads pthread
--thread-safe -mt pthread-config pthreadGC2
"
22153 # The ordering *is* (sometimes) important. Some notes on the
22154 # individual items follow:
22156 # pthreads: AIX (must check this before -lpthread)
22157 # none: in case threads are in libc; should be tried before -Kthread and
22158 # other compiler flags to prevent continual compiler warnings
22159 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22160 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22161 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22162 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22163 # -pthreads: Solaris/gcc
22164 # -mthreads: Mingw32/gcc, Lynx/gcc
22165 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22166 # doesn't hurt to check since this sometimes defines pthreads too;
22167 # also defines -D_REENTRANT)
22168 # pthread: Linux, etcetera
22169 # --thread-safe: KAI C++
22170 # pthread-config: use pthread-config program (for GNU Pth library)
22172 case "${host_cpu}-${host_os}" in
22175 # On Solaris (at least, for some versions), libc contains stubbed
22176 # (non-functional) versions of the pthreads routines, so link-based
22177 # tests will erroneously succeed. (We need to link with -pthread or
22178 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22179 # a function called by this macro, so we could check for that, but
22180 # who knows whether they'll stub that too in a future libc.) So,
22181 # we'll just look for -pthreads and -lpthread first:
22183 acx_pthread_flags="-pthread -pthreads pthread
-mt $acx_pthread_flags"
22187 if test x"$acx_pthread_ok" = xno; then
22188 for flag in $acx_pthread_flags; do
22190 tryPTHREAD_CFLAGS=""
22194 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags
" >&5
22195 $as_echo_n "checking whether pthreads work without any flags...
" >&6; }
22199 { $as_echo "$as_me:$LINENO: checking whether pthreads work with
$flag" >&5
22200 $as_echo_n "checking whether pthreads work with
$flag...
" >&6; }
22201 tryPTHREAD_CFLAGS="$flag"
22205 # skip this if we already have flags defined, for PostgreSQL
22206 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
22207 # Extract the first word of "pthread-config
", so it can be a program name with args.
22208 set dummy pthread-config; ac_word=$2
22209 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
22210 $as_echo_n "checking
for $ac_word...
" >&6; }
22211 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22212 $as_echo_n "(cached
) " >&6
22214 if test -n "$acx_pthread_config"; then
22215 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22218 for as_dir in $PATH
22221 test -z "$as_dir" && as_dir=.
22222 for ac_exec_ext in '' $ac_executable_extensions; do
22223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22224 ac_cv_prog_acx_pthread_config="yes"
22225 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
22232 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no
"
22235 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22236 if test -n "$acx_pthread_config"; then
22237 { $as_echo "$as_me:$LINENO: result
: $acx_pthread_config" >&5
22238 $as_echo "$acx_pthread_config" >&6; }
22240 { $as_echo "$as_me:$LINENO: result
: no
" >&5
22241 $as_echo "no
" >&6; }
22245 if test x"$acx_pthread_config" = xno; then continue; fi
22246 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
22247 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22251 { $as_echo "$as_me:$LINENO: checking
for the pthreads library
-l$flag" >&5
22252 $as_echo_n "checking
for the pthreads library
-l$flag...
" >&6; }
22253 tryPTHREAD_LIBS="-l$flag"
22258 save_CFLAGS="$CFLAGS"
22259 LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
22260 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22262 # Check for various functions. We must include pthread.h,
22263 # since some functions may be macros. (On the Sequent, we
22264 # need a special flag -Kthread to make this header compile.)
22265 # We check for pthread_join because it is in -lpthread on IRIX
22266 # while pthread_create is in libc. We check for pthread_attr_init
22267 # due to DEC craziness with -lpthreads. We check for
22268 # pthread_cleanup_push because it is one of the few pthread
22269 # functions on Solaris that doesn't have a non-functional libc stub.
22270 # We try pthread_create on general principles.
22271 cat >conftest.$ac_ext <<_ACEOF
22274 cat confdefs.h >>conftest.$ac_ext
22275 cat >>conftest.$ac_ext <<_ACEOF
22276 /* end confdefs.h. */
22277 #include <pthread.h>
22281 pthread_t th; pthread_join(th, 0);
22282 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22283 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22288 rm -f conftest.$ac_objext 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>conftest.er1
22298 grep -v '^ *+' conftest.er1 >conftest.err
22300 cat conftest.err >&5
22301 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22302 (exit $ac_status); } && {
22303 test -z "$ac_c_werror_flag" ||
22304 test ! -s conftest.err
22305 } && test -s conftest$ac_exeext && {
22306 test "$cross_compiling" = yes ||
22307 $as_test_x conftest$ac_exeext
22311 $as_echo "$as_me: failed program was
:" >&5
22312 sed 's/^/| /' conftest.$ac_ext >&5
22317 rm -rf conftest.dSYM
22318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22319 conftest$ac_exeext conftest.$ac_ext
22321 if test "x
$acx_pthread_ok" = xyes; then
22322 # Don't use options that are ignored by the compiler.
22323 # We find them by checking stderror.
22324 cat >conftest.$ac_ext <<_ACEOF
22326 main (int argc, char **argv)
22333 rm -f conftest.$ac_objext conftest$ac_exeext
22334 if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
22335 # we continue with more flags because Linux needs -lpthread
22336 # for libpq builds on PostgreSQL. The test above only
22337 # tests for building binaries, not shared libraries.
22338 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
22339 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
22340 else acx_pthread_ok=no
22345 CFLAGS="$save_CFLAGS"
22347 { $as_echo "$as_me:$LINENO: result
: $acx_pthread_ok" >&5
22348 $as_echo "$acx_pthread_ok" >&6; }
22352 # Various other checks:
22353 if test "x
$acx_pthread_ok" = xyes; then
22355 LIBS="$PTHREAD_LIBS $LIBS"
22356 save_CFLAGS="$CFLAGS"
22357 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22359 # Detect AIX lossage: threads are created detached by default
22360 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22361 { $as_echo "$as_me:$LINENO: checking
for joinable pthread attribute
" >&5
22362 $as_echo_n "checking
for joinable pthread attribute...
" >&6; }
22363 cat >conftest.$ac_ext <<_ACEOF
22366 cat confdefs.h >>conftest.$ac_ext
22367 cat >>conftest.$ac_ext <<_ACEOF
22368 /* end confdefs.h. */
22369 #include <pthread.h>
22373 int attr=PTHREAD_CREATE_JOINABLE;
22378 rm -f conftest.$ac_objext conftest$ac_exeext
22379 if { (ac_try="$ac_link"
22380 case "(($ac_try" in
22381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22382 *) ac_try_echo=$ac_try;;
22384 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22385 $as_echo "$ac_try_echo") >&5
22386 (eval "$ac_link") 2>conftest.er1
22388 grep -v '^ *+' conftest.er1 >conftest.err
22390 cat conftest.err >&5
22391 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22392 (exit $ac_status); } && {
22393 test -z "$ac_c_werror_flag" ||
22394 test ! -s conftest.err
22395 } && test -s conftest$ac_exeext && {
22396 test "$cross_compiling" = yes ||
22397 $as_test_x conftest$ac_exeext
22399 ok=PTHREAD_CREATE_JOINABLE
22401 $as_echo "$as_me: failed program was
:" >&5
22402 sed 's/^/| /' conftest.$ac_ext >&5
22407 rm -rf conftest.dSYM
22408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22409 conftest$ac_exeext conftest.$ac_ext
22410 if test x"$ok" = xunknown; then
22411 cat >conftest.$ac_ext <<_ACEOF
22414 cat confdefs.h >>conftest.$ac_ext
22415 cat >>conftest.$ac_ext <<_ACEOF
22416 /* end confdefs.h. */
22417 #include <pthread.h>
22421 int attr=PTHREAD_CREATE_UNDETACHED;
22426 rm -f conftest.$ac_objext conftest$ac_exeext
22427 if { (ac_try="$ac_link"
22428 case "(($ac_try" in
22429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22430 *) ac_try_echo=$ac_try;;
22432 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22433 $as_echo "$ac_try_echo") >&5
22434 (eval "$ac_link") 2>conftest.er1
22436 grep -v '^ *+' conftest.er1 >conftest.err
22438 cat conftest.err >&5
22439 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22440 (exit $ac_status); } && {
22441 test -z "$ac_c_werror_flag" ||
22442 test ! -s conftest.err
22443 } && test -s conftest$ac_exeext && {
22444 test "$cross_compiling" = yes ||
22445 $as_test_x conftest$ac_exeext
22447 ok=PTHREAD_CREATE_UNDETACHED
22449 $as_echo "$as_me: failed program was
:" >&5
22450 sed 's/^/| /' conftest.$ac_ext >&5
22455 rm -rf conftest.dSYM
22456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22457 conftest$ac_exeext conftest.$ac_ext
22459 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22461 cat >>confdefs.h <<\_ACEOF
22462 #define PTHREAD_CREATE_JOINABLE $ok
22466 { $as_echo "$as_me:$LINENO: result
: ${ok}" >&5
22467 $as_echo "${ok}" >&6; }
22468 if test x"$ok" = xunknown; then
22469 { $as_echo "$as_me:$LINENO: WARNING
: we
do not know how to create joinable pthreads
" >&5
22470 $as_echo "$as_me: WARNING
: we
do not know how to create joinable pthreads
" >&2;}
22473 { $as_echo "$as_me:$LINENO: checking
if more special flags are required
for pthreads
" >&5
22474 $as_echo_n "checking
if more special flags are required
for pthreads...
" >&6; }
22476 # We always add these in PostgreSQL
22477 # case "${host_cpu}-${host_os}" in
22478 # *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22479 # *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22481 { $as_echo "$as_me:$LINENO: result
: ${flag}" >&5
22482 $as_echo "${flag}" >&6; }
22483 if test "x
$flag" != xno; then
22484 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22488 CFLAGS="$save_CFLAGS"
22490 # Supporting cc_r would require a special CC in all places that
22491 # use libpq, and that is ugly, so we don't do it. Users can still
22492 # define their compiler as cc_r to do thread builds of everything.
22493 # More AIX lossage: must compile with cc_r
22494 # Extract the first word of "cc_r
", so it can be a program name with args.
22495 set dummy cc_r; ac_word=$2
22496 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
22497 $as_echo_n "checking
for $ac_word...
" >&6; }
22498 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22499 $as_echo_n "(cached
) " >&6
22501 if test -n "$PTHREAD_CC"; then
22502 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22505 for as_dir in $PATH
22508 test -z "$as_dir" && as_dir=.
22509 for ac_exec_ext in '' $ac_executable_extensions; do
22510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22511 ac_cv_prog_PTHREAD_CC="cc_r
"
22512 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
22519 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
22522 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22523 if test -n "$PTHREAD_CC"; then
22524 { $as_echo "$as_me:$LINENO: result
: $PTHREAD_CC" >&5
22525 $as_echo "$PTHREAD_CC" >&6; }
22527 { $as_echo "$as_me:$LINENO: result
: no
" >&5
22528 $as_echo "no
" >&6; }
22540 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22541 if test x"$acx_pthread_ok" = xyes; then
22543 cat >>confdefs.h <<\_ACEOF
22544 #define HAVE_PTHREAD 1
22553 ac_cpp='$CPP $CPPFLAGS'
22554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22560 # Some platforms use these, so just define them. They can't hurt if they
22561 # are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
22562 # enables 5-arg getpwuid_r, among other things.
22563 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
22566 # At this point, we don't want to muck with the compiler name for threading.
22567 # Let's see who fails, perhaps AIX. 2004-04-23
22568 if test "$PTHREAD_CC" != "$CC"; then
22569 { { $as_echo "$as_me:$LINENO: error
:
22570 PostgreSQL does not support platforms that require a special compiler
22571 for thread safety
; use
--disable-thread-safety to disable thread safety.
" >&5
22572 $as_echo "$as_me: error
:
22573 PostgreSQL does not support platforms that require a special compiler
22574 for thread safety
; use
--disable-thread-safety to disable thread safety.
" >&2;}
22575 { (exit 1); exit 1; }; }
22578 # Check for *_r functions
22581 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22582 LIBS="$LIBS $PTHREAD_LIBS"
22584 if test "$PORTNAME" != "win32
"; then
22585 if test "${ac_cv_header_pthread_h+set}" = set; then
22586 { $as_echo "$as_me:$LINENO: checking
for pthread.h
" >&5
22587 $as_echo_n "checking
for pthread.h...
" >&6; }
22588 if test "${ac_cv_header_pthread_h+set}" = set; then
22589 $as_echo_n "(cached
) " >&6
22591 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_pthread_h" >&5
22592 $as_echo "$ac_cv_header_pthread_h" >&6; }
22594 # Is the header compilable?
22595 { $as_echo "$as_me:$LINENO: checking pthread.h usability
" >&5
22596 $as_echo_n "checking pthread.h usability...
" >&6; }
22597 cat >conftest.$ac_ext <<_ACEOF
22600 cat confdefs.h >>conftest.$ac_ext
22601 cat >>conftest.$ac_ext <<_ACEOF
22602 /* end confdefs.h. */
22603 $ac_includes_default
22604 #include <pthread.h>
22606 rm -f conftest.$ac_objext
22607 if { (ac_try="$ac_compile"
22608 case "(($ac_try" in
22609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22610 *) ac_try_echo=$ac_try;;
22612 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22613 $as_echo "$ac_try_echo") >&5
22614 (eval "$ac_compile") 2>conftest.er1
22616 grep -v '^ *+' conftest.er1 >conftest.err
22618 cat conftest.err >&5
22619 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22620 (exit $ac_status); } && {
22621 test -z "$ac_c_werror_flag" ||
22622 test ! -s conftest.err
22623 } && test -s conftest.$ac_objext; then
22624 ac_header_compiler=yes
22626 $as_echo "$as_me: failed program was
:" >&5
22627 sed 's/^/| /' conftest.$ac_ext >&5
22629 ac_header_compiler=no
22632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22633 { $as_echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22634 $as_echo "$ac_header_compiler" >&6; }
22636 # Is the header present?
22637 { $as_echo "$as_me:$LINENO: checking pthread.h presence
" >&5
22638 $as_echo_n "checking pthread.h presence...
" >&6; }
22639 cat >conftest.$ac_ext <<_ACEOF
22642 cat confdefs.h >>conftest.$ac_ext
22643 cat >>conftest.$ac_ext <<_ACEOF
22644 /* end confdefs.h. */
22645 #include <pthread.h>
22647 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22648 case "(($ac_try" in
22649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22650 *) ac_try_echo=$ac_try;;
22652 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22653 $as_echo "$ac_try_echo") >&5
22654 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22656 grep -v '^ *+' conftest.er1 >conftest.err
22658 cat conftest.err >&5
22659 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22660 (exit $ac_status); } >/dev/null && {
22661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22662 test ! -s conftest.err
22664 ac_header_preproc=yes
22666 $as_echo "$as_me: failed program was
:" >&5
22667 sed 's/^/| /' conftest.$ac_ext >&5
22669 ac_header_preproc=no
22672 rm -f conftest.err conftest.$ac_ext
22673 { $as_echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22674 $as_echo "$ac_header_preproc" >&6; }
22676 # So? What about this header?
22677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22679 { $as_echo "$as_me:$LINENO: WARNING
: pthread.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22680 $as_echo "$as_me: WARNING
: pthread.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22681 { $as_echo "$as_me:$LINENO: WARNING
: pthread.h
: proceeding with the compiler
's result" >&5
22682 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result
" >&2;}
22683 ac_header_preproc=yes
22686 { $as_echo "$as_me:$LINENO: WARNING
: pthread.h
: present but cannot be compiled
" >&5
22687 $as_echo "$as_me: WARNING
: pthread.h
: present but cannot be compiled
" >&2;}
22688 { $as_echo "$as_me:$LINENO: WARNING
: pthread.h
: check
for missing prerequisite headers?
" >&5
22689 $as_echo "$as_me: WARNING
: pthread.h
: check
for missing prerequisite headers?
" >&2;}
22690 { $as_echo "$as_me:$LINENO: WARNING
: pthread.h
: see the Autoconf documentation
" >&5
22691 $as_echo "$as_me: WARNING
: pthread.h
: see the Autoconf documentation
" >&2;}
22692 { $as_echo "$as_me:$LINENO: WARNING
: pthread.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22693 $as_echo "$as_me: WARNING
: pthread.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22694 { $as_echo "$as_me:$LINENO: WARNING
: pthread.h
: proceeding with the preprocessor
's result" >&5
22695 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result
" >&2;}
22696 { $as_echo "$as_me:$LINENO: WARNING
: pthread.h
: in the future
, the compiler will take precedence
" >&5
22697 $as_echo "$as_me: WARNING
: pthread.h
: in the future
, the compiler will take precedence
" >&2;}
22699 ## ---------------------------------------- ##
22700 ## Report this to pgsql-bugs@postgresql.org ##
22701 ## ---------------------------------------- ##
22703 ) | sed "s
/^
/$as_me: WARNING
: /" >&2
22706 { $as_echo "$as_me:$LINENO: checking
for pthread.h
" >&5
22707 $as_echo_n "checking
for pthread.h...
" >&6; }
22708 if test "${ac_cv_header_pthread_h+set}" = set; then
22709 $as_echo_n "(cached
) " >&6
22711 ac_cv_header_pthread_h=$ac_header_preproc
22713 { $as_echo "$as_me:$LINENO: result
: $ac_cv_header_pthread_h" >&5
22714 $as_echo "$ac_cv_header_pthread_h" >&6; }
22717 if test "x
$ac_cv_header_pthread_h" = x""yes; then
22720 { { $as_echo "$as_me:$LINENO: error
:
22721 pthread.h not found
; use
--disable-thread-safety to disable thread safety
" >&5
22722 $as_echo "$as_me: error
:
22723 pthread.h not found
; use
--disable-thread-safety to disable thread safety
" >&2;}
22724 { (exit 1); exit 1; }; }
22733 for ac_func in strerror_r getpwuid_r gethostbyname_r
22735 as_ac_var=`$as_echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22736 { $as_echo "$as_me:$LINENO: checking
for $ac_func" >&5
22737 $as_echo_n "checking
for $ac_func...
" >&6; }
22738 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22739 $as_echo_n "(cached
) " >&6
22741 cat >conftest.$ac_ext <<_ACEOF
22744 cat confdefs.h >>conftest.$ac_ext
22745 cat >>conftest.$ac_ext <<_ACEOF
22746 /* end confdefs.h. */
22747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22749 #define $ac_func innocuous_$ac_func
22751 /* System header to define __stub macros and hopefully few prototypes,
22752 which can conflict with char $ac_func (); below.
22753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22754 <limits.h> exists even on freestanding compilers. */
22757 # include <limits.h>
22759 # include <assert.h>
22764 /* Override any GCC internal prototype to avoid an error.
22765 Use char because int might match the return type of a GCC
22766 builtin and then its argument prototype would still apply. */
22771 /* The GNU C library defines this for functions which it implements
22772 to always fail with ENOSYS. Some functions are actually named
22773 something starting with __ and the normal name is an alias. */
22774 #if defined __stub_$ac_func || defined __stub___$ac_func
22781 return $ac_func ();
22786 rm -f conftest.$ac_objext conftest$ac_exeext
22787 if { (ac_try="$ac_link"
22788 case "(($ac_try" in
22789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22790 *) ac_try_echo=$ac_try;;
22792 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22793 $as_echo "$ac_try_echo") >&5
22794 (eval "$ac_link") 2>conftest.er1
22796 grep -v '^ *+' conftest.er1 >conftest.err
22798 cat conftest.err >&5
22799 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22800 (exit $ac_status); } && {
22801 test -z "$ac_c_werror_flag" ||
22802 test ! -s conftest.err
22803 } && test -s conftest$ac_exeext && {
22804 test "$cross_compiling" = yes ||
22805 $as_test_x conftest$ac_exeext
22807 eval "$as_ac_var=yes"
22809 $as_echo "$as_me: failed program was
:" >&5
22810 sed 's/^/| /' conftest.$ac_ext >&5
22812 eval "$as_ac_var=no
"
22815 rm -rf conftest.dSYM
22816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22817 conftest$ac_exeext conftest.$ac_ext
22819 ac_res=`eval 'as_val=${'$as_ac_var'}
22820 $as_echo "$as_val"'`
22821 { $as_echo "$as_me:$LINENO: result
: $ac_res" >&5
22822 $as_echo "$ac_res" >&6; }
22823 as_val=`eval 'as_val=${'$as_ac_var'}
22824 $as_echo "$as_val"'`
22825 if test "x
$as_val" = x""yes; then
22826 cat >>confdefs.h <<_ACEOF
22827 #define `$as_echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22834 # Do test here with the proper thread flags
22835 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument
" >&5
22836 $as_echo_n "checking whether getpwuid_r takes a fifth argument...
" >&6; }
22837 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
22838 $as_echo_n "(cached
) " >&6
22840 cat >conftest.$ac_ext <<_ACEOF
22843 cat confdefs.h >>conftest.$ac_ext
22844 cat >>conftest.$ac_ext <<_ACEOF
22845 /* end confdefs.h. */
22846 #include <sys/types.h>
22852 struct passwd *space;
22855 struct passwd **result;
22856 getpwuid_r(uid, space, buf, bufsize, result);
22861 rm -f conftest.$ac_objext
22862 if { (ac_try="$ac_compile"
22863 case "(($ac_try" in
22864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22865 *) ac_try_echo=$ac_try;;
22867 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
22868 $as_echo "$ac_try_echo") >&5
22869 (eval "$ac_compile") 2>conftest.er1
22871 grep -v '^ *+' conftest.er1 >conftest.err
22873 cat conftest.err >&5
22874 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22875 (exit $ac_status); } && {
22876 test -z "$ac_c_werror_flag" ||
22877 test ! -s conftest.err
22878 } && test -s conftest.$ac_objext; then
22879 pgac_cv_func_getpwuid_r_5arg=yes
22881 $as_echo "$as_me: failed program was
:" >&5
22882 sed 's/^/| /' conftest.$ac_ext >&5
22884 pgac_cv_func_getpwuid_r_5arg=no
22887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22889 { $as_echo "$as_me:$LINENO: result
: $pgac_cv_func_getpwuid_r_5arg" >&5
22890 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
22891 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
22893 cat >>confdefs.h <<\_ACEOF
22894 #define GETPWUID_R_5ARG /**/
22899 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int
" >&5
22900 $as_echo_n "checking whether strerror_r returns int...
" >&6; }
22901 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
22902 $as_echo_n "(cached
) " >&6
22904 cat >conftest.$ac_ext <<_ACEOF
22907 cat confdefs.h >>conftest.$ac_ext
22908 cat >>conftest.$ac_ext <<_ACEOF
22909 /* end confdefs.h. */
22910 #include <string.h>
22915 int strerror_r(int, char *, size_t);
22917 /* Older AIX has 'int' for the third argument so we don't test the args. */
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
22942 pgac_cv_func_strerror_r_int=yes
22944 $as_echo "$as_me: failed program was
:" >&5
22945 sed 's/^/| /' conftest.$ac_ext >&5
22947 pgac_cv_func_strerror_r_int=no
22950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22952 { $as_echo "$as_me:$LINENO: result
: $pgac_cv_func_strerror_r_int" >&5
22953 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
22954 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
22956 cat >>confdefs.h <<\_ACEOF
22957 #define STRERROR_R_INT /**/
22967 # do not use values from template file
22976 # We can test for libldap_r only after we know PTHREAD_LIBS
22977 if test "$with_ldap" = yes ; then
22979 if test "$PORTNAME" != "win32
"; then
22981 { $as_echo "$as_me:$LINENO: checking
for ldap_bind
in -lldap" >&5
22982 $as_echo_n "checking
for ldap_bind
in -lldap...
" >&6; }
22983 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
22984 $as_echo_n "(cached
) " >&6
22986 ac_check_lib_save_LIBS=$LIBS
22987 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
22988 cat >conftest.$ac_ext <<_ACEOF
22991 cat confdefs.h >>conftest.$ac_ext
22992 cat >>conftest.$ac_ext <<_ACEOF
22993 /* end confdefs.h. */
22995 /* Override any GCC internal prototype to avoid an error.
22996 Use char because int might match the return type of a GCC
22997 builtin and then its argument prototype would still apply. */
23005 return ldap_bind ();
23010 rm -f conftest.$ac_objext conftest$ac_exeext
23011 if { (ac_try="$ac_link"
23012 case "(($ac_try" in
23013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23014 *) ac_try_echo=$ac_try;;
23016 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23017 $as_echo "$ac_try_echo") >&5
23018 (eval "$ac_link") 2>conftest.er1
23020 grep -v '^ *+' conftest.er1 >conftest.err
23022 cat conftest.err >&5
23023 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23024 (exit $ac_status); } && {
23025 test -z "$ac_c_werror_flag" ||
23026 test ! -s conftest.err
23027 } && test -s conftest$ac_exeext && {
23028 test "$cross_compiling" = yes ||
23029 $as_test_x conftest$ac_exeext
23031 ac_cv_lib_ldap_ldap_bind=yes
23033 $as_echo "$as_me: failed program was
:" >&5
23034 sed 's/^/| /' conftest.$ac_ext >&5
23036 ac_cv_lib_ldap_ldap_bind=no
23039 rm -rf conftest.dSYM
23040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23041 conftest$ac_exeext conftest.$ac_ext
23042 LIBS=$ac_check_lib_save_LIBS
23044 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_ldap_ldap_bind" >&5
23045 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
23046 if test "x
$ac_cv_lib_ldap_ldap_bind" = x""yes; then
23047 cat >>confdefs.h <<_ACEOF
23048 #define HAVE_LIBLDAP 1
23051 LIBS="-lldap $LIBS"
23054 { { $as_echo "$as_me:$LINENO: error
: library
'ldap' is required
for LDAP
" >&5
23055 $as_echo "$as_me: error
: library
'ldap' is required
for LDAP
" >&2;}
23056 { (exit 1); exit 1; }; }
23059 LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
23060 if test "$enable_thread_safety" = yes; then
23061 # on some platforms ldap_r fails to link without PTHREAD_LIBS
23063 { $as_echo "$as_me:$LINENO: checking
for ldap_simple_bind
in -lldap_r" >&5
23064 $as_echo_n "checking
for ldap_simple_bind
in -lldap_r...
" >&6; }
23065 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
23066 $as_echo_n "(cached
) " >&6
23068 ac_check_lib_save_LIBS=$LIBS
23069 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
23070 cat >conftest.$ac_ext <<_ACEOF
23073 cat confdefs.h >>conftest.$ac_ext
23074 cat >>conftest.$ac_ext <<_ACEOF
23075 /* end confdefs.h. */
23077 /* Override any GCC internal prototype to avoid an error.
23078 Use char because int might match the return type of a GCC
23079 builtin and then its argument prototype would still apply. */
23083 char ldap_simple_bind ();
23087 return ldap_simple_bind ();
23092 rm -f conftest.$ac_objext conftest$ac_exeext
23093 if { (ac_try="$ac_link"
23094 case "(($ac_try" in
23095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23096 *) ac_try_echo=$ac_try;;
23098 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23099 $as_echo "$ac_try_echo") >&5
23100 (eval "$ac_link") 2>conftest.er1
23102 grep -v '^ *+' conftest.er1 >conftest.err
23104 cat conftest.err >&5
23105 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23106 (exit $ac_status); } && {
23107 test -z "$ac_c_werror_flag" ||
23108 test ! -s conftest.err
23109 } && test -s conftest$ac_exeext && {
23110 test "$cross_compiling" = yes ||
23111 $as_test_x conftest$ac_exeext
23113 ac_cv_lib_ldap_r_ldap_simple_bind=yes
23115 $as_echo "$as_me: failed program was
:" >&5
23116 sed 's/^/| /' conftest.$ac_ext >&5
23118 ac_cv_lib_ldap_r_ldap_simple_bind=no
23121 rm -rf conftest.dSYM
23122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23123 conftest$ac_exeext conftest.$ac_ext
23124 LIBS=$ac_check_lib_save_LIBS
23126 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
23127 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
23128 if test "x
$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
23129 cat >>confdefs.h <<_ACEOF
23130 #define HAVE_LIBLDAP_R 1
23133 LIBS="-lldap_r $LIBS"
23136 { { $as_echo "$as_me:$LINENO: error
: library
'ldap_r' is required
for LDAP
" >&5
23137 $as_echo "$as_me: error
: library
'ldap_r' is required
for LDAP
" >&2;}
23138 { (exit 1); exit 1; }; }
23141 LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
23143 LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
23147 { $as_echo "$as_me:$LINENO: checking
for ldap_bind
in -lwldap32" >&5
23148 $as_echo_n "checking
for ldap_bind
in -lwldap32...
" >&6; }
23149 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
23150 $as_echo_n "(cached
) " >&6
23152 ac_check_lib_save_LIBS=$LIBS
23153 LIBS="-lwldap32 $LIBS"
23154 cat >conftest.$ac_ext <<_ACEOF
23157 cat confdefs.h >>conftest.$ac_ext
23158 cat >>conftest.$ac_ext <<_ACEOF
23159 /* end confdefs.h. */
23161 /* Override any GCC internal prototype to avoid an error.
23162 Use char because int might match the return type of a GCC
23163 builtin and then its argument prototype would still apply. */
23171 return ldap_bind ();
23176 rm -f conftest.$ac_objext conftest$ac_exeext
23177 if { (ac_try="$ac_link"
23178 case "(($ac_try" in
23179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23180 *) ac_try_echo=$ac_try;;
23182 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23183 $as_echo "$ac_try_echo") >&5
23184 (eval "$ac_link") 2>conftest.er1
23186 grep -v '^ *+' conftest.er1 >conftest.err
23188 cat conftest.err >&5
23189 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23190 (exit $ac_status); } && {
23191 test -z "$ac_c_werror_flag" ||
23192 test ! -s conftest.err
23193 } && test -s conftest$ac_exeext && {
23194 test "$cross_compiling" = yes ||
23195 $as_test_x conftest$ac_exeext
23197 ac_cv_lib_wldap32_ldap_bind=yes
23199 $as_echo "$as_me: failed program was
:" >&5
23200 sed 's/^/| /' conftest.$ac_ext >&5
23202 ac_cv_lib_wldap32_ldap_bind=no
23205 rm -rf conftest.dSYM
23206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23207 conftest$ac_exeext conftest.$ac_ext
23208 LIBS=$ac_check_lib_save_LIBS
23210 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_wldap32_ldap_bind" >&5
23211 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
23212 if test "x
$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
23213 cat >>confdefs.h <<_ACEOF
23214 #define HAVE_LIBWLDAP32 1
23217 LIBS="-lwldap32 $LIBS"
23220 { { $as_echo "$as_me:$LINENO: error
: library
'wldap32' is required
for LDAP
" >&5
23221 $as_echo "$as_me: error
: library
'wldap32' is required
for LDAP
" >&2;}
23222 { (exit 1); exit 1; }; }
23225 LDAP_LIBS_FE="-lwldap32"
23226 LDAP_LIBS_BE="-lwldap32"
23234 # This test makes sure that run tests work at all. Sometimes a shared
23235 # library is found by the linker, but the runtime linker can't find it.
23236 # This check should come after all modifications of compiler or linker
23237 # variables, and before any other run tests.
23238 { $as_echo "$as_me:$LINENO: checking
test program
" >&5
23239 $as_echo_n "checking
test program...
" >&6; }
23240 if test "$cross_compiling" = yes; then
23241 { $as_echo "$as_me:$LINENO: result
: cross-compiling
" >&5
23242 $as_echo "cross-compiling
" >&6; }
23244 cat >conftest.$ac_ext <<_ACEOF
23247 cat confdefs.h >>conftest.$ac_ext
23248 cat >>conftest.$ac_ext <<_ACEOF
23249 /* end confdefs.h. */
23250 int main() { return 0; }
23252 rm -f conftest$ac_exeext
23253 if { (ac_try="$ac_link"
23254 case "(($ac_try" in
23255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23256 *) ac_try_echo=$ac_try;;
23258 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23259 $as_echo "$ac_try_echo") >&5
23260 (eval "$ac_link") 2>&5
23262 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23263 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23264 { (case "(($ac_try" in
23265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23266 *) ac_try_echo=$ac_try;;
23268 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23269 $as_echo "$ac_try_echo") >&5
23270 (eval "$ac_try") 2>&5
23272 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23273 (exit $ac_status); }; }; then
23274 { $as_echo "$as_me:$LINENO: result
: ok
" >&5
23275 $as_echo "ok
" >&6; }
23277 $as_echo "$as_me: program exited with status
$ac_status" >&5
23278 $as_echo "$as_me: failed program was
:" >&5
23279 sed 's/^/| /' conftest.$ac_ext >&5
23281 ( exit $ac_status )
23282 { $as_echo "$as_me:$LINENO: result
: failed
" >&5
23283 $as_echo "failed
" >&6; }
23284 { { $as_echo "$as_me:$LINENO: error
:
23285 Could not execute a simple
test program. This may be a problem
23286 related to locating shared libraries. Check the
file 'config.log'
23287 for the exact reason.
" >&5
23288 $as_echo "$as_me: error
:
23289 Could not execute a simple
test program. This may be a problem
23290 related to locating shared libraries. Check the
file 'config.log'
23291 for the exact reason.
" >&2;}
23292 { (exit 1); exit 1; }; }
23294 rm -rf conftest.dSYM
23295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23300 # --------------------
23301 # Run tests below here
23302 # --------------------
23304 # Force use of our snprintf if system's doesn't do arg control
23305 # See comment above at snprintf test for details.
23306 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
23307 { $as_echo "$as_me:$LINENO: checking whether
printf supports argument control
" >&5
23308 $as_echo_n "checking whether
printf supports argument control...
" >&6; }
23309 if test "${pgac_cv_printf_arg_control+set}" = set; then
23310 $as_echo_n "(cached
) " >&6
23312 if test "$cross_compiling" = yes; then
23313 pgac_cv_printf_arg_control=cross
23315 cat >conftest.$ac_ext <<_ACEOF
23318 cat confdefs.h >>conftest.$ac_ext
23319 cat >>conftest.$ac_ext <<_ACEOF
23320 /* end confdefs.h. */
23322 #include <string.h>
23328 /* can it swap arguments? */
23329 snprintf(buf, 100, "%2\
$d %1\
$d", 3, 4);
23330 if (strcmp(buf, "4 3") != 0)
23335 rm -f conftest$ac_exeext
23336 if { (ac_try="$ac_link"
23337 case "(($ac_try" in
23338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23339 *) ac_try_echo=$ac_try;;
23341 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23342 $as_echo "$ac_try_echo") >&5
23343 (eval "$ac_link") 2>&5
23345 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23347 { (case "(($ac_try" in
23348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23349 *) ac_try_echo=$ac_try;;
23351 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23352 $as_echo "$ac_try_echo") >&5
23353 (eval "$ac_try") 2>&5
23355 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23356 (exit $ac_status); }; }; then
23357 pgac_cv_printf_arg_control=yes
23359 $as_echo "$as_me: program exited with status
$ac_status" >&5
23360 $as_echo "$as_me: failed program was
:" >&5
23361 sed 's/^/| /' conftest.$ac_ext >&5
23363 ( exit $ac_status )
23364 pgac_cv_printf_arg_control=no
23366 rm -rf conftest.dSYM
23367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23373 { $as_echo "$as_me:$LINENO: result
: $pgac_cv_printf_arg_control" >&5
23374 $as_echo "$pgac_cv_printf_arg_control" >&6; }
23376 if test $pgac_cv_printf_arg_control != yes ; then
23377 pgac_need_repl_snprintf=yes
23384 { $as_echo "$as_me:$LINENO: checking whether long int is
64 bits
" >&5
23385 $as_echo_n "checking whether long int is
64 bits...
" >&6; }
23386 if test "${pgac_cv_type_long_int_64+set}" = set; then
23387 $as_echo_n "(cached
) " >&6
23389 if test "$cross_compiling" = yes; then
23390 # If cross-compiling, check the size reported by the compiler and
23391 # trust that the arithmetic works.
23392 cat >conftest.$ac_ext <<_ACEOF
23395 cat confdefs.h >>conftest.$ac_ext
23396 cat >>conftest.$ac_ext <<_ACEOF
23397 /* end confdefs.h. */
23402 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
23409 rm -f conftest.$ac_objext
23410 if { (ac_try="$ac_compile"
23411 case "(($ac_try" in
23412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23413 *) ac_try_echo=$ac_try;;
23415 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23416 $as_echo "$ac_try_echo") >&5
23417 (eval "$ac_compile") 2>conftest.er1
23419 grep -v '^ *+' conftest.er1 >conftest.err
23421 cat conftest.err >&5
23422 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23423 (exit $ac_status); } && {
23424 test -z "$ac_c_werror_flag" ||
23425 test ! -s conftest.err
23426 } && test -s conftest.$ac_objext; then
23427 pgac_cv_type_long_int_64=yes
23429 $as_echo "$as_me: failed program was
:" >&5
23430 sed 's/^/| /' conftest.$ac_ext >&5
23432 pgac_cv_type_long_int_64=no
23435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23437 cat >conftest.$ac_ext <<_ACEOF
23440 cat confdefs.h >>conftest.$ac_ext
23441 cat >>conftest.$ac_ext <<_ACEOF
23442 /* end confdefs.h. */
23443 typedef long int ac_int64;
23446 * These are globals to discourage the compiler from folding all the
23447 * arithmetic tests down to compile-time constants.
23449 ac_int64 a = 20000001;
23450 ac_int64 b = 40000005;
23452 int does_int64_work()
23456 if (sizeof(ac_int64) != 8)
23457 return 0; /* definitely not the right size */
23459 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
23467 exit(! does_int64_work());
23470 rm -f conftest$ac_exeext
23471 if { (ac_try="$ac_link"
23472 case "(($ac_try" in
23473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23474 *) ac_try_echo=$ac_try;;
23476 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23477 $as_echo "$ac_try_echo") >&5
23478 (eval "$ac_link") 2>&5
23480 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23482 { (case "(($ac_try" in
23483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23484 *) ac_try_echo=$ac_try;;
23486 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23487 $as_echo "$ac_try_echo") >&5
23488 (eval "$ac_try") 2>&5
23490 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23491 (exit $ac_status); }; }; then
23492 pgac_cv_type_long_int_64=yes
23494 $as_echo "$as_me: program exited with status
$ac_status" >&5
23495 $as_echo "$as_me: failed program was
:" >&5
23496 sed 's/^/| /' conftest.$ac_ext >&5
23498 ( exit $ac_status )
23499 pgac_cv_type_long_int_64=no
23501 rm -rf conftest.dSYM
23502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23507 { $as_echo "$as_me:$LINENO: result
: $pgac_cv_type_long_int_64" >&5
23508 $as_echo "$pgac_cv_type_long_int_64" >&6; }
23510 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
23511 if test x"$pgac_cv_type_long_int_64" = xyes ; then
23513 cat >>confdefs.h <<\_ACEOF
23514 #define HAVE_LONG_INT_64 1
23520 if test x"$HAVE_LONG_INT_64" = x"no
" ; then
23521 { $as_echo "$as_me:$LINENO: checking whether long long int is
64 bits
" >&5
23522 $as_echo_n "checking whether long long int is
64 bits...
" >&6; }
23523 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
23524 $as_echo_n "(cached
) " >&6
23526 if test "$cross_compiling" = yes; then
23527 # If cross-compiling, check the size reported by the compiler and
23528 # trust that the arithmetic works.
23529 cat >conftest.$ac_ext <<_ACEOF
23532 cat confdefs.h >>conftest.$ac_ext
23533 cat >>conftest.$ac_ext <<_ACEOF
23534 /* end confdefs.h. */
23539 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
23546 rm -f conftest.$ac_objext
23547 if { (ac_try="$ac_compile"
23548 case "(($ac_try" in
23549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23550 *) ac_try_echo=$ac_try;;
23552 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23553 $as_echo "$ac_try_echo") >&5
23554 (eval "$ac_compile") 2>conftest.er1
23556 grep -v '^ *+' conftest.er1 >conftest.err
23558 cat conftest.err >&5
23559 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23560 (exit $ac_status); } && {
23561 test -z "$ac_c_werror_flag" ||
23562 test ! -s conftest.err
23563 } && test -s conftest.$ac_objext; then
23564 pgac_cv_type_long_long_int_64=yes
23566 $as_echo "$as_me: failed program was
:" >&5
23567 sed 's/^/| /' conftest.$ac_ext >&5
23569 pgac_cv_type_long_long_int_64=no
23572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23574 cat >conftest.$ac_ext <<_ACEOF
23577 cat confdefs.h >>conftest.$ac_ext
23578 cat >>conftest.$ac_ext <<_ACEOF
23579 /* end confdefs.h. */
23580 typedef long long int ac_int64;
23583 * These are globals to discourage the compiler from folding all the
23584 * arithmetic tests down to compile-time constants.
23586 ac_int64 a = 20000001;
23587 ac_int64 b = 40000005;
23589 int does_int64_work()
23593 if (sizeof(ac_int64) != 8)
23594 return 0; /* definitely not the right size */
23596 /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
23604 exit(! does_int64_work());
23607 rm -f conftest$ac_exeext
23608 if { (ac_try="$ac_link"
23609 case "(($ac_try" in
23610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23611 *) ac_try_echo=$ac_try;;
23613 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23614 $as_echo "$ac_try_echo") >&5
23615 (eval "$ac_link") 2>&5
23617 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23619 { (case "(($ac_try" in
23620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23621 *) ac_try_echo=$ac_try;;
23623 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23624 $as_echo "$ac_try_echo") >&5
23625 (eval "$ac_try") 2>&5
23627 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23628 (exit $ac_status); }; }; then
23629 pgac_cv_type_long_long_int_64=yes
23631 $as_echo "$as_me: program exited with status
$ac_status" >&5
23632 $as_echo "$as_me: failed program was
:" >&5
23633 sed 's/^/| /' conftest.$ac_ext >&5
23635 ( exit $ac_status )
23636 pgac_cv_type_long_long_int_64=no
23638 rm -rf conftest.dSYM
23639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23644 { $as_echo "$as_me:$LINENO: result
: $pgac_cv_type_long_long_int_64" >&5
23645 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
23647 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
23648 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
23650 cat >>confdefs.h <<\_ACEOF
23651 #define HAVE_LONG_LONG_INT_64 1
23656 if test x"$HAVE_LONG_LONG_INT_64" = x"no
" ; then
23657 { { $as_echo "$as_me:$LINENO: error
: Cannot
find a working
64-bit integer
type.
" >&5
23658 $as_echo "$as_me: error
: Cannot
find a working
64-bit integer
type.
" >&2;}
23659 { (exit 1); exit 1; }; }
23665 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
23666 cat >conftest.$ac_ext <<_ACEOF
23669 cat confdefs.h >>conftest.$ac_ext
23670 cat >>conftest.$ac_ext <<_ACEOF
23671 /* end confdefs.h. */
23673 #define INT64CONST(x) x##LL
23674 long long int foo = INT64CONST(0x1234567890123456);
23684 rm -f conftest.$ac_objext
23685 if { (ac_try="$ac_compile"
23686 case "(($ac_try" in
23687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23688 *) ac_try_echo=$ac_try;;
23690 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23691 $as_echo "$ac_try_echo") >&5
23692 (eval "$ac_compile") 2>conftest.er1
23694 grep -v '^ *+' conftest.er1 >conftest.err
23696 cat conftest.err >&5
23697 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23698 (exit $ac_status); } && {
23699 test -z "$ac_c_werror_flag" ||
23700 test ! -s conftest.err
23701 } && test -s conftest.$ac_objext; then
23703 cat >>confdefs.h <<\_ACEOF
23704 #define HAVE_LL_CONSTANTS 1
23708 $as_echo "$as_me: failed program was
:" >&5
23709 sed 's/^/| /' conftest.$ac_ext >&5
23714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23718 # If we found "long int
" is 64 bits, assume snprintf handles it. If
23719 # we found we need to use "long long int
", better check. We cope with
23720 # snprintfs that use %lld, %qd, or %I64d as the format. If none of these
23721 # work, fall back to our own snprintf emulation (which we know uses %lld).
23723 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
23724 if test $pgac_need_repl_snprintf = no; then
23725 { $as_echo "$as_me:$LINENO: checking snprintf format
for long long int
" >&5
23726 $as_echo_n "checking snprintf format
for long long int...
" >&6; }
23727 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
23728 $as_echo_n "(cached
) " >&6
23730 for pgac_format in '%lld' '%qd' '%I64d'; do
23731 if test "$cross_compiling" = yes; then
23732 pgac_cv_snprintf_long_long_int_format=cross; break
23734 cat >conftest.$ac_ext <<_ACEOF
23737 cat confdefs.h >>conftest.$ac_ext
23738 cat >>conftest.$ac_ext <<_ACEOF
23739 /* end confdefs.h. */
23741 typedef long long int ac_int64;
23742 #define INT64_FORMAT "$pgac_format"
23744 ac_int64 a = 20000001;
23745 ac_int64 b = 40000005;
23747 int does_int64_snprintf_work()
23752 if (sizeof(ac_int64) != 8)
23753 return 0; /* doesn't look like the right size */
23756 snprintf(buf, 100, INT64_FORMAT, c);
23757 if (strcmp(buf, "800000140000005") != 0)
23758 return 0; /* either multiply or snprintf is busted */
23762 exit(! does_int64_snprintf_work());
23765 rm -f conftest$ac_exeext
23766 if { (ac_try="$ac_link"
23767 case "(($ac_try" in
23768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23769 *) ac_try_echo=$ac_try;;
23771 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23772 $as_echo "$ac_try_echo") >&5
23773 (eval "$ac_link") 2>&5
23775 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
23785 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23786 (exit $ac_status); }; }; then
23787 pgac_cv_snprintf_long_long_int_format=$pgac_format; break
23789 $as_echo "$as_me: program exited with status
$ac_status" >&5
23790 $as_echo "$as_me: failed program was
:" >&5
23791 sed 's/^/| /' conftest.$ac_ext >&5
23794 rm -rf conftest.dSYM
23795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23802 LONG_LONG_INT_FORMAT=''
23804 case $pgac_cv_snprintf_long_long_int_format in
23805 cross) { $as_echo "$as_me:$LINENO: result
: cannot
test (not on
host machine
)" >&5
23806 $as_echo "cannot
test (not on
host machine
)" >&6; };;
23807 ?*) { $as_echo "$as_me:$LINENO: result
: $pgac_cv_snprintf_long_long_int_format" >&5
23808 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
23809 LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
23810 *) { $as_echo "$as_me:$LINENO: result
: none
" >&5
23811 $as_echo "none
" >&6; };;
23813 if test "$LONG_LONG_INT_FORMAT" = ""; then
23814 # Force usage of our own snprintf, since system snprintf is broken
23815 pgac_need_repl_snprintf=yes
23816 LONG_LONG_INT_FORMAT='%lld'
23819 # Here if we previously decided we needed to use our own snprintf
23820 LONG_LONG_INT_FORMAT='%lld'
23822 LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
23823 INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
23824 UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
23826 # Here if we are not using 'long long int' at all
23827 INT64_FORMAT='"%ld
"'
23828 UINT64_FORMAT='"%lu
"'
23832 cat >>confdefs.h <<_ACEOF
23833 #define INT64_FORMAT $INT64_FORMAT
23838 cat >>confdefs.h <<_ACEOF
23839 #define UINT64_FORMAT $UINT64_FORMAT
23843 # Now we have checked all the reasons to replace snprintf
23844 if test $pgac_need_repl_snprintf = yes; then
23846 cat >>confdefs.h <<\_ACEOF
23847 #define USE_REPL_SNPRINTF 1
23850 case " $LIBOBJS " in
23851 *" snprintf.
$ac_objext "* ) ;;
23852 *) LIBOBJS="$LIBOBJS snprintf.
$ac_objext"
23858 # Check size of void *, size_t (enables tweaks for > 32bit address space)
23859 # The cast to long int works around a bug in the HP C Compiler
23860 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23861 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23862 # This bug is HP SR number 8606223364.
23863 { $as_echo "$as_me:$LINENO: checking size of void
*" >&5
23864 $as_echo_n "checking size of void
*...
" >&6; }
23865 if test "${ac_cv_sizeof_void_p+set}" = set; then
23866 $as_echo_n "(cached
) " >&6
23868 if test "$cross_compiling" = yes; then
23869 # Depending upon the size, compute the lo and hi bounds.
23870 cat >conftest.$ac_ext <<_ACEOF
23873 cat confdefs.h >>conftest.$ac_ext
23874 cat >>conftest.$ac_ext <<_ACEOF
23875 /* end confdefs.h. */
23876 $ac_includes_default
23880 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
23887 rm -f conftest.$ac_objext
23888 if { (ac_try="$ac_compile"
23889 case "(($ac_try" in
23890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23891 *) ac_try_echo=$ac_try;;
23893 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23894 $as_echo "$ac_try_echo") >&5
23895 (eval "$ac_compile") 2>conftest.er1
23897 grep -v '^ *+' conftest.er1 >conftest.err
23899 cat conftest.err >&5
23900 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23901 (exit $ac_status); } && {
23902 test -z "$ac_c_werror_flag" ||
23903 test ! -s conftest.err
23904 } && test -s conftest.$ac_objext; then
23907 cat >conftest.$ac_ext <<_ACEOF
23910 cat confdefs.h >>conftest.$ac_ext
23911 cat >>conftest.$ac_ext <<_ACEOF
23912 /* end confdefs.h. */
23913 $ac_includes_default
23917 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
23924 rm -f conftest.$ac_objext
23925 if { (ac_try="$ac_compile"
23926 case "(($ac_try" in
23927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23928 *) ac_try_echo=$ac_try;;
23930 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23931 $as_echo "$ac_try_echo") >&5
23932 (eval "$ac_compile") 2>conftest.er1
23934 grep -v '^ *+' conftest.er1 >conftest.err
23936 cat conftest.err >&5
23937 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23938 (exit $ac_status); } && {
23939 test -z "$ac_c_werror_flag" ||
23940 test ! -s conftest.err
23941 } && test -s conftest.$ac_objext; then
23942 ac_hi=$ac_mid; break
23944 $as_echo "$as_me: failed program was
:" >&5
23945 sed 's/^/| /' conftest.$ac_ext >&5
23947 ac_lo=`expr $ac_mid + 1`
23948 if test $ac_lo -le $ac_mid; then
23952 ac_mid=`expr 2 '*' $ac_mid + 1`
23955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23958 $as_echo "$as_me: failed program was
:" >&5
23959 sed 's/^/| /' conftest.$ac_ext >&5
23961 cat >conftest.$ac_ext <<_ACEOF
23964 cat confdefs.h >>conftest.$ac_ext
23965 cat >>conftest.$ac_ext <<_ACEOF
23966 /* end confdefs.h. */
23967 $ac_includes_default
23971 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
23978 rm -f conftest.$ac_objext
23979 if { (ac_try="$ac_compile"
23980 case "(($ac_try" in
23981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23982 *) ac_try_echo=$ac_try;;
23984 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
23985 $as_echo "$ac_try_echo") >&5
23986 (eval "$ac_compile") 2>conftest.er1
23988 grep -v '^ *+' conftest.er1 >conftest.err
23990 cat conftest.err >&5
23991 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23992 (exit $ac_status); } && {
23993 test -z "$ac_c_werror_flag" ||
23994 test ! -s conftest.err
23995 } && test -s conftest.$ac_objext; then
23998 cat >conftest.$ac_ext <<_ACEOF
24001 cat confdefs.h >>conftest.$ac_ext
24002 cat >>conftest.$ac_ext <<_ACEOF
24003 /* end confdefs.h. */
24004 $ac_includes_default
24008 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
24015 rm -f conftest.$ac_objext
24016 if { (ac_try="$ac_compile"
24017 case "(($ac_try" in
24018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24019 *) ac_try_echo=$ac_try;;
24021 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24022 $as_echo "$ac_try_echo") >&5
24023 (eval "$ac_compile") 2>conftest.er1
24025 grep -v '^ *+' conftest.er1 >conftest.err
24027 cat conftest.err >&5
24028 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24029 (exit $ac_status); } && {
24030 test -z "$ac_c_werror_flag" ||
24031 test ! -s conftest.err
24032 } && test -s conftest.$ac_objext; then
24033 ac_lo=$ac_mid; break
24035 $as_echo "$as_me: failed program was
:" >&5
24036 sed 's/^/| /' conftest.$ac_ext >&5
24038 ac_hi=`expr '(' $ac_mid ')' - 1`
24039 if test $ac_mid -le $ac_hi; then
24043 ac_mid=`expr 2 '*' $ac_mid`
24046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24049 $as_echo "$as_me: failed program was
:" >&5
24050 sed 's/^/| /' conftest.$ac_ext >&5
24055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24059 # Binary search between lo and hi bounds.
24060 while test "x
$ac_lo" != "x
$ac_hi"; do
24061 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24062 cat >conftest.$ac_ext <<_ACEOF
24065 cat confdefs.h >>conftest.$ac_ext
24066 cat >>conftest.$ac_ext <<_ACEOF
24067 /* end confdefs.h. */
24068 $ac_includes_default
24072 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
24079 rm -f conftest.$ac_objext
24080 if { (ac_try="$ac_compile"
24081 case "(($ac_try" in
24082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24083 *) ac_try_echo=$ac_try;;
24085 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24086 $as_echo "$ac_try_echo") >&5
24087 (eval "$ac_compile") 2>conftest.er1
24089 grep -v '^ *+' conftest.er1 >conftest.err
24091 cat conftest.err >&5
24092 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24093 (exit $ac_status); } && {
24094 test -z "$ac_c_werror_flag" ||
24095 test ! -s conftest.err
24096 } && test -s conftest.$ac_objext; then
24099 $as_echo "$as_me: failed program was
:" >&5
24100 sed 's/^/| /' conftest.$ac_ext >&5
24102 ac_lo=`expr '(' $ac_mid ')' + 1`
24105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24108 ?*) ac_cv_sizeof_void_p=$ac_lo;;
24109 '') if test "$ac_cv_type_void_p" = yes; then
24110 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
24111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24112 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
24113 See \`config.log' for more details.
" >&5
24114 $as_echo "$as_me: error
: cannot compute sizeof
(void
*)
24115 See \
`config.log' for more details." >&2;}
24116 { (exit 77); exit 77; }; }; }
24118 ac_cv_sizeof_void_p=0
24122 cat >conftest.$ac_ext <<_ACEOF
24125 cat confdefs.h >>conftest.$ac_ext
24126 cat >>conftest.$ac_ext <<_ACEOF
24127 /* end confdefs.h. */
24128 $ac_includes_default
24129 static long int longval () { return (long int) (sizeof (void *)); }
24130 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
24132 #include <stdlib.h>
24137 FILE *f = fopen ("conftest.val", "w");
24140 if (((long int) (sizeof (void *))) < 0)
24142 long int i = longval ();
24143 if (i != ((long int) (sizeof (void *))))
24145 fprintf (f, "%ld", i);
24149 unsigned long int i = ulongval ();
24150 if (i != ((long int) (sizeof (void *))))
24152 fprintf (f, "%lu", i);
24154 /* Do not output a trailing newline, as this causes \r\n confusion
24155 on some platforms. */
24156 return ferror (f) || fclose (f) != 0;
24162 rm -f conftest$ac_exeext
24163 if { (ac_try="$ac_link"
24164 case "(($ac_try" in
24165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24166 *) ac_try_echo
=$ac_try;;
24168 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24169 $as_echo "$ac_try_echo") >&5
24170 (eval "$ac_link") 2>&5
24172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24174 { (case "(($ac_try" in
24175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24176 *) ac_try_echo=$ac_try;;
24178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24179 $as_echo "$ac_try_echo") >&5
24180 (eval "$ac_try") 2>&5
24182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183 (exit $ac_status); }; }; then
24184 ac_cv_sizeof_void_p=`cat conftest.val
`
24186 $as_echo "$as_me: program exited with status $ac_status" >&5
24187 $as_echo "$as_me: failed program was:" >&5
24188 sed 's/^/| /' conftest.$ac_ext >&5
24190 ( exit $ac_status )
24191 if test "$ac_cv_type_void_p" = yes; then
24192 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24194 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
24195 See \
`config.log' for more details." >&5
24196 $as_echo "$as_me: error: cannot compute sizeof (void *)
24197 See \`config.log
' for more details." >&2;}
24198 { (exit 77); exit 77; }; }; }
24200 ac_cv_sizeof_void_p=0
24203 rm -rf conftest.dSYM
24204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24208 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
24209 $as_echo "$ac_cv_sizeof_void_p" >&6; }
24213 cat >>confdefs.h <<_ACEOF
24214 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
24218 # The cast to long int works around a bug in the HP C Compiler
24219 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24220 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24221 # This bug is HP SR number 8606223364.
24222 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
24223 $as_echo_n "checking size of size_t... " >&6; }
24224 if test "${ac_cv_sizeof_size_t+set}" = set; then
24225 $as_echo_n "(cached) " >&6
24227 if test "$cross_compiling" = yes; then
24228 # Depending upon the size, compute the lo and hi bounds.
24229 cat >conftest.
$ac_ext <<_ACEOF
24232 cat confdefs.h
>>conftest.
$ac_ext
24233 cat >>conftest.
$ac_ext <<_ACEOF
24234 /* end confdefs.h. */
24235 $ac_includes_default
24239 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
24246 rm -f conftest.
$ac_objext
24247 if { (ac_try
="$ac_compile"
24248 case "(($ac_try" in
24249 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24250 *) ac_try_echo=$ac_try;;
24252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24253 $as_echo "$ac_try_echo") >&5
24254 (eval "$ac_compile") 2>conftest.er1
24256 grep -v '^ *+' conftest.er1 >conftest.err
24258 cat conftest.err >&5
24259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 (exit $ac_status); } && {
24261 test -z "$ac_c_werror_flag" ||
24262 test ! -s conftest.err
24263 } && test -s conftest.$ac_objext; then
24266 cat >conftest.$ac_ext <<_ACEOF
24269 cat confdefs.h >>conftest.$ac_ext
24270 cat >>conftest.$ac_ext <<_ACEOF
24271 /* end confdefs.h. */
24272 $ac_includes_default
24276 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24283 rm -f conftest.$ac_objext
24284 if { (ac_try="$ac_compile"
24285 case "(($ac_try" in
24286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24287 *) ac_try_echo
=$ac_try;;
24289 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24290 $as_echo "$ac_try_echo") >&5
24291 (eval "$ac_compile") 2>conftest.er1
24293 grep -v '^ *+' conftest.er1
>conftest.err
24295 cat conftest.err
>&5
24296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24297 (exit $ac_status); } && {
24298 test -z "$ac_c_werror_flag" ||
24299 test ! -s conftest.err
24300 } && test -s conftest.
$ac_objext; then
24301 ac_hi
=$ac_mid; break
24303 $as_echo "$as_me: failed program was:" >&5
24304 sed 's/^/| /' conftest.
$ac_ext >&5
24306 ac_lo
=`expr $ac_mid + 1`
24307 if test $ac_lo -le $ac_mid; then
24311 ac_mid
=`expr 2 '*' $ac_mid + 1`
24314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24317 $as_echo "$as_me: failed program was:" >&5
24318 sed 's/^/| /' conftest.
$ac_ext >&5
24320 cat >conftest.
$ac_ext <<_ACEOF
24323 cat confdefs.h
>>conftest.
$ac_ext
24324 cat >>conftest.
$ac_ext <<_ACEOF
24325 /* end confdefs.h. */
24326 $ac_includes_default
24330 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
24337 rm -f conftest.
$ac_objext
24338 if { (ac_try
="$ac_compile"
24339 case "(($ac_try" in
24340 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24341 *) ac_try_echo=$ac_try;;
24343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24344 $as_echo "$ac_try_echo") >&5
24345 (eval "$ac_compile") 2>conftest.er1
24347 grep -v '^ *+' conftest.er1 >conftest.err
24349 cat conftest.err >&5
24350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); } && {
24352 test -z "$ac_c_werror_flag" ||
24353 test ! -s conftest.err
24354 } && test -s conftest.$ac_objext; then
24357 cat >conftest.$ac_ext <<_ACEOF
24360 cat confdefs.h >>conftest.$ac_ext
24361 cat >>conftest.$ac_ext <<_ACEOF
24362 /* end confdefs.h. */
24363 $ac_includes_default
24367 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
24374 rm -f conftest.$ac_objext
24375 if { (ac_try="$ac_compile"
24376 case "(($ac_try" in
24377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24378 *) ac_try_echo
=$ac_try;;
24380 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24381 $as_echo "$ac_try_echo") >&5
24382 (eval "$ac_compile") 2>conftest.er1
24384 grep -v '^ *+' conftest.er1
>conftest.err
24386 cat conftest.err
>&5
24387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388 (exit $ac_status); } && {
24389 test -z "$ac_c_werror_flag" ||
24390 test ! -s conftest.err
24391 } && test -s conftest.
$ac_objext; then
24392 ac_lo
=$ac_mid; break
24394 $as_echo "$as_me: failed program was:" >&5
24395 sed 's/^/| /' conftest.
$ac_ext >&5
24397 ac_hi
=`expr '(' $ac_mid ')' - 1`
24398 if test $ac_mid -le $ac_hi; then
24402 ac_mid
=`expr 2 '*' $ac_mid`
24405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24408 $as_echo "$as_me: failed program was:" >&5
24409 sed 's/^/| /' conftest.
$ac_ext >&5
24414 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24418 # Binary search between lo and hi bounds.
24419 while test "x$ac_lo" != "x$ac_hi"; do
24420 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24421 cat >conftest.
$ac_ext <<_ACEOF
24424 cat confdefs.h
>>conftest.
$ac_ext
24425 cat >>conftest.
$ac_ext <<_ACEOF
24426 /* end confdefs.h. */
24427 $ac_includes_default
24431 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
24438 rm -f conftest.
$ac_objext
24439 if { (ac_try
="$ac_compile"
24440 case "(($ac_try" in
24441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24442 *) ac_try_echo=$ac_try;;
24444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24445 $as_echo "$ac_try_echo") >&5
24446 (eval "$ac_compile") 2>conftest.er1
24448 grep -v '^ *+' conftest.er1 >conftest.err
24450 cat conftest.err >&5
24451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452 (exit $ac_status); } && {
24453 test -z "$ac_c_werror_flag" ||
24454 test ! -s conftest.err
24455 } && test -s conftest.$ac_objext; then
24458 $as_echo "$as_me: failed program was:" >&5
24459 sed 's/^/| /' conftest.$ac_ext >&5
24461 ac_lo=`expr '(' $ac_mid ')' + 1`
24464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24467 ?*) ac_cv_sizeof_size_t=$ac_lo;;
24468 '') if test "$ac_cv_type_size_t" = yes; then
24469 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24471 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(size_t
)
24472 See \
`config.log' for more details." >&5
24473 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24474 See \`config.log
' for more details." >&2;}
24475 { (exit 77); exit 77; }; }; }
24477 ac_cv_sizeof_size_t=0
24481 cat >conftest.$ac_ext <<_ACEOF
24484 cat confdefs.h >>conftest.$ac_ext
24485 cat >>conftest.$ac_ext <<_ACEOF
24486 /* end confdefs.h. */
24487 $ac_includes_default
24488 static long int longval () { return (long int) (sizeof (size_t)); }
24489 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
24491 #include <stdlib.h>
24496 FILE *f = fopen ("conftest.val", "w");
24499 if (((long int) (sizeof (size_t))) < 0)
24501 long int i = longval ();
24502 if (i != ((long int) (sizeof (size_t))))
24504 fprintf (f, "%ld", i);
24508 unsigned long int i = ulongval ();
24509 if (i != ((long int) (sizeof (size_t))))
24511 fprintf (f, "%lu", i);
24513 /* Do not output a trailing newline, as this causes \r\n confusion
24514 on some platforms. */
24515 return ferror (f) || fclose (f) != 0;
24521 rm -f conftest$ac_exeext
24522 if { (ac_try="$ac_link"
24523 case "(($ac_try" in
24524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24525 *) ac_try_echo=$ac_try;;
24527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24528 $as_echo "$ac_try_echo") >&5
24529 (eval "$ac_link") 2>&5
24531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24532 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
24533 { (case "(($ac_try" in
24534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24535 *) ac_try_echo=$ac_try;;
24537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24538 $as_echo "$ac_try_echo") >&5
24539 (eval "$ac_try") 2>&5
24541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542 (exit $ac_status); }; }; then
24543 ac_cv_sizeof_size_t=`cat conftest.val`
24545 $as_echo "$as_me: program exited with status $ac_status" >&5
24546 $as_echo "$as_me: failed program was:" >&5
24547 sed 's
/^
/|
/' conftest.$ac_ext >&5
24549 ( exit $ac_status )
24550 if test "$ac_cv_type_size_t" = yes; then
24551 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24552 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
24553 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
24554 See \`config.log
' for more details." >&5
24555 $as_echo "$as_me: error: cannot compute sizeof (size_t)
24556 See \`config.log' for more details.
" >&2;}
24557 { (exit 77); exit 77; }; }; }
24559 ac_cv_sizeof_size_t=0
24562 rm -rf conftest.dSYM
24563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24567 { $as_echo "$as_me:$LINENO: result
: $ac_cv_sizeof_size_t" >&5
24568 $as_echo "$ac_cv_sizeof_size_t" >&6; }
24572 cat >>confdefs.h <<_ACEOF
24573 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24577 # The cast to long int works around a bug in the HP C Compiler
24578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24580 # This bug is HP SR number 8606223364.
24581 { $as_echo "$as_me:$LINENO: checking size of long
" >&5
24582 $as_echo_n "checking size of long...
" >&6; }
24583 if test "${ac_cv_sizeof_long+set}" = set; then
24584 $as_echo_n "(cached
) " >&6
24586 if test "$cross_compiling" = yes; then
24587 # Depending upon the size, compute the lo and hi bounds.
24588 cat >conftest.$ac_ext <<_ACEOF
24591 cat confdefs.h >>conftest.$ac_ext
24592 cat >>conftest.$ac_ext <<_ACEOF
24593 /* end confdefs.h. */
24594 $ac_includes_default
24598 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
24605 rm -f conftest.$ac_objext
24606 if { (ac_try="$ac_compile"
24607 case "(($ac_try" in
24608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24609 *) ac_try_echo=$ac_try;;
24611 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24612 $as_echo "$ac_try_echo") >&5
24613 (eval "$ac_compile") 2>conftest.er1
24615 grep -v '^ *+' conftest.er1 >conftest.err
24617 cat conftest.err >&5
24618 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24619 (exit $ac_status); } && {
24620 test -z "$ac_c_werror_flag" ||
24621 test ! -s conftest.err
24622 } && test -s conftest.$ac_objext; then
24625 cat >conftest.$ac_ext <<_ACEOF
24628 cat confdefs.h >>conftest.$ac_ext
24629 cat >>conftest.$ac_ext <<_ACEOF
24630 /* end confdefs.h. */
24631 $ac_includes_default
24635 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
24642 rm -f conftest.$ac_objext
24643 if { (ac_try="$ac_compile"
24644 case "(($ac_try" in
24645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24646 *) ac_try_echo=$ac_try;;
24648 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24649 $as_echo "$ac_try_echo") >&5
24650 (eval "$ac_compile") 2>conftest.er1
24652 grep -v '^ *+' conftest.er1 >conftest.err
24654 cat conftest.err >&5
24655 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24656 (exit $ac_status); } && {
24657 test -z "$ac_c_werror_flag" ||
24658 test ! -s conftest.err
24659 } && test -s conftest.$ac_objext; then
24660 ac_hi=$ac_mid; break
24662 $as_echo "$as_me: failed program was
:" >&5
24663 sed 's/^/| /' conftest.$ac_ext >&5
24665 ac_lo=`expr $ac_mid + 1`
24666 if test $ac_lo -le $ac_mid; then
24670 ac_mid=`expr 2 '*' $ac_mid + 1`
24673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24676 $as_echo "$as_me: failed program was
:" >&5
24677 sed 's/^/| /' conftest.$ac_ext >&5
24679 cat >conftest.$ac_ext <<_ACEOF
24682 cat confdefs.h >>conftest.$ac_ext
24683 cat >>conftest.$ac_ext <<_ACEOF
24684 /* end confdefs.h. */
24685 $ac_includes_default
24689 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
24696 rm -f conftest.$ac_objext
24697 if { (ac_try="$ac_compile"
24698 case "(($ac_try" in
24699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24700 *) ac_try_echo=$ac_try;;
24702 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24703 $as_echo "$ac_try_echo") >&5
24704 (eval "$ac_compile") 2>conftest.er1
24706 grep -v '^ *+' conftest.er1 >conftest.err
24708 cat conftest.err >&5
24709 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24710 (exit $ac_status); } && {
24711 test -z "$ac_c_werror_flag" ||
24712 test ! -s conftest.err
24713 } && test -s conftest.$ac_objext; then
24716 cat >conftest.$ac_ext <<_ACEOF
24719 cat confdefs.h >>conftest.$ac_ext
24720 cat >>conftest.$ac_ext <<_ACEOF
24721 /* end confdefs.h. */
24722 $ac_includes_default
24726 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
24733 rm -f conftest.$ac_objext
24734 if { (ac_try="$ac_compile"
24735 case "(($ac_try" in
24736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24737 *) ac_try_echo=$ac_try;;
24739 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24740 $as_echo "$ac_try_echo") >&5
24741 (eval "$ac_compile") 2>conftest.er1
24743 grep -v '^ *+' conftest.er1 >conftest.err
24745 cat conftest.err >&5
24746 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24747 (exit $ac_status); } && {
24748 test -z "$ac_c_werror_flag" ||
24749 test ! -s conftest.err
24750 } && test -s conftest.$ac_objext; then
24751 ac_lo=$ac_mid; break
24753 $as_echo "$as_me: failed program was
:" >&5
24754 sed 's/^/| /' conftest.$ac_ext >&5
24756 ac_hi=`expr '(' $ac_mid ')' - 1`
24757 if test $ac_mid -le $ac_hi; then
24761 ac_mid=`expr 2 '*' $ac_mid`
24764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24767 $as_echo "$as_me: failed program was
:" >&5
24768 sed 's/^/| /' conftest.$ac_ext >&5
24773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24777 # Binary search between lo and hi bounds.
24778 while test "x
$ac_lo" != "x
$ac_hi"; do
24779 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24780 cat >conftest.$ac_ext <<_ACEOF
24783 cat confdefs.h >>conftest.$ac_ext
24784 cat >>conftest.$ac_ext <<_ACEOF
24785 /* end confdefs.h. */
24786 $ac_includes_default
24790 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
24797 rm -f conftest.$ac_objext
24798 if { (ac_try="$ac_compile"
24799 case "(($ac_try" in
24800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24801 *) ac_try_echo=$ac_try;;
24803 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
24804 $as_echo "$ac_try_echo") >&5
24805 (eval "$ac_compile") 2>conftest.er1
24807 grep -v '^ *+' conftest.er1 >conftest.err
24809 cat conftest.err >&5
24810 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24811 (exit $ac_status); } && {
24812 test -z "$ac_c_werror_flag" ||
24813 test ! -s conftest.err
24814 } && test -s conftest.$ac_objext; then
24817 $as_echo "$as_me: failed program was
:" >&5
24818 sed 's/^/| /' conftest.$ac_ext >&5
24820 ac_lo=`expr '(' $ac_mid ')' + 1`
24823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24826 ?*) ac_cv_sizeof_long=$ac_lo;;
24827 '') if test "$ac_cv_type_long" = yes; then
24828 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
24829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24830 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
24831 See \`config.log' for more details.
" >&5
24832 $as_echo "$as_me: error
: cannot compute sizeof
(long
)
24833 See \
`config.log' for more details." >&2;}
24834 { (exit 77); exit 77; }; }; }
24836 ac_cv_sizeof_long=0
24840 cat >conftest.$ac_ext <<_ACEOF
24843 cat confdefs.h >>conftest.$ac_ext
24844 cat >>conftest.$ac_ext <<_ACEOF
24845 /* end confdefs.h. */
24846 $ac_includes_default
24847 static long int longval () { return (long int) (sizeof (long)); }
24848 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
24850 #include <stdlib.h>
24855 FILE *f = fopen ("conftest.val", "w");
24858 if (((long int) (sizeof (long))) < 0)
24860 long int i = longval ();
24861 if (i != ((long int) (sizeof (long))))
24863 fprintf (f, "%ld", i);
24867 unsigned long int i = ulongval ();
24868 if (i != ((long int) (sizeof (long))))
24870 fprintf (f, "%lu", i);
24872 /* Do not output a trailing newline, as this causes \r\n confusion
24873 on some platforms. */
24874 return ferror (f) || fclose (f) != 0;
24880 rm -f conftest$ac_exeext
24881 if { (ac_try="$ac_link"
24882 case "(($ac_try" in
24883 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24884 *) ac_try_echo
=$ac_try;;
24886 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
24887 $as_echo "$ac_try_echo") >&5
24888 (eval "$ac_link") 2>&5
24890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24892 { (case "(($ac_try" in
24893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24894 *) ac_try_echo=$ac_try;;
24896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24897 $as_echo "$ac_try_echo") >&5
24898 (eval "$ac_try") 2>&5
24900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901 (exit $ac_status); }; }; then
24902 ac_cv_sizeof_long=`cat conftest.val
`
24904 $as_echo "$as_me: program exited with status $ac_status" >&5
24905 $as_echo "$as_me: failed program was:" >&5
24906 sed 's/^/| /' conftest.$ac_ext >&5
24908 ( exit $ac_status )
24909 if test "$ac_cv_type_long" = yes; then
24910 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24912 { { $as_echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
24913 See \
`config.log' for more details." >&5
24914 $as_echo "$as_me: error: cannot compute sizeof (long)
24915 See \`config.log
' for more details." >&2;}
24916 { (exit 77); exit 77; }; }; }
24918 ac_cv_sizeof_long=0
24921 rm -rf conftest.dSYM
24922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24926 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
24927 $as_echo "$ac_cv_sizeof_long" >&6; }
24931 cat >>confdefs.h <<_ACEOF
24932 #define SIZEOF_LONG $ac_cv_sizeof_long
24937 # Decide whether float4 is passed by value: user-selectable, enabled by default
24938 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
24939 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
24942 # Check whether --enable-float4-byval was given.
24943 if test "${enable_float4_byval+set}" = set; then
24944 enableval=$enable_float4_byval;
24948 cat >>confdefs.h <<\_ACEOF
24949 #define USE_FLOAT4_BYVAL 1
24952 float4passbyval=true
24955 float4passbyval=false
24958 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
24959 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
24960 { (exit 1); exit 1; }; }
24965 enable_float4_byval=yes
24967 cat >>confdefs.h <<\_ACEOF
24968 #define USE_FLOAT4_BYVAL 1
24971 float4passbyval=true
24975 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
24976 $as_echo "$enable_float4_byval" >&6; }
24978 cat >>confdefs.h <<_ACEOF
24979 #define FLOAT4PASSBYVAL $float4passbyval
24983 # Decide whether float8 is passed by value.
24984 # Note: this setting also controls int8 and related types such as timestamp.
24985 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
24986 # If not, trying to select it is an error.
24987 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
24988 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
24989 if test $ac_cv_sizeof_void_p -ge 8 ; then
24992 # Check whether --enable-float8-byval was given.
24993 if test "${enable_float8_byval+set}" = set; then
24994 enableval=$enable_float8_byval;
25003 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25004 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25005 { (exit 1); exit 1; }; }
25010 enable_float8_byval=yes
25018 # Check whether --enable-float8-byval was given.
25019 if test "${enable_float8_byval+set}" = set; then
25020 enableval=$enable_float8_byval;
25029 { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
25030 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
25031 { (exit 1); exit 1; }; }
25036 enable_float8_byval=no
25041 if test "$enable_float8_byval" = yes ; then
25042 { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
25043 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
25044 { (exit 1); exit 1; }; }
25047 if test "$enable_float8_byval" = yes ; then
25049 cat >>confdefs.h <<\_ACEOF
25050 #define USE_FLOAT8_BYVAL 1
25053 float8passbyval=true
25055 float8passbyval=false
25057 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
25058 $as_echo "$enable_float8_byval" >&6; }
25060 cat >>confdefs.h <<_ACEOF
25061 #define FLOAT8PASSBYVAL $float8passbyval
25065 # Determine memory alignment requirements for the basic C data types.
25067 # The cast to long int works around a bug in the HP C Compiler,
25068 # see AC_CHECK_SIZEOF for more information.
25069 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
25070 $as_echo_n "checking alignment of short... " >&6; }
25071 if test "${ac_cv_alignof_short+set}" = set; then
25072 $as_echo_n "(cached) " >&6
25074 if test "$cross_compiling" = yes; then
25075 # Depending upon the size, compute the lo and hi bounds.
25076 cat >conftest.$ac_ext <<_ACEOF
25079 cat confdefs.h >>conftest.$ac_ext
25080 cat >>conftest.$ac_ext <<_ACEOF
25081 /* end confdefs.h. */
25082 $ac_includes_default
25084 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25086 typedef struct { char x; short y; } ac__type_alignof_;
25090 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25097 rm -f conftest.$ac_objext
25098 if { (ac_try="$ac_compile"
25099 case "(($ac_try" in
25100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25101 *) ac_try_echo=$ac_try;;
25103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25104 $as_echo "$ac_try_echo") >&5
25105 (eval "$ac_compile") 2>conftest.er1
25107 grep -v '^
*+' conftest.er1 >conftest.err
25109 cat conftest.err >&5
25110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111 (exit $ac_status); } && {
25112 test -z "$ac_c_werror_flag" ||
25113 test ! -s conftest.err
25114 } && test -s conftest.$ac_objext; then
25117 cat >conftest.$ac_ext <<_ACEOF
25120 cat confdefs.h >>conftest.$ac_ext
25121 cat >>conftest.$ac_ext <<_ACEOF
25122 /* end confdefs.h. */
25123 $ac_includes_default
25125 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25127 typedef struct { char x; short y; } ac__type_alignof_;
25131 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25138 rm -f conftest.$ac_objext
25139 if { (ac_try="$ac_compile"
25140 case "(($ac_try" in
25141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25142 *) ac_try_echo=$ac_try;;
25144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25145 $as_echo "$ac_try_echo") >&5
25146 (eval "$ac_compile") 2>conftest.er1
25148 grep -v '^
*+' conftest.er1 >conftest.err
25150 cat conftest.err >&5
25151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25152 (exit $ac_status); } && {
25153 test -z "$ac_c_werror_flag" ||
25154 test ! -s conftest.err
25155 } && test -s conftest.$ac_objext; then
25156 ac_hi=$ac_mid; break
25158 $as_echo "$as_me: failed program was:" >&5
25159 sed 's
/^
/|
/' conftest.$ac_ext >&5
25161 ac_lo=`expr $ac_mid + 1`
25162 if test $ac_lo -le $ac_mid; then
25166 ac_mid=`expr 2 '*' $ac_mid + 1`
25169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25172 $as_echo "$as_me: failed program was:" >&5
25173 sed 's
/^
/|
/' conftest.$ac_ext >&5
25175 cat >conftest.$ac_ext <<_ACEOF
25178 cat confdefs.h >>conftest.$ac_ext
25179 cat >>conftest.$ac_ext <<_ACEOF
25180 /* end confdefs.h. */
25181 $ac_includes_default
25183 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25185 typedef struct { char x; short y; } ac__type_alignof_;
25189 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25196 rm -f conftest.$ac_objext
25197 if { (ac_try="$ac_compile"
25198 case "(($ac_try" in
25199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25200 *) ac_try_echo=$ac_try;;
25202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25203 $as_echo "$ac_try_echo") >&5
25204 (eval "$ac_compile") 2>conftest.er1
25206 grep -v '^
*+' conftest.er1 >conftest.err
25208 cat conftest.err >&5
25209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210 (exit $ac_status); } && {
25211 test -z "$ac_c_werror_flag" ||
25212 test ! -s conftest.err
25213 } && test -s conftest.$ac_objext; then
25216 cat >conftest.$ac_ext <<_ACEOF
25219 cat confdefs.h >>conftest.$ac_ext
25220 cat >>conftest.$ac_ext <<_ACEOF
25221 /* end confdefs.h. */
25222 $ac_includes_default
25224 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25226 typedef struct { char x; short y; } ac__type_alignof_;
25230 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25237 rm -f conftest.$ac_objext
25238 if { (ac_try="$ac_compile"
25239 case "(($ac_try" in
25240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25241 *) ac_try_echo=$ac_try;;
25243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25244 $as_echo "$ac_try_echo") >&5
25245 (eval "$ac_compile") 2>conftest.er1
25247 grep -v '^
*+' conftest.er1 >conftest.err
25249 cat conftest.err >&5
25250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251 (exit $ac_status); } && {
25252 test -z "$ac_c_werror_flag" ||
25253 test ! -s conftest.err
25254 } && test -s conftest.$ac_objext; then
25255 ac_lo=$ac_mid; break
25257 $as_echo "$as_me: failed program was:" >&5
25258 sed 's
/^
/|
/' conftest.$ac_ext >&5
25260 ac_hi=`expr '(' $ac_mid ')' - 1`
25261 if test $ac_mid -le $ac_hi; then
25265 ac_mid=`expr 2 '*' $ac_mid`
25268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25271 $as_echo "$as_me: failed program was:" >&5
25272 sed 's
/^
/|
/' conftest.$ac_ext >&5
25277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25281 # Binary search between lo and hi bounds.
25282 while test "x$ac_lo" != "x$ac_hi"; do
25283 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25284 cat >conftest.$ac_ext <<_ACEOF
25287 cat confdefs.h >>conftest.$ac_ext
25288 cat >>conftest.$ac_ext <<_ACEOF
25289 /* end confdefs.h. */
25290 $ac_includes_default
25292 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25294 typedef struct { char x; short y; } ac__type_alignof_;
25298 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25305 rm -f conftest.$ac_objext
25306 if { (ac_try="$ac_compile"
25307 case "(($ac_try" in
25308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25309 *) ac_try_echo=$ac_try;;
25311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25312 $as_echo "$ac_try_echo") >&5
25313 (eval "$ac_compile") 2>conftest.er1
25315 grep -v '^
*+' conftest.er1 >conftest.err
25317 cat conftest.err >&5
25318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319 (exit $ac_status); } && {
25320 test -z "$ac_c_werror_flag" ||
25321 test ! -s conftest.err
25322 } && test -s conftest.$ac_objext; then
25325 $as_echo "$as_me: failed program was:" >&5
25326 sed 's
/^
/|
/' conftest.$ac_ext >&5
25328 ac_lo=`expr '(' $ac_mid ')' + 1`
25331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25334 ?*) ac_cv_alignof_short=$ac_lo;;
25335 '') if test "$ac_cv_type_short" = yes; then
25336 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25337 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
25338 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25339 See \`config.log
' for more details." >&5
25340 $as_echo "$as_me: error: cannot compute alignment of short
25341 See \`config.log' for more details.
" >&2;}
25342 { (exit 77); exit 77; }; }; }
25344 ac_cv_alignof_short=0
25348 cat >conftest.$ac_ext <<_ACEOF
25351 cat confdefs.h >>conftest.$ac_ext
25352 cat >>conftest.$ac_ext <<_ACEOF
25353 /* end confdefs.h. */
25354 $ac_includes_default
25356 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25358 typedef struct { char x; short y; } ac__type_alignof_;
25359 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25360 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25362 #include <stdlib.h>
25367 FILE *f = fopen ("conftest.val
", "w
");
25370 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25372 long int i = longval ();
25373 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25375 fprintf (f, "%ld
", i);
25379 unsigned long int i = ulongval ();
25380 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25382 fprintf (f, "%lu
", i);
25384 /* Do not output a trailing newline, as this causes \r\n confusion
25385 on some platforms. */
25386 return ferror (f) || fclose (f) != 0;
25392 rm -f conftest$ac_exeext
25393 if { (ac_try="$ac_link"
25394 case "(($ac_try" in
25395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25396 *) ac_try_echo=$ac_try;;
25398 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25399 $as_echo "$ac_try_echo") >&5
25400 (eval "$ac_link") 2>&5
25402 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25404 { (case "(($ac_try" in
25405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25406 *) ac_try_echo=$ac_try;;
25408 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25409 $as_echo "$ac_try_echo") >&5
25410 (eval "$ac_try") 2>&5
25412 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25413 (exit $ac_status); }; }; then
25414 ac_cv_alignof_short=`cat conftest.val`
25416 $as_echo "$as_me: program exited with status
$ac_status" >&5
25417 $as_echo "$as_me: failed program was
:" >&5
25418 sed 's/^/| /' conftest.$ac_ext >&5
25420 ( exit $ac_status )
25421 if test "$ac_cv_type_short" = yes; then
25422 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
25423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25424 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
25425 See \`config.log' for more details.
" >&5
25426 $as_echo "$as_me: error
: cannot compute alignment of short
25427 See \
`config.log' for more details." >&2;}
25428 { (exit 77); exit 77; }; }; }
25430 ac_cv_alignof_short=0
25433 rm -rf conftest.dSYM
25434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25438 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
25439 $as_echo "$ac_cv_alignof_short" >&6; }
25443 cat >>confdefs.h <<_ACEOF
25444 #define ALIGNOF_SHORT $ac_cv_alignof_short
25448 # The cast to long int works around a bug in the HP C Compiler,
25449 # see AC_CHECK_SIZEOF for more information.
25450 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
25451 $as_echo_n "checking alignment of int... " >&6; }
25452 if test "${ac_cv_alignof_int+set}" = set; then
25453 $as_echo_n "(cached) " >&6
25455 if test "$cross_compiling" = yes; then
25456 # Depending upon the size, compute the lo and hi bounds.
25457 cat >conftest.$ac_ext <<_ACEOF
25460 cat confdefs.h >>conftest.$ac_ext
25461 cat >>conftest.$ac_ext <<_ACEOF
25462 /* end confdefs.h. */
25463 $ac_includes_default
25465 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25467 typedef struct { char x; int y; } ac__type_alignof_;
25471 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25478 rm -f conftest.$ac_objext
25479 if { (ac_try="$ac_compile"
25480 case "(($ac_try" in
25481 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25482 *) ac_try_echo
=$ac_try;;
25484 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25485 $as_echo "$ac_try_echo") >&5
25486 (eval "$ac_compile") 2>conftest.er1
25488 grep -v '^ *+' conftest.er1
>conftest.err
25490 cat conftest.err
>&5
25491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492 (exit $ac_status); } && {
25493 test -z "$ac_c_werror_flag" ||
25494 test ! -s conftest.err
25495 } && test -s conftest.
$ac_objext; then
25498 cat >conftest.
$ac_ext <<_ACEOF
25501 cat confdefs.h
>>conftest.
$ac_ext
25502 cat >>conftest.
$ac_ext <<_ACEOF
25503 /* end confdefs.h. */
25504 $ac_includes_default
25506 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25508 typedef struct { char x; int y; } ac__type_alignof_;
25512 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25519 rm -f conftest.
$ac_objext
25520 if { (ac_try
="$ac_compile"
25521 case "(($ac_try" in
25522 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25523 *) ac_try_echo=$ac_try;;
25525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25526 $as_echo "$ac_try_echo") >&5
25527 (eval "$ac_compile") 2>conftest.er1
25529 grep -v '^ *+' conftest.er1 >conftest.err
25531 cat conftest.err >&5
25532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533 (exit $ac_status); } && {
25534 test -z "$ac_c_werror_flag" ||
25535 test ! -s conftest.err
25536 } && test -s conftest.$ac_objext; then
25537 ac_hi=$ac_mid; break
25539 $as_echo "$as_me: failed program was:" >&5
25540 sed 's/^/| /' conftest.$ac_ext >&5
25542 ac_lo=`expr $ac_mid + 1`
25543 if test $ac_lo -le $ac_mid; then
25547 ac_mid=`expr 2 '*' $ac_mid + 1`
25550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25553 $as_echo "$as_me: failed program was:" >&5
25554 sed 's/^/| /' conftest.$ac_ext >&5
25556 cat >conftest.$ac_ext <<_ACEOF
25559 cat confdefs.h >>conftest.$ac_ext
25560 cat >>conftest.$ac_ext <<_ACEOF
25561 /* end confdefs.h. */
25562 $ac_includes_default
25564 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25566 typedef struct { char x; int y; } ac__type_alignof_;
25570 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25577 rm -f conftest.$ac_objext
25578 if { (ac_try="$ac_compile"
25579 case "(($ac_try" in
25580 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25581 *) ac_try_echo
=$ac_try;;
25583 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25584 $as_echo "$ac_try_echo") >&5
25585 (eval "$ac_compile") 2>conftest.er1
25587 grep -v '^ *+' conftest.er1
>conftest.err
25589 cat conftest.err
>&5
25590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591 (exit $ac_status); } && {
25592 test -z "$ac_c_werror_flag" ||
25593 test ! -s conftest.err
25594 } && test -s conftest.
$ac_objext; then
25597 cat >conftest.
$ac_ext <<_ACEOF
25600 cat confdefs.h
>>conftest.
$ac_ext
25601 cat >>conftest.
$ac_ext <<_ACEOF
25602 /* end confdefs.h. */
25603 $ac_includes_default
25605 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25607 typedef struct { char x; int y; } ac__type_alignof_;
25611 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25618 rm -f conftest.
$ac_objext
25619 if { (ac_try
="$ac_compile"
25620 case "(($ac_try" in
25621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25622 *) ac_try_echo=$ac_try;;
25624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25625 $as_echo "$ac_try_echo") >&5
25626 (eval "$ac_compile") 2>conftest.er1
25628 grep -v '^ *+' conftest.er1 >conftest.err
25630 cat conftest.err >&5
25631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632 (exit $ac_status); } && {
25633 test -z "$ac_c_werror_flag" ||
25634 test ! -s conftest.err
25635 } && test -s conftest.$ac_objext; then
25636 ac_lo=$ac_mid; break
25638 $as_echo "$as_me: failed program was:" >&5
25639 sed 's/^/| /' conftest.$ac_ext >&5
25641 ac_hi=`expr '(' $ac_mid ')' - 1`
25642 if test $ac_mid -le $ac_hi; then
25646 ac_mid=`expr 2 '*' $ac_mid`
25649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25652 $as_echo "$as_me: failed program was:" >&5
25653 sed 's/^/| /' conftest.$ac_ext >&5
25658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25662 # Binary search between lo and hi bounds.
25663 while test "x$ac_lo" != "x$ac_hi"; do
25664 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25665 cat >conftest.$ac_ext <<_ACEOF
25668 cat confdefs.h >>conftest.$ac_ext
25669 cat >>conftest.$ac_ext <<_ACEOF
25670 /* end confdefs.h. */
25671 $ac_includes_default
25673 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25675 typedef struct { char x; int y; } ac__type_alignof_;
25679 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25686 rm -f conftest.$ac_objext
25687 if { (ac_try="$ac_compile"
25688 case "(($ac_try" in
25689 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25690 *) ac_try_echo
=$ac_try;;
25692 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25693 $as_echo "$ac_try_echo") >&5
25694 (eval "$ac_compile") 2>conftest.er1
25696 grep -v '^ *+' conftest.er1
>conftest.err
25698 cat conftest.err
>&5
25699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700 (exit $ac_status); } && {
25701 test -z "$ac_c_werror_flag" ||
25702 test ! -s conftest.err
25703 } && test -s conftest.
$ac_objext; then
25706 $as_echo "$as_me: failed program was:" >&5
25707 sed 's/^/| /' conftest.
$ac_ext >&5
25709 ac_lo
=`expr '(' $ac_mid ')' + 1`
25712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25715 ?
*) ac_cv_alignof_int
=$ac_lo;;
25716 '') if test "$ac_cv_type_int" = yes; then
25717 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25719 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
25720 See \`config.log' for more details." >&5
25721 $as_echo "$as_me: error: cannot compute alignment of int
25722 See \`config.log' for more details." >&2;}
25723 { (exit 77); exit 77; }; }; }
25725 ac_cv_alignof_int
=0
25729 cat >conftest.
$ac_ext <<_ACEOF
25732 cat confdefs.h
>>conftest.
$ac_ext
25733 cat >>conftest.
$ac_ext <<_ACEOF
25734 /* end confdefs.h. */
25735 $ac_includes_default
25737 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25739 typedef struct { char x; int y; } ac__type_alignof_;
25740 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
25741 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
25743 #include <stdlib.h>
25748 FILE *f = fopen ("conftest.val", "w");
25751 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
25753 long int i = longval ();
25754 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25756 fprintf (f, "%ld", i);
25760 unsigned long int i = ulongval ();
25761 if (i != ((long int) offsetof (ac__type_alignof_, y)))
25763 fprintf (f, "%lu", i);
25765 /* Do not output a trailing newline, as this causes \r\n confusion
25766 on some platforms. */
25767 return ferror (f) || fclose (f) != 0;
25773 rm -f conftest
$ac_exeext
25774 if { (ac_try
="$ac_link"
25775 case "(($ac_try" in
25776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25777 *) ac_try_echo=$ac_try;;
25779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25780 $as_echo "$ac_try_echo") >&5
25781 (eval "$ac_link") 2>&5
25783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25785 { (case "(($ac_try" in
25786 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25787 *) ac_try_echo
=$ac_try;;
25789 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25790 $as_echo "$ac_try_echo") >&5
25791 (eval "$ac_try") 2>&5
25793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794 (exit $ac_status); }; }; then
25795 ac_cv_alignof_int
=`cat conftest.val`
25797 $as_echo "$as_me: program exited with status $ac_status" >&5
25798 $as_echo "$as_me: failed program was:" >&5
25799 sed 's/^/| /' conftest.
$ac_ext >&5
25801 ( exit $ac_status )
25802 if test "$ac_cv_type_int" = yes; then
25803 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25805 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
25806 See \`config.log' for more details." >&5
25807 $as_echo "$as_me: error: cannot compute alignment of int
25808 See \`config.log' for more details." >&2;}
25809 { (exit 77); exit 77; }; }; }
25811 ac_cv_alignof_int
=0
25814 rm -rf conftest.dSYM
25815 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25819 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
25820 $as_echo "$ac_cv_alignof_int" >&6; }
25824 cat >>confdefs.h
<<_ACEOF
25825 #define ALIGNOF_INT $ac_cv_alignof_int
25829 # The cast to long int works around a bug in the HP C Compiler,
25830 # see AC_CHECK_SIZEOF for more information.
25831 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
25832 $as_echo_n "checking alignment of long... " >&6; }
25833 if test "${ac_cv_alignof_long+set}" = set; then
25834 $as_echo_n "(cached) " >&6
25836 if test "$cross_compiling" = yes; then
25837 # Depending upon the size, compute the lo and hi bounds.
25838 cat >conftest.
$ac_ext <<_ACEOF
25841 cat confdefs.h
>>conftest.
$ac_ext
25842 cat >>conftest.
$ac_ext <<_ACEOF
25843 /* end confdefs.h. */
25844 $ac_includes_default
25846 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25848 typedef struct { char x; long y; } ac__type_alignof_;
25852 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
25859 rm -f conftest.
$ac_objext
25860 if { (ac_try
="$ac_compile"
25861 case "(($ac_try" in
25862 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25863 *) ac_try_echo=$ac_try;;
25865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25866 $as_echo "$ac_try_echo") >&5
25867 (eval "$ac_compile") 2>conftest.er1
25869 grep -v '^ *+' conftest.er1 >conftest.err
25871 cat conftest.err >&5
25872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873 (exit $ac_status); } && {
25874 test -z "$ac_c_werror_flag" ||
25875 test ! -s conftest.err
25876 } && test -s conftest.$ac_objext; then
25879 cat >conftest.$ac_ext <<_ACEOF
25882 cat confdefs.h >>conftest.$ac_ext
25883 cat >>conftest.$ac_ext <<_ACEOF
25884 /* end confdefs.h. */
25885 $ac_includes_default
25887 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25889 typedef struct { char x; long y; } ac__type_alignof_;
25893 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
25900 rm -f conftest.$ac_objext
25901 if { (ac_try="$ac_compile"
25902 case "(($ac_try" in
25903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25904 *) ac_try_echo
=$ac_try;;
25906 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25907 $as_echo "$ac_try_echo") >&5
25908 (eval "$ac_compile") 2>conftest.er1
25910 grep -v '^ *+' conftest.er1
>conftest.err
25912 cat conftest.err
>&5
25913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25914 (exit $ac_status); } && {
25915 test -z "$ac_c_werror_flag" ||
25916 test ! -s conftest.err
25917 } && test -s conftest.
$ac_objext; then
25918 ac_hi
=$ac_mid; break
25920 $as_echo "$as_me: failed program was:" >&5
25921 sed 's/^/| /' conftest.
$ac_ext >&5
25923 ac_lo
=`expr $ac_mid + 1`
25924 if test $ac_lo -le $ac_mid; then
25928 ac_mid
=`expr 2 '*' $ac_mid + 1`
25931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25934 $as_echo "$as_me: failed program was:" >&5
25935 sed 's/^/| /' conftest.
$ac_ext >&5
25937 cat >conftest.
$ac_ext <<_ACEOF
25940 cat confdefs.h
>>conftest.
$ac_ext
25941 cat >>conftest.
$ac_ext <<_ACEOF
25942 /* end confdefs.h. */
25943 $ac_includes_default
25945 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25947 typedef struct { char x; long y; } ac__type_alignof_;
25951 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
25958 rm -f conftest.
$ac_objext
25959 if { (ac_try
="$ac_compile"
25960 case "(($ac_try" in
25961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25962 *) ac_try_echo=$ac_try;;
25964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25965 $as_echo "$ac_try_echo") >&5
25966 (eval "$ac_compile") 2>conftest.er1
25968 grep -v '^ *+' conftest.er1 >conftest.err
25970 cat conftest.err >&5
25971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25972 (exit $ac_status); } && {
25973 test -z "$ac_c_werror_flag" ||
25974 test ! -s conftest.err
25975 } && test -s conftest.$ac_objext; then
25978 cat >conftest.$ac_ext <<_ACEOF
25981 cat confdefs.h >>conftest.$ac_ext
25982 cat >>conftest.$ac_ext <<_ACEOF
25983 /* end confdefs.h. */
25984 $ac_includes_default
25986 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25988 typedef struct { char x; long y; } ac__type_alignof_;
25992 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
25999 rm -f conftest.$ac_objext
26000 if { (ac_try="$ac_compile"
26001 case "(($ac_try" in
26002 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26003 *) ac_try_echo
=$ac_try;;
26005 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26006 $as_echo "$ac_try_echo") >&5
26007 (eval "$ac_compile") 2>conftest.er1
26009 grep -v '^ *+' conftest.er1
>conftest.err
26011 cat conftest.err
>&5
26012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013 (exit $ac_status); } && {
26014 test -z "$ac_c_werror_flag" ||
26015 test ! -s conftest.err
26016 } && test -s conftest.
$ac_objext; then
26017 ac_lo
=$ac_mid; break
26019 $as_echo "$as_me: failed program was:" >&5
26020 sed 's/^/| /' conftest.
$ac_ext >&5
26022 ac_hi
=`expr '(' $ac_mid ')' - 1`
26023 if test $ac_mid -le $ac_hi; then
26027 ac_mid
=`expr 2 '*' $ac_mid`
26030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26033 $as_echo "$as_me: failed program was:" >&5
26034 sed 's/^/| /' conftest.
$ac_ext >&5
26039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26043 # Binary search between lo and hi bounds.
26044 while test "x$ac_lo" != "x$ac_hi"; do
26045 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26046 cat >conftest.
$ac_ext <<_ACEOF
26049 cat confdefs.h
>>conftest.
$ac_ext
26050 cat >>conftest.
$ac_ext <<_ACEOF
26051 /* end confdefs.h. */
26052 $ac_includes_default
26054 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26056 typedef struct { char x; long y; } ac__type_alignof_;
26060 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
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_lo=`expr '(' $ac_mid ')' + 1`
26093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26096 ?*) ac_cv_alignof_long=$ac_lo;;
26097 '') if test "$ac_cv_type_long" = yes; then
26098 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26100 { { $as_echo "$as_me:$LINENO: error
: cannot compute alignment of long
26101 See \
`config.log' for more details." >&5
26102 $as_echo "$as_me: error: cannot compute alignment of long
26103 See \`config.log
' for more details." >&2;}
26104 { (exit 77); exit 77; }; }; }
26106 ac_cv_alignof_long=0
26110 cat >conftest.$ac_ext <<_ACEOF
26113 cat confdefs.h >>conftest.$ac_ext
26114 cat >>conftest.$ac_ext <<_ACEOF
26115 /* end confdefs.h. */
26116 $ac_includes_default
26118 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26120 typedef struct { char x; long y; } ac__type_alignof_;
26121 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26122 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26124 #include <stdlib.h>
26129 FILE *f = fopen ("conftest.val", "w");
26132 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26134 long int i = longval ();
26135 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26137 fprintf (f, "%ld", i);
26141 unsigned long int i = ulongval ();
26142 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26144 fprintf (f, "%lu", i);
26146 /* Do not output a trailing newline, as this causes \r\n confusion
26147 on some platforms. */
26148 return ferror (f) || fclose (f) != 0;
26154 rm -f conftest$ac_exeext
26155 if { (ac_try="$ac_link"
26156 case "(($ac_try" in
26157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26158 *) ac_try_echo=$ac_try;;
26160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26161 $as_echo "$ac_try_echo") >&5
26162 (eval "$ac_link") 2>&5
26164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26165 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
26166 { (case "(($ac_try" in
26167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26168 *) ac_try_echo=$ac_try;;
26170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26171 $as_echo "$ac_try_echo") >&5
26172 (eval "$ac_try") 2>&5
26174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); }; }; then
26176 ac_cv_alignof_long=`cat conftest.val`
26178 $as_echo "$as_me: program exited with status $ac_status" >&5
26179 $as_echo "$as_me: failed program was:" >&5
26180 sed 's
/^
/|
/' conftest.$ac_ext >&5
26182 ( exit $ac_status )
26183 if test "$ac_cv_type_long" = yes; then
26184 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26185 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
26186 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
26187 See \`config.log
' for more details." >&5
26188 $as_echo "$as_me: error: cannot compute alignment of long
26189 See \`config.log' for more details.
" >&2;}
26190 { (exit 77); exit 77; }; }; }
26192 ac_cv_alignof_long=0
26195 rm -rf conftest.dSYM
26196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26200 { $as_echo "$as_me:$LINENO: result
: $ac_cv_alignof_long" >&5
26201 $as_echo "$ac_cv_alignof_long" >&6; }
26205 cat >>confdefs.h <<_ACEOF
26206 #define ALIGNOF_LONG $ac_cv_alignof_long
26210 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
26211 # The cast to long int works around a bug in the HP C Compiler,
26212 # see AC_CHECK_SIZEOF for more information.
26213 { $as_echo "$as_me:$LINENO: checking alignment of long long int
" >&5
26214 $as_echo_n "checking alignment of long long int...
" >&6; }
26215 if test "${ac_cv_alignof_long_long_int+set}" = set; then
26216 $as_echo_n "(cached
) " >&6
26218 if test "$cross_compiling" = yes; then
26219 # Depending upon the size, compute the lo and hi bounds.
26220 cat >conftest.$ac_ext <<_ACEOF
26223 cat confdefs.h >>conftest.$ac_ext
26224 cat >>conftest.$ac_ext <<_ACEOF
26225 /* end confdefs.h. */
26226 $ac_includes_default
26228 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26230 typedef struct { char x; long long int y; } ac__type_alignof_;
26234 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26241 rm -f conftest.$ac_objext
26242 if { (ac_try="$ac_compile"
26243 case "(($ac_try" in
26244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26245 *) ac_try_echo=$ac_try;;
26247 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26248 $as_echo "$ac_try_echo") >&5
26249 (eval "$ac_compile") 2>conftest.er1
26251 grep -v '^ *+' conftest.er1 >conftest.err
26253 cat conftest.err >&5
26254 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26255 (exit $ac_status); } && {
26256 test -z "$ac_c_werror_flag" ||
26257 test ! -s conftest.err
26258 } && test -s conftest.$ac_objext; then
26261 cat >conftest.$ac_ext <<_ACEOF
26264 cat confdefs.h >>conftest.$ac_ext
26265 cat >>conftest.$ac_ext <<_ACEOF
26266 /* end confdefs.h. */
26267 $ac_includes_default
26269 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26271 typedef struct { char x; long long int y; } ac__type_alignof_;
26275 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26282 rm -f conftest.$ac_objext
26283 if { (ac_try="$ac_compile"
26284 case "(($ac_try" in
26285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26286 *) ac_try_echo=$ac_try;;
26288 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26289 $as_echo "$ac_try_echo") >&5
26290 (eval "$ac_compile") 2>conftest.er1
26292 grep -v '^ *+' conftest.er1 >conftest.err
26294 cat conftest.err >&5
26295 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26296 (exit $ac_status); } && {
26297 test -z "$ac_c_werror_flag" ||
26298 test ! -s conftest.err
26299 } && test -s conftest.$ac_objext; then
26300 ac_hi=$ac_mid; break
26302 $as_echo "$as_me: failed program was
:" >&5
26303 sed 's/^/| /' conftest.$ac_ext >&5
26305 ac_lo=`expr $ac_mid + 1`
26306 if test $ac_lo -le $ac_mid; then
26310 ac_mid=`expr 2 '*' $ac_mid + 1`
26313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26316 $as_echo "$as_me: failed program was
:" >&5
26317 sed 's/^/| /' conftest.$ac_ext >&5
26319 cat >conftest.$ac_ext <<_ACEOF
26322 cat confdefs.h >>conftest.$ac_ext
26323 cat >>conftest.$ac_ext <<_ACEOF
26324 /* end confdefs.h. */
26325 $ac_includes_default
26327 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26329 typedef struct { char x; long long int y; } ac__type_alignof_;
26333 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26340 rm -f conftest.$ac_objext
26341 if { (ac_try="$ac_compile"
26342 case "(($ac_try" in
26343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26344 *) ac_try_echo=$ac_try;;
26346 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26347 $as_echo "$ac_try_echo") >&5
26348 (eval "$ac_compile") 2>conftest.er1
26350 grep -v '^ *+' conftest.er1 >conftest.err
26352 cat conftest.err >&5
26353 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26354 (exit $ac_status); } && {
26355 test -z "$ac_c_werror_flag" ||
26356 test ! -s conftest.err
26357 } && test -s conftest.$ac_objext; then
26360 cat >conftest.$ac_ext <<_ACEOF
26363 cat confdefs.h >>conftest.$ac_ext
26364 cat >>conftest.$ac_ext <<_ACEOF
26365 /* end confdefs.h. */
26366 $ac_includes_default
26368 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26370 typedef struct { char x; long long int y; } ac__type_alignof_;
26374 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26381 rm -f conftest.$ac_objext
26382 if { (ac_try="$ac_compile"
26383 case "(($ac_try" in
26384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26385 *) ac_try_echo=$ac_try;;
26387 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26388 $as_echo "$ac_try_echo") >&5
26389 (eval "$ac_compile") 2>conftest.er1
26391 grep -v '^ *+' conftest.er1 >conftest.err
26393 cat conftest.err >&5
26394 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26395 (exit $ac_status); } && {
26396 test -z "$ac_c_werror_flag" ||
26397 test ! -s conftest.err
26398 } && test -s conftest.$ac_objext; then
26399 ac_lo=$ac_mid; break
26401 $as_echo "$as_me: failed program was
:" >&5
26402 sed 's/^/| /' conftest.$ac_ext >&5
26404 ac_hi=`expr '(' $ac_mid ')' - 1`
26405 if test $ac_mid -le $ac_hi; then
26409 ac_mid=`expr 2 '*' $ac_mid`
26412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 conftest.$ac_ext
26424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26425 # Binary search between lo and hi bounds.
26426 while test "x
$ac_lo" != "x
$ac_hi"; do
26427 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26428 cat >conftest.$ac_ext <<_ACEOF
26431 cat confdefs.h >>conftest.$ac_ext
26432 cat >>conftest.$ac_ext <<_ACEOF
26433 /* end confdefs.h. */
26434 $ac_includes_default
26436 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26438 typedef struct { char x; long long int y; } ac__type_alignof_;
26442 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26449 rm -f conftest.$ac_objext
26450 if { (ac_try="$ac_compile"
26451 case "(($ac_try" in
26452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26453 *) ac_try_echo=$ac_try;;
26455 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26456 $as_echo "$ac_try_echo") >&5
26457 (eval "$ac_compile") 2>conftest.er1
26459 grep -v '^ *+' conftest.er1 >conftest.err
26461 cat conftest.err >&5
26462 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26463 (exit $ac_status); } && {
26464 test -z "$ac_c_werror_flag" ||
26465 test ! -s conftest.err
26466 } && test -s conftest.$ac_objext; then
26469 $as_echo "$as_me: failed program was
:" >&5
26470 sed 's/^/| /' conftest.$ac_ext >&5
26472 ac_lo=`expr '(' $ac_mid ')' + 1`
26475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26478 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
26479 '') if test "$ac_cv_type_long_long_int" = yes; then
26480 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
26481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26482 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
26483 See \`config.log' for more details.
" >&5
26484 $as_echo "$as_me: error
: cannot compute alignment of long long int
26485 See \
`config.log' for more details." >&2;}
26486 { (exit 77); exit 77; }; }; }
26488 ac_cv_alignof_long_long_int=0
26492 cat >conftest.$ac_ext <<_ACEOF
26495 cat confdefs.h >>conftest.$ac_ext
26496 cat >>conftest.$ac_ext <<_ACEOF
26497 /* end confdefs.h. */
26498 $ac_includes_default
26500 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26502 typedef struct { char x; long long int y; } ac__type_alignof_;
26503 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26504 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26506 #include <stdlib.h>
26511 FILE *f = fopen ("conftest.val", "w");
26514 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26516 long int i = longval ();
26517 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26519 fprintf (f, "%ld", i);
26523 unsigned long int i = ulongval ();
26524 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26526 fprintf (f, "%lu", i);
26528 /* Do not output a trailing newline, as this causes \r\n confusion
26529 on some platforms. */
26530 return ferror (f) || fclose (f) != 0;
26536 rm -f conftest$ac_exeext
26537 if { (ac_try="$ac_link"
26538 case "(($ac_try" in
26539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26540 *) ac_try_echo
=$ac_try;;
26542 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26543 $as_echo "$ac_try_echo") >&5
26544 (eval "$ac_link") 2>&5
26546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26547 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
26548 { (case "(($ac_try" in
26549 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26550 *) ac_try_echo=$ac_try;;
26552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26553 $as_echo "$ac_try_echo") >&5
26554 (eval "$ac_try") 2>&5
26556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26557 (exit $ac_status); }; }; then
26558 ac_cv_alignof_long_long_int=`cat conftest.val
`
26560 $as_echo "$as_me: program exited with status $ac_status" >&5
26561 $as_echo "$as_me: failed program was:" >&5
26562 sed 's/^/| /' conftest.$ac_ext >&5
26564 ( exit $ac_status )
26565 if test "$ac_cv_type_long_long_int" = yes; then
26566 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26568 { { $as_echo "$as_me:$LINENO: error
: cannot compute alignment of long long int
26569 See \
`config.log' for more details." >&5
26570 $as_echo "$as_me: error: cannot compute alignment of long long int
26571 See \`config.log
' for more details." >&2;}
26572 { (exit 77); exit 77; }; }; }
26574 ac_cv_alignof_long_long_int=0
26577 rm -rf conftest.dSYM
26578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26582 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
26583 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
26587 cat >>confdefs.h <<_ACEOF
26588 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
26593 # The cast to long int works around a bug in the HP C Compiler,
26594 # see AC_CHECK_SIZEOF for more information.
26595 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
26596 $as_echo_n "checking alignment of double... " >&6; }
26597 if test "${ac_cv_alignof_double+set}" = set; then
26598 $as_echo_n "(cached) " >&6
26600 if test "$cross_compiling" = yes; then
26601 # Depending upon the size, compute the lo and hi bounds.
26602 cat >conftest.$ac_ext <<_ACEOF
26605 cat confdefs.h >>conftest.$ac_ext
26606 cat >>conftest.$ac_ext <<_ACEOF
26607 /* end confdefs.h. */
26608 $ac_includes_default
26610 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26612 typedef struct { char x; double y; } ac__type_alignof_;
26616 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26623 rm -f conftest.$ac_objext
26624 if { (ac_try="$ac_compile"
26625 case "(($ac_try" in
26626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26627 *) ac_try_echo=$ac_try;;
26629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26630 $as_echo "$ac_try_echo") >&5
26631 (eval "$ac_compile") 2>conftest.er1
26633 grep -v '^
*+' conftest.er1 >conftest.err
26635 cat conftest.err >&5
26636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26637 (exit $ac_status); } && {
26638 test -z "$ac_c_werror_flag" ||
26639 test ! -s conftest.err
26640 } && test -s conftest.$ac_objext; then
26643 cat >conftest.$ac_ext <<_ACEOF
26646 cat confdefs.h >>conftest.$ac_ext
26647 cat >>conftest.$ac_ext <<_ACEOF
26648 /* end confdefs.h. */
26649 $ac_includes_default
26651 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26653 typedef struct { char x; double y; } ac__type_alignof_;
26657 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26664 rm -f conftest.$ac_objext
26665 if { (ac_try="$ac_compile"
26666 case "(($ac_try" in
26667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26668 *) ac_try_echo=$ac_try;;
26670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26671 $as_echo "$ac_try_echo") >&5
26672 (eval "$ac_compile") 2>conftest.er1
26674 grep -v '^
*+' conftest.er1 >conftest.err
26676 cat conftest.err >&5
26677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678 (exit $ac_status); } && {
26679 test -z "$ac_c_werror_flag" ||
26680 test ! -s conftest.err
26681 } && test -s conftest.$ac_objext; then
26682 ac_hi=$ac_mid; break
26684 $as_echo "$as_me: failed program was:" >&5
26685 sed 's
/^
/|
/' conftest.$ac_ext >&5
26687 ac_lo=`expr $ac_mid + 1`
26688 if test $ac_lo -le $ac_mid; then
26692 ac_mid=`expr 2 '*' $ac_mid + 1`
26695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26698 $as_echo "$as_me: failed program was:" >&5
26699 sed 's
/^
/|
/' conftest.$ac_ext >&5
26701 cat >conftest.$ac_ext <<_ACEOF
26704 cat confdefs.h >>conftest.$ac_ext
26705 cat >>conftest.$ac_ext <<_ACEOF
26706 /* end confdefs.h. */
26707 $ac_includes_default
26709 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26711 typedef struct { char x; double y; } ac__type_alignof_;
26715 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26722 rm -f conftest.$ac_objext
26723 if { (ac_try="$ac_compile"
26724 case "(($ac_try" in
26725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26726 *) ac_try_echo=$ac_try;;
26728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26729 $as_echo "$ac_try_echo") >&5
26730 (eval "$ac_compile") 2>conftest.er1
26732 grep -v '^
*+' conftest.er1 >conftest.err
26734 cat conftest.err >&5
26735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26736 (exit $ac_status); } && {
26737 test -z "$ac_c_werror_flag" ||
26738 test ! -s conftest.err
26739 } && test -s conftest.$ac_objext; then
26742 cat >conftest.$ac_ext <<_ACEOF
26745 cat confdefs.h >>conftest.$ac_ext
26746 cat >>conftest.$ac_ext <<_ACEOF
26747 /* end confdefs.h. */
26748 $ac_includes_default
26750 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26752 typedef struct { char x; double y; } ac__type_alignof_;
26756 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26763 rm -f conftest.$ac_objext
26764 if { (ac_try="$ac_compile"
26765 case "(($ac_try" in
26766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26767 *) ac_try_echo=$ac_try;;
26769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26770 $as_echo "$ac_try_echo") >&5
26771 (eval "$ac_compile") 2>conftest.er1
26773 grep -v '^
*+' conftest.er1 >conftest.err
26775 cat conftest.err >&5
26776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26777 (exit $ac_status); } && {
26778 test -z "$ac_c_werror_flag" ||
26779 test ! -s conftest.err
26780 } && test -s conftest.$ac_objext; then
26781 ac_lo=$ac_mid; break
26783 $as_echo "$as_me: failed program was:" >&5
26784 sed 's
/^
/|
/' conftest.$ac_ext >&5
26786 ac_hi=`expr '(' $ac_mid ')' - 1`
26787 if test $ac_mid -le $ac_hi; then
26791 ac_mid=`expr 2 '*' $ac_mid`
26794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26797 $as_echo "$as_me: failed program was:" >&5
26798 sed 's
/^
/|
/' conftest.$ac_ext >&5
26803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26807 # Binary search between lo and hi bounds.
26808 while test "x$ac_lo" != "x$ac_hi"; do
26809 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26810 cat >conftest.$ac_ext <<_ACEOF
26813 cat confdefs.h >>conftest.$ac_ext
26814 cat >>conftest.$ac_ext <<_ACEOF
26815 /* end confdefs.h. */
26816 $ac_includes_default
26818 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26820 typedef struct { char x; double y; } ac__type_alignof_;
26824 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26831 rm -f conftest.$ac_objext
26832 if { (ac_try="$ac_compile"
26833 case "(($ac_try" in
26834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26835 *) ac_try_echo=$ac_try;;
26837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26838 $as_echo "$ac_try_echo") >&5
26839 (eval "$ac_compile") 2>conftest.er1
26841 grep -v '^
*+' conftest.er1 >conftest.err
26843 cat conftest.err >&5
26844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845 (exit $ac_status); } && {
26846 test -z "$ac_c_werror_flag" ||
26847 test ! -s conftest.err
26848 } && test -s conftest.$ac_objext; then
26851 $as_echo "$as_me: failed program was:" >&5
26852 sed 's
/^
/|
/' conftest.$ac_ext >&5
26854 ac_lo=`expr '(' $ac_mid ')' + 1`
26857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26860 ?*) ac_cv_alignof_double=$ac_lo;;
26861 '') if test "$ac_cv_type_double" = yes; then
26862 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26863 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
26864 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
26865 See \`config.log
' for more details." >&5
26866 $as_echo "$as_me: error: cannot compute alignment of double
26867 See \`config.log' for more details.
" >&2;}
26868 { (exit 77); exit 77; }; }; }
26870 ac_cv_alignof_double=0
26874 cat >conftest.$ac_ext <<_ACEOF
26877 cat confdefs.h >>conftest.$ac_ext
26878 cat >>conftest.$ac_ext <<_ACEOF
26879 /* end confdefs.h. */
26880 $ac_includes_default
26882 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26884 typedef struct { char x; double y; } ac__type_alignof_;
26885 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26886 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26888 #include <stdlib.h>
26893 FILE *f = fopen ("conftest.val
", "w
");
26896 if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26898 long int i = longval ();
26899 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26901 fprintf (f, "%ld
", i);
26905 unsigned long int i = ulongval ();
26906 if (i != ((long int) offsetof (ac__type_alignof_, y)))
26908 fprintf (f, "%lu
", i);
26910 /* Do not output a trailing newline, as this causes \r\n confusion
26911 on some platforms. */
26912 return ferror (f) || fclose (f) != 0;
26918 rm -f conftest$ac_exeext
26919 if { (ac_try="$ac_link"
26920 case "(($ac_try" in
26921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26922 *) ac_try_echo=$ac_try;;
26924 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26925 $as_echo "$ac_try_echo") >&5
26926 (eval "$ac_link") 2>&5
26928 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26930 { (case "(($ac_try" in
26931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26932 *) ac_try_echo=$ac_try;;
26934 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
26935 $as_echo "$ac_try_echo") >&5
26936 (eval "$ac_try") 2>&5
26938 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
26939 (exit $ac_status); }; }; then
26940 ac_cv_alignof_double=`cat conftest.val`
26942 $as_echo "$as_me: program exited with status
$ac_status" >&5
26943 $as_echo "$as_me: failed program was
:" >&5
26944 sed 's/^/| /' conftest.$ac_ext >&5
26946 ( exit $ac_status )
26947 if test "$ac_cv_type_double" = yes; then
26948 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
26949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26950 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
26951 See \`config.log' for more details.
" >&5
26952 $as_echo "$as_me: error
: cannot compute alignment of double
26953 See \
`config.log' for more details." >&2;}
26954 { (exit 77); exit 77; }; }; }
26956 ac_cv_alignof_double=0
26959 rm -rf conftest.dSYM
26960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26964 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
26965 $as_echo "$ac_cv_alignof_double" >&6; }
26969 cat >>confdefs.h <<_ACEOF
26970 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
26975 # Compute maximum alignment of any basic type.
26976 # We assume long's alignment is at least as strong as char, short, or int;
26977 # but we must check long long (if it exists) and double.
26979 MAX_ALIGNOF=$ac_cv_alignof_long
26980 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
26981 MAX_ALIGNOF=$ac_cv_alignof_double
26983 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
26984 MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
26987 cat >>confdefs.h <<_ACEOF
26988 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
26993 # Some platforms predefine the types int8, int16, etc. Only check
26994 # a (hopefully) representative subset.
26995 { $as_echo "$as_me:$LINENO: checking for int8" >&5
26996 $as_echo_n "checking for int8... " >&6; }
26997 if test "${ac_cv_type_int8+set}" = set; then
26998 $as_echo_n "(cached) " >&6
27001 cat >conftest.$ac_ext <<_ACEOF
27004 cat confdefs.h >>conftest.$ac_ext
27005 cat >>conftest.$ac_ext <<_ACEOF
27006 /* end confdefs.h. */
27008 #ifdef HAVE_SUPPORTDEFS_H
27009 #include <SupportDefs.h>
27021 rm -f conftest.$ac_objext
27022 if { (ac_try="$ac_compile"
27023 case "(($ac_try" in
27024 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27025 *) ac_try_echo
=$ac_try;;
27027 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27028 $as_echo "$ac_try_echo") >&5
27029 (eval "$ac_compile") 2>conftest.er1
27031 grep -v '^ *+' conftest.er1
>conftest.err
27033 cat conftest.err
>&5
27034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035 (exit $ac_status); } && {
27036 test -z "$ac_c_werror_flag" ||
27037 test ! -s conftest.err
27038 } && test -s conftest.
$ac_objext; then
27039 cat >conftest.
$ac_ext <<_ACEOF
27042 cat confdefs.h
>>conftest.
$ac_ext
27043 cat >>conftest.
$ac_ext <<_ACEOF
27044 /* end confdefs.h. */
27046 #ifdef HAVE_SUPPORTDEFS_H
27047 #include <SupportDefs.h>
27053 if (sizeof ((int8)))
27059 rm -f conftest.
$ac_objext
27060 if { (ac_try
="$ac_compile"
27061 case "(($ac_try" in
27062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27063 *) ac_try_echo=$ac_try;;
27065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27066 $as_echo "$ac_try_echo") >&5
27067 (eval "$ac_compile") 2>conftest.er1
27069 grep -v '^ *+' conftest.er1 >conftest.err
27071 cat conftest.err >&5
27072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27073 (exit $ac_status); } && {
27074 test -z "$ac_c_werror_flag" ||
27075 test ! -s conftest.err
27076 } && test -s conftest.$ac_objext; then
27079 $as_echo "$as_me: failed program was:" >&5
27080 sed 's/^/| /' conftest.$ac_ext >&5
27082 ac_cv_type_int8=yes
27085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27087 $as_echo "$as_me: failed program was:" >&5
27088 sed 's/^/| /' conftest.$ac_ext >&5
27093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27095 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
27096 $as_echo "$ac_cv_type_int8" >&6; }
27097 if test "x$ac_cv_type_int8" = x""yes; then
27099 cat >>confdefs.h <<_ACEOF
27100 #define HAVE_INT8 1
27105 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
27106 $as_echo_n "checking for uint8... " >&6; }
27107 if test "${ac_cv_type_uint8+set}" = set; then
27108 $as_echo_n "(cached) " >&6
27110 ac_cv_type_uint8=no
27111 cat >conftest.$ac_ext <<_ACEOF
27114 cat confdefs.h >>conftest.$ac_ext
27115 cat >>conftest.$ac_ext <<_ACEOF
27116 /* end confdefs.h. */
27118 #ifdef HAVE_SUPPORTDEFS_H
27119 #include <SupportDefs.h>
27125 if (sizeof (uint8))
27131 rm -f conftest.$ac_objext
27132 if { (ac_try="$ac_compile"
27133 case "(($ac_try" in
27134 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27135 *) ac_try_echo
=$ac_try;;
27137 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27138 $as_echo "$ac_try_echo") >&5
27139 (eval "$ac_compile") 2>conftest.er1
27141 grep -v '^ *+' conftest.er1
>conftest.err
27143 cat conftest.err
>&5
27144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145 (exit $ac_status); } && {
27146 test -z "$ac_c_werror_flag" ||
27147 test ! -s conftest.err
27148 } && test -s conftest.
$ac_objext; then
27149 cat >conftest.
$ac_ext <<_ACEOF
27152 cat confdefs.h
>>conftest.
$ac_ext
27153 cat >>conftest.
$ac_ext <<_ACEOF
27154 /* end confdefs.h. */
27156 #ifdef HAVE_SUPPORTDEFS_H
27157 #include <SupportDefs.h>
27163 if (sizeof ((uint8)))
27169 rm -f conftest.
$ac_objext
27170 if { (ac_try
="$ac_compile"
27171 case "(($ac_try" in
27172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27173 *) ac_try_echo=$ac_try;;
27175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27176 $as_echo "$ac_try_echo") >&5
27177 (eval "$ac_compile") 2>conftest.er1
27179 grep -v '^ *+' conftest.er1 >conftest.err
27181 cat conftest.err >&5
27182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183 (exit $ac_status); } && {
27184 test -z "$ac_c_werror_flag" ||
27185 test ! -s conftest.err
27186 } && test -s conftest.$ac_objext; then
27189 $as_echo "$as_me: failed program was:" >&5
27190 sed 's/^/| /' conftest.$ac_ext >&5
27192 ac_cv_type_uint8=yes
27195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27197 $as_echo "$as_me: failed program was:" >&5
27198 sed 's/^/| /' conftest.$ac_ext >&5
27203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27205 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
27206 $as_echo "$ac_cv_type_uint8" >&6; }
27207 if test "x$ac_cv_type_uint8" = x""yes; then
27209 cat >>confdefs.h <<_ACEOF
27210 #define HAVE_UINT8 1
27215 { $as_echo "$as_me:$LINENO: checking for int64" >&5
27216 $as_echo_n "checking for int64... " >&6; }
27217 if test "${ac_cv_type_int64+set}" = set; then
27218 $as_echo_n "(cached) " >&6
27220 ac_cv_type_int64=no
27221 cat >conftest.$ac_ext <<_ACEOF
27224 cat confdefs.h >>conftest.$ac_ext
27225 cat >>conftest.$ac_ext <<_ACEOF
27226 /* end confdefs.h. */
27228 #ifdef HAVE_SUPPORTDEFS_H
27229 #include <SupportDefs.h>
27235 if (sizeof (int64))
27241 rm -f conftest.$ac_objext
27242 if { (ac_try="$ac_compile"
27243 case "(($ac_try" in
27244 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27245 *) ac_try_echo
=$ac_try;;
27247 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27248 $as_echo "$ac_try_echo") >&5
27249 (eval "$ac_compile") 2>conftest.er1
27251 grep -v '^ *+' conftest.er1
>conftest.err
27253 cat conftest.err
>&5
27254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255 (exit $ac_status); } && {
27256 test -z "$ac_c_werror_flag" ||
27257 test ! -s conftest.err
27258 } && test -s conftest.
$ac_objext; then
27259 cat >conftest.
$ac_ext <<_ACEOF
27262 cat confdefs.h
>>conftest.
$ac_ext
27263 cat >>conftest.
$ac_ext <<_ACEOF
27264 /* end confdefs.h. */
27266 #ifdef HAVE_SUPPORTDEFS_H
27267 #include <SupportDefs.h>
27273 if (sizeof ((int64)))
27279 rm -f conftest.
$ac_objext
27280 if { (ac_try
="$ac_compile"
27281 case "(($ac_try" in
27282 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27283 *) ac_try_echo=$ac_try;;
27285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27286 $as_echo "$ac_try_echo") >&5
27287 (eval "$ac_compile") 2>conftest.er1
27289 grep -v '^ *+' conftest.er1 >conftest.err
27291 cat conftest.err >&5
27292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293 (exit $ac_status); } && {
27294 test -z "$ac_c_werror_flag" ||
27295 test ! -s conftest.err
27296 } && test -s conftest.$ac_objext; then
27299 $as_echo "$as_me: failed program was:" >&5
27300 sed 's/^/| /' conftest.$ac_ext >&5
27302 ac_cv_type_int64=yes
27305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27307 $as_echo "$as_me: failed program was:" >&5
27308 sed 's/^/| /' conftest.$ac_ext >&5
27313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27315 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
27316 $as_echo "$ac_cv_type_int64" >&6; }
27317 if test "x$ac_cv_type_int64" = x""yes; then
27319 cat >>confdefs.h <<_ACEOF
27320 #define HAVE_INT64 1
27325 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
27326 $as_echo_n "checking for uint64... " >&6; }
27327 if test "${ac_cv_type_uint64+set}" = set; then
27328 $as_echo_n "(cached) " >&6
27330 ac_cv_type_uint64=no
27331 cat >conftest.$ac_ext <<_ACEOF
27334 cat confdefs.h >>conftest.$ac_ext
27335 cat >>conftest.$ac_ext <<_ACEOF
27336 /* end confdefs.h. */
27338 #ifdef HAVE_SUPPORTDEFS_H
27339 #include <SupportDefs.h>
27345 if (sizeof (uint64))
27351 rm -f conftest.$ac_objext
27352 if { (ac_try="$ac_compile"
27353 case "(($ac_try" in
27354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27355 *) ac_try_echo
=$ac_try;;
27357 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27358 $as_echo "$ac_try_echo") >&5
27359 (eval "$ac_compile") 2>conftest.er1
27361 grep -v '^ *+' conftest.er1
>conftest.err
27363 cat conftest.err
>&5
27364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365 (exit $ac_status); } && {
27366 test -z "$ac_c_werror_flag" ||
27367 test ! -s conftest.err
27368 } && test -s conftest.
$ac_objext; then
27369 cat >conftest.
$ac_ext <<_ACEOF
27372 cat confdefs.h
>>conftest.
$ac_ext
27373 cat >>conftest.
$ac_ext <<_ACEOF
27374 /* end confdefs.h. */
27376 #ifdef HAVE_SUPPORTDEFS_H
27377 #include <SupportDefs.h>
27383 if (sizeof ((uint64)))
27389 rm -f conftest.
$ac_objext
27390 if { (ac_try
="$ac_compile"
27391 case "(($ac_try" in
27392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27393 *) ac_try_echo=$ac_try;;
27395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27396 $as_echo "$ac_try_echo") >&5
27397 (eval "$ac_compile") 2>conftest.er1
27399 grep -v '^ *+' conftest.er1 >conftest.err
27401 cat conftest.err >&5
27402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403 (exit $ac_status); } && {
27404 test -z "$ac_c_werror_flag" ||
27405 test ! -s conftest.err
27406 } && test -s conftest.$ac_objext; then
27409 $as_echo "$as_me: failed program was:" >&5
27410 sed 's/^/| /' conftest.$ac_ext >&5
27412 ac_cv_type_uint64=yes
27415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27417 $as_echo "$as_me: failed program was:" >&5
27418 sed 's/^/| /' conftest.$ac_ext >&5
27423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27425 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
27426 $as_echo "$ac_cv_type_uint64" >&6; }
27427 if test "x$ac_cv_type_uint64" = x""yes; then
27429 cat >>confdefs.h <<_ACEOF
27430 #define HAVE_UINT64 1
27437 # We also check for sig_atomic_t, which *should* be defined per ANSI
27438 # C, but is missing on some old platforms.
27439 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
27440 $as_echo_n "checking for sig_atomic_t... " >&6; }
27441 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
27442 $as_echo_n "(cached) " >&6
27444 ac_cv_type_sig_atomic_t=no
27445 cat >conftest.$ac_ext <<_ACEOF
27448 cat confdefs.h >>conftest.$ac_ext
27449 cat >>conftest.$ac_ext <<_ACEOF
27450 /* end confdefs.h. */
27451 #include <signal.h>
27456 if (sizeof (sig_atomic_t))
27462 rm -f conftest.$ac_objext
27463 if { (ac_try="$ac_compile"
27464 case "(($ac_try" in
27465 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27466 *) ac_try_echo
=$ac_try;;
27468 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27469 $as_echo "$ac_try_echo") >&5
27470 (eval "$ac_compile") 2>conftest.er1
27472 grep -v '^ *+' conftest.er1
>conftest.err
27474 cat conftest.err
>&5
27475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27476 (exit $ac_status); } && {
27477 test -z "$ac_c_werror_flag" ||
27478 test ! -s conftest.err
27479 } && test -s conftest.
$ac_objext; then
27480 cat >conftest.
$ac_ext <<_ACEOF
27483 cat confdefs.h
>>conftest.
$ac_ext
27484 cat >>conftest.
$ac_ext <<_ACEOF
27485 /* end confdefs.h. */
27486 #include <signal.h>
27491 if (sizeof ((sig_atomic_t)))
27497 rm -f conftest.
$ac_objext
27498 if { (ac_try
="$ac_compile"
27499 case "(($ac_try" in
27500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27501 *) ac_try_echo=$ac_try;;
27503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27504 $as_echo "$ac_try_echo") >&5
27505 (eval "$ac_compile") 2>conftest.er1
27507 grep -v '^ *+' conftest.er1 >conftest.err
27509 cat conftest.err >&5
27510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511 (exit $ac_status); } && {
27512 test -z "$ac_c_werror_flag" ||
27513 test ! -s conftest.err
27514 } && test -s conftest.$ac_objext; then
27517 $as_echo "$as_me: failed program was:" >&5
27518 sed 's/^/| /' conftest.$ac_ext >&5
27520 ac_cv_type_sig_atomic_t=yes
27523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27525 $as_echo "$as_me: failed program was:" >&5
27526 sed 's/^/| /' conftest.$ac_ext >&5
27531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27533 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
27534 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
27535 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
27537 cat >>confdefs.h <<_ACEOF
27538 #define HAVE_SIG_ATOMIC_T 1
27546 if test "$PORTNAME" != "win32"
27548 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
27549 $as_echo_n "checking for POSIX signal interface... " >&6; }
27550 if test "${pgac_cv_func_posix_signals+set}" = set; then
27551 $as_echo_n "(cached) " >&6
27553 cat >conftest.$ac_ext <<_ACEOF
27556 cat confdefs.h >>conftest.$ac_ext
27557 cat >>conftest.$ac_ext <<_ACEOF
27558 /* end confdefs.h. */
27559 #include <signal.h>
27564 struct sigaction act, oact;
27565 sigemptyset(&act.sa_mask);
27566 act.sa_flags = SA_RESTART;
27567 sigaction(0, &act, &oact);
27572 rm -f conftest.$ac_objext conftest$ac_exeext
27573 if { (ac_try="$ac_link"
27574 case "(($ac_try" in
27575 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27576 *) ac_try_echo
=$ac_try;;
27578 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27579 $as_echo "$ac_try_echo") >&5
27580 (eval "$ac_link") 2>conftest.er1
27582 grep -v '^ *+' conftest.er1
>conftest.err
27584 cat conftest.err
>&5
27585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586 (exit $ac_status); } && {
27587 test -z "$ac_c_werror_flag" ||
27588 test ! -s conftest.err
27589 } && test -s conftest
$ac_exeext && {
27590 test "$cross_compiling" = yes ||
27591 $as_test_x conftest
$ac_exeext
27593 pgac_cv_func_posix_signals
=yes
27595 $as_echo "$as_me: failed program was:" >&5
27596 sed 's/^/| /' conftest.
$ac_ext >&5
27598 pgac_cv_func_posix_signals
=no
27601 rm -rf conftest.dSYM
27602 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
27603 conftest
$ac_exeext conftest.
$ac_ext
27605 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
27606 $as_echo "$pgac_cv_func_posix_signals" >&6; }
27607 if test x
"$pgac_cv_func_posix_signals" = xyes
; then
27609 cat >>confdefs.h
<<\_ACEOF
27610 #define HAVE_POSIX_SIGNALS /**/
27614 HAVE_POSIX_SIGNALS
=$pgac_cv_func_posix_signals
27616 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
27617 { { $as_echo "$as_me:$LINENO: error:
27618 Thread-safety requires POSIX signals, which are not supported by this
27619 operating system; use --disable-thread-safety to disable thread safety." >&5
27620 $as_echo "$as_me: error:
27621 Thread-safety requires POSIX signals, which are not supported by this
27622 operating system; use --disable-thread-safety to disable thread safety." >&2;}
27623 { (exit 1); exit 1; }; }
27627 # SunOS doesn't handle negative byte comparisons properly with +/- return
27628 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
27629 $as_echo_n "checking for working memcmp... " >&6; }
27630 if test "${ac_cv_func_memcmp_working+set}" = set; then
27631 $as_echo_n "(cached) " >&6
27633 if test "$cross_compiling" = yes; then
27634 ac_cv_func_memcmp_working
=no
27636 cat >conftest.
$ac_ext <<_ACEOF
27639 cat confdefs.h
>>conftest.
$ac_ext
27640 cat >>conftest.
$ac_ext <<_ACEOF
27641 /* end confdefs.h. */
27642 $ac_includes_default
27647 /* Some versions of memcmp are not 8-bit clean. */
27648 char c0 = '\100', c1 = '\200', c2 = '\201';
27649 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27652 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27653 or more and with at least one buffer not starting on a 4-byte boundary.
27654 William Lewis provided this test program. */
27659 for (i = 0; i < 4; i++)
27663 strcpy (a, "--------01111111");
27664 strcpy (b, "--------10000000");
27665 if (memcmp (a, b, 16) >= 0)
27675 rm -f conftest
$ac_exeext
27676 if { (ac_try
="$ac_link"
27677 case "(($ac_try" in
27678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27679 *) ac_try_echo=$ac_try;;
27681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27682 $as_echo "$ac_try_echo") >&5
27683 (eval "$ac_link") 2>&5
27685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27687 { (case "(($ac_try" in
27688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27689 *) ac_try_echo
=$ac_try;;
27691 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27692 $as_echo "$ac_try_echo") >&5
27693 (eval "$ac_try") 2>&5
27695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696 (exit $ac_status); }; }; then
27697 ac_cv_func_memcmp_working
=yes
27699 $as_echo "$as_me: program exited with status $ac_status" >&5
27700 $as_echo "$as_me: failed program was:" >&5
27701 sed 's/^/| /' conftest.
$ac_ext >&5
27703 ( exit $ac_status )
27704 ac_cv_func_memcmp_working
=no
27706 rm -rf conftest.dSYM
27707 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27712 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
27713 $as_echo "$ac_cv_func_memcmp_working" >&6; }
27714 test $ac_cv_func_memcmp_working = no
&& case " $LIBOBJS " in
27715 *" memcmp.$ac_objext "* ) ;;
27716 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
27723 # Select semaphore implementation type.
27724 if test "$PORTNAME" != "win32"; then
27725 if test x
"$USE_NAMED_POSIX_SEMAPHORES" = x
"1" ; then
27727 cat >>confdefs.h
<<\_ACEOF
27728 #define USE_NAMED_POSIX_SEMAPHORES 1
27731 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
27733 if test x
"$USE_UNNAMED_POSIX_SEMAPHORES" = x
"1" ; then
27735 cat >>confdefs.h
<<\_ACEOF
27736 #define USE_UNNAMED_POSIX_SEMAPHORES 1
27739 SEMA_IMPLEMENTATION
="src/backend/port/posix_sema.c"
27742 cat >>confdefs.h
<<\_ACEOF
27743 #define USE_SYSV_SEMAPHORES 1
27746 SEMA_IMPLEMENTATION
="src/backend/port/sysv_sema.c"
27751 cat >>confdefs.h
<<\_ACEOF
27752 #define USE_WIN32_SEMAPHORES 1
27755 SEMA_IMPLEMENTATION
="src/backend/port/win32_sema.c"
27759 # Select shared-memory implementation type.
27760 if test "$PORTNAME" != "win32"; then
27762 cat >>confdefs.h
<<\_ACEOF
27763 #define USE_SYSV_SHARED_MEMORY 1
27766 SHMEM_IMPLEMENTATION
="src/backend/port/sysv_shmem.c"
27769 cat >>confdefs.h
<<\_ACEOF
27770 #define USE_WIN32_SHARED_MEMORY 1
27773 SHMEM_IMPLEMENTATION
="src/backend/port/win32_shmem.c"
27776 # Select latch implementation type.
27777 if test "$PORTNAME" != "win32"; then
27778 LATCH_IMPLEMENTATION
="src/backend/port/unix_latch.c"
27780 LATCH_IMPLEMENTATION
="src/backend/port/win32_latch.c"
27783 # If not set in template file, set bytes to use libc memset()
27784 if test x
"$MEMSET_LOOP_LIMIT" = x
"" ; then
27785 MEMSET_LOOP_LIMIT
=1024
27788 cat >>confdefs.h
<<_ACEOF
27789 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
27794 if test "$enable_nls" = yes ; then
27796 { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
27797 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
27798 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27799 $as_echo_n "(cached) " >&6
27801 ac_func_search_save_LIBS
=$LIBS
27802 cat >conftest.
$ac_ext <<_ACEOF
27805 cat confdefs.h
>>conftest.
$ac_ext
27806 cat >>conftest.
$ac_ext <<_ACEOF
27807 /* end confdefs.h. */
27809 /* Override any GCC internal prototype to avoid an error.
27810 Use char because int might match the return type of a GCC
27811 builtin and then its argument prototype would still apply. */
27815 char bind_textdomain_codeset ();
27819 return bind_textdomain_codeset ();
27824 for ac_lib
in '' intl
; do
27825 if test -z "$ac_lib"; then
27826 ac_res
="none required"
27829 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27831 rm -f conftest.
$ac_objext conftest
$ac_exeext
27832 if { (ac_try
="$ac_link"
27833 case "(($ac_try" in
27834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27835 *) ac_try_echo=$ac_try;;
27837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27838 $as_echo "$ac_try_echo") >&5
27839 (eval "$ac_link") 2>conftest.er1
27841 grep -v '^ *+' conftest.er1 >conftest.err
27843 cat conftest.err >&5
27844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27845 (exit $ac_status); } && {
27846 test -z "$ac_c_werror_flag" ||
27847 test ! -s conftest.err
27848 } && test -s conftest$ac_exeext && {
27849 test "$cross_compiling" = yes ||
27850 $as_test_x conftest$ac_exeext
27852 ac_cv_search_bind_textdomain_codeset=$ac_res
27854 $as_echo "$as_me: failed program was:" >&5
27855 sed 's/^/| /' conftest.$ac_ext >&5
27860 rm -rf conftest.dSYM
27861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27863 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27867 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
27870 ac_cv_search_bind_textdomain_codeset=no
27872 rm conftest.$ac_ext
27873 LIBS=$ac_func_search_save_LIBS
27875 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
27876 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
27877 ac_res=$ac_cv_search_bind_textdomain_codeset
27878 if test "$ac_res" != no; then
27879 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27882 { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
27883 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
27884 { (exit 1); exit 1; }; }
27887 if test "${ac_cv_header_libintl_h+set}" = set; then
27888 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
27889 $as_echo_n "checking for libintl.h... " >&6; }
27890 if test "${ac_cv_header_libintl_h+set}" = set; then
27891 $as_echo_n "(cached) " >&6
27893 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
27894 $as_echo "$ac_cv_header_libintl_h" >&6; }
27896 # Is the header compilable?
27897 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
27898 $as_echo_n "checking libintl.h usability... " >&6; }
27899 cat >conftest.$ac_ext <<_ACEOF
27902 cat confdefs.h >>conftest.$ac_ext
27903 cat >>conftest.$ac_ext <<_ACEOF
27904 /* end confdefs.h. */
27905 $ac_includes_default
27906 #include <libintl.h>
27908 rm -f conftest.$ac_objext
27909 if { (ac_try="$ac_compile"
27910 case "(($ac_try" in
27911 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27912 *) ac_try_echo
=$ac_try;;
27914 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
27915 $as_echo "$ac_try_echo") >&5
27916 (eval "$ac_compile") 2>conftest.er1
27918 grep -v '^ *+' conftest.er1
>conftest.err
27920 cat conftest.err
>&5
27921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922 (exit $ac_status); } && {
27923 test -z "$ac_c_werror_flag" ||
27924 test ! -s conftest.err
27925 } && test -s conftest.
$ac_objext; then
27926 ac_header_compiler
=yes
27928 $as_echo "$as_me: failed program was:" >&5
27929 sed 's/^/| /' conftest.
$ac_ext >&5
27931 ac_header_compiler
=no
27934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27935 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27936 $as_echo "$ac_header_compiler" >&6; }
27938 # Is the header present?
27939 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
27940 $as_echo_n "checking libintl.h presence... " >&6; }
27941 cat >conftest.
$ac_ext <<_ACEOF
27944 cat confdefs.h
>>conftest.
$ac_ext
27945 cat >>conftest.
$ac_ext <<_ACEOF
27946 /* end confdefs.h. */
27947 #include <libintl.h>
27949 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27950 case "(($ac_try" in
27951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27952 *) ac_try_echo=$ac_try;;
27954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27955 $as_echo "$ac_try_echo") >&5
27956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27958 grep -v '^ *+' conftest.er1 >conftest.err
27960 cat conftest.err >&5
27961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962 (exit $ac_status); } >/dev/null && {
27963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27964 test ! -s conftest.err
27966 ac_header_preproc=yes
27968 $as_echo "$as_me: failed program was:" >&5
27969 sed 's/^/| /' conftest.$ac_ext >&5
27971 ac_header_preproc=no
27974 rm -f conftest.err conftest.$ac_ext
27975 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27976 $as_echo "$ac_header_preproc" >&6; }
27978 # So? What about this header?
27979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27981 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27982 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27983 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
27984 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
27985 ac_header_preproc=yes
27988 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
27989 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
27990 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
27991 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
27992 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
27993 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
27994 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
27995 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
27996 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
27997 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
27998 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
27999 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
28001 ## ---------------------------------------- ##
28002 ## Report this to pgsql-bugs@postgresql.org ##
28003 ## ---------------------------------------- ##
28005 ) | sed "s/^/$as_me: WARNING: /" >&2
28008 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
28009 $as_echo_n "checking for libintl.h... " >&6; }
28010 if test "${ac_cv_header_libintl_h+set}" = set; then
28011 $as_echo_n "(cached) " >&6
28013 ac_cv_header_libintl_h=$ac_header_preproc
28015 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
28016 $as_echo "$ac_cv_header_libintl_h" >&6; }
28019 if test "x$ac_cv_header_libintl_h" = x""yes; then
28022 { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
28023 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
28024 { (exit 1); exit 1; }; }
28028 for ac_prog in msgfmt
28030 # Extract the first word of "$ac_prog", so it can be a program name with args.
28031 set dummy $ac_prog; ac_word=$2
28032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28033 $as_echo_n "checking for $ac_word... " >&6; }
28034 if test "${ac_cv_prog_MSGFMT+set}" = set; then
28035 $as_echo_n "(cached) " >&6
28037 if test -n "$MSGFMT"; then
28038 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
28040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28041 for as_dir in $PATH
28044 test -z "$as_dir" && as_dir=.
28045 for ac_exec_ext in '' $ac_executable_extensions; do
28046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28047 ac_cv_prog_MSGFMT="$ac_prog"
28048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28057 MSGFMT=$ac_cv_prog_MSGFMT
28058 if test -n "$MSGFMT"; then
28059 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
28060 $as_echo "$MSGFMT" >&6; }
28062 { $as_echo "$as_me:$LINENO: result: no" >&5
28063 $as_echo "no" >&6; }
28067 test -n "$MSGFMT" && break
28070 if test -z "$MSGFMT"; then
28071 { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
28072 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
28073 { (exit 1); exit 1; }; }
28075 for ac_prog in msgmerge
28077 # Extract the first word of "$ac_prog", so it can be a program name with args.
28078 set dummy $ac_prog; ac_word=$2
28079 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28080 $as_echo_n "checking for $ac_word... " >&6; }
28081 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
28082 $as_echo_n "(cached) " >&6
28084 if test -n "$MSGMERGE"; then
28085 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
28087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28088 for as_dir in $PATH
28091 test -z "$as_dir" && as_dir=.
28092 for ac_exec_ext in '' $ac_executable_extensions; do
28093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28094 ac_cv_prog_MSGMERGE="$ac_prog"
28095 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28104 MSGMERGE=$ac_cv_prog_MSGMERGE
28105 if test -n "$MSGMERGE"; then
28106 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
28107 $as_echo "$MSGMERGE" >&6; }
28109 { $as_echo "$as_me:$LINENO: result: no" >&5
28110 $as_echo "no" >&6; }
28114 test -n "$MSGMERGE" && break
28117 for ac_prog in xgettext
28119 # Extract the first word of "$ac_prog", so it can be a program name with args.
28120 set dummy $ac_prog; ac_word=$2
28121 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28122 $as_echo_n "checking for $ac_word... " >&6; }
28123 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
28124 $as_echo_n "(cached) " >&6
28126 if test -n "$XGETTEXT"; then
28127 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
28129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28130 for as_dir in $PATH
28133 test -z "$as_dir" && as_dir=.
28134 for ac_exec_ext in '' $ac_executable_extensions; do
28135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28136 ac_cv_prog_XGETTEXT="$ac_prog"
28137 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28146 XGETTEXT=$ac_cv_prog_XGETTEXT
28147 if test -n "$XGETTEXT"; then
28148 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
28149 $as_echo "$XGETTEXT" >&6; }
28151 { $as_echo "$as_me:$LINENO: result: no" >&5
28152 $as_echo "no" >&6; }
28156 test -n "$XGETTEXT" && break
28162 # Check for Tcl configuration script tclConfig.sh
28163 if test "$with_tcl" = yes; then
28164 for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
28166 # Extract the first word of "$ac_prog", so it can be a program name with args.
28167 set dummy $ac_prog; ac_word=$2
28168 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28169 $as_echo_n "checking for $ac_word... " >&6; }
28170 if test "${ac_cv_path_TCLSH+set}" = set; then
28171 $as_echo_n "(cached) " >&6
28175 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
28178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28179 for as_dir in $PATH
28182 test -z "$as_dir" && as_dir=.
28183 for ac_exec_ext in '' $ac_executable_extensions; do
28184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28185 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
28186 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28196 TCLSH=$ac_cv_path_TCLSH
28197 if test -n "$TCLSH"; then
28198 { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
28199 $as_echo "$TCLSH" >&6; }
28201 { $as_echo "$as_me:$LINENO: result: no" >&5
28202 $as_echo "no" >&6; }
28206 test -n "$TCLSH" && break
28209 if test x"$TCLSH" = x""; then
28210 { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
28211 $as_echo "$as_me: error: Tcl shell not found" >&2;}
28212 { (exit 1); exit 1; }; }
28215 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
28216 $as_echo_n "checking for tclConfig.sh... " >&6; }
28217 # Let user override test
28218 if test -z "$TCL_CONFIG_SH"; then
28219 pgac_test_dirs="$with_tclconfig"
28221 set X $pgac_test_dirs; shift
28222 if test $# -eq 0; then
28223 test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
28224 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
28225 { (exit 1); exit 1; }; }
28226 set X `echo 'puts $auto_path' |
$TCLSH`; shift
28230 if test -r "$pgac_dir/tclConfig.sh"; then
28231 TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
28237 if test -z "$TCL_CONFIG_SH"; then
28238 { $as_echo "$as_me:$LINENO: result: no" >&5
28239 $as_echo "no" >&6; }
28240 { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
28241 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
28242 { (exit 1); exit 1; }; }
28244 { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
28245 $as_echo "$TCL_CONFIG_SH" >&6; }
28251 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
28252 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
28253 eval TCL_LIBS=\"$TCL_LIBS\"
28254 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
28255 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
28257 # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
28258 ac_save_CPPFLAGS=$CPPFLAGS
28259 CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
28260 if test "${ac_cv_header_tcl_h+set}" = set; then
28261 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28262 $as_echo_n "checking for tcl.h... " >&6; }
28263 if test "${ac_cv_header_tcl_h+set}" = set; then
28264 $as_echo_n "(cached) " >&6
28266 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28267 $as_echo "$ac_cv_header_tcl_h" >&6; }
28269 # Is the header compilable?
28270 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
28271 $as_echo_n "checking tcl.h usability... " >&6; }
28272 cat >conftest.$ac_ext <<_ACEOF
28275 cat confdefs.h >>conftest.$ac_ext
28276 cat >>conftest.$ac_ext <<_ACEOF
28277 /* end confdefs.h. */
28278 $ac_includes_default
28281 rm -f conftest.$ac_objext
28282 if { (ac_try="$ac_compile"
28283 case "(($ac_try" in
28284 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28285 *) ac_try_echo
=$ac_try;;
28287 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28288 $as_echo "$ac_try_echo") >&5
28289 (eval "$ac_compile") 2>conftest.er1
28291 grep -v '^ *+' conftest.er1
>conftest.err
28293 cat conftest.err
>&5
28294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28295 (exit $ac_status); } && {
28296 test -z "$ac_c_werror_flag" ||
28297 test ! -s conftest.err
28298 } && test -s conftest.
$ac_objext; then
28299 ac_header_compiler
=yes
28301 $as_echo "$as_me: failed program was:" >&5
28302 sed 's/^/| /' conftest.
$ac_ext >&5
28304 ac_header_compiler
=no
28307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28308 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28309 $as_echo "$ac_header_compiler" >&6; }
28311 # Is the header present?
28312 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
28313 $as_echo_n "checking tcl.h presence... " >&6; }
28314 cat >conftest.
$ac_ext <<_ACEOF
28317 cat confdefs.h
>>conftest.
$ac_ext
28318 cat >>conftest.
$ac_ext <<_ACEOF
28319 /* end confdefs.h. */
28322 if { (ac_try
="$ac_cpp conftest.$ac_ext"
28323 case "(($ac_try" in
28324 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28325 *) ac_try_echo=$ac_try;;
28327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28328 $as_echo "$ac_try_echo") >&5
28329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28331 grep -v '^ *+' conftest.er1 >conftest.err
28333 cat conftest.err >&5
28334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335 (exit $ac_status); } >/dev/null && {
28336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28337 test ! -s conftest.err
28339 ac_header_preproc=yes
28341 $as_echo "$as_me: failed program was:" >&5
28342 sed 's/^/| /' conftest.$ac_ext >&5
28344 ac_header_preproc=no
28347 rm -f conftest.err conftest.$ac_ext
28348 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28349 $as_echo "$ac_header_preproc" >&6; }
28351 # So? What about this header?
28352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28354 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28355 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28356 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
28357 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
28358 ac_header_preproc=yes
28361 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
28362 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
28363 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: check for missing prerequisite headers?" >&5
28364 $as_echo "$as_me: WARNING: tcl.h: check for missing prerequisite headers?" >&2;}
28365 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
28366 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
28367 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&5
28368 $as_echo "$as_me: WARNING: tcl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28369 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
28370 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
28371 { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
28372 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
28374 ## ---------------------------------------- ##
28375 ## Report this to pgsql-bugs@postgresql.org ##
28376 ## ---------------------------------------- ##
28378 ) | sed "s/^/$as_me: WARNING: /" >&2
28381 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
28382 $as_echo_n "checking for tcl.h... " >&6; }
28383 if test "${ac_cv_header_tcl_h+set}" = set; then
28384 $as_echo_n "(cached) " >&6
28386 ac_cv_header_tcl_h=$ac_header_preproc
28388 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
28389 $as_echo "$ac_cv_header_tcl_h" >&6; }
28392 if test "x$ac_cv_header_tcl_h" = x""yes; then
28395 { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
28396 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
28397 { (exit 1); exit 1; }; }
28401 CPPFLAGS=$ac_save_CPPFLAGS
28405 # Check for DocBook and tools
28407 for ac_prog in onsgmls nsgmls
28409 # Extract the first word of "$ac_prog", so it can be a program name with args.
28410 set dummy $ac_prog; ac_word=$2
28411 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28412 $as_echo_n "checking for $ac_word... " >&6; }
28413 if test "${ac_cv_prog_NSGMLS+set}" = set; then
28414 $as_echo_n "(cached) " >&6
28416 if test -n "$NSGMLS"; then
28417 ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
28419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28420 for as_dir in $PATH
28423 test -z "$as_dir" && as_dir=.
28424 for ac_exec_ext in '' $ac_executable_extensions; do
28425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28426 ac_cv_prog_NSGMLS="$ac_prog"
28427 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28436 NSGMLS=$ac_cv_prog_NSGMLS
28437 if test -n "$NSGMLS"; then
28438 { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
28439 $as_echo "$NSGMLS" >&6; }
28441 { $as_echo "$as_me:$LINENO: result: no" >&5
28442 $as_echo "no" >&6; }
28446 test -n "$NSGMLS" && break
28449 for ac_prog in openjade jade
28451 # Extract the first word of "$ac_prog", so it can be a program name with args.
28452 set dummy $ac_prog; ac_word=$2
28453 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28454 $as_echo_n "checking for $ac_word... " >&6; }
28455 if test "${ac_cv_prog_JADE+set}" = set; then
28456 $as_echo_n "(cached) " >&6
28458 if test -n "$JADE"; then
28459 ac_cv_prog_JADE="$JADE" # Let the user override the test.
28461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28462 for as_dir in $PATH
28465 test -z "$as_dir" && as_dir=.
28466 for ac_exec_ext in '' $ac_executable_extensions; do
28467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28468 ac_cv_prog_JADE="$ac_prog"
28469 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28478 JADE=$ac_cv_prog_JADE
28479 if test -n "$JADE"; then
28480 { $as_echo "$as_me:$LINENO: result: $JADE" >&5
28481 $as_echo "$JADE" >&6; }
28483 { $as_echo "$as_me:$LINENO: result: no" >&5
28484 $as_echo "no" >&6; }
28488 test -n "$JADE" && break
28492 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
28493 $as_echo_n "checking for DocBook V4.2... " >&6; }
28494 if test "${pgac_cv_check_docbook+set}" = set; then
28495 $as_echo_n "(cached) " >&6
28497 cat >conftest.sgml <<EOF
28498 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
28500 <title>test</title>
28502 <title>random</title>
28504 <title>testsect</title>
28511 pgac_cv_check_docbook=no
28513 if test -n "$NSGMLS"; then
28514 $NSGMLS -s conftest.sgml 1>&5 2>&1
28515 if test $? -eq 0; then
28516 pgac_cv_check_docbook=yes
28519 rm -f conftest.sgml
28521 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
28522 $as_echo "$pgac_cv_check_docbook" >&6; }
28524 have_docbook=$pgac_cv_check_docbook
28527 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
28528 $as_echo_n "checking for DocBook stylesheets... " >&6; }
28529 if test "${pgac_cv_path_stylesheets+set}" = set; then
28530 $as_echo_n "(cached) " >&6
28532 if test -n "$DOCBOOKSTYLE"; then
28533 pgac_cv_path_stylesheets=$DOCBOOKSTYLE
28535 for pgac_prefix in /usr /usr/local /opt /sw; do
28536 for pgac_infix in share lib; do
28537 for pgac_postfix in \
28538 sgml/stylesheets/nwalsh-modular \
28539 sgml/stylesheets/docbook \
28540 sgml/stylesheets/dsssl/docbook \
28541 sgml/docbook-dsssl \
28542 sgml/docbook/dsssl/modular \
28543 sgml/docbook/stylesheet/dsssl/modular \
28544 sgml/docbook/dsssl-stylesheets \
28545 sgml/dsssl/docbook-dsssl-nwalsh
28547 pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
28548 if test -r "$pgac_candidate/html/docbook.dsl" \
28549 && test -r "$pgac_candidate/print/docbook.dsl"
28551 pgac_cv_path_stylesheets=$pgac_candidate
28560 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
28562 if test -n "$DOCBOOKSTYLE"; then
28563 { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
28564 $as_echo "$DOCBOOKSTYLE" >&6; }
28566 { $as_echo "$as_me:$LINENO: result: no" >&5
28567 $as_echo "no" >&6; }
28569 if test -n "$DOCBOOKSTYLE"; then
28570 for ac_prog in collateindex.pl
28572 # Extract the first word of "$ac_prog", so it can be a program name with args.
28573 set dummy $ac_prog; ac_word=$2
28574 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28575 $as_echo_n "checking for $ac_word... " >&6; }
28576 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28577 $as_echo_n "(cached) " >&6
28579 case $COLLATEINDEX in
28581 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28585 for as_dir in $DOCBOOKSTYLE/bin $PATH
28588 test -z "$as_dir" && as_dir=.
28589 for ac_exec_ext in '' $ac_executable_extensions; do
28590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28591 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28592 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28602 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28603 if test -n "$COLLATEINDEX"; then
28604 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28605 $as_echo "$COLLATEINDEX" >&6; }
28607 { $as_echo "$as_me:$LINENO: result: no" >&5
28608 $as_echo "no" >&6; }
28612 test -n "$COLLATEINDEX" && break
28616 for ac_prog in collateindex.pl
28618 # Extract the first word of "$ac_prog", so it can be a program name with args.
28619 set dummy $ac_prog; ac_word=$2
28620 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28621 $as_echo_n "checking for $ac_word... " >&6; }
28622 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
28623 $as_echo_n "(cached) " >&6
28625 case $COLLATEINDEX in
28627 ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
28630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28631 for as_dir in $PATH
28634 test -z "$as_dir" && as_dir=.
28635 for ac_exec_ext in '' $ac_executable_extensions; do
28636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28637 ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
28638 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28648 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
28649 if test -n "$COLLATEINDEX"; then
28650 { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
28651 $as_echo "$COLLATEINDEX" >&6; }
28653 { $as_echo "$as_me:$LINENO: result: no" >&5
28654 $as_echo "no" >&6; }
28658 test -n "$COLLATEINDEX" && break
28662 for ac_prog in xsltproc
28664 # Extract the first word of "$ac_prog", so it can be a program name with args.
28665 set dummy $ac_prog; ac_word=$2
28666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28667 $as_echo_n "checking for $ac_word... " >&6; }
28668 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
28669 $as_echo_n "(cached) " >&6
28671 if test -n "$XSLTPROC"; then
28672 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
28674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28675 for as_dir in $PATH
28678 test -z "$as_dir" && as_dir=.
28679 for ac_exec_ext in '' $ac_executable_extensions; do
28680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28681 ac_cv_prog_XSLTPROC="$ac_prog"
28682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28691 XSLTPROC=$ac_cv_prog_XSLTPROC
28692 if test -n "$XSLTPROC"; then
28693 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
28694 $as_echo "$XSLTPROC" >&6; }
28696 { $as_echo "$as_me:$LINENO: result: no" >&5
28697 $as_echo "no" >&6; }
28701 test -n "$XSLTPROC" && break
28704 for ac_prog in osx sgml2xml sx
28706 # Extract the first word of "$ac_prog", so it can be a program name with args.
28707 set dummy $ac_prog; ac_word=$2
28708 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28709 $as_echo_n "checking for $ac_word... " >&6; }
28710 if test "${ac_cv_prog_OSX+set}" = set; then
28711 $as_echo_n "(cached) " >&6
28713 if test -n "$OSX"; then
28714 ac_cv_prog_OSX="$OSX" # Let the user override the test.
28716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28717 for as_dir in $PATH
28720 test -z "$as_dir" && as_dir=.
28721 for ac_exec_ext in '' $ac_executable_extensions; do
28722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28723 ac_cv_prog_OSX="$ac_prog"
28724 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28733 OSX=$ac_cv_prog_OSX
28734 if test -n "$OSX"; then
28735 { $as_echo "$as_me:$LINENO: result: $OSX" >&5
28736 $as_echo "$OSX" >&6; }
28738 { $as_echo "$as_me:$LINENO: result: no" >&5
28739 $as_echo "no" >&6; }
28743 test -n "$OSX" && break
28749 # We have to run the thread test near the end so we have all our symbols
28750 # defined. Cross compiling throws a warning.
28752 if test "$enable_thread_safety" = yes; then
28753 if test "$PORTNAME" != "win32"
28755 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
28756 $as_echo_n "checking thread safety of required library functions... " >&6; }
28760 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
28761 LIBS="$LIBS $PTHREAD_LIBS"
28762 if test "$cross_compiling" = yes; then
28763 { $as_echo "$as_me:$LINENO: result: maybe" >&5
28764 $as_echo "maybe" >&6; }
28765 { $as_echo "$as_me:$LINENO: WARNING:
28766 *** Skipping thread test program because of cross-compile build.
28767 *** Run the program in src/test/thread on the target machine.
28769 $as_echo "$as_me: WARNING:
28770 *** Skipping thread test program because of cross-compile build.
28771 *** Run the program in src/test/thread on the target machine.
28774 cat >conftest.$ac_ext <<_ACEOF
28777 cat confdefs.h >>conftest.$ac_ext
28778 cat >>conftest.$ac_ext <<_ACEOF
28779 /* end confdefs.h. */
28780 #include "$srcdir/src/test/thread/thread_test.c"
28782 rm -f conftest$ac_exeext
28783 if { (ac_try="$ac_link"
28784 case "(($ac_try" in
28785 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28786 *) ac_try_echo
=$ac_try;;
28788 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28789 $as_echo "$ac_try_echo") >&5
28790 (eval "$ac_link") 2>&5
28792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
28794 { (case "(($ac_try" in
28795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28796 *) ac_try_echo=$ac_try;;
28798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28799 $as_echo "$ac_try_echo") >&5
28800 (eval "$ac_try") 2>&5
28802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803 (exit $ac_status); }; }; then
28804 { $as_echo "$as_me:$LINENO: result: yes" >&5
28805 $as_echo "yes" >&6; }
28807 $as_echo "$as_me: program exited with status $ac_status" >&5
28808 $as_echo "$as_me: failed program was:" >&5
28809 sed 's/^/| /' conftest.$ac_ext >&5
28811 ( exit $ac_status )
28812 { $as_echo "$as_me:$LINENO: result: no" >&5
28813 $as_echo "no" >&6; }
28814 { { $as_echo "$as_me:$LINENO: error: thread test program failed
28815 This platform is not thread-safe. Check the file 'config.log' or compile
28816 and run src/test/thread/thread_test for the exact reason.
28817 Use --disable-thread-safety to disable thread safety." >&5
28818 $as_echo "$as_me: error: thread test program failed
28819 This platform is not thread-safe. Check the file 'config.log' or compile
28820 and run src/test/thread/thread_test for the exact reason.
28821 Use --disable-thread-safety to disable thread safety." >&2;}
28822 { (exit 1); exit 1; }; }
28824 rm -rf conftest.dSYM
28825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28832 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
28833 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
28837 # If compiler will take -Wl,--as-needed (or various platform-specific
28838 # spellings thereof) then add that to LDFLAGS. This is much easier than
28839 # trying to filter LIBS to the minimum for each executable.
28840 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
28841 # libreadline; therefore we postpone testing it until we know what library
28842 # dependencies readline has. The test code will try to link with $LIBS.
28843 if test "$with_readline" = yes; then
28844 link_test_func=readline
28846 link_test_func=exit
28849 if test "$PORTNAME" = "darwin"; then
28850 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
28851 $as_echo_n "checking if $CC supports -Wl,-dead_strip_dylibs... " >&6; }
28852 pgac_save_LDFLAGS=$LDFLAGS
28853 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
28854 if test "$cross_compiling" = yes; then
28855 LDFLAGS="$pgac_save_LDFLAGS"
28856 { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28857 $as_echo "assuming no" >&6; }
28859 cat >conftest.$ac_ext <<_ACEOF
28862 cat confdefs.h >>conftest.$ac_ext
28863 cat >>conftest.$ac_ext <<_ACEOF
28864 /* end confdefs.h. */
28865 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28874 rm -f conftest$ac_exeext
28875 if { (ac_try="$ac_link"
28876 case "(($ac_try" in
28877 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28878 *) ac_try_echo
=$ac_try;;
28880 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28881 $as_echo "$ac_try_echo") >&5
28882 (eval "$ac_link") 2>&5
28884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
28886 { (case "(($ac_try" in
28887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28888 *) ac_try_echo=$ac_try;;
28890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28891 $as_echo "$ac_try_echo") >&5
28892 (eval "$ac_try") 2>&5
28894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895 (exit $ac_status); }; }; then
28896 { $as_echo "$as_me:$LINENO: result: yes" >&5
28897 $as_echo "yes" >&6; }
28899 $as_echo "$as_me: program exited with status $ac_status" >&5
28900 $as_echo "$as_me: failed program was:" >&5
28901 sed 's/^/| /' conftest.$ac_ext >&5
28903 ( exit $ac_status )
28904 LDFLAGS="$pgac_save_LDFLAGS"
28905 { $as_echo "$as_me:$LINENO: result: no" >&5
28906 $as_echo "no" >&6; }
28908 rm -rf conftest.dSYM
28909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28914 elif test "$PORTNAME" = "openbsd"; then
28915 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,-Bdynamic" >&5
28916 $as_echo_n "checking if $CC supports -Wl,-Bdynamic... " >&6; }
28917 pgac_save_LDFLAGS=$LDFLAGS
28918 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
28919 if test "$cross_compiling" = yes; then
28920 LDFLAGS="$pgac_save_LDFLAGS"
28921 { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28922 $as_echo "assuming no" >&6; }
28924 cat >conftest.$ac_ext <<_ACEOF
28927 cat confdefs.h >>conftest.$ac_ext
28928 cat >>conftest.$ac_ext <<_ACEOF
28929 /* end confdefs.h. */
28930 extern void $link_test_func (); void (*fptr) () = $link_test_func;
28939 rm -f conftest$ac_exeext
28940 if { (ac_try="$ac_link"
28941 case "(($ac_try" in
28942 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
28943 *) ac_try_echo
=$ac_try;;
28945 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
28946 $as_echo "$ac_try_echo") >&5
28947 (eval "$ac_link") 2>&5
28949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28950 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
28951 { (case "(($ac_try" in
28952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
28953 *) ac_try_echo=$ac_try;;
28955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28956 $as_echo "$ac_try_echo") >&5
28957 (eval "$ac_try") 2>&5
28959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28960 (exit $ac_status); }; }; then
28961 { $as_echo "$as_me:$LINENO: result: yes" >&5
28962 $as_echo "yes" >&6; }
28964 $as_echo "$as_me: program exited with status $ac_status" >&5
28965 $as_echo "$as_me: failed program was:" >&5
28966 sed 's/^/| /' conftest.$ac_ext >&5
28968 ( exit $ac_status )
28969 LDFLAGS="$pgac_save_LDFLAGS"
28970 { $as_echo "$as_me:$LINENO: result: no" >&5
28971 $as_echo "no" >&6; }
28973 rm -rf conftest.dSYM
28974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28980 { $as_echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
28981 $as_echo_n "checking if $CC supports -Wl,--as-needed... " >&6; }
28982 pgac_save_LDFLAGS=$LDFLAGS
28983 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
28984 if test "$cross_compiling" = yes; then
28985 LDFLAGS="$pgac_save_LDFLAGS"
28986 { $as_echo "$as_me:$LINENO: result: assuming no" >&5
28987 $as_echo "assuming no" >&6; }
28989 cat >conftest.$ac_ext <<_ACEOF
28992 cat confdefs.h >>conftest.$ac_ext
28993 cat >>conftest.$ac_ext <<_ACEOF
28994 /* end confdefs.h. */
28995 extern void $link_test_func (); void (*fptr) () = $link_test_func;
29004 rm -f conftest$ac_exeext
29005 if { (ac_try="$ac_link"
29006 case "(($ac_try" in
29007 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
29008 *) ac_try_echo
=$ac_try;;
29010 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
29011 $as_echo "$ac_try_echo") >&5
29012 (eval "$ac_link") 2>&5
29014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29015 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
29016 { (case "(($ac_try" in
29017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
29018 *) ac_try_echo=$ac_try;;
29020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29021 $as_echo "$ac_try_echo") >&5
29022 (eval "$ac_try") 2>&5
29024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025 (exit $ac_status); }; }; then
29026 { $as_echo "$as_me:$LINENO: result: yes" >&5
29027 $as_echo "yes" >&6; }
29029 $as_echo "$as_me: program exited with status $ac_status" >&5
29030 $as_echo "$as_me: failed program was:" >&5
29031 sed 's/^/| /' conftest.$ac_ext >&5
29033 ( exit $ac_status )
29034 LDFLAGS="$pgac_save_LDFLAGS"
29035 { $as_echo "$as_me:$LINENO: result: no" >&5
29036 $as_echo "no" >&6; }
29038 rm -rf conftest.dSYM
29039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29047 # Begin output steps
29049 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
29050 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
29051 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
29052 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
29053 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
29054 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
29056 # Create compiler version string
29057 if test x"$GCC" = x"yes" ; then
29058 cc_string="GCC `${CC} --version |
sed q
`"
29059 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
29060 cc_string=`${CC} -V 2>&1 |
sed q
`
29066 cat >>confdefs.h <<_ACEOF
29067 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \
* 8`-bit"
29071 # Supply a numeric version string for use by 3rd party add-ons
29072 # awk -F is a regex on some platforms, and not on others, so make "." a tab
29073 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" |
sed 's/[A-Za-z].*$//' |
29075 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
29077 cat >>confdefs.h <<_ACEOF
29078 #define PG_VERSION_NUM $PG_VERSION_NUM
29083 # prepare build tree if outside source tree
29084 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
29085 # Note 2: /bin/pwd might be better than shell's built-in at getting
29086 # a symlink-free name.
29087 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin
/pwd`" = "`/bin
/pwd`"; then
29091 if test "$no_create" != yes; then
29092 $as_echo_n "preparing build tree... " >&6
29093 pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
29094 $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
29095 || { { $as_echo "$as_me:$LINENO: error: failed" >&5
29096 $as_echo "$as_me: error: failed" >&2;}
29097 { (exit 1); exit 1; }; }
29098 { $as_echo "$as_me:$LINENO: result: done" >&5
29099 $as_echo "done" >&6; }
29105 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
29108 ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
29111 if test "$PORTNAME" = "win32"; then
29112 ac_config_commands="$ac_config_commands check_win32_symlinks"
29116 ac_config_headers="$ac_config_headers src/include/pg_config.h"
29119 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
29122 cat >confcache <<\_ACEOF
29123 # This file is a shell script that caches the results of configure
29124 # tests run on this system so they can be shared between configure
29125 # scripts and configure runs, see configure's option --config-cache.
29126 # It is not useful on other systems. If it contains results you don't
29127 # want to keep, you may remove or edit it.
29129 # config.status only pays attention to the cache file if you give it
29130 # the --recheck option to rerun configure.
29132 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
29133 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29134 # following values.
29138 # The following way of writing the cache mishandles newlines in values,
29139 # but we know of no workaround that is simple, portable, and efficient.
29140 # So, we kill variables containing newlines.
29141 # Ultrix sh set writes to stderr and can't be redirected directly,
29142 # and sets the high bit in the cache file unless we assign to the vars.
29144 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29145 eval ac_val
=\$
$ac_var
29149 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
29150 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29153 _ | IFS | as_nl
) ;; #(
29154 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
29155 *) $as_unset $ac_var ;;
29161 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29162 *${as_nl}ac_space
=\
*)
29163 # `set' does not quote correctly, so add quotes (double-quote
29164 # substitution turns \\\\ into \\, and sed turns \\ into \).
29167 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29170 # `set' quotes correctly as required by POSIX, so do not add quotes.
29171 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29180 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29182 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29184 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29185 if test -w "$cache_file"; then
29186 test "x$cache_file" != "x/dev/null" &&
29187 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
29188 $as_echo "$as_me: updating cache $cache_file" >&6;}
29189 cat confcache
>$cache_file
29191 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29192 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29197 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29198 # Let make expand exec_prefix.
29199 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29201 DEFS
=-DHAVE_CONFIG_H
29205 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29206 # 1. Remove the extension, and $U if already installed.
29207 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
29208 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
29209 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29210 # will be set to the directory where LIBOBJS objects are built.
29211 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29212 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29214 LIBOBJS
=$ac_libobjs
29216 LTLIBOBJS
=$ac_ltlibobjs
29221 : ${CONFIG_STATUS=./config.status}
29223 ac_clean_files_save
=$ac_clean_files
29224 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29225 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29226 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29227 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29229 # Generated by $as_me.
29230 # Run this file to recreate the current configuration.
29231 # Compiler output produced by configure, useful for debugging
29232 # configure, is in config.log if it exists.
29235 ac_cs_recheck=false
29237 SHELL=\${CONFIG_SHELL-$SHELL}
29240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29241 ## --------------------- ##
29242 ## M4sh Initialization. ##
29243 ## --------------------- ##
29245 # Be more Bourne compatible
29246 DUALCASE
=1; export DUALCASE
# for MKS sh
29247 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
29250 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29251 # is contrary to our usage. Disable this feature.
29252 alias -g '${1+"$@"}'='"$@"'
29253 setopt NO_GLOB_SUBST
29255 case `(set -o) 2>/dev/null` in
29256 *posix
*) set -o posix
;;
29265 # Avoid depending upon Character Ranges.
29266 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29267 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29268 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29269 as_cr_digits
='0123456789'
29270 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29275 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29276 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29277 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29278 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29279 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29280 as_echo='printf %s
\n'
29281 as_echo_n='printf %s
'
29283 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29284 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
29285 as_echo_n='/usr
/ucb
/echo -n'
29287 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29288 as_echo_n_body='eval
29292 expr "X$arg" : "X\\(.*\\)$as_nl";
29293 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29295 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
29297 export as_echo_n_body
29298 as_echo_n='sh
-c $as_echo_n_body as_echo
'
29300 export as_echo_body
29301 as_echo='sh
-c $as_echo_body as_echo
'
29304 # The user is always right.
29305 if test "${PATH_SEPARATOR+set}" != set; then
29307 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29308 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29313 # Support unset when possible.
29314 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29322 # We need space, tab and new line, in precisely that order. Quoting is
29323 # there to prevent editors from complaining about space-tab.
29324 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29325 # splitting by setting IFS to empty value.)
29328 # Find who we are. Look in the path if we contain no directory separator.
29330 *[\\/]* ) as_myself=$0 ;;
29331 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29332 for as_dir in $PATH
29335 test -z "$as_dir" && as_dir=.
29336 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29342 # We did not find ourselves, most probably we were run as `sh COMMAND'
29343 # in which case we are not to be found in the path.
29344 if test "x$as_myself" = x
; then
29347 if test ! -f "$as_myself"; then
29348 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29349 { (exit 1); exit 1; }
29352 # Work around bugs in pre-3.0 UWIN ksh.
29353 for as_var
in ENV MAIL MAILPATH
29354 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
29366 # Required to use basename.
29367 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29368 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29374 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29375 as_basename
=basename
29381 # Name of the executable.
29382 as_me
=`$as_basename -- "$0" ||
29383 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29384 X"$0" : 'X\(//\)$' \| \
29385 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29387 sed '/^.*\/\([^/][^/]*\)\/*$/{
29406 as_lineno_1
=$LINENO
29407 as_lineno_2
=$LINENO
29408 test "x$as_lineno_1" != "x$as_lineno_2" &&
29409 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
29411 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29412 # uniformly replaced by the line number. The first 'sed' inserts a
29413 # line-number line after each line using $LINENO; the second 'sed'
29414 # does the real work. The second script uses 'N' to pair each
29415 # line-number line with the line containing $LINENO, and appends
29416 # trailing '-' during substitution so that $LINENO is not a special
29417 # case at line end.
29418 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29419 # scripts with optimization help from Paolo Bonzini. Blame Lee
29420 # E. McMahon (1931-1989) for sed's syntax. :-)
29432 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29435 ' >$as_me.lineno
&&
29436 chmod +x
"$as_me.lineno" ||
29437 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29438 { (exit 1); exit 1; }; }
29440 # Don't try to exec as it changes $[0], causing all sort of problems
29441 # (the dirname of $[0] is not the place where we might find the
29442 # original and so on. Autoconf is especially sensitive to this).
29443 .
"./$as_me.lineno"
29444 # Exit status is that of the last command.
29449 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29455 ECHO_C
= ECHO_N
= ECHO_T
=
29456 case `echo -n x` in
29458 case `echo 'x\c'` in
29459 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29465 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29466 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29472 rm -f conf$$ conf$$.exe conf$$.
file
29473 if test -d conf$$.dir
; then
29474 rm -f conf$$.dir
/conf$$.
file
29477 mkdir conf$$.dir
2>/dev
/null
29479 if (echo >conf$$.
file) 2>/dev
/null
; then
29480 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29482 # ... but there are two gotchas:
29483 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29484 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29485 # In both cases, we have to default to `cp -p'.
29486 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
29488 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29496 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
29497 rmdir conf$$.dir
2>/dev
/null
29499 if mkdir
-p .
2>/dev
/null
; then
29502 test -d .
/-p && rmdir .
/-p
29506 if test -x / >/dev
/null
2>&1; then
29507 as_test_x
='test -x'
29509 if ls -dL / >/dev
/null
2>&1; then
29516 if test -d "$1"; then
29522 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29523 ???[sx]*):;;*)false;;esac;fi
29527 as_executable_p
=$as_test_x
29529 # Sed expression to map a string onto a valid CPP name.
29530 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29532 # Sed expression to map a string onto a valid variable name.
29533 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29538 # Save the log message, to keep $[0] and so on meaningful, and to
29539 # report actual input values of CONFIG_FILES etc. instead of their
29540 # values after options handling.
29542 This file was extended by PostgreSQL $as_me 9.1devel, which was
29543 generated by GNU Autoconf 2.63. Invocation command line was
29545 CONFIG_FILES = $CONFIG_FILES
29546 CONFIG_HEADERS = $CONFIG_HEADERS
29547 CONFIG_LINKS = $CONFIG_LINKS
29548 CONFIG_COMMANDS = $CONFIG_COMMANDS
29551 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29556 case $ac_config_files in *"
29557 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
29560 case $ac_config_headers in *"
29561 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
29565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29566 # Files that config.status was made for.
29567 config_files="$ac_config_files"
29568 config_headers="$ac_config_headers"
29569 config_links="$ac_config_links"
29570 config_commands="$ac_config_commands"
29574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29576 \`$as_me' instantiates files from templates according to the
29577 current configuration.
29579 Usage: $0 [OPTION]... [FILE]...
29581 -h, --help print this help, then exit
29582 -V, --version print version number and configuration settings, then exit
29583 -q, --quiet, --silent
29584 do not print progress messages
29585 -d, --debug don't remove temporary files
29586 --recheck update $as_me by reconfiguring in the same conditions
29587 --file=FILE[:TEMPLATE]
29588 instantiate the configuration file FILE
29589 --header=FILE[:TEMPLATE]
29590 instantiate the configuration header FILE
29592 Configuration files:
29595 Configuration headers:
29598 Configuration links:
29601 Configuration commands:
29604 Report bugs to <bug-autoconf@gnu.org>."
29607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29609 PostgreSQL config.status 9.1devel
29610 configured by $0, generated by GNU Autoconf 2.63,
29611 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29613 Copyright (C) 2008 Free Software Foundation, Inc.
29614 This config.status script is free software; the Free Software Foundation
29615 gives unlimited permission to copy, distribute and modify it."
29621 test -n "\$AWK" || AWK=awk
29624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29625 # The default lists apply if the user does not specify any file.
29631 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29632 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
29643 # Handling of the options.
29644 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29646 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
29647 $as_echo "$ac_cs_version"; exit ;;
29648 --debug |
--debu |
--deb |
--de |
--d |
-d )
29650 --file |
--fil |
--fi |
--f )
29653 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29655 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
29656 ac_need_defaults
=false
;;
29657 --header |
--heade |
--head |
--hea )
29660 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29662 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
29663 ac_need_defaults
=false
;;
29665 # Conflict between --help and --header
29666 { $as_echo "$as_me: error: ambiguous option: $1
29667 Try \`$0 --help' for more information." >&2
29668 { (exit 1); exit 1; }; };;
29669 --help |
--hel |
-h )
29670 $as_echo "$ac_cs_usage"; exit ;;
29671 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
29672 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
29675 # This is an error.
29676 -*) { $as_echo "$as_me: error: unrecognized option: $1
29677 Try \`$0 --help' for more information." >&2
29678 { (exit 1); exit 1; }; } ;;
29680 *) ac_config_targets
="$ac_config_targets $1"
29681 ac_need_defaults
=false
;;
29687 ac_configure_extra_args
=
29689 if $ac_cs_silent; then
29691 ac_configure_extra_args
="$ac_configure_extra_args --silent"
29695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29696 if \$ac_cs_recheck; then
29697 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29699 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29700 CONFIG_SHELL='$SHELL'
29701 export CONFIG_SHELL
29706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29710 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29711 ## Running $as_me. ##
29717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29722 # Handling of arguments.
29723 for ac_config_target
in $ac_config_targets
29725 case $ac_config_target in
29726 "src/backend/port/tas.s") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
29727 "GNUmakefile") CONFIG_FILES
="$CONFIG_FILES GNUmakefile" ;;
29728 "src/Makefile.global") CONFIG_FILES
="$CONFIG_FILES src/Makefile.global" ;;
29729 "src/backend/port/dynloader.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
29730 "src/backend/port/pg_sema.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
29731 "src/backend/port/pg_shmem.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
29732 "src/backend/port/pg_latch.c") CONFIG_LINKS
="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
29733 "src/include/dynloader.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
29734 "src/include/pg_config_os.h") CONFIG_LINKS
="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
29735 "src/Makefile.port") CONFIG_LINKS
="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
29736 "check_win32_symlinks") CONFIG_COMMANDS
="$CONFIG_COMMANDS check_win32_symlinks" ;;
29737 "src/include/pg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pg_config.h" ;;
29738 "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
29740 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29741 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29742 { (exit 1); exit 1; }; };;
29747 # If the user did not use the arguments to specify the items to instantiate,
29748 # then the envvar interface is used. Set only those that are not.
29749 # We use the long form for the default assignment because of an extremely
29750 # bizarre bug on SunOS 4.1.3.
29751 if $ac_need_defaults; then
29752 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29753 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29754 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
29755 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
29758 # Have a temporary directory for convenience. Make it in the build tree
29759 # simply because there is no reason against having it here, and in addition,
29760 # creating and moving files from /tmp can sometimes cause problems.
29761 # Hook for its removal unless debugging.
29762 # Note that there is a small window in which the directory will not be cleaned:
29763 # after its creation but before its name has been assigned to `$tmp'.
29767 trap 'exit_status=$?
29768 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29770 trap '{ (exit 1); exit 1; }' 1 2 13 15
29772 # Create a (secure) tmp directory for tmp files.
29775 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29776 test -n "$tmp" && test -d "$tmp"
29779 tmp
=.
/conf$$
-$RANDOM
29780 (umask 077 && mkdir
"$tmp")
29783 $as_echo "$as_me: cannot create a temporary directory in ." >&2
29784 { (exit 1); exit 1; }
29787 # Set up the scripts for CONFIG_FILES section.
29788 # No need to generate them if there are no CONFIG_FILES.
29789 # This happens for instance with `./config.status config.h'.
29790 if test -n "$CONFIG_FILES"; then
29794 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29795 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29798 ac_cs_awk_cr
=$ac_cr
29801 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29806 echo "cat >conf$$subs.awk <<_ACEOF" &&
29807 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29809 } >conf$$subs.sh ||
29810 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
29811 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
29812 { (exit 1); exit 1; }; }
29813 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29815 for ac_last_try in false false false false false :; do
29816 . ./conf$$subs.sh ||
29817 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
29818 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
29819 { (exit 1); exit 1; }; }
29821 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
29822 if test $ac_delim_n = $ac_delim_num; then
29824 elif $ac_last_try; then
29825 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
29826 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
29827 { (exit 1); exit 1; }; }
29829 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29832 rm -f conf$$subs.sh
29834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29835 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
29839 s/^/S["/; s
/!.
*/"]=/
29849 s/\(.\{148\}\).*/\1/
29851 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
29856 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29863 s/\(.\{148\}\).*/\1/
29865 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
29869 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29874 ' <conf$$subs.awk | sed '
29879 ' >>$CONFIG_STATUS || ac_write_fail=1
29880 rm -f conf$$subs.awk
29881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29883 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
29884 for (key in S) S_is_set[key] = 1
29890 nfields = split(line, field, "@
")
29892 len = length(field[1])
29893 for (i = 2; i < nfields; i++) {
29895 keylen = length(key)
29896 if (S_is_set[key]) {
29898 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29899 len += length(value) + length(field[++i])
29910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29911 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29912 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
29915 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
29916 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
29917 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
29918 { (exit 1); exit 1; }; }
29921 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29922 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
29923 # trailing colons and then remove the whole line if VPATH becomes empty
29924 # (actually we leave an empty line to preserve line numbers).
29925 if test "x
$srcdir" = x.; then
29926 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29927 s/:*\$(srcdir):*/:/
29928 s/:*\${srcdir}:*/:/
29930 s/^\([^=]*=[ ]*\):*/\1/
29936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29937 fi # test -n "$CONFIG_FILES"
29939 # Set up the scripts for CONFIG_HEADERS section.
29940 # No need to generate them if there are no CONFIG_HEADERS.
29941 # This happens for instance with `./config.status Makefile'.
29942 if test -n "$CONFIG_HEADERS"; then
29943 cat >"$tmp/defines.
awk" <<\_ACAWK ||
29947 # Transform confdefs.h into an awk script `defines.awk', embedded as
29948 # here-document in config.status, that substitutes the proper values into
29949 # config.h.in to produce config.h.
29951 # Create a delimiter string that does not exist in confdefs.h, to ease
29952 # handling of long lines.
29954 for ac_last_try in false false :; do
29955 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
29956 if test -z "$ac_t"; then
29958 elif $ac_last_try; then
29959 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
29960 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
29961 { (exit 1); exit 1; }; }
29963 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29967 # For the awk script, D is an array of macro values keyed by name,
29968 # likewise P contains macro parameters if any. Preserve backslash
29969 # newline sequences.
29971 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29973 s/.\{148\}/&'"$ac_delim"'/g
29976 s/^[ ]*#[ ]*define[ ][ ]*/ /
29983 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
29985 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
29989 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
29990 D["\
1"]=" \
3\\\\\\n
"\\/p
29992 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
29997 s/.\{148\}/&'"$ac_delim"'/g
30002 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
30005 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
30007 ' <confdefs.h | sed '
30008 s/'"$ac_delim"'/"\\\
30009 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30012 for (key in D) D_is_set[key] = 1
30015 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30017 split(line, arg, " ")
30018 if (arg[1] == "#") {
30022 defundef
= substr
(arg
[1], 2)
30025 split(mac1
, mac2
, "(") #)
30027 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
30028 if (D_is_set
[macro
]) {
30029 # Preserve the white space surrounding the "#".
30030 print prefix
"define", macro P
[macro
] D
[macro
]
30033 # Replace #undef with comments. This is necessary, for example,
30034 # in the case of _POSIX_SOURCE, which is predefined and required
30035 # on some systems where configure will not decide to define it.
30036 if (defundef
== "undef") {
30037 print
"/*", prefix defundef
, macro
, "*/"
30045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30046 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
30047 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
30048 { (exit 1); exit 1; }; }
30049 fi # test -n "$CONFIG_HEADERS"
30052 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30057 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30059 case $ac_mode$ac_tag in
30061 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
30062 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
30063 { (exit 1); exit 1; }; };;
30064 :[FH
]-) ac_tag
=-:-;;
30065 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30082 -) ac_f
="$tmp/stdin";;
30083 *) # Look for the file first in the build tree, then in the source tree
30084 # (if the path is not absolute). The absolute path cannot be DOS-style,
30085 # because $ac_f cannot contain `:'.
30089 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30091 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30092 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30093 { (exit 1); exit 1; }; };;
30095 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30096 ac_file_inputs
="$ac_file_inputs '$ac_f'"
30099 # Let's still pretend it is `configure' which instantiates (i.e., don't
30100 # use $as_me), people would be surprised to read:
30101 # /* config.h. Generated by config.status. */
30102 configure_input
='Generated from '`
30103 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30105 if test x
"$ac_file" != x-
; then
30106 configure_input
="$ac_file. $configure_input"
30107 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
30108 $as_echo "$as_me: creating $ac_file" >&6;}
30110 # Neutralize special characters interpreted by sed in replacement strings.
30111 case $configure_input in #(
30112 *\
&* |
*\|
* |
*\\* )
30113 ac_sed_conf_input
=`$as_echo "$configure_input" |
30114 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30115 *) ac_sed_conf_input
=$configure_input;;
30119 *:-:* |
*:-) cat >"$tmp/stdin" \
30120 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30121 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30122 { (exit 1); exit 1; }; } ;;
30127 ac_dir
=`$as_dirname -- "$ac_file" ||
30128 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30129 X"$ac_file" : 'X\(//\)[^/]' \| \
30130 X"$ac_file" : 'X\(//\)$' \| \
30131 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30132 $as_echo X"$ac_file" |
30133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30137 /^X\(\/\/\)[^/].*/{
30152 -*) as_dir
=.
/$as_dir;;
30154 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
30158 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30159 *) as_qdir
=$as_dir;;
30161 as_dirs
="'$as_qdir' $as_dirs"
30162 as_dir
=`$as_dirname -- "$as_dir" ||
30163 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30164 X"$as_dir" : 'X\(//\)[^/]' \| \
30165 X"$as_dir" : 'X\(//\)$' \| \
30166 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30167 $as_echo X"$as_dir" |
30168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30172 /^X\(\/\/\)[^/].*/{
30185 test -d "$as_dir" && break
30187 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
30188 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30189 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
30190 { (exit 1); exit 1; }; }; }
30194 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30196 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30197 # A ".." for each directory in $ac_dir_suffix.
30198 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30199 case $ac_top_builddir_sub in
30200 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30201 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30204 ac_abs_top_builddir
=$ac_pwd
30205 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30206 # for backward compatibility:
30207 ac_top_builddir
=$ac_top_build_prefix
30210 .
) # We are building in place.
30212 ac_top_srcdir
=$ac_top_builddir_sub
30213 ac_abs_top_srcdir
=$ac_pwd ;;
30214 [\\/]* | ?
:[\\/]* ) # Absolute name.
30215 ac_srcdir
=$srcdir$ac_dir_suffix;
30216 ac_top_srcdir
=$srcdir
30217 ac_abs_top_srcdir
=$srcdir ;;
30218 *) # Relative name.
30219 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30220 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30221 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30223 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30232 ac_MKDIR_P
=$MKDIR_P
30234 [\\/$
]* | ?
:[\\/]* ) ;;
30235 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
30239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30240 # If the template does not know about datarootdir, expand it.
30241 # FIXME: This hack should be removed a few years after 2.60.
30242 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30255 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30256 *datarootdir
*) ac_datarootdir_seen
=yes;;
30257 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30258 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30259 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30262 ac_datarootdir_hack='
30263 s&@datadir@&$datadir&g
30264 s&@docdir@&$docdir&g
30265 s&@infodir@&$infodir&g
30266 s&@localedir@&$localedir&g
30267 s&@mandir@&$mandir&g
30268 s&\\\${datarootdir}&$datarootdir&g' ;;
30272 # Neutralize VPATH when `$srcdir' = `.'.
30273 # Shell code in configure.ac might set extrasub.
30274 # FIXME: do we really want to maintain this feature?
30275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30276 ac_sed_extra="$ac_vpsub
30279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30281 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30282 s|@configure_input@|
$ac_sed_conf_input|
;t t
30283 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30284 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
30285 s
&@srcdir@
&$ac_srcdir&;t t
30286 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30287 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30288 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30289 s
&@builddir@
&$ac_builddir&;t t
30290 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30291 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30292 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
30293 $ac_datarootdir_hack
30295 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
30296 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
30297 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
30298 { (exit 1); exit 1; }; }
30300 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30301 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
30302 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
30303 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30304 which seems to be undefined. Please make sure it is defined." >&5
30305 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30306 which seems to be undefined. Please make sure it is defined." >&2;}
30310 -) cat "$tmp/out" && rm -f "$tmp/out";;
30311 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30313 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30314 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30315 { (exit 1); exit 1; }; }
30321 if test x"$ac_file" != x-; then
30323 $as_echo "/* $configure_input */" \
30324 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30325 } >"$tmp/config.h" \
30326 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30327 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30328 { (exit 1); exit 1; }; }
30329 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30330 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30331 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30334 mv "$tmp/config.h" "$ac_file" \
30335 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
30336 $as_echo "$as_me: error: could not create $ac_file" >&2;}
30337 { (exit 1); exit 1; }; }
30340 $as_echo "/* $configure_input */" \
30341 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30342 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
30343 $as_echo "$as_me: error: could not create -" >&2;}
30344 { (exit 1); exit 1; }; }
30352 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
30355 # Prefer the file from the source tree if names are identical.
30356 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30357 ac_source=$srcdir/$ac_source
30360 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
30361 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30363 if test ! -r "$ac_source"; then
30364 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
30365 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
30366 { (exit 1); exit 1; }; }
30370 # Try a relative symlink, then a hard link, then a copy.
30372 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30373 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30375 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30376 ln "$ac_source" "$ac_file" 2>/dev/null ||
30377 cp -p "$ac_source" "$ac_file" ||
30378 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
30379 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
30380 { (exit 1); exit 1; }; }
30383 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
30384 $as_echo "$as_me: executing $ac_file commands" >&6;}
30389 case $ac_file$ac_mode in
30390 "check_win32_symlinks":C)
30391 # Links sometimes fail undetected on Mingw -
30392 # so here we detect it and warn the user
30393 for FILE in $CONFIG_LINKS
30395 # test -e works for symlinks in the MinGW console
30396 test -e `expr "$FILE" : '\
([^
:]*\
)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
30397 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
30400 "src/include/pg_config.h":H)
30401 # Update timestamp for pg_config.h (see Makefile.global)
30402 echo >src/include/stamp-h
30404 "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
30410 { (exit 0); exit 0; }
30412 chmod +x $CONFIG_STATUS
30413 ac_clean_files=$ac_clean_files_save
30415 test $ac_write_fail = 0 ||
30416 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
30417 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
30418 { (exit 1); exit 1; }; }
30421 # configure is writing to config.log, and then calls config.status.
30422 # config.status does its own redirection, appending to config.log.
30423 # Unfortunately, on DOS this fails, as config.log is still kept open
30424 # by configure, so config.status won't be able to
write to it
; its
30425 # output is simply discarded. So we exec the FD to /dev/null,
30426 # effectively closing config.log, so it can be properly (re)opened and
30427 # appended to by config.status. When coming back to configure, we
30428 # need to make the FD available again.
30429 if test "$no_create" != yes; then
30431 ac_config_status_args
=
30432 test "$silent" = yes &&
30433 ac_config_status_args
="$ac_config_status_args --quiet"
30435 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
30437 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30438 # would make configure fail if this is the last instruction.
30439 $ac_cs_success ||
{ (exit 1); exit 1; }
30441 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
30442 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30443 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}